|
@ -78,7 +78,7 @@ export const exportInventorymoveJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -90,7 +90,7 @@ export const exportOkToHoldJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -102,7 +102,7 @@ export const exportHoldToOkJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -114,7 +114,7 @@ export const exportHoldToScrapJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -126,7 +126,7 @@ export const exportOkToScrapJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -138,7 +138,7 @@ export const exportScrapToHoldJobMain = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
return await request.downloadPost({ url: '/wms/inventorymove-job-main/export-excel-senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/inventorymove-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
@ -166,4 +166,4 @@ export const closeInventorymoveMain = async (id) => { |
|
|
// 执行库存转移任务
|
|
|
// 执行库存转移任务
|
|
|
export const executeInventorymoveMain = async (data) => { |
|
|
export const executeInventorymoveMain = async (data) => { |
|
|
return await request.put({ url: `/wms/inventorymove-job-main/execute`, data}) |
|
|
return await request.put({ url: `/wms/inventorymove-job-main/execute`, data}) |
|
|
} |
|
|
} |
|
|