From 1cfb7bf3b8fed8869c3a63edbf366b8803e10bd1 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 10 Jul 2024 16:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasePlanDetail/index.ts | 11 ++++++++++ .../purchasePlanMain/index.vue | 21 ++++++++++++++++--- .../purchasePlanMain/purchasePlanMain.data.ts | 6 ++++++ 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/api/wms/purchasePlanDetail/index.ts b/src/api/wms/purchasePlanDetail/index.ts index 3da2f8973..a436ab74a 100644 --- a/src/api/wms/purchasePlanDetail/index.ts +++ b/src/api/wms/purchasePlanDetail/index.ts @@ -15,7 +15,17 @@ export interface PurchasePlanDetailVO { updater: string available: string } +// 要货预测-列表和头部请求参数 +const getPageParams = (params)=>{ + console.log('params.status',params.status) + // 状态 + if(params.status&¶ms.status.length>0){ + params.statuss = params.status.join(',') + } + params.status = '' + return params +} // 查询要货计划子列表 export const getPurchasePlanDetailPage = async (params) => { if (params.isSearch) { @@ -23,6 +33,7 @@ export const getPurchasePlanDetailPage = async (params) => { const data = {...params} return await request.post({ url: '/wms/purchase-plan-detail/senior', data }) } else { + params = getPageParams(params) return await request.get({ url: `/wms/purchase-plan-detail/page`, params }) } } diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 27a6ed966..96da73c97 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -1,7 +1,7 @@