Browse Source

调拨出库与调拨入库导入导出修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
b9c6f4fc46
  1. 8
      src/api/wms/transferreceiptJobMain/index.ts
  2. 8
      src/api/wms/transferreceiptRecordMain/index.ts
  3. 8
      src/api/wms/transferreceiptRequestMain/index.ts

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

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

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

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

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

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

Loading…
Cancel
Save