Browse Source

计划外外出库导入导出修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
f80a683536
  1. 8
      src/api/wms/unplannedissueJobMain/index.ts
  2. 8
      src/api/wms/unplannedissueRecordMain/index.ts
  3. 8
      src/api/wms/unplannedreceiptJobMain/index.ts
  4. 8
      src/api/wms/unplannedreceiptRecordMain/index.ts

8
src/api/wms/unplannedissueJobMain/index.ts

@ -70,7 +70,13 @@ export const deleteUnplannedissueJobMain = async (id: number) => {
// 导出计划外出库任务主 Excel
export const exportUnplannedissueJobMain = async (params) => {
return await request.download({ url: `/wms/unplannedissue-job-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/unplannedissue-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/unplannedissue-job-main/export-excel`, params })
}
}
// 下载用户导入模板

8
src/api/wms/unplannedissueRecordMain/index.ts

@ -57,7 +57,13 @@ export const deleteUnplannedissueRecordMain = async (id: number) => {
// 导出计划外出库记录主 Excel
export const exportUnplannedissueRecordMain = async (params) => {
return await request.download({ url: `/wms/unplannedissue-record-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/unplannedissue-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/unplannedissue-record-main/export-excel`, params })
}
}
// 下载用户导入模板

8
src/api/wms/unplannedreceiptJobMain/index.ts

@ -70,7 +70,13 @@ export const deleteUnplannedreceiptJobMain = async (id: number) => {
// 导出计划外入库任务主 Excel
export const exportUnplannedreceiptJobMain = async (params) => {
return await request.download({ url: `/wms/unplannedreceipt-job-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/unplannedreceipt-job-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/unplannedreceipt-job-main/export-excel`, params })
}
}
// 下载用户导入模板

8
src/api/wms/unplannedreceiptRecordMain/index.ts

@ -56,7 +56,13 @@ export const deleteUnplannedreceiptRecordMain = async (id: number) => {
// 导出计划外入库记录主 Excel
export const exportUnplannedreceiptRecordMain = async (params) => {
return await request.download({ url: `/wms/unplannedreceipt-record-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/unplannedreceipt-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/unplannedreceipt-record-main/export-excel`, params })
}
}
// 下载用户导入模板

Loading…
Cancel
Save