Browse Source

head请求

master_hella_20240701
wangyufei 4 months ago
parent
commit
76967eb5f9
  1. 32
      src/api/wms/demandforecastingDetail/index.ts

32
src/api/wms/demandforecastingDetail/index.ts

@ -92,6 +92,8 @@ export const exportDemandforecastingDetail = async (params) => {
// 查询要货预测主列表
export const getPageTableHead = async (params) => {
console.log('params',params)
// 到货日期
if(params.dueDate&&params.dueDate.length>0){
params.startDate = params.dueDate[0]
}
@ -99,6 +101,36 @@ export const getPageTableHead = async (params) => {
params.endDate = params.dueDate[1]
}
params.dueDate = ''
//计划员
if(params.planerId&&params.planerId.length>0){
params.planers = params.planerId.join(',')
}
params.planerId = ''
// 供应商代码
if(params.supplierCode&&params.supplierCode.length>0){
let keyValue = params.supplierCode.split(' ')
keyValue.forEach(item=>{item = item.trim()})
params.supplierCodes = keyValue.join(',')
}
params.supplierCode = ''
// 物料代码
if(params.itemCode&&params.itemCode.length>0){
let keyValue = params.itemCode.split(' ')
keyValue.forEach(item=>{item = item.trim()})
params.itemCodes = keyValue.join(',')
}
params.itemCode = ''
// 版本号
if(params.version&&params.version.length>0){
let keyValue = params.version.split(' ')
keyValue.forEach(item=>{item = item.trim()})
params.detailVersion = keyValue.join(',')
}
params.version = ''
return await request.get({ url: `/wms/demandforecasting-detail/queryPageTableHead`, params })
}

Loading…
Cancel
Save