From ea882f57aa54e8dada25d4a5c700294781df76d7 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 3 Sep 2024 14:33:46 +0800 Subject: [PATCH] =?UTF-8?q?HL-5815=E9=80=89=E5=AE=9A=E9=9B=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C1.=E6=98=8E=E7=BB=86=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/selectedSet/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/qms/selectedSet/index.vue b/src/views/qms/selectedSet/index.vue index e6d6c27e2..08d1a9d4e 100644 --- a/src/views/qms/selectedSet/index.vue +++ b/src/views/qms/selectedSet/index.vue @@ -418,7 +418,16 @@ const validateNotRepetition = (data) => { const detailValidate = (formType, data) => { let tag = true - existValue.value.forEach((item) => { + const array = ref([]) + if (data.id) { + array.value = existValue.value.filter((item) => { + return data?.id != item.id + }) + } else { + array.value =existValue.value + } + console.log(44,array.value) + array.value.forEach((item) => { if (data.dictionaryValue == item.dictionaryValue) { message.warning('选定集字典项不能重复!') tag = false