From 0c9f714c32e4bc9e8eaf972d860d2d9f2a1e6763 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 04 十一月 2025 10:24:05 +0800
Subject: [PATCH] 核磅录入磅差调整过大后增加弹框二次确认

---
 pages/wareHouse/nuclearScale/saveForm.vue |    2 +-
 pages/wareHouse/nuclearScale/index.vue    |   17 ++++++++++++-----
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/pages/wareHouse/nuclearScale/index.vue b/pages/wareHouse/nuclearScale/index.vue
index 5f7d6be..b3e7fba 100644
--- a/pages/wareHouse/nuclearScale/index.vue
+++ b/pages/wareHouse/nuclearScale/index.vue
@@ -337,13 +337,13 @@
         if (that.form.productType == "TG01") {
           that.$refs.saveForm.open(ScanCodeRecordList);
         } else {
-          that.queryCustomName(codeInfo,ScanCodeRecordList);
+          that.queryCustomName(codeInfo, ScanCodeRecordList);
         }
       }
     });
   },
   methods: {
-    queryCustomName(codeInfo,ScanCodeRecordList) {
+    queryCustomName(codeInfo, ScanCodeRecordList) {
       // 鏌ヨ瀹㈡埛鍚嶇О
       this.$u.api.NuclearScaleEntry.queryCustomName({
         BN: codeInfo.BN,
@@ -354,10 +354,11 @@
           // 鎵弿鎶ュ伐鍗曚簩缁寸爜
           uni.showModal({
             title: "鎻愮ず",
-            content: "瀹㈡埛涓嶄竴鑷达細" + res.data + " || " + that.form.customerName1,
+            content:
+              "瀹㈡埛涓嶄竴鑷达細" + res.data + " || " + that.form.customerName1,
             showCancel: true,
             success: function (res) {
-                that.ScanCodeRecord.unshift(ScanCodeRecordList);
+              that.ScanCodeRecord.unshift(ScanCodeRecordList);
             },
           });
         } else {
@@ -402,7 +403,13 @@
       switch (this.form.productType) {
         case "DT01":
           if (magnetic >= -3 && magnetic <= 3) {
-            this.allSubmit();
+            uni.showModal({
+              title: "鎻愮ず",
+              content: "纾呭樊:" + magnetic + "锛屾槸鍚︾‘璁ゆ彁浜わ紵",
+              success: function (res) {
+                  this.allSubmit();
+              },
+            });
           } else {
             this.$u.toast("纾呭樊:" + magnetic + "锛岃杞﹂棿鏍告煡");
           }
diff --git a/pages/wareHouse/nuclearScale/saveForm.vue b/pages/wareHouse/nuclearScale/saveForm.vue
index cfc6ccb..07be5db 100644
--- a/pages/wareHouse/nuclearScale/saveForm.vue
+++ b/pages/wareHouse/nuclearScale/saveForm.vue
@@ -162,7 +162,7 @@
       //    -10kg 浠ュ唴
       //    鏍哥閲嶉噺-2(鏂扮殑姣涢噸)鐨噸(鏂扮殑姣涢噸-鍑�閲�)瓒呰繃 10kg鎻愮ず鐢熶骇鏍告煡(涓嶈兘鎻愪氦)
       // (2).瀵间綋
-      //    姝g宸�:0-3kg鍙洿鎺ユ彁浜�
+      //    姝g宸�:3-3kg鍙洿鎺ユ彁浜�
       //    瓒呰繃 3kg鍙� 璐熺宸彁绀虹敓浜ф牳鏌�(涓嶈兘鎻愪氦)
       // (3).瀵间綋2.6
       //     澹�0.5kg 閮藉彲鐩存帴鎻愪氦

--
Gitblit v1.9.3