From 05c6ee06af8164aea9346368875c539f253a89b9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 17 九月 2026 19:44:21 +0800
Subject: [PATCH] 新疆——新聚lims 1.检验任务单详情输入检验值时不限制小数点位数

---
 src/views/business/inspectionView/index.vue |   31 ++-----------------------------
 1 files changed, 2 insertions(+), 29 deletions(-)

diff --git a/src/views/business/inspectionView/index.vue b/src/views/business/inspectionView/index.vue
index 5a520f1..c5a7b6f 100644
--- a/src/views/business/inspectionView/index.vue
+++ b/src/views/business/inspectionView/index.vue
@@ -257,7 +257,7 @@
                       n.v.ps.value === '璁$畻鍊�' &&
                       state == 1
                     "><span :style="`font-family:${n.v.ff} !important;`">{{
-                      toFixed(n.v.v, n.v.ct)
+                      n.v.v
                     }}</span></template>
                   <template v-else-if="
                       n.v.ps != undefined &&
@@ -265,7 +265,7 @@
                       state == 1
                     ">
                       <span :style="`font-family:${n.v.ff} !important;`">{{
-                          toFixed(n.v.v, n.v.ct)
+                          n.v.v
                         }}</span>
                   </template>
                   <template v-else-if="
@@ -1949,13 +1949,6 @@
               .replace(new RegExp("\n", "g"), "<br/>")
               .replace(new RegExp("@", "g"), "<br/>")
             : "";
-      // 瀵规暟鎹繚鐣欏皬鏁扮偣杩涜澶勭悊
-      if (v.ct && v.ct.fa && v.ct.fa.includes(".") && str) {
-        let num = 0;
-        let str0 = v.ct.fa.split(".")[1];
-        num = str0.length;
-        str = Number(str).toFixed(num);
-      }
       if (v.v && typeof v.v == "string" && v.v.includes("@")) {
         str = v.v.replace(new RegExp("@", "g"), "<br/>");
       }
@@ -2476,26 +2469,6 @@
         this.$download.saveAs(res.data.fileUrl, row.fileName)
       })
         .catch((error) => { });
-    },
-    /**
-     * 灏嗘暟鍊紇淇濈暀ct.fa涓�'##'鍚庣殑鎸囧畾灏忔暟浣嶆暟锛屽苟杩斿洖鏍煎紡鍖栧悗鐨勫瓧绗︿覆銆�
-     *
-     * @param v 瑕佹牸寮忓寲鐨勬暟鍊�
-     * @param ct 鍖呭惈鏍煎紡鍖栭厤缃殑瀵硅薄
-     * @param ct.fa 鏍煎紡鍖栭厤缃瓧绗︿覆锛岃嫢鍖呭惈'##'鍒欐寜鐓у叾鍚庣殑鍐呭纭畾灏忔暟浣嶆暟
-     * @returns 鏍煎紡鍖栧悗鐨勫瓧绗︿覆鎴栧師濮嬫暟鍊硷紙鑻ラ厤缃笉绗﹀悎瑕佹眰锛�
-     */
-    toFixed(v, ct) {
-      if (v && ct && ct.fa) {
-        if (ct.fa.includes(".")) {
-          let num = ct.fa.slice(4).length;
-          return Number(v).toFixed(num);
-        } else {
-          return v;
-        }
-      } else {
-        return v;
-      }
     },
     goback() {
       this.$router.go(-1)

--
Gitblit v1.9.3