| | |
| | | /* 引用码段参照配置,子组件填完参照配置之后内容回显时调用 */ |
| | | echoReferConfig(content){ |
| | | // console.log(content.referTypeName); |
| | | this.form.referBtmId = content.referType; |
| | | this.form.referBtmName = content.referTypeName; |
| | | this.form.referBtmId = content.referType || ''; |
| | | this.form.referBtmName = content.referTypeName || content.referType; |
| | | //转换成JSON字符串进行父组件回显 |
| | | let submitFormJson = JSON.stringify(content); |
| | | this.form.referConfig = submitFormJson; |
| | | this.form.referValueInfo = submitFormJson; |
| | | this.form.referConfig = submitFormJson || ''; |
| | | this.form.referValueInfo = submitFormJson || ''; |
| | | }, |
| | | /** 引用码段为【参照引用的业务类型】选取值之后的内容回显时调用 */ |
| | | echoReferBtmType(content){ |
| | | // 实现回显 |
| | | this.form.referBtmId = content.id; |
| | | this.form.referBtmName = content.name; |
| | | this.form.referBtmId = content.id || ''; |
| | | this.form.referBtmName = content.name || content.id; |
| | | }, |
| | | |
| | | /** 父分类选择对话框,第二层嵌套对话框,及其相关方法 */ |
| | |
| | | this.addBasicCodeSettingBox = true; |
| | | }, |
| | | // 新增基础码段 |
| | | saveOrEditBasicCode(){ |
| | | async saveOrEditBasicCode(){ |
| | | if(this.selectionList[0].oid == null || this.selectionList[0].oid == ''){ |
| | | this.$message.warning('缺失必要参数,请重新选择编码规则后再试!'); |
| | | return; |
| | |
| | | this.form.pkCodeRule = this.selectionList[0].oid; |
| | | if(this.form.oid == '' || this.form.oid == null){ |
| | | if(this.checkForm()){ |
| | | addSave(this.form).then(() => { |
| | | await addSave(this.form).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | |
| | | this.enumParam.codeFillType = this.getLocalStorageEnum("codeFillType"); |
| | | }, |
| | | loadCodeFillSeparator(){ |
| | | this.enumParam.codeFillSeparator = this.getLocalStorageEnum("codeFillSeparator"); |
| | | let enumCach = JSON.parse(localStorage.getItem("codeFillSeparator")); |
| | | if(enumCach == null) { |
| | | getDictionary("codeFillSeparator").then(res=>{ |
| | | this.enumParam.codeFillSeparator = res.data.data; |
| | | localStorage.setItem(key,JSON.stringify(res.data.data)); |
| | | }) |
| | | } |
| | | }, |
| | | loadCodeLevelType(){ |
| | | this.enumParam.codeLevelType = this.getLocalStorageEnum("codeLevelType"); |