From a0db9daa3a9ea540fd78203e53a9b7d38e9aecd9 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 04 七月 2024 10:56:53 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master

---
 src/main.js                                            |    3 +++
 src/components/do/b1-inspect-order-plan/Inspection.vue |    6 +++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 27b091c..a38a441 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1999,7 +1999,11 @@
         return sum
       },
       handleInput (n) {
-        n.v.v = n.v.v.replace(/[^\d.^]/g, '');
+        if (n.v.v > 10000) {
+          let num2 = new this.$Big(n.v.v)
+          n.v.v = num2.toExponential()
+        }
+        n.v.v = n.v.v.replace(/[^\d.^e]/g, '');
       },
       getInspectionItemType(id) {
         for (var a in this.currentSample.insProduct) {
diff --git a/src/main.js b/src/main.js
index 6be43ce..718081f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -10,6 +10,9 @@
 import axios from 'axios'
 import api from './assets/api/controller.js'
 import swal from 'sweetalert'
+import Big from 'big.js'
+
+Vue.prototype.$Big = Big;
 
 // 椤圭洰鍒囨崲
 // Vue.prototype.PROJECT = '妫�娴嬩腑蹇�'

--
Gitblit v1.9.3