Browse Source

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

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

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

@ -76,8 +76,14 @@ export const deleteTransferreceiptJobMain = async (id: number) => {
// 导出调拨入库任务主 Excel
export const exportTransferreceiptJobMain = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -64,8 +64,14 @@ export const deleteTransferreceiptRecordMain = async (id: number) => {
// 导出调拨入库记录主 Excel
export const exportTransferreceiptRecordMain = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -61,8 +61,14 @@ export const deleteTransferreceiptRequestMain = async (id: number) => {
// 导出调拨入库申请主 Excel
export const exportTransferreceiptRequestMain = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

Loading…
Cancel
Save