From 775125486f6c860712e327d935174a2705af891b Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 16 Jan 2024 11:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=80=8E=E5=8A=A0=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierdeliverRequestMain/index.ts | 7 ++++++- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/wms/supplierdeliverRequestMain/index.ts b/src/api/wms/supplierdeliverRequestMain/index.ts index 82ac6b9c5..676a7200c 100644 --- a/src/api/wms/supplierdeliverRequestMain/index.ts +++ b/src/api/wms/supplierdeliverRequestMain/index.ts @@ -93,7 +93,12 @@ export const genRecordsSupplierdeliverRequestMain = async (id) => { } // 导出供应商发货申请主 Excel export const exportSupplierdeliverRequestMain = async (params) => { - return await request.download({ url: `/wms/supplierdeliver-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: '/wms/supplierdeliver-request-main/export-excel-senior', data }) + } else { + return await request.download({url: `/wms/supplierdeliver-request-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index fadac4a11..2089d66fd 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -453,7 +453,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SupplierdeliverRequestMainApi.exportSupplierdeliverRequestMain( - setSearchParams + tableObject.params ) download.excel(data, '供应商发货申请主.xlsx') } catch {