From 0b720c1862d9fbeb6afc0a9e6e0b0ab4b644fc5d Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期一, 30 三月 2026 10:01:08 +0800
Subject: [PATCH] 生产入库标题翻译转换
---
pages/shengchanrukushengdan/Kf_ProductInBill.vue | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/pages/shengchanrukushengdan/Kf_ProductInBill.vue b/pages/shengchanrukushengdan/Kf_ProductInBill.vue
index 13093c7..44cc8fd 100644
--- a/pages/shengchanrukushengdan/Kf_ProductInBill.vue
+++ b/pages/shengchanrukushengdan/Kf_ProductInBill.vue
@@ -428,7 +428,7 @@
},
async onLoad(e) {
uni.setNavigationBarTitle({
- title: this.$t("Kf_ProductInBill_PDA.title")
+ title: this.$t("Kf_ProductInBill_PDA.title") == "Kf_ProductInBill_PDA.title" ? "鐢熶骇鍏ュ簱鍗�" : this.$t("Kf_ProductInBill_PDA.title")
})
console.log(e, this.userInfo)
this.OperationType = e.OperationType
@@ -762,13 +762,22 @@
this.arrayHMainSourceBillType = []
this.arrayHMainSourceBillValue = []
Array.from(data).forEach(e => {
- //this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
- for(var j = 0; j < this.$t("Kf_ProductInBill_PDA.select option").length; j++){
- let HSourceBillType_FY = this.$t("Kf_ProductInBill_PDA.select option[" + j + "]").split("@");
- if(e['HSourceBillType'] == HSourceBillType_FY[0]){
- this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
+ //鍒ゆ柇缈昏瘧妯″潡瀛楁鍐呭鏄惁瀛樺湪
+ if(this.$t("Kf_ProductInBill_PDA.select option").length > 0 ){
+ //寰幆缈昏瘧涓嬫媺妗嗗瓧娈靛唴瀹�
+ for(var j = 0; j < this.$t("Kf_ProductInBill_PDA.select option").length; j++){
+ //杩欓噷鏄簮鍗曠被鍨嬪姩鎬佸姞杞斤紝鑾峰彇缈昏瘧瀛楁鍐呭涓殑婧愬崟ID杩涜缈昏瘧鍖归厤
+ let HSourceBillType_FY = this.$t("Kf_ProductInBill_PDA.select option[" + j + "]").split("@");
+ //鍔ㄦ�佸姞杞界殑婧愬崟绫诲瀷ID涓庣炕璇戞枃浠朵腑璁剧疆鐨勬簮鍗曠被鍨婭D涓�鑷�
+ if(e['HSourceBillType'] == HSourceBillType_FY[0]){
+ //瀵规簮鍗曠被鍨嬫枃鏈繘琛岀炕璇戣祴鍊�
+ this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
+ }
}
}
+ else{
+ this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
+ }
this.arrayHMainSourceBillValue.push(e['HSourceBillType'])
})
--
Gitblit v1.9.1