| | |
| | | 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 { |