Browse Source

恢复

hella_online_20240829
wangyufei 5 months ago
parent
commit
c038f1f132
  1. 15
      src/api/wms/purchasePlanMain/index.ts

15
src/api/wms/purchasePlanMain/index.ts

@ -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&&params.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 })
//}
}

Loading…
Cancel
Save