|
|
@ -87,34 +87,19 @@ export const exportPurchasePlanMain = async (params) => { |
|
|
|
} |
|
|
|
// 导出明细要货计划主 Excel
|
|
|
|
export const exportDetailsPurchasePlanMain = async (params) => { |
|
|
|
|
|
|
|
if (params.isSearch) { |
|
|
|
const data = {...params} |
|
|
|
return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data }) |
|
|
|
} else { |
|
|
|
params = getPageParams(params) |
|
|
|
return await request.download({ url: `/wms/purchase-plan-main/export-excel-detail`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
// 要货预测-列表和头部请求参数
|
|
|
|
const getPageParams = (params)=>{ |
|
|
|
|
|
|
|
console.log('params.status',params.status) |
|
|
|
// 状态
|
|
|
|
if(params.status&¶ms.status.length>0){ |
|
|
|
params.statuss = params.status.join(',') |
|
|
|
} |
|
|
|
params.status = '' |
|
|
|
return params |
|
|
|
} |
|
|
|
// 导出要货计划二维表 Excel
|
|
|
|
export const exportTablePurchasePlanMain = async (params) => { |
|
|
|
params = getPageParams(params) |
|
|
|
// if (params.isSearch) {
|
|
|
|
// const data = {...params}
|
|
|
|
// return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data })
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params }) |
|
|
|
//}
|
|
|
|
} |
|
|
|