Browse Source

导出

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

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

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

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

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

Loading…
Cancel
Save