fix:玻纤日志输入输出bug修正

This commit is contained in:
shijing 2025-08-01 13:48:07 +08:00
parent 921bf52761
commit 0352195245
1 changed files with 22 additions and 24 deletions

View File

@ -568,23 +568,24 @@ export default {
open(mode = "",qct = '') {
let that = this;
this.mode = mode;
if(that.route_code=='niuzhuan'&&that.mode == 'ins'){
that.gettestitem();
}
if(that.mode == 'ins'&&that.route_code!=='niuzhuan'){//
that.getOptions();
that.qct = ""
}else{
if(that.mode == 'ins'){
if(that.route_code=='niuzhuan'){
that.gettestitem();
}else{
that.getOptions();
that.getList();
that.qct = ""
}
}else if(that.mode == 'outs'){//
that.qct = qct;
}
if(that.mode == 'outs'&&qct!==''&&qct!==null){//
that.getdefects();
}else{
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
console.log(res)
that.testdefectss(res);
})
// that.getList();
if(qct!==''&&qct!==null){//
that.getdefects();
}else{
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
console.log(res)
that.testdefectss(res);
})
}
}
that.visible = true;
setTimeout(() => {
@ -614,6 +615,7 @@ export default {
that.testitems.push(obj)
}
})
that.getList();
});
},
getNewNumber(){
@ -678,14 +680,10 @@ export default {
},
getdefects(){
let that = this;
if(that.qct!==''){
that.$API.qm.qct.item.req(that.qct).then((res) => {
that.qct_defects = [];
that.testdefectss(res);
})
}else{
that.getList();
}
that.$API.qm.qct.item.req(that.qct).then((res) => {
that.qct_defects = [];
that.testdefectss(res);
})
},
testdefectss(res){
let that = this;