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 {