From ace301a637e3dd8027bc26a648720e72dad9f3ba Mon Sep 17 00:00:00 2001 From: JenniferW <1627055433@qq.com> Date: Fri, 12 Dec 2025 10:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/intention/search.vue | 8 ++++++++ 1 file changed, 8 insertions(+) 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 (