From b1287518898e00cfd083900bb083da159b8266b2 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 17 Sep 2025 09:25:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B8=85=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_detail.vue | 96 ++++++++++++++++---------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 98275249..bc8378d7 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -600,9 +600,9 @@ export default { that.isSubmit = res.submit_time==null?false:true; if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){ that.getMlogbw(); - if(that.mlogItem.qct!==null){ - that.getdefects(that.mlogItem.qct); - } + // if(that.mlogItem.qct!==null){ + // that.getdefects(that.mlogItem.qct); + // } } if(res.route!==null){ that.hasRoute = true; @@ -649,51 +649,51 @@ export default { that.shiftOtions = res; }); }, - getdefects(qct){ - let that = this; - if(qct!==''&&qct!==null){//输出 - that.$API.qm.qct.item.req(qct).then((res) => { - that.qct_defects = []; - that.testdefectss(res); - }) - }else{ - that.$API.qm.qct.getQct.req({ material: that.mlogItem.material_out,type:'out',tag:'process' }).then((res) => { - that.testdefectss(res); - }).catch(()=>{ - // that.getList(); - }) - } - }, - testdefectss(res){ - let that = this; - res.qct_defects.forEach((item) => { - that.addTemplate[item.defect_name] = false; - let obj = Object.assign({}, item); - that.qct_defects.push(obj); - }) - that.qct_defects_origin = that.qct_defects; - that.qct_testitems = []; - res.qct_testitems.forEach((item2) => { - if(item2.testitem_type!=='20'){ - let obj2 = Object.assign({}, item2); - obj2.value = ''; - obj2.addto_wpr = item2.addto_wpr; - if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){ - obj2.value = null; - that.addTemplate[item2.testitem_name] = null; - } - if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){ - let str = obj2.testitem_choices.replace(/'/g, '"'); - let arr = JSON.parse(str); - obj2.testitem_choices = arr; - that.addTemplate[item2.testitem_name] = null; - } - that.qct_testitems.push(obj2); - } - }) - that.qct_testitems_origin = that.qct_testitems; - // that.getList(); - }, + // getdefects(qct){ + // let that = this; + // if(qct!==''&&qct!==null){//输出 + // that.$API.qm.qct.item.req(qct).then((res) => { + // that.qct_defects = []; + // that.testdefectss(res); + // }) + // }else{ + // that.$API.qm.qct.getQct.req({ material: that.mlogItem.material_out,type:'out',tag:'process' }).then((res) => { + // that.testdefectss(res); + // }).catch(()=>{ + // // that.getList(); + // }) + // } + // }, + // testdefectss(res){ + // let that = this; + // res.qct_defects.forEach((item) => { + // that.addTemplate[item.defect_name] = false; + // let obj = Object.assign({}, item); + // that.qct_defects.push(obj); + // }) + // that.qct_defects_origin = that.qct_defects; + // that.qct_testitems = []; + // res.qct_testitems.forEach((item2) => { + // if(item2.testitem_type!=='20'){ + // let obj2 = Object.assign({}, item2); + // obj2.value = ''; + // obj2.addto_wpr = item2.addto_wpr; + // if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){ + // obj2.value = null; + // that.addTemplate[item2.testitem_name] = null; + // } + // if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){ + // let str = obj2.testitem_choices.replace(/'/g, '"'); + // let arr = JSON.parse(str); + // obj2.testitem_choices = arr; + // that.addTemplate[item2.testitem_name] = null; + // } + // that.qct_testitems.push(obj2); + // } + // }) + // that.qct_testitems_origin = that.qct_testitems; + // // that.getList(); + // }, //获取生产工序的mlogbw getMlogbw(){ let that = this;