From 77af30d3bd49a3b2a5f1e619c52e0657e3d5b894 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 21 十月 2025 13:58:25 +0800
Subject: [PATCH] 兴达 设置 默认扫源单带出仓库

---
 pages/xiaoshoutuihuo/form.vue |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/pages/xiaoshoutuihuo/form.vue b/pages/xiaoshoutuihuo/form.vue
index 6aa4167..f28557f 100644
--- a/pages/xiaoshoutuihuo/form.vue
+++ b/pages/xiaoshoutuihuo/form.vue
@@ -165,6 +165,12 @@
                             <view class="detail" v-if="item.杈呭姪灞炴��">
                                 <text>杈呭姪灞炴�э細</text>{{item.杈呭姪灞炴�}
                             </view>
+                            
+                            <!-- 鍏磋揪瀹㈡埛 鍔熻兘 -->
+                            <view class="detail" v-if="materMeta[0].HWHName && /鍏磋揪/.test(hform.HStockOrgName
+                            )">
+                                <text>浠撳簱锛�</text>{{materMeta[0].HWHName}}
+                            </view>
                         </view>
                     </uni-card>
                 </view>
@@ -304,6 +310,7 @@
                 HSupNameList: [],
 
                 Materlist: [],
+                materMeta: [],
                 hform: {
                     HBillType: 1247,
                     HBillerID: uni.getStorageSync('HBillerID'),
@@ -1242,7 +1249,14 @@
                         console.log('鐗╂枡', res.data)
                         if (res.data.count == 1) {
                             var data = res.data.data
+                            this.materMeta = data.BarCodeDetailslist
                             this.Materlist = data.Materlist
+                            
+                            if (/鍏磋揪/.test(uni.getStorageSync("Organization"))) {
+                                // 鍏磋揪瀹㈡埛 甯﹀嚭 浠撳簱
+                                console.log("鍏磋揪甯﹀嚭榛樿浠撳簱")
+                                this.HWHNameChange(data.BarCodeDetailslist[0].HWHName)
+                            }
                             if (!data.BarCodeDetailslist[0].HBarCode) {
                                 this.hform.HMaterName_B = ''
                                 this.hform.HMaterModel_B = ''

--
Gitblit v1.9.1