| | |
| | | }, |
| | | 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 |
| | |
| | | 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与翻译文件中设置的源单类型ID一致 |
| | | if(e['HSourceBillType'] == HSourceBillType_FY[0]){ |
| | | //对源单类型文本进行翻译赋值 |
| | | this.arrayHMainSourceBillType.push(HSourceBillType_FY[1]) |
| | | } |
| | | } |
| | | } |
| | | else{ |
| | | this.arrayHMainSourceBillType.push(e['HSourceBillTypeName']) |
| | | } |
| | | this.arrayHMainSourceBillValue.push(e['HSourceBillType']) |
| | | }) |
| | | |