fix:喷码分批时录入板段号不是该批次的显示并提示
This commit is contained in:
parent
733ef4c15e
commit
49173d0028
|
|
@ -59,6 +59,9 @@
|
||||||
<span>{{ item2.number }}</span>
|
<span>{{ item2.number }}</span>
|
||||||
<el-icon class="circleCloseFilled" @click="deleteWpr($index,index2,item2.wpr)"><el-icon-circleClose-filled /></el-icon>
|
<el-icon class="circleCloseFilled" @click="deleteWpr($index,index2,item2.wpr)"><el-icon-circleClose-filled /></el-icon>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-for="item3 in diff" :key="item3" class="wprItem disabledItem">
|
||||||
|
<span>{{ item3 }}</span>
|
||||||
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
|
|
@ -229,8 +232,11 @@ export default {
|
||||||
})
|
})
|
||||||
//如果arrs里有不是这个批次的wpr,提示错误
|
//如果arrs里有不是这个批次的wpr,提示错误
|
||||||
let diff = arrs.filter(item => !barchArrs.includes(item));
|
let diff = arrs.filter(item => !barchArrs.includes(item));
|
||||||
|
that.diff = diff;
|
||||||
|
console.log('diff',diff)
|
||||||
if(diff.length>0){
|
if(diff.length>0){
|
||||||
that.$confirm("物料"+diff.join(",")+"不在该批次中", "提示", {type: "warning",}).then(() => {});
|
that.$message.warning("物料"+diff.join(",")+"不在该批次中");
|
||||||
|
// that.$confirm("物料"+diff.join(",")+"不在该批次中", "提示", {type: "warning",}).then(() => {});
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//放入对应的行中的handoverb中,并且在列表中disabled
|
//放入对应的行中的handoverb中,并且在列表中disabled
|
||||||
|
|
@ -251,7 +257,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$refs.codeInput.focus();
|
console.log('this.$refs.codeInput',this.$refs.codeInput)
|
||||||
|
this.$refs.codeInput[index].focus();
|
||||||
},
|
},
|
||||||
deleteWpr(index1,index2,wpr){
|
deleteWpr(index1,index2,wpr){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
@ -356,6 +363,10 @@ export default {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
.disabledItem{
|
||||||
|
color: #fff;
|
||||||
|
background: #f56c6c;
|
||||||
|
}
|
||||||
.circleCloseFilled{
|
.circleCloseFilled{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -7px;
|
top: -7px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue