diff --git a/src/api/wms/pickJobMain/index.ts b/src/api/wms/pickJobMain/index.ts index 20722e557..3cf2aa47f 100644 --- a/src/api/wms/pickJobMain/index.ts +++ b/src/api/wms/pickJobMain/index.ts @@ -75,7 +75,7 @@ export const exportPickJobMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/pick-job-main/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/pick-job-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/pick-job-main/export-excel`, params }) } @@ -84,4 +84,4 @@ export const exportPickJobMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/pick-job-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/pickRecordMain/index.ts b/src/api/wms/pickRecordMain/index.ts index bf291181c..78e83914e 100644 --- a/src/api/wms/pickRecordMain/index.ts +++ b/src/api/wms/pickRecordMain/index.ts @@ -62,7 +62,7 @@ export const exportPickRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/pick-record-main/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/pick-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/pick-record-main/export-excel`, params }) } @@ -71,4 +71,4 @@ export const exportPickRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/pick-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/plansetting/index.ts b/src/api/wms/plansetting/index.ts index 1b703dadc..07badf234 100644 --- a/src/api/wms/plansetting/index.ts +++ b/src/api/wms/plansetting/index.ts @@ -51,7 +51,7 @@ export const exportPlansetting = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/plansetting/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/plansetting/export-excel-senior', data }) } else { return await request.download({ url: `/wms/plansetting/export-excel`, params }) } @@ -60,4 +60,4 @@ export const exportPlansetting = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/plansetting/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/scrapJobMain/index.ts b/src/api/wms/scrapJobMain/index.ts index e2cc48093..61a448a59 100644 --- a/src/api/wms/scrapJobMain/index.ts +++ b/src/api/wms/scrapJobMain/index.ts @@ -85,7 +85,7 @@ export const exportScrapJobMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/scrap-job-main/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/scrap-job-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/scrap-job-main/export-excel`, params }) } @@ -94,4 +94,4 @@ export const exportScrapJobMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/scrap-job-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/stockupMainJob/index.ts b/src/api/wms/stockupMainJob/index.ts index b9dffb7ff..150609126 100644 --- a/src/api/wms/stockupMainJob/index.ts +++ b/src/api/wms/stockupMainJob/index.ts @@ -84,7 +84,7 @@ export const exportStockupMainJob = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/stockup-main-job/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/stockup-main-job/export-excel-senior', data }) } else { return await request.download({ url: `/wms/stockup-main-job/export-excel`, params }) } @@ -113,4 +113,4 @@ export const closeStockupMainJob = async (id) => { // 执行发货任务主 export const executeStockupMainJob = async (data: StockupMainJobVO) => { return await request.put({ url: `/wms/stockup-main-job/execute`, data }) -} \ No newline at end of file +} diff --git a/src/api/wms/strategy/index.ts b/src/api/wms/strategy/index.ts index d10cd5108..bd26f0071 100644 --- a/src/api/wms/strategy/index.ts +++ b/src/api/wms/strategy/index.ts @@ -46,7 +46,7 @@ export const exportStrategy = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/strategy/export-excel-senior', data }) + return await request.downloadPost({ url: '/wms/strategy/export-excel-senior', data }) } else { return await request.download({ url: `/wms/strategy/export-excel`, params }) }