yusijie
3 天以前 0b720c1862d9fbeb6afc0a9e6e0b0ab4b644fc5d
生产入库标题翻译转换
1个文件已修改
21 ■■■■ 已修改文件
pages/shengchanrukushengdan/Kf_ProductInBill.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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与翻译文件中设置的源单类型ID一致
                                    if(e['HSourceBillType'] == HSourceBillType_FY[0]){
                                        //对源单类型文本进行翻译赋值
                                        this.arrayHMainSourceBillType.push(HSourceBillType_FY[1])
                                    }
                                }
                            }
                            else{
                                this.arrayHMainSourceBillType.push(e['HSourceBillTypeName'])
                            }
                            this.arrayHMainSourceBillValue.push(e['HSourceBillType'])
                        })