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