From ea2b6775c278d8990e858a309a966b82b36f4d40 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期六, 13 七月 2024 15:11:25 +0800
Subject: [PATCH] 设备数采配置提交
---
static/js/worker.js | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/static/js/worker.js b/static/js/worker.js
index fcf7735..8bcac61 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -93,7 +93,7 @@
// console.log(ask,res,item.v.f)
if(ask){
comp = ask.map((m, i) => {
- console.log('m----', m)
+ // console.log('m----', m)
if (m.includes('RTS')) {
m = m.replace('RTS*', '')
}
@@ -116,9 +116,9 @@
} else if (m.includes('鈮�')) {
if(typeof res =='string'&&res.includes('/')){
if (m.includes('/')) {
- console.log('eval(res)----', eval(res))
+ // console.log('eval(res)----', eval(res))
let str = handleFraction(m.split('鈮�')[1])
- console.log('eval(str)----', eval(str))
+ // console.log('eval(str)----', eval(str))
return eval(res) >= eval(str)
} else {
return handleMoreParam(res,m.split('鈮�')[1],'鈮�')
@@ -272,7 +272,7 @@
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 = 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+'))
@@ -310,7 +310,7 @@
if (a[0].r == item.r && comResult !== '') {
for (var b in a) {
if (a[b].c == item.c) {
- console.log('comResult---', comResult)
+ // console.log('comResult---', comResult)
try{
let val = parseFloat(comResult.toFixed(3))
a[b].v.v = isNaN(val) ? '' : val
@@ -608,8 +608,6 @@
}
}
-
-
/**
* 鏍规嵁鍧愭爣鑾峰彇鍒楀悕
* @param {Object} cellId
@@ -818,9 +816,9 @@
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 {
--
Gitblit v1.9.3