From c0698771b1fe7d617fce1c11cd48c143bbbbb5a9 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 24 Jul 2024 16:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=A8=A1=E6=9D=BF=E5=A4=B1?= =?UTF-8?q?=E5=8E=BB=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionTemplate/addForm.vue | 77 ++++++++++++++++++-- 1 file changed, 70 insertions(+), 7 deletions(-) diff --git a/src/views/qms/inspectionTemplate/addForm.vue b/src/views/qms/inspectionTemplate/addForm.vue index dacf37523..488227a0d 100644 --- a/src/views/qms/inspectionTemplate/addForm.vue +++ b/src/views/qms/inspectionTemplate/addForm.vue @@ -27,14 +27,14 @@
+ + +
+ +
+
+
+ + +
+ +
+
+
{ data.value.process.push(newItem) editableTabsValue.value = newItem.name } +// 动态修改规则失去焦点 +const dynamicUpdateCodeBlur = async () => { + const _searchCondition = {} + const filters: any[] = [] + filters.push( + { + action: '==', + column: 'available', + value: 'TRUE' + }, + { + column: 'code', + action: '==', + value: data.value?.dynamicUpdateCode?.trim() + } + ) + // 参数整理 + _searchCondition.isSearch = true + _searchCondition.filters = filters + const array = await DynamicRuleApi.getDynamicRulePage(_searchCondition) + const obj = array.list[0] + if (obj) { + data.value.dynamicUpdateName = obj.description + } else { + message.alert('暂无数据') + data.value.dynamicUpdateCode ='' + data.value.dynamicUpdateName ='' + } +} +// 检验方法失去焦点 +const inspectionMethodCodeBlur = async () => { + +} +