From 035219524588534a1bfe637967be8cbbbefb193a Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 1 Aug 2025 13:48:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E8=BE=93=E5=87=BAbug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check.vue | 46 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index efde9617..3e8f1442 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -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;