fix:玻纤分批时非完整板段号判断
This commit is contained in:
parent
4ffb9df5c2
commit
7f21f2209f
|
|
@ -214,8 +214,9 @@ export default {
|
|||
that.form.handoverb[index].wm_in = "";
|
||||
if(arrs.length>1){
|
||||
that.form.handoverb[index].wpr = '';
|
||||
arrs.forEach(arr=>{
|
||||
that.wprOptions.forEach(item=>{
|
||||
if(arrs.indexOf(item.number) > -1&&!item.disabled){
|
||||
if(item.number.indexOf(arr) > -1&&!item.disabled){
|
||||
item.disabled = true;
|
||||
let obj = {};
|
||||
obj.number = item.number;
|
||||
|
|
@ -224,10 +225,12 @@ export default {
|
|||
that.form.handoverb[index].count = that.form.handoverb[index].handoverbw.length;
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
}else{
|
||||
//放入对应的行中的handoverb中,并且在列表中disabled
|
||||
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 = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue