fix:玻纤日志输入输出bug修正
This commit is contained in:
parent
921bf52761
commit
0352195245
|
@ -568,23 +568,24 @@ export default {
|
||||||
open(mode = "",qct = '') {
|
open(mode = "",qct = '') {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
if(that.route_code=='niuzhuan'&&that.mode == 'ins'){
|
if(that.mode == 'ins'){
|
||||||
that.gettestitem();
|
if(that.route_code=='niuzhuan'){
|
||||||
}
|
that.gettestitem();
|
||||||
if(that.mode == 'ins'&&that.route_code!=='niuzhuan'){//输入
|
}else{
|
||||||
that.getOptions();
|
that.getOptions();
|
||||||
that.qct = ""
|
that.getList();
|
||||||
}else{
|
that.qct = ""
|
||||||
|
}
|
||||||
|
}else if(that.mode == 'outs'){//输出
|
||||||
that.qct = qct;
|
that.qct = qct;
|
||||||
}
|
if(qct!==''&&qct!==null){//输出
|
||||||
if(that.mode == 'outs'&&qct!==''&&qct!==null){//输出
|
that.getdefects();
|
||||||
that.getdefects();
|
}else{
|
||||||
}else{
|
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
|
||||||
that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => {
|
console.log(res)
|
||||||
console.log(res)
|
that.testdefectss(res);
|
||||||
that.testdefectss(res);
|
})
|
||||||
})
|
}
|
||||||
// that.getList();
|
|
||||||
}
|
}
|
||||||
that.visible = true;
|
that.visible = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -614,6 +615,7 @@ export default {
|
||||||
that.testitems.push(obj)
|
that.testitems.push(obj)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
that.getList();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getNewNumber(){
|
getNewNumber(){
|
||||||
|
@ -678,14 +680,10 @@ export default {
|
||||||
},
|
},
|
||||||
getdefects(){
|
getdefects(){
|
||||||
let that = this;
|
let that = this;
|
||||||
if(that.qct!==''){
|
that.$API.qm.qct.item.req(that.qct).then((res) => {
|
||||||
that.$API.qm.qct.item.req(that.qct).then((res) => {
|
that.qct_defects = [];
|
||||||
that.qct_defects = [];
|
that.testdefectss(res);
|
||||||
that.testdefectss(res);
|
})
|
||||||
})
|
|
||||||
}else{
|
|
||||||
that.getList();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
testdefectss(res){
|
testdefectss(res){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
Loading…
Reference in New Issue