diff --git a/src/api/wms/countadjustRecordMain/index.ts b/src/api/wms/countadjustRecordMain/index.ts index 02dc4ed60..8cb6da3f7 100644 --- a/src/api/wms/countadjustRecordMain/index.ts +++ b/src/api/wms/countadjustRecordMain/index.ts @@ -57,7 +57,7 @@ export const exportCountadjustRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/countadjust-record-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/countadjust-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/countadjust-record-main/export-excel`, params }) } @@ -66,4 +66,4 @@ export const exportCountadjustRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/countadjust-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/countadjustRequestMain/index.ts b/src/api/wms/countadjustRequestMain/index.ts index 4cc19ee4d..d1612bd5e 100644 --- a/src/api/wms/countadjustRequestMain/index.ts +++ b/src/api/wms/countadjustRequestMain/index.ts @@ -57,7 +57,7 @@ export const exportCountadjustRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/countadjust-request-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/countadjust-request-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params }) }