From a7231fe7bad424604cd698cffc9cbf3c345b4d08 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 13 一月 2026 13:58:38 +0800
Subject: [PATCH] 核磅录入铜杆提交时报错信息弹框展示

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

diff --git a/pages/wareHouse/nuclearScale/index.vue b/pages/wareHouse/nuclearScale/index.vue
index d004ed1..8994848 100644
--- a/pages/wareHouse/nuclearScale/index.vue
+++ b/pages/wareHouse/nuclearScale/index.vue
@@ -201,26 +201,44 @@
         <view class="packing-registration-param">
           <view class="packing-registration-param-view">
             <view class="packing-registration-param-item param-extra">
-              <view class="packing-registration-param-item-left">
-                <text class="item-one">鏍哥閲嶉噺锛�</text>
+              <view style=" min-width: 80px;">
+                <text style="font-size:16px">鏍哥閲嶉噺锛�</text>
               </view>
               <view class="packing-registration-param-item-right">
                 <u-input
                   type="number"
-                  class="item-one item-two"
                   v-model="modalList.verificationWeight"
+                              :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 class="packing-registration-param-item-left">
-                <text class="item-one">鍙夎溅鐩橀噸锛�</text>
+              <view style=" min-width: 80px;">
+                <text  style="font-size:16px">鍙夎溅鐩橀噸锛�</text>
               </view>
               <view class="packing-registration-param-item-right">
                 <u-input
                   type="number"
-                  class="item-one item-two"
                   v-model="modalList.forkliftWeight"
+                                                :custom-style="{
+                fontSize: '16px',
+                height: '40px',
+                lineHeight: '40px'
+              }"
+              :input-style="{
+                fontSize: '16px',
+                height: '40px',
+                lineHeight: '40px'
+              }"
                 />
               </view>
             </view>
@@ -337,6 +355,9 @@
         if (that.form.productType == "TG01") {
           that.$refs.saveForm.open(ScanCodeRecordList);
         } else {
+          if (that.form.workshop == "ZF01") {
+            that.$refs.saveForm.open(ScanCodeRecordList);
+          }
           that.queryCustomName(codeInfo, ScanCodeRecordList);
         }
       }
@@ -458,7 +479,8 @@
           };
         })
         .catch((err) => {
-          uni.hideLoading();
+          console.log("err", err);
+          // uni.hideLoading();
           uni.showModal({
             title: "鎻愮ず",
             content: err.message || "缃戠粶寮傚父锛岃閲嶈瘯",
@@ -473,7 +495,6 @@
       this.showModal = false;
     },
     handleUpdate(Obj) {
-      console.log("1111111111111111閾滄潌", Obj);
       Obj.batchNo = Obj.outBatchNo;
       this.form = {
         ...this.form,
@@ -490,7 +511,7 @@
           // this.ScanCodeRecord.unshift(Obj);
           this.$refs.saveForm.cancel();
         })
-        .catch(() => {
+        .catch((err) => {
           uni.hideLoading();
           this.$refs.saveForm.cancel();
           uni.showModal({
@@ -504,6 +525,10 @@
     // 鎻愪氦鎸夐挳
     submit() {
       if (this.form.productType != "TG01") {
+        this.modalList = {
+          verificationWeight: "",
+          forkliftWeight: this.form.productType == "DT01" ? "" : 0,
+        };
         this.showModal = true;
       } else {
         this.allSubmit();

--
Gitblit v1.9.3