|
@ -87,34 +87,19 @@ export const exportPurchasePlanMain = async (params) => { |
|
|
} |
|
|
} |
|
|
// 导出明细要货计划主 Excel
|
|
|
// 导出明细要货计划主 Excel
|
|
|
export const exportDetailsPurchasePlanMain = async (params) => { |
|
|
export const exportDetailsPurchasePlanMain = async (params) => { |
|
|
|
|
|
|
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data }) |
|
|
return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data }) |
|
|
} else { |
|
|
} else { |
|
|
params = getPageParams(params) |
|
|
|
|
|
return await request.download({ url: `/wms/purchase-plan-main/export-excel-detail`, 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
|
|
|
// 导出要货计划二维表 Excel
|
|
|
export const exportTablePurchasePlanMain = async (params) => { |
|
|
export const exportTablePurchasePlanMain = async (params) => { |
|
|
params = getPageParams(params) |
|
|
|
|
|
// if (params.isSearch) {
|
|
|
// if (params.isSearch) {
|
|
|
// const data = {...params}
|
|
|
// const data = {...params}
|
|
|
// return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data })
|
|
|
// return await request.downloadPost({ url: `/wms/purchase-plan-main/export-excel-senior`, data })
|
|
|
// } else {
|
|
|
// } else {
|
|
|
|
|
|
|
|
|
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params }) |
|
|
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params }) |
|
|
//}
|
|
|
//}
|
|
|
} |
|
|
} |
|
|