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)