diff --git a/src/api/wms/transferreceiptJobMain/index.ts b/src/api/wms/transferreceiptJobMain/index.ts index 1cf66f552..ab8fe4e41 100644 --- a/src/api/wms/transferreceiptJobMain/index.ts +++ b/src/api/wms/transferreceiptJobMain/index.ts @@ -76,7 +76,13 @@ export const deleteTransferreceiptJobMain = async (id: number) => { // 导出调拨入库任务主 Excel export const exportTransferreceiptJobMain = async (params) => { - return await request.download({ url: `/wms/transferreceipt-job-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/transferreceipt-job-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/transferreceipt-job-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/transferreceiptRecordMain/index.ts b/src/api/wms/transferreceiptRecordMain/index.ts index 915394535..ad358f00f 100644 --- a/src/api/wms/transferreceiptRecordMain/index.ts +++ b/src/api/wms/transferreceiptRecordMain/index.ts @@ -64,7 +64,13 @@ export const deleteTransferreceiptRecordMain = async (id: number) => { // 导出调拨入库记录主 Excel export const exportTransferreceiptRecordMain = async (params) => { - return await request.download({ url: `/wms/transferreceipt-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/transferreceipt-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/transferreceipt-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/transferreceiptRequestMain/index.ts b/src/api/wms/transferreceiptRequestMain/index.ts index d7462f636..69f1c5114 100644 --- a/src/api/wms/transferreceiptRequestMain/index.ts +++ b/src/api/wms/transferreceiptRequestMain/index.ts @@ -61,7 +61,13 @@ export const deleteTransferreceiptRequestMain = async (id: number) => { // 导出调拨入库申请主 Excel export const exportTransferreceiptRequestMain = async (params) => { - return await request.download({ url: `/wms/transferreceipt-request-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.downloadPost({ url: '/wms/transferreceipt-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/transferreceipt-request-main/export-excel`, params }) + } } // 下载用户导入模板