Browse Source

调拨出库导入导出修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
590343ba04
  1. 6
      src/api/wms/transferissueJobMain/index.ts
  2. 6
      src/api/wms/transferissueRecordMain/index.ts
  3. 6
      src/api/wms/transferissueRequestMain/index.ts

6
src/api/wms/transferissueJobMain/index.ts

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

6
src/api/wms/transferissueRecordMain/index.ts

@ -63,7 +63,13 @@ export const deleteTransferissueRecordMain = async (id: number) => {
// 导出调拨出库记录主 Excel
export const exportTransferissueRecordMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/transferissue-record-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferissue-record-main/export-excel`, params })
}
}
// 下载用户导入模板

6
src/api/wms/transferissueRequestMain/index.ts

@ -61,7 +61,13 @@ export const deleteTransferissueRequestMain = async (id: number) => {
// 导出-调拨出库申请主 Excel
export const exportTransferissueRequestMain = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.downloadPost({ url: '/wms/transferissue-request-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/transferissue-request-main/export-excel`, params })
}
}
// 下载用户导入模板

Loading…
Cancel
Save