From ce31a780705b0d92874c716a2fd14a141024859b Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 23 Aug 2024 18:40:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7=EF=BC=9AHL-5470=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereceiptRequestMain/index.ts | 11 +++++++++++ .../purchasereceiptRequestOrderMTypeMain/index.vue | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/api/wms/purchasereceiptRequestMain/index.ts b/src/api/wms/purchasereceiptRequestMain/index.ts index fa910cb1b..dbbc615fb 100644 --- a/src/api/wms/purchasereceiptRequestMain/index.ts +++ b/src/api/wms/purchasereceiptRequestMain/index.ts @@ -88,6 +88,17 @@ export const exportPurchasereceiptRequestMain = async (params) => { } } + +// 导出采购M型收货申请主 Excel +export const exportPurchasereceiptRequestMainOrderTypeM = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereceipt-request-main/export-excel-senior-orderTypeM`, data }) + } else { + return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel-orderTypeM`, params }) + } +} + // 导出备件收货申请 export const exportSparereceiptRequestMain = async (params) => { if (params.isSearch) { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue index ba42051be..9837f1fa4 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue @@ -701,7 +701,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params) + const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMainOrderTypeM(tableObject.params) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) } catch { } finally {