fix:玻纤若输出物料检测时没有带的检测表,此时需要根据输出物料查询其绑定的检测表(防止中投产后加入新工序)
This commit is contained in:
parent
35235ba788
commit
acf701bf6a
|
|
@ -580,7 +580,11 @@ export default {
|
|||
if(that.mode == 'outs'&&qct!==''&&qct!==null){//输出
|
||||
that.getdefects();
|
||||
}else{
|
||||
that.getList();
|
||||
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
|
||||
console.log(res)
|
||||
that.testdefectss(res);
|
||||
})
|
||||
// that.getList();
|
||||
}
|
||||
that.visible = true;
|
||||
setTimeout(() => {
|
||||
|
|
@ -677,6 +681,14 @@ export default {
|
|||
if(that.qct!==''){
|
||||
that.$API.qm.qct.item.req(that.qct).then((res) => {
|
||||
that.qct_defects = [];
|
||||
that.testdefectss(res);
|
||||
})
|
||||
}else{
|
||||
that.getList();
|
||||
}
|
||||
},
|
||||
testdefectss(res){
|
||||
let that = this;
|
||||
res.qct_defects.forEach((item) => {
|
||||
that.addTemplate[item.defect_name] = false;
|
||||
let obj = Object.assign({}, item);
|
||||
|
|
@ -707,10 +719,6 @@ export default {
|
|||
})
|
||||
that.qct_testitems_origin = that.qct_testitems;
|
||||
that.getList();
|
||||
})
|
||||
}else{
|
||||
that.getList();
|
||||
}
|
||||
},
|
||||
getOptions(){
|
||||
let that = this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue