From 76967eb5f9f415e690a67da0325a3cbbab7ad72b Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 4 Jul 2024 15:28:41 +0800 Subject: [PATCH] =?UTF-8?q?head=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/demandforecastingDetail/index.ts | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/api/wms/demandforecastingDetail/index.ts b/src/api/wms/demandforecastingDetail/index.ts index 25b01662a..2f8543f2c 100644 --- a/src/api/wms/demandforecastingDetail/index.ts +++ b/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&¶ms.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&¶ms.planerId.length>0){ + params.planers = params.planerId.join(',') + } + params.planerId = '' + // 供应商代码 + if(params.supplierCode&¶ms.supplierCode.length>0){ + let keyValue = params.supplierCode.split(' ') + keyValue.forEach(item=>{item = item.trim()}) + params.supplierCodes = keyValue.join(',') + } + params.supplierCode = '' + + // 物料代码 + if(params.itemCode&¶ms.itemCode.length>0){ + let keyValue = params.itemCode.split(' ') + keyValue.forEach(item=>{item = item.trim()}) + params.itemCodes = keyValue.join(',') + } + params.itemCode = '' + + // 版本号 + if(params.version&¶ms.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 }) }