From f9d8984db0a8e0d5ddf3d88a0ea33ad8978c101b Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 22 Nov 2024 10:39:14 +0800 Subject: [PATCH] =?UTF-8?q?YT-1197=E5=8F=91=E8=B4=A7=E7=AD=96=E7=95=A5?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=8D=E5=BA=94=EF=BC=8C=E4=BF=9D=E5=AD=98=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategy/deliverStrategy/AddForm.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue index 1bd789e82..4b78e4c9d 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue @@ -754,15 +754,18 @@ const filterMethodWarehouseList = (query: string) => { const searchTableRef = ref() - +const moduleValue = ref() +const typeValue = ref() const blurWarehouse = async ({ module = 'config', type }) => { console.log(22,warehouseType.value) - console.log(22,module) - + console.log(22, module) + moduleValue.value = module + typeValue.value = warehouseType.value // 校验的值 let warehouseValue = formData.value.configuration[warehouseType.value] let conditionObj = null if(module=='condition'){ + typeValue.value = type // 规则条件 conditionObj = formData.value.condition.find(item=>item['ParamCode']==type) if(conditionObj){ @@ -1124,7 +1127,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = async () => { - await blurWarehouse() + await blurWarehouse({module:moduleValue.value,type:typeValue.value}) await blurTransactionType() console.log('规则条件',formData.value.condition)