Browse Source

调试

master_hella_20240701
zhaoyiran 5 months ago
parent
commit
a099cbacea
  1. 2
      src/api/wms/pickJobMain/index.ts
  2. 2
      src/api/wms/pickRecordMain/index.ts
  3. 2
      src/api/wms/plansetting/index.ts
  4. 2
      src/api/wms/scrapJobMain/index.ts
  5. 2
      src/api/wms/stockupMainJob/index.ts
  6. 2
      src/api/wms/strategy/index.ts

2
src/api/wms/pickJobMain/index.ts

@ -75,7 +75,7 @@ export const exportPickJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/pick-job-main/export-excel`, params }) return await request.download({ url: `/wms/pick-job-main/export-excel`, params })
} }

2
src/api/wms/pickRecordMain/index.ts

@ -62,7 +62,7 @@ export const exportPickRecordMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/pick-record-main/export-excel`, params }) return await request.download({ url: `/wms/pick-record-main/export-excel`, params })
} }

2
src/api/wms/plansetting/index.ts

@ -51,7 +51,7 @@ export const exportPlansetting = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/plansetting/export-excel`, params }) return await request.download({ url: `/wms/plansetting/export-excel`, params })
} }

2
src/api/wms/scrapJobMain/index.ts

@ -85,7 +85,7 @@ export const exportScrapJobMain = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/scrap-job-main/export-excel`, params }) return await request.download({ url: `/wms/scrap-job-main/export-excel`, params })
} }

2
src/api/wms/stockupMainJob/index.ts

@ -84,7 +84,7 @@ export const exportStockupMainJob = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/stockup-main-job/export-excel`, params }) return await request.download({ url: `/wms/stockup-main-job/export-excel`, params })
} }

2
src/api/wms/strategy/index.ts

@ -46,7 +46,7 @@ export const exportStrategy = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} 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 { } else {
return await request.download({ url: `/wms/strategy/export-excel`, params }) return await request.download({ url: `/wms/strategy/export-excel`, params })
} }

Loading…
Cancel
Save