feat:分批时,复制板段号进去的时候,将不在本批次的号提示出来

This commit is contained in:
shijing 2025-11-19 09:07:50 +08:00
parent 98e610113c
commit 10d6519568
1 changed files with 7 additions and 2 deletions

View File

@ -209,8 +209,8 @@ export default {
},
formWminChange(index,number){
let that = this;
// console.log('number',number.split(" "));
let arrs = number.split(" ");
let barchArrs = [];
that.form.handoverb[index].wm_in = "";
if(arrs.length>1){
that.form.handoverb[index].wpr = '';
@ -221,12 +221,17 @@ export default {
let obj = {};
obj.number = item.number;
obj.wpr = item.id;
barchArrs.push(arr);
that.form.handoverb[index].handoverbw.push(obj);
that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length;
}
})
})
//arrswpr,
let diff = arrs.filter(item => !barchArrs.includes(item));
if(diff.length>0){
that.$confirm("物料"+diff.join(",")+"不在该批次中", "提示", {type: "warning",}).then(() => {});
}
}else{
//handoverbdisabled
that.wprOptions.forEach(item=>{