fix:喷码分批时录入板段号不是该批次的显示并提示

This commit is contained in:
shijing 2025-12-18 15:27:50 +08:00
parent 733ef4c15e
commit 49173d0028
1 changed files with 13 additions and 2 deletions

View File

@ -59,6 +59,9 @@
<span>{{ item2.number }}</span>
<el-icon class="circleCloseFilled" @click="deleteWpr($index,index2,item2.wpr)"><el-icon-circleClose-filled /></el-icon>
</div>
<div v-for="item3 in diff" :key="item3" class="wprItem disabledItem">
<span>{{ item3 }}</span>
</div>
</el-col>
</el-row>
<el-row>
@ -229,8 +232,11 @@ export default {
})
//arrswpr,
let diff = arrs.filter(item => !barchArrs.includes(item));
that.diff = diff;
console.log('diff',diff)
if(diff.length>0){
that.$confirm("物料"+diff.join(",")+"不在该批次中", "提示", {type: "warning",}).then(() => {});
that.$message.warning("物料"+diff.join(",")+"不在该批次中");
// that.$confirm(""+diff.join(",")+"", "", {type: "warning",}).then(() => {});
}
}else{
//handoverbdisabled
@ -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){
let that = this;
@ -356,6 +363,10 @@ export default {
margin-right: 20px;
margin-top: 5px;
}
.disabledItem{
color: #fff;
background: #f56c6c;
}
.circleCloseFilled{
position: absolute;
top: -7px;