From 06e5e9e9c7aabcb5c155b25f84e5de2c935b2137 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 22 七月 2024 16:39:37 +0800
Subject: [PATCH] 新增数采检验功能

---
 static/js/worker.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/static/js/worker.js b/static/js/worker.js
index a8717a2..26ba16a 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -38,7 +38,6 @@
   let isToExponential = ''
   let list2 = []
   let isPoint = ''
-
   excelMethodList.forEach(item => {
     if (item.valueList&&item.valueList.length>0&&item.valueList.find(m => m.r == r && m.c == c)) {
       var comValue = {}
@@ -254,6 +253,7 @@
             }
             // console.log(tableList)
           }
+          // console.log('1234567789', tableList,getParam())
           result = {
             method:'saveInsContext',
             value:{
@@ -433,7 +433,7 @@
   }
   tableList[0].arr.forEach(a => {
     a.forEach(b=>{
-      if (b.v.ps != undefined && b.v.ps.value === '妫�楠屽��') {
+      if (b.v.ps != undefined &&typeof b.v.ps.value =='string'&& b.v.ps.value.includes('妫�楠屽��')) {
         b.i &&b.v.v&& param[b.i].insValue.push(b)
       }
       if (b.v.ps != undefined && b.v.ps.value === '璁$畻鍊�') {
@@ -529,7 +529,7 @@
     let num = null;
     let arr = [];
     if(val&&val.length>0){
-      arr = val.filter(item=>item!=null&&item!=='')
+      arr = val.filter(item=>item!=null&&item!=''&&item!=undefined)
       arr.forEach(item=>{
         num+=item;
       })
@@ -825,6 +825,7 @@
     } else if (isPoint) {
       return str.replace('ABS', '').replace(/\(|\)/g, '')
     }else {
+      console.log('str', str,eval(str))
       return eval(str)
     }
   } catch (error) {

--
Gitblit v1.9.3