| | |
| | | let list2 = [] |
| | | |
| | | excelMethodList.forEach(item => { |
| | | if (item.valueList.find(m => m.r == r && m.c == c)) { |
| | | if (item.valueList&&item.valueList.length>0&&item.valueList.find(m => m.r == r && m.c == c)) { |
| | | var comValue = {} |
| | | item.valueList.forEach(a => { |
| | | list.forEach(b => { |
| | |
| | | // let ask = currentSample.insProduct.find(m => m.id == item.i).ask?currentSample.insProduct.find(m => m.id == item.i).ask.split('&'):null; |
| | | // let tell = currentSample.insProduct.find(m => m.id == item.i).tell?currentSample.insProduct.find(m => m.id == item.i).tell.split('&'):null; |
| | | comResult = compute(item.v.f.replace(/=/g, ' '),comValue) |
| | | let list3 = [] |
| | | list2.forEach(val => { |
| | | val = val.toString() |
| | | list3.push(val) |
| | | }) |
| | | let list3 = list2.map(item=>item+'') |
| | | isToExponential = list3.some(val => val.includes('e+')) |
| | | // 装备项目检验值转化 |
| | | if (PROJECT === '装备电缆' && isToExponential) { |