From 7f0a9e5c9064867187b54eb0ce7b2c90a99715ab Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期四, 18 七月 2024 15:59:50 +0800
Subject: [PATCH] 检验下单检验任务表格刷新当前页数不变

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

diff --git a/static/js/worker.js b/static/js/worker.js
index 8bcac61..a8717a2 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -310,10 +310,13 @@
             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
+                    if(comResult==0){
+                      a[b].v.v = 0
+                    }else{
+                      let val = parseFloat(comResult.toFixed(3))
+                      a[b].v.v = isNaN(val) ? '' : val
+                    }
                   }catch(error){
                     a[b].v.v = comResult
                     console.log('error---', error)

--
Gitblit v1.9.3