fix:物料交接时扫批次号问题修正
This commit is contained in:
parent
63f4a02d9a
commit
ac8fe25ea2
|
|
@ -764,7 +764,7 @@ export default {
|
|||
let arr = [];
|
||||
if(that.form.handoverb&&that.form.handoverb.length>0){
|
||||
that.form.handoverb.forEach((item) => {
|
||||
if(item.batch == res.batch&&item.state==res.state&&item.defect==res.defect){
|
||||
if(item.batch == res.batch&&item.state==res.state){
|
||||
arr.push(item);
|
||||
}
|
||||
})
|
||||
|
|
@ -774,9 +774,9 @@ export default {
|
|||
}else{
|
||||
let hasArr = [];
|
||||
that.materialOptions.forEach((item) => {
|
||||
if(item.batch == res.batch){
|
||||
if(item.batch == res.batch&&item.state==res.state&&item.defect==res.defect){
|
||||
if(that.type==50){
|
||||
that.form.new_batch = data[0].batch+'-G';
|
||||
that.form.new_batch = res.batch+'-G';
|
||||
}
|
||||
hasArr.push(item);
|
||||
let params = {material: item.material,type: that.type};
|
||||
|
|
@ -813,7 +813,7 @@ export default {
|
|||
}
|
||||
})
|
||||
if(hasArr.length>0){}else{
|
||||
that.$message.error("该批次不存在")
|
||||
that.$message.error("该批次不存在或没有可交接数量")
|
||||
}
|
||||
}
|
||||
}else{//wpr的number
|
||||
|
|
|
|||
Loading…
Reference in New Issue