diff --git a/src/api/wms/countJobMain/index.ts b/src/api/wms/countJobMain/index.ts index 2f685a8cf..c5f532bd9 100644 --- a/src/api/wms/countJobMain/index.ts +++ b/src/api/wms/countJobMain/index.ts @@ -76,7 +76,7 @@ export const exportCountJobMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/count-job-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/count-job-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/count-job-main/export-excel`, params }) } @@ -98,4 +98,4 @@ export const handleExportCountJob = async (id: number) => { masterId:id } return await request.download({ url: `/wms/count-job-main/export-excel-single`, params }) -} \ No newline at end of file +} diff --git a/src/api/wms/countPlanMain/index.ts b/src/api/wms/countPlanMain/index.ts index 0e3bc85fb..69cc8d502 100644 --- a/src/api/wms/countPlanMain/index.ts +++ b/src/api/wms/countPlanMain/index.ts @@ -63,7 +63,7 @@ export const exportCountPlanMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/count-plan-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/count-plan-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/count-plan-main/export-excel`, params }) } @@ -107,4 +107,4 @@ export const publish = (id) => { // 重置 export const resetting = (id) => { return request.put({ url: '/wms/count-plan-main/resetting?id=' + id }) -} \ No newline at end of file +} diff --git a/src/api/wms/countRecordMain/index.ts b/src/api/wms/countRecordMain/index.ts index 35d2ef3db..71012a8e2 100644 --- a/src/api/wms/countRecordMain/index.ts +++ b/src/api/wms/countRecordMain/index.ts @@ -59,7 +59,7 @@ export const exportCountRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/count-record-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/count-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/count-record-main/export-excel`, params }) } @@ -73,4 +73,4 @@ export const importTemplate = () => { // 生成盘点调整 export const generateCountRecordMain = async (id) => { return await request.put({ url: `/wms/count-record-main/generate?id=` + id}) -} \ No newline at end of file +} diff --git a/src/api/wms/countRequestMain/index.ts b/src/api/wms/countRequestMain/index.ts index b353bf0f9..77ff0c03d 100644 --- a/src/api/wms/countRequestMain/index.ts +++ b/src/api/wms/countRequestMain/index.ts @@ -58,7 +58,7 @@ export const exportCountRequestMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/count-request-main/export-excel-senior', data }) + return request.downloadPost({ url: '/wms/count-request-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/count-request-main/export-excel`, params }) } @@ -115,4 +115,4 @@ export const generateCountadjustRequest = async (id) => { //解冻 export const thaw = async (id) => { return await request.put({ url: `/wms/count-request-main/thaw?id=` + id }) -} \ No newline at end of file +}