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 () => { + +} +