Browse Source

HL-5815选定集管理,1.明细编辑保存,提示不能重复,

hella_online_20240904
zhang_li 3 months ago
parent
commit
ea882f57aa
  1. 11
      src/views/qms/selectedSet/index.vue

11
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

Loading…
Cancel
Save