From 08d2e6862e9153fed3b45b3e50095eeef4408692 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 3 Jul 2024 15:00:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/demandforecastingDetail/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/wms/demandforecastingDetail/index.ts b/src/api/wms/demandforecastingDetail/index.ts index 827b23ada..f07440a8c 100644 --- a/src/api/wms/demandforecastingDetail/index.ts +++ b/src/api/wms/demandforecastingDetail/index.ts @@ -22,6 +22,14 @@ export const getDemandforecastingDetailPage = async (params) => { const data = {...params} return await request.post({ url: '/wms/demandforecasting-detail/senior', data }) } else { + console.log('params',params) + if(params.dueDate&¶ms.dueDate.length>0){ + params.startDate = params.dueDate[0] + } + if(params.dueDate&¶ms.dueDate.length>1){ + params.endDate = params.dueDate[1] + } + params.dueDate = '' return await request.get({ url: `/wms/demandforecasting-detail/page`, params }) } }