fix:玻纤输入物料扫码优化(批次也用batch情况)
This commit is contained in:
parent
94a15d41ed
commit
f0b31ffadf
|
|
@ -231,6 +231,20 @@ export default {
|
|||
that.$message.error("批次号不存在");
|
||||
});
|
||||
}else{
|
||||
if(that.tracking==10){//批次
|
||||
arr = that.materialOptions.filter((item) => {
|
||||
return item.batch == code;
|
||||
})
|
||||
if (arr.length > 0) {
|
||||
that.form.batch = arr[0].batch;
|
||||
that.form.wm_in = arr[0].id;
|
||||
that.form.count_use = arr[0].count;
|
||||
that.wm_in = arr[0].batch;
|
||||
}else{
|
||||
that.wm_in = '';
|
||||
that.$message.error("批次号不存在");
|
||||
}
|
||||
}else{//单件
|
||||
that.$API.wpm.wpr.list.req({number:code,page:0}).then((res) => {
|
||||
if(res.length>0){
|
||||
let bwitem = {};
|
||||
|
|
@ -267,6 +281,8 @@ export default {
|
|||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
//表单提交方法
|
||||
submit() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue