|
|
@ -51,9 +51,15 @@ export const deleteDeliverPlanMain = async (id: number) => { |
|
|
|
export const exportDeliverPlanMain = async (params) => { |
|
|
|
params.businessType = 'Deliver' |
|
|
|
if (params.isSearch) { |
|
|
|
// const cmd = {
|
|
|
|
// 'column':'businessType',
|
|
|
|
// 'action':'==',
|
|
|
|
// 'value':'Deliver'
|
|
|
|
// }
|
|
|
|
// params.filters.push(cmd)
|
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) |
|
|
|
} |
|
|
@ -63,9 +69,15 @@ export const exportDeliverPlanMain = async (params) => { |
|
|
|
export const exportZZBJDeliverPlanMain = async (params) => { |
|
|
|
params.businessType = 'ZZBJDeliver' |
|
|
|
if (params.isSearch) { |
|
|
|
// const cmd = {
|
|
|
|
// 'column':'businessType',
|
|
|
|
// 'action':'==',
|
|
|
|
// 'value':'ZZBJDeliver'
|
|
|
|
// }
|
|
|
|
// params.filters.push(cmd)
|
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/wms/deliver-plan-main/export-excel-senior', data }) |
|
|
|
return await request.downloadPost({ url: '/wms/deliver-plan-main/export-excel-senior', data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) |
|
|
|
} |
|
|
|