| | |
| | | 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, |
| | |
| | | Vue.prototype.$Big = Big; |
| | | |
| | | // 项目切换 |
| | | Vue.prototype.PROJECT = '检测中心' |
| | | // Vue.prototype.PROJECT = '装备电缆' |
| | | // Vue.prototype.PROJECT = '检测中心' |
| | | Vue.prototype.PROJECT = '装备电缆' |
| | | //本地 |
| | | Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80"; |
| | | // const javaApi = 'http://127.0.0.1:8001'; |
| | | const javaApi = 'http://192.168.47.249:8001'; |
| | | // const javaApi = 'http://192.168.47.249:8001'; |
| | | |
| | | //云 |
| | | // Vue.prototype.LOCATIONVUE = "http://114.132.189.42:8080"; |
| | | // const javaApi = 'http://114.132.189.42:1234'; |
| | | |
| | | //检测中心正式库 |
| | | // //检测中心正式库 |
| | | // Vue.prototype.LOCATIONVUE = "http://10.1.200.86:8080"; |
| | | // const javaApi = 'http://10.1.200.86:8001'; |
| | | |
| | | //装备电缆测试库 |
| | | // Vue.prototype.LOCATIONVUE = "http://10.16.173.59"; |
| | | // const javaApi = 'http://10.16.173.59:8001'; |
| | | Vue.prototype.LOCATIONVUE = "http://10.16.173.59"; |
| | | const javaApi = 'http://10.16.173.59:8001'; |
| | | |
| | | Vue.prototype.HaveJson = (val) => { |
| | | return JSON.parse(JSON.stringify(val)) |
| | |
| | | let min = null; |
| | | if(val&&val.length>0){ |
| | | val = val.filter(item=>item!=null&&item!=='') |
| | | console.log(val) |
| | | // console.log(val) |
| | | if(val.length>0){ |
| | | min = Math.min(...val) |
| | | } |
| | |
| | | fouList.forEach(item=>{ |
| | | f = f.replace(new RegExp(item, 'g'),'') |
| | | }) |
| | | console.log('f',f) |
| | | // console.log('f',f) |
| | | let arr = f.split(',').filter(item=>{ |
| | | return item&& /[a-zA-Z]/.test(item)&&item!='undefined'&&item!='null' |
| | | }); |
| | |
| | | // console.log(ask,res,item.v.f) |
| | | if(ask){ |
| | | comp = ask.map((m, i) => { |
| | | console.log('m----', m) |
| | | // console.log('m----', m) |
| | | if (m.includes('RTS')) { |
| | | m = m.replace('RTS*', '') |
| | | } |
| | |
| | | } else if (m.includes('≥')) { |
| | | if(typeof res =='string'&&res.includes('/')){ |
| | | if (m.includes('/')) { |
| | | console.log('eval(res)----', eval(res)) |
| | | // console.log('eval(res)----', eval(res)) |
| | | let str = handleFraction(m.split('≥')[1]) |
| | | console.log('eval(str)----', eval(str)) |
| | | // console.log('eval(str)----', eval(str)) |
| | | return eval(res) >= eval(str) |
| | | } else { |
| | | return handleMoreParam(res,m.split('≥')[1],'≥') |
| | |
| | | if (a[0].r == item.r && comResult !== '') { |
| | | for (var b in a) { |
| | | if (a[b].c == item.c) { |
| | | console.log('comResult---', comResult) |
| | | // console.log('comResult---', comResult) |
| | | try{ |
| | | let val = parseFloat(comResult.toFixed(3)) |
| | | a[b].v.v = isNaN(val) ? '' : val |