fix:混批加料扫码全局搜索,可以添加车间库存任意工段的板段
This commit is contained in:
parent
ae2e7172b6
commit
90713c1dff
|
|
@ -986,31 +986,46 @@ export default {
|
||||||
that.form.handoverb[indexs].handoverbw.push(obj1);
|
that.form.handoverb[indexs].handoverbw.push(obj1);
|
||||||
}
|
}
|
||||||
}else{//handoverb里没有有这个物料批次
|
}else{//handoverb里没有有这个物料批次
|
||||||
that.materialOptions.forEach((item) => {
|
if(that.new_wm==''){
|
||||||
if(item.id == res[0].wm){
|
that.materialOptions.forEach((item) => {
|
||||||
if(that.type==50){
|
if(item.id == res[0].wm){
|
||||||
that.form.new_batch = item.batch+'-G';
|
if(that.type==50){
|
||||||
|
that.form.new_batch = item.batch+'-G';
|
||||||
|
}
|
||||||
|
let params = {material: item.material,type: that.type};
|
||||||
|
that.$API.wpm.handover.mgroups.req(params).then((res1) => {
|
||||||
|
that.mgroupOptions = res1;
|
||||||
|
})
|
||||||
|
let obj2 = {};
|
||||||
|
obj2.wm = item.id;
|
||||||
|
obj2.batch = item.batch;
|
||||||
|
if(item.material_.process_name){
|
||||||
|
obj2.process = item.material_.process_name;
|
||||||
|
}
|
||||||
|
obj2.count_cando = item.count_canhandover;
|
||||||
|
obj2.handoverbw = [];
|
||||||
|
obj2.count = 1;
|
||||||
|
let obj3 = {};
|
||||||
|
obj3.wpr = res[0].id;
|
||||||
|
obj3.number = res[0].number;
|
||||||
|
obj2.handoverbw.push(obj3);
|
||||||
|
that.form.handoverb.push(obj2);
|
||||||
}
|
}
|
||||||
let params = {material: item.material,type: that.type};
|
})
|
||||||
that.$API.wpm.handover.mgroups.req(params).then((res1) => {
|
}else{
|
||||||
that.mgroupOptions = res1;
|
console.log('res[0]',res[0])
|
||||||
})
|
let obj2 = {};
|
||||||
let obj2 = {};
|
obj2.wm = res[0].wm;
|
||||||
obj2.wm = item.id;
|
obj2.batch = res[0].wm_batch;
|
||||||
obj2.batch = item.batch;
|
obj2.process = res[0].process_name;
|
||||||
if(item.material_.process_name){
|
obj2.handoverbw = [];
|
||||||
obj2.process = item.material_.process_name;
|
obj2.count = 1;
|
||||||
}
|
let obj3 = {};
|
||||||
obj2.count_cando = item.count_canhandover;
|
obj3.wpr = res[0].id;
|
||||||
obj2.handoverbw = [];
|
obj3.number = res[0].number;
|
||||||
obj2.count = 1;
|
obj2.handoverbw.push(obj3);
|
||||||
let obj3 = {};
|
that.form.handoverb.push(obj2);
|
||||||
obj3.wpr = res[0].id;
|
}
|
||||||
obj3.number = res[0].number;
|
|
||||||
obj2.handoverbw.push(obj3);
|
|
||||||
that.form.handoverb.push(obj2);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
that.$message.error("该批次不存在")
|
that.$message.error("该批次不存在")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue