From fa65b80b69bedfe06c3ade486e9bdca918eded61 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 12 七月 2024 13:20:47 +0800 Subject: [PATCH] 三级检验项目调试 --- src/components/do/b1-inspect-order-plan/Inspection.vue | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index dd44df3..a51e023 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -1478,16 +1478,26 @@ str += c.v.v count4 += 1 } + }else if (c.v.ps != undefined && c.v.ps.value === '妫�楠屽瓙瀛愰」') { + console.log('妫�楠屽瓙瀛愰」',c) + if (count4 === 2) { + str += c.v.v + count4 += 1 + } } } }) if (str != '') { let count2 = 0 for (let i in this.currentSample.insProduct) { + console.log(this.currentSample + .insProduct[i].inspectionItem,'---',this.currentSample + .insProduct[i].inspectionItemSubclass,'---',this.currentSample.insProduct[i].inspectionItemClass,'===',str,this.currentSample + .insProduct[i]) if (this.currentSample.insProduct[i].templateId === a.templateId && this.currentSample .insProduct[i].inspectionItem + (this.currentSample.insProduct[i].inspectionItemSubclass == null ? '' : this.currentSample - .insProduct[i].inspectionItemSubclass) === + .insProduct[i].inspectionItemSubclass+this.currentSample.insProduct[i].inspectionItemClass==null?'':this.currentSample.insProduct[i].inspectionItemClass) === str) { ids.push({ r: b.r, @@ -1824,8 +1834,7 @@ } }, getValue(v){ - let str = v.v?v.v:(v.ct&&v.ct.s?v.ct.s.length>0&&v.ct.s[0].v.replace(new RegExp('\n', 'g'), '<br/>'):'') - // str.replace(new RegExp(search, 'g'), replace) + let str = v.v?v.v:(v.ct&&v.ct.s?v.ct.s.length>0&&v.ct.s[0].v.replace(new RegExp('\n', 'g'), '<br/>').replace(new RegExp('@', 'g'), '<br/>'):'') return str }, getInspectionValueType(id) { -- Gitblit v1.9.3