From 3f42a06ce46b03bbfdbc96f91cd43f7e0009c2bb Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 28 一月 2026 10:17:26 +0800
Subject: [PATCH] 核磅录入增加错误信息弹窗保留弹窗数据,打印界面增加核磅总量

---
 pages/wareHouse/nuclearScale/nuclearscalerecord.vue |   40 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 1 deletions(-)

diff --git a/pages/wareHouse/nuclearScale/nuclearscalerecord.vue b/pages/wareHouse/nuclearScale/nuclearscalerecord.vue
index c70221d..b9d7c75 100644
--- a/pages/wareHouse/nuclearScale/nuclearscalerecord.vue
+++ b/pages/wareHouse/nuclearScale/nuclearscalerecord.vue
@@ -31,6 +31,13 @@
           >- {{ getPrintStatusText() }}</text
         >
       </view>
+      
+      <!-- 鏍哥閲嶉噺鎬诲拰灞曠ず -->
+      <view class="total-weight-indicator">
+        <text class="total-weight-label">鏍哥閲嶉噺鎬诲拰锛�</text>
+        <text class="total-weight-value">{{ totalVerificationWeight.toFixed(2) }}</text>
+      </view>
+      
       <scroll-view
         class="finishProductIn-locno-scroll-list"
         scroll-y="true"
@@ -226,7 +233,7 @@
       // 5锛氶�忔槑绾�
       printMode: 2, // 榛樿鎵撳嵃妯″紡
       //	1锛氱儹鏁�
-      // 	2锛氱儹杞嵃
+      //  2锛氱儹杞嵃
       connectedDevice: null,
       connectionStatus: "disconnected",
       printStatus: "idle", // 鎵撳嵃鐘舵��: idle, printing, error
@@ -234,6 +241,15 @@
       verificationNo: "",
       failedPrintJobs: [],
     };
+  },
+  computed: {
+    // 璁$畻鏍哥閲嶉噺鎬诲拰
+    totalVerificationWeight() {
+      return this.list.reduce((sum, item) => {
+        const weight = parseFloat(item.verificationWeight) || 0;
+        return sum + weight;
+      }, 0);
+    },
   },
   onLoad(options) {
     this.verificationNo = JSON.parse(
@@ -1171,4 +1187,26 @@
     font-size: 22rpx;
   }
 }
+
+/* 鏍哥閲嶉噺鎬诲拰灞曠ず */
+.total-weight-indicator {
+  padding: 12rpx 20rpx;
+  font-size: 26rpx;
+  text-align: center;
+  background-color: #e8f3ff;
+  border-bottom: 1rpx solid #d1e5ff;
+  margin-bottom: 16rpx;
+  
+  .total-weight-label {
+    font-weight: 500;
+    color: #333;
+    margin-right: 8rpx;
+  }
+  
+  .total-weight-value {
+    font-weight: bold;
+    color: #07c160;
+    font-size: 28rpx;
+  }
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3