From 0443ee42e931d518c53d85ffd8f3a10d454b8354 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 1 Sep 2025 10:40:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=93=E5=87=BA=E7=89=A9=E6=96=99?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=B8=BA=E7=A9=BA=E7=99=BD=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E7=A4=BA=E6=8A=A5=E9=94=99=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlogb_check.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/views/wpm_gx/mlogb_check.vue b/src/views/wpm_gx/mlogb_check.vue index ab885b18..155ce09a 100644 --- a/src/views/wpm_gx/mlogb_check.vue +++ b/src/views/wpm_gx/mlogb_check.vue @@ -568,19 +568,18 @@ export default { obj_form.count_notok = that.count_json_wx.count_n_not; sum = obj_form.count_ok + obj_form.count_notok; } - // if(that.count_json_wx.count_ok_s!==null){ - - // } }else{ that.qct_defects.forEach(item => { - if(item.defect_okcate==30){ - that.form.count_notok += that.defectform[item.defect_name] ; + if(that.defectform[item.defect_name]!==null){ + if(item.defect_okcate==30){ + that.form.count_notok += that.defectform[item.defect_name] ; + } + let obj = {}; + obj.defect = item.defect; + obj.count = that.defectform[item.defect_name]; + obj.mlogb = that.mlogbItem.id; + this.form.mlogbdefect.push(obj); } - let obj = {}; - obj.defect = item.defect; - obj.count = that.defectform[item.defect_name]; - obj.mlogb = that.mlogbItem.id; - this.form.mlogbdefect.push(obj); }) that.form.count_ok = that.form.count_real -that.form.count_notok; sum = that.form.count_ok + that.form.count_notok;