From 02e68c46b37d36184166c63305f91841a57116f3 Mon Sep 17 00:00:00 2001
From: dytyqx <1342948614@qq.com>
Date: 星期五, 13 三月 2026 16:20:28 +0800
Subject: [PATCH] 1

---
 pages/xiaoshouchuku/SellOutBill.vue |   93 ++++++++++++++++++++++++----------------------
 1 files changed, 49 insertions(+), 44 deletions(-)

diff --git a/pages/xiaoshouchuku/SellOutBill.vue b/pages/xiaoshouchuku/SellOutBill.vue
index d9129c8..d6c1336 100644
--- a/pages/xiaoshouchuku/SellOutBill.vue
+++ b/pages/xiaoshouchuku/SellOutBill.vue
@@ -458,7 +458,7 @@
         },
         async onLoad(e) {
 			uni.setNavigationBarTitle({
-			    title: this.$t("SellOutBill_PDA.title")
+			    title: this.$t("SellOutBill_PDA.title") == 'SellOutBill_PDA.title' ? '閿�鍞嚭搴撳崟' : this.$t("SellOutBill_PDA.title") 
 			})
             console.log(e, this.userInfo)
             this.OperationType = e.OperationType
@@ -900,51 +900,56 @@
                 // }
             },
 			
-			// 閫氳繃鍗曟嵁绫诲瀷鑾峰彇婧愬崟绫诲瀷
-			async GetSourceBillType() {
-			    let res = await CommonUtils.doRequest2Async({
-			        url: '/Web/GetHSourceBillTypeByBillType',
-			        data: {
-			            HBillType: this.hform.HBillType,
-			            Num: 2
-			        }
-			    })
-			    let {
-			        data,
-			        count,
-			        Message
-			    } = res.data
-			    if (count == 1) {
-			        console.log('data: ', data);
-			        this.arrayHMainSourceBillType = []
-			        this.arrayHMainSourceBillValue = []
-			        Array.from(data).forEach(e => {
-						for(var j = 0; j < this.$t("SellOutBill_PDA.select option").length; j++){
-							let HSourceBillType_FY = this.$t("SellOutBill_PDA.select option[" + j + "]").split("@");
-							if(e['HSourceBillType'] == HSourceBillType_FY[0]){
-								this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
-								this.arrayHMainSourceBillValue.push(e['HSourceBillType'])
+            // 閫氳繃鍗曟嵁绫诲瀷鑾峰彇婧愬崟绫诲瀷
+            async GetSourceBillType() {
+                let res = await CommonUtils.doRequest2Async({
+                    url: '/Web/GetHSourceBillTypeByBillType',
+                    data: {
+                        HBillType: this.hform.HBillType,
+                        Num: 2
+                    }
+                })
+                let {
+                    data,
+                    count,
+                    Message
+                } = res.data
+                if (count == 1) {
+                    console.log('data: ', data);
+                    this.arrayHMainSourceBillType = []
+                    this.arrayHMainSourceBillValue = []
+                    Array.from(data).forEach(e => {
+						if (this.$t("SellOutBill_PDA.select option").lenth > 0){
+							for(var j = 0; j < this.$t("SellOutBill_PDA.select option").length; j++){
+								let HSourceBillType_FY = this.$t("SellOutBill_PDA.select option[" + j + "]").split("@");
+								if(e['HSourceBillType'] == HSourceBillType_FY[0]){
+									this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
+								}
 							}
 						}
-			        })
-			
-			        this.arrayHMainSourceBillType.push('鎵嬪伐褰曞叆')
-			        this.arrayHMainSourceBillValue.push('-1')
-			        //濡傛灉鎵嬪伐褰曞叆涓嶇敤閫夋嫨婧愬崟
-			        if (this.arrayHMainSourceBillType[0] == '鎵嬪伐褰曞叆') {
-			            this.tabs = 1
-			        }
-			
-			        this.HMainSourceBillType = this.arrayHMainSourceBillType[0]
-			        this.hform.HMainSourceBillType = this.arrayHMainSourceBillValue[0]
-			    } else {
-			        uni.showToast({
-			            icon: 'none',
-			            title: Message
-			        })
-			
-			    }
-			},
+						else{
+							this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
+						}
+                        this.arrayHMainSourceBillValue.push(e['HSourceBillType'])
+                    })
+
+                    this.arrayHMainSourceBillType.push('鎵嬪伐褰曞叆')
+                    this.arrayHMainSourceBillValue.push('-1')
+                    //濡傛灉鎵嬪伐褰曞叆涓嶇敤閫夋嫨婧愬崟
+                    if (this.arrayHMainSourceBillType[0] == '鎵嬪伐褰曞叆') {
+                        this.tabs = 1
+                    }
+
+                    this.HMainSourceBillType = this.arrayHMainSourceBillType[0]
+                    this.hform.HMainSourceBillType = this.arrayHMainSourceBillValue[0]
+                } else {
+                    uni.showToast({
+                        icon: 'none',
+                        title: Message
+                    })
+
+                }
+            },
             //閫夋嫨婧愬崟
             HSourceBillNoChange(e) {
                 this.hform.HSourceBillNo = e

--
Gitblit v1.9.1