fix:玻纤分批时非完整板段号判断
This commit is contained in:
parent
4ffb9df5c2
commit
7f21f2209f
|
|
@ -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{
|
||||||
//放入对应的行中的handoverb中,并且在列表中disabled
|
//放入对应的行中的handoverb中,并且在列表中disabled
|
||||||
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 = '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue