From 96bfd5023cf7eb8d49a1620bab8cb543b7b09fea Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 13 Nov 2024 19:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7=E7=AD=96=E7=95=A5=E5=8F=91?= =?UTF-8?q?=E6=96=99=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategy/deliverStrategy/AddForm.vue | 17 +++++++++++------ .../strategy/downShelfStrategy/AddForm.vue | 5 +++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue index 2c3204eea..8486e9be3 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue @@ -54,7 +54,7 @@ - + - + ', Value: [] }, // 库存状态 @@ -691,7 +691,7 @@ const changeSupplierCustomer = (e) => { getFormSupplierList() // 选择物料类型/物料分组/abc类/物料/项目 const changeItemsType = () => { - formData.value.condition[1].Value = '' + formData.value.condition[0].Value = '' } // 选择重量/体积/面积 const changeCalculation = () => { @@ -994,7 +994,12 @@ const open = async (type: string, strategyCode: string, id?: number) => { if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { item.Value = item.Value.split(',') } + if (item.ParamCode == 'ItemType'||item.ParamCode == 'AbcClass' ||item.ParamCode == 'ItemGroup' ||item.ParamCode == 'ItemStatus' || item.ParamCode == 'CustomerCode' ) { + console.log(item.Value) + item.Value = item.Value.split(',') + } }) + } if (data.configuration) { formData.value.configuration = JSON.parse(data.configuration) @@ -1115,10 +1120,10 @@ const resetForm = () => { status: true, //状态 //规则条件集合 condition: [ - // 供应商 - { ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, // 物料类型/物料分组/物料/abc类/项目/ { ParamCode: 'ItemType', Operator: 'IN', Value: '' }, + // 供应商 + { ParamCode: 'CustomerCode', Operator: 'IN', Value: '' }, // /重量/体积/面积 { ParamCode: 'Weight', Operator: '>', Value: [] }, // 库存状态 diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index c1d18040e..56731bb9b 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -1174,6 +1174,11 @@ const open = async (type: string, strategyCode: string, id?: number) => { console.log(item.Value) item.Value = item.Value.split(',') } + if (item.ParamCode == 'ItemType'||item.ParamCode == 'AbcClass' ||item.ParamCode == 'ItemGroup' ||item.ParamCode == 'ItemStatus') { + console.log(item.Value) + item.Value = item.Value.split(',') + } + }) } console.log(formData.value.condition)