| | |
| | | } |
| | | } |
| | | list2.push(c.v.v) |
| | | isToExponential = list2.some(val => val.includes('e+')) |
| | | if(getInspectionValueType(item.i)==1&&!isNaN(parseFloat(c.v.v))){ |
| | | let n = String(c.v.v) |
| | | if(n.includes('/')){ |
| | |
| | | if(res.includes('/')){ |
| | | return handleMoreParam(res,m.split('=')[1],'=') |
| | | }else{ |
| | | return res.trim() == str.trim() |
| | | // console.log(res.trim().replace(/[.,。、;:'";??“,]/g, ''),' == ',str.trim().replace(/[.,。、;:'";??“,]/g, '')) |
| | | return res.trim().replace(/[.,。、;:'";??“,]/g, '') == str.trim().replace(/[.,。、;:'";??“,]/g, '') |
| | | } |
| | | }else{ |
| | | return eval(res) == eval(str) |
| | |
| | | } |
| | | }) |
| | | } else { |
| | | console.log(333333) |
| | | item.v.v = 0 |
| | | list.forEach(a => { |
| | | if (a[0].r == item.r) { |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log(tableList) |
| | | } |
| | | result = { |
| | | method:'saveInsContext', |
| | |
| | | let comResult = '' |
| | | try { |
| | | if(getInspectionValueType(item.i)==1){ |
| | | 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; |
| | | // 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.map(item=>item+'') |
| | | isToExponential = list3.some(val => val.includes('e+')) |
| | | // 装备项目检验值转化 |
| | | if (PROJECT === '装备电缆' && isToExponential === true) { |
| | | if (PROJECT === '装备电缆' && isToExponential) { |
| | | let num2 = new Big(comResult) |
| | | comResult = num2.toExponential() |
| | | } |
| | |
| | | comResult = str |
| | | } |
| | | } catch (error) { |
| | | console.log('error---', error) |
| | | } |
| | | try { |
| | | list.forEach(a => { |
| | |
| | | }) |
| | | changeInput(comResult, `${id}-${item.r}-${item.c}-${pId}`) //改变最终值 |
| | | } catch (error) { |
| | | |
| | | console.log('error---', error) |
| | | } |
| | | } |
| | | } |