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,8 +214,9 @@ export default {
that.form.handoverb[index].wm_in = ""; that.form.handoverb[index].wm_in = "";
if(arrs.length>1){ if(arrs.length>1){
that.form.handoverb[index].wpr = ''; that.form.handoverb[index].wpr = '';
arrs.forEach(arr=>{
that.wprOptions.forEach(item=>{ that.wprOptions.forEach(item=>{
if(arrs.indexOf(item.number) > -1&&!item.disabled){ if(item.number.indexOf(arr) > -1&&!item.disabled){
item.disabled = true; item.disabled = true;
let obj = {}; let obj = {};
obj.number = item.number; obj.number = item.number;
@ -224,10 +225,12 @@ export default {
that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length; that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length;
} }
}) })
})
}else{ }else{
//handoverbdisabled //handoverbdisabled
that.wprOptions.forEach(item=>{ that.wprOptions.forEach(item=>{
if(item.number== number){ if(item.number.indexOf(arr) > -1){
if(item.disabled){ if(item.disabled){
that.$message.error("该物料已被分配"); that.$message.error("该物料已被分配");
that.form.handoverb[index].wpr = ''; that.form.handoverb[index].wpr = '';