diff --git a/src/views/order/intention/search.vue b/src/views/order/intention/search.vue index a538a70..a1078e4 100644 --- a/src/views/order/intention/search.vue +++ b/src/views/order/intention/search.vue @@ -783,6 +783,14 @@ const mergeFieldMetadata = (fields = []) => { // 点击差异字段时添加到输入框 const addDiffFieldToInput = (field) => { + // 检查字段是否已存在 + if (fieldLabelExists(field.label)) { + // 如果字段已存在,定位到该字段位置 + focusFieldLabel(field.label); + return; + } + + // 字段不存在,添加新字段 // 检查输入框末尾是否需要加分号 let separator = ""; if (