|
|
@ -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)); |
|
|
|