| | |
| | | str += c.v.v |
| | | count4 += 1 |
| | | } |
| | | }else if (c.v.ps != undefined && c.v.ps.value === '检验子子项') { |
| | | console.log('检验子子项',c) |
| | | }else if (c.v.ps != undefined && c.v.ps.value === '检验子子项'&&this.PROJECT=='装备电缆') { |
| | | 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+this.currentSample.insProduct[i].inspectionItemClass==null?'':this.currentSample.insProduct[i].inspectionItemClass) === |
| | | .insProduct[i].inspectionItem +(this.currentSample.insProduct[i].inspectionItemSubclass == null ? '' : this.currentSample.insProduct[i].inspectionItemSubclass)+(this.currentSample.insProduct[i].inspectionItemClass==null||this.PROJECT!='装备电缆'?'':this.currentSample.insProduct[i].inspectionItemClass) === |
| | | str) { |
| | | ids.push({ |
| | | r: b.r, |
| | |
| | | |
| | | //装备电缆测试库 |
| | | Vue.prototype.LOCATIONVUE = "http://10.16.173.59"; |
| | | const javaApi = 'http://10.16.173.59:8001'; |
| | | // const javaApi = 'http://10.16.173.59:8001'; |
| | | const javaApi = 'http://192.168.47.2:8001'; |
| | | |
| | | Vue.prototype.HaveJson = (val) => { |
| | | return JSON.parse(JSON.stringify(val)) |
| | |
| | | try { |
| | | if(getInspectionValueType(item.i)==1){ |
| | | let tell = currentSample.insProduct.find(m => m.id == item.i).tell?currentSample.insProduct.find(m => m.id == item.i).tell.split('&'):null; |
| | | isPoint = tell[0].includes('/') // 判断要求值是否为分数 |
| | | isPoint = this.PROJECT=='装备电缆'&&tell&&tell.length>0&&typeof tell[0] =='string'&&tell[0].includes('/') // 判断要求值是否为分数 |
| | | comResult = compute(item.v.f.replace(/=/g, ' '),comValue, isPoint) |
| | | let list3 = list2.map(item=>item+'') |
| | | isToExponential = list3.some(val => val.includes('e+')) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据坐标获取列名 |
| | | * @param {Object} cellId |
| | |
| | | if(str.includes(',,')){ |
| | | str = str.replace(new RegExp(',,', 'g'),'') |
| | | } |
| | | // console.log('str', str) |
| | | if(str.includes('&"/"&')){ |
| | | return str.replace(new RegExp('&"/"&', 'g'),'/').replace(new RegExp('//', 'g'),'') |
| | | return str.replaceAll('&"/"&', '/').replaceAll('//','') |
| | | } else if (isPoint) { |
| | | return str.replace('ABS', '').replace(/\(|\)/g, '') |
| | | }else { |