From 0740148a2a3642e79460a8180cb9436d9c5cff03 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 05 三月 2026 16:48:16 +0800
Subject: [PATCH] 更改装备发货的逻辑

---
 pages/wareHouse/nuclearScale/index.vue |   65 +++++++++++++++++---------------
 1 files changed, 34 insertions(+), 31 deletions(-)

diff --git a/pages/wareHouse/nuclearScale/index.vue b/pages/wareHouse/nuclearScale/index.vue
index 8994848..2108d8f 100644
--- a/pages/wareHouse/nuclearScale/index.vue
+++ b/pages/wareHouse/nuclearScale/index.vue
@@ -201,44 +201,42 @@
         <view class="packing-registration-param">
           <view class="packing-registration-param-view">
             <view class="packing-registration-param-item param-extra">
-              <view style=" min-width: 80px;">
-                <text style="font-size:16px">鏍哥閲嶉噺锛�</text>
+              <view style="min-width: 80px">
+                <text style="font-size: 16px">鏍哥閲嶉噺锛�</text>
               </view>
               <view class="packing-registration-param-item-right">
                 <u-input
-                  type="number"
                   v-model="modalList.verificationWeight"
-                              :custom-style="{
-                fontSize: '16px',
-                height: '40px',
-                lineHeight: '40px'
-              }"
-              :input-style="{
-                fontSize: '16px',
-                height: '40px',
-                lineHeight: '40px'
-              }"
+                  :custom-style="{
+                    fontSize: '16px',
+                    height: '40px',
+                    lineHeight: '40px',
+                  }"
+                  :input-style="{
+                    fontSize: '16px',
+                    height: '40px',
+                    lineHeight: '40px',
+                  }"
                 />
               </view>
             </view>
             <view class="packing-registration-param-item param-extra">
-              <view style=" min-width: 80px;">
-                <text  style="font-size:16px">鍙夎溅鐩橀噸锛�</text>
+              <view style="min-width: 80px">
+                <text style="font-size: 16px">鍙夎溅鐩橀噸锛�</text>
               </view>
               <view class="packing-registration-param-item-right">
                 <u-input
-                  type="number"
                   v-model="modalList.forkliftWeight"
-                                                :custom-style="{
-                fontSize: '16px',
-                height: '40px',
-                lineHeight: '40px'
-              }"
-              :input-style="{
-                fontSize: '16px',
-                height: '40px',
-                lineHeight: '40px'
-              }"
+                  :custom-style="{
+                    fontSize: '16px',
+                    height: '40px',
+                    lineHeight: '40px',
+                  }"
+                  :input-style="{
+                    fontSize: '16px',
+                    height: '40px',
+                    lineHeight: '40px',
+                  }"
                 />
               </view>
             </view>
@@ -339,14 +337,14 @@
           });
           return;
         }
-
+        const isZhuangBei = codeInfo.hasOwnProperty("part_no");
         let ScanCodeRecordList = {
-          outBatchNo: codeInfo.BN,
-          netWeight: codeInfo.NW,
+          outBatchNo: isZhuangBei ? codeInfo.sn_no : codeInfo.BN,
+          netWeight: isZhuangBei ? codeInfo.qty_arrived : codeInfo.NW,
           tareWeight: codeInfo.TR, // 鐨噸
-          partNo: codeInfo.PN,
+          partNo: isZhuangBei ? codeInfo.part_no : codeInfo.PN,
           grossWeight: codeInfo.TW,
-          partName: codeInfo.ST,
+          partName: isZhuangBei ? codeInfo.part_name : codeInfo.ST,
           originalLength: codeInfo.LN, // 闀垮害
           palletNo: codeInfo.PNO, // 鐩樺彿
           waivDevRejNo: codeInfo.WDR ? codeInfo.WDR : "*", // wdr鍙�
@@ -480,6 +478,11 @@
         })
         .catch((err) => {
           console.log("err", err);
+          this.modalList = {
+            verificationWeight: this.modalList.verificationWeight,
+            forkliftWeight: this.modalList.forkliftWeight,
+          };
+          this.showModal = true;
           // uni.hideLoading();
           uni.showModal({
             title: "鎻愮ず",

--
Gitblit v1.9.3