fix:玻纤分批时非完整板段号判断

This commit is contained in:
shijing 2025-10-23 15:56:36 +08:00
parent 4ffb9df5c2
commit 7f21f2209f
1 changed files with 13 additions and 10 deletions

View File

@ -214,20 +214,23 @@ export default {
that.form.handoverb[index].wm_in = "";
if(arrs.length>1){
that.form.handoverb[index].wpr = '';
that.wprOptions.forEach(item=>{
if(arrs.indexOf(item.number) > -1&&!item.disabled){
item.disabled = true;
let obj = {};
obj.number = item.number;
obj.wpr = item.id;
that.form.handoverb[index].handoverbw.push(obj);
that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length;
}
arrs.forEach(arr=>{
that.wprOptions.forEach(item=>{
if(item.number.indexOf(arr) > -1&&!item.disabled){
item.disabled = true;
let obj = {};
obj.number = item.number;
obj.wpr = item.id;
that.form.handoverb[index].handoverbw.push(obj);
that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length;
}
})
})
}else{
//handoverbdisabled
that.wprOptions.forEach(item=>{
if(item.number== number){
if(item.number.indexOf(arr) > -1){
if(item.disabled){
that.$message.error("该物料已被分配");
that.form.handoverb[index].wpr = '';