Browse Source

调试

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

4
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' })
}
}

4
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' })
}
}

4
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' })
}
}

4
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' })
}
}

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

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

Loading…
Cancel
Save