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/index.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 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 + "锛岃杞﹂棿鏍告煡");
           }

--
Gitblit v1.9.3