From 45b4cbd921589ff8d6ea6ff5bb3a02a7eb6435d7 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 04 九月 2025 16:59:48 +0800
Subject: [PATCH] 生产领料单 问题修复

---
 pages/xiaoshouchuku/form.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/pages/xiaoshouchuku/form.vue b/pages/xiaoshouchuku/form.vue
index 70404d6..f2c893e 100644
--- a/pages/xiaoshouchuku/form.vue
+++ b/pages/xiaoshouchuku/form.vue
@@ -1224,6 +1224,7 @@
                                 this.hform.HWHName_B = ''
                                 this.hform.HSPName_B = ''
                             } else {
+                                this.hform.HBarCode_B = data.BarCodeDetailslist[0].HBarCode
                                 this.hform.HMaterName_B = data.BarCodeDetailslist[0].HMaterName
                                 this.hform.HMaterModel_B = data.BarCodeDetailslist[0].HMaterModel
                                 this.hform.HBatchNo_B = data.BarCodeDetailslist[0].HBatchNo
@@ -1442,10 +1443,14 @@
                                 console.log(1, res);
                                 uni.hideLoading()
                                 if (res.data.count == 1) {
-                                    let sMain = JSON.stringify(this.materMeta) + ';' + this.hform
-                                        .HBillType + ';' + this.hform.HSourceBillNo
                                     try {
-                                        await this.Set_BarCodeBill(sMain)
+                                        if(this.hform.HMainSourceBillType == '1402') {
+                                            if(/鍏磋揪|鏅轰簯/.test(uni.getStorageSync('Organization'))){
+                                                let sMain = JSON.stringify(this.materMeta) + ';' + this.hform
+                                                    .HBillType + ';' + this.hform.HSourceBillNo + ';鍏磋揪'
+                                                this.Set_BarCodeBill(sMain) 
+                                            }
+                                        }
                                         uni.showModal({
                                             title: '鎻愮ず',
                                             content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
@@ -1504,6 +1509,10 @@
                             if (count == 1) {
                                 resolve()
                             } else {
+                                uni.showToast({
+                                    icon:'none',
+                                    title: Message
+                                })
                                 reject(Message)
                             }
                         }
@@ -1611,7 +1620,7 @@
         }
 
         input {
-            width: 100%;
+            width: inherit;
             padding: 8rpx 20rpx;
             font-size: 30rpx;
         }

--
Gitblit v1.9.1