From b37ff3f6b3f8020641328819e9428ca83d256aae Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 23 Sep 2024 15:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-5834=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=AF=BC=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/purchasereturnRequestMain/index.ts | 10 ++++++++++ .../purchasereturnRequestMOrderTypeMain/index.vue | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/api/wms/purchasereturnRequestMain/index.ts b/src/api/wms/purchasereturnRequestMain/index.ts index 72d69f9eb..e97a97c7f 100644 --- a/src/api/wms/purchasereturnRequestMain/index.ts +++ b/src/api/wms/purchasereturnRequestMain/index.ts @@ -91,6 +91,16 @@ export const exportPurchasereturnRequestMain = async (params) => { } } +// 导出采购退货申请主 Excel +export const exportPurchasereturnRequestMainMorderType = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereturn-request-main/export-excel-senior-mordertype`, data }) + } else { + return await request.download({url: `/wms/purchasereturn-request-main/export-excel-mordertype`, params}) + } +} + // 导出采购退货申请主 Excel export const exportPurchasereturnRequestMainSpare = async (params) => { if (params.isSearch) { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue index 08e19b4f5..8d1adf296 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue @@ -796,7 +796,7 @@ const handleExport = async () => { // 发起导出 loadStart() const excelTitle = ref(route.meta.title) - const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain( + const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMainMorderType( tableObject.params ) download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)