Browse Source

日期

master_hella_20240701
wangyufei 5 months ago
parent
commit
08d2e6862e
  1. 8
      src/api/wms/demandforecastingDetail/index.ts

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

@ -22,6 +22,14 @@ export const getDemandforecastingDetailPage = async (params) => {
const data = {...params} const data = {...params}
return await request.post({ url: '/wms/demandforecasting-detail/senior', data }) return await request.post({ url: '/wms/demandforecasting-detail/senior', data })
} else { } else {
console.log('params',params)
if(params.dueDate&&params.dueDate.length>0){
params.startDate = params.dueDate[0]
}
if(params.dueDate&&params.dueDate.length>1){
params.endDate = params.dueDate[1]
}
params.dueDate = ''
return await request.get({ url: `/wms/demandforecasting-detail/page`, params }) return await request.get({ url: `/wms/demandforecasting-detail/page`, params })
} }
} }

Loading…
Cancel
Save