fix:禅道307

This commit is contained in:
shijing 2026-01-14 15:43:46 +08:00
parent 2072004c00
commit 1c927d1ba8
1 changed files with 30 additions and 17 deletions

View File

@ -829,8 +829,8 @@ export default {
});
}
}
if(that.mTracking==20&&that.form.count>1&&(that.form.type == 'pur_in'||that.form.type == 'other_in')){
let mioitemw = [];
if(that.mTracking==20&&that.form.count>1&&(that.form.type == 'pur_in'||that.form.type == 'other_in')){
that.mioitems.forEach((item,index) => {
mioitemw[index]={ number: item };
})
@ -841,7 +841,6 @@ export default {
return;
}
}else if(that.form.type == 'sale_out'&&that.project_code=='bxerp'){
let mioitemw = [];
that.mioitems.forEach((item,index) => {
mioitemw[index]={
number: that.wprList[index]? that.wprList[index].number:'' ,
@ -851,6 +850,19 @@ export default {
})
that.form.mioitemw = mioitemw.filter(item=>item.wpr!==null);
}
let obj = {},duplicates = [];
for (let item of that.mioitems) {
if (obj[item]) {
if (!duplicates.includes(item)) {
duplicates.push(item);
}
} else {
obj[item] = true;
}
}
if (duplicates.length > 0) {
that.$message.error("重复的项有: " + duplicates.join(", "));
} else {
try {
let res;
if (that.mode == "add") {
@ -869,6 +881,7 @@ export default {
return err;
}
}
}
});
},
//