Browse Source

导出

master_hella_20240701
zhaoyiran 6 months ago
parent
commit
40fd9e82db
  1. 2
      src/api/wms/countJobMain/index.ts
  2. 2
      src/api/wms/countPlanMain/index.ts
  3. 2
      src/api/wms/countRecordMain/index.ts
  4. 2
      src/api/wms/countRequestMain/index.ts

2
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 })
}

2
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 })
}

2
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 })
}

2
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 })
}

Loading…
Cancel
Save