gaoluyang
2024-07-12 6eac588d18ef1e98dd0c6979aec9741a91044d80
修改代码
已修改1个文件
5 ■■■■ 文件已修改
static/js/worker.js 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/worker.js
@@ -110,8 +110,6 @@
                    return  eval(res) == eval(str)
                  }
                } else if (m.includes('≥')) {
                  console.log('eval(res)---', eval(res))
                  console.log('eval(str)---', eval(str))
                  if(typeof res =='string'&&res.includes('/')){
                    return handleMoreParam(res,m.split('≥')[1],'≥')
                  }else{
@@ -224,9 +222,7 @@
          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('/') // 判断要求值是否为分数
            console.log('comValue---', comValue)
            comResult = compute(item.v.f.replace(/=/g, ' '),comValue, isPoint)
            console.log('comResult---', comResult)
            let list3 = list2.map(item=>item+'')
            isToExponential = list3.some(val => val.includes('e+'))
            // 装备项目检验值转化
@@ -263,6 +259,7 @@
            if (a[0].r == item.r && comResult !== '') {
              for (var b in a) {
                if (a[b].c == item.c) {
                  console.log('comResult---', comResult)
                  try{
                    let val = parseFloat(comResult.toFixed(3))
                    a[b].v.v = isNaN(val) ? '' : val