Browse Source

修改bug

master_hella_20240701
zhaoyiran 7 months ago
parent
commit
566a56ca54
  1. 5
      src/views/qms/basicDataManage/dynamicRule/index.vue

5
src/views/qms/basicDataManage/dynamicRule/index.vue

@ -341,7 +341,10 @@ const detailOpenForm = (type, row, masterParmas) => {
const validateIfRepeat = (type,data) => {
let mergedArray: any[] = [];
if(type == 'create' || type == 'update'){
if(type == 'create'){
mergedArray = [data, ...detailList.value];
}if(type == 'update'){
detailList.value = detailList.value.filter(item => item.id !== data.id);
mergedArray = [data, ...detailList.value];
}
const stageSet = new Set(mergedArray.map(item => item.stage));

Loading…
Cancel
Save