| | |
| | | :selfColumnConfig="selfColumnConfig" |
| | | ref="CodeApply" |
| | | @getFormData="getCodeApplyFormData" |
| | | @attrList="attrListForm" |
| | | @referConfigDataUpdate="referConfigDataUpdate" |
| | | ></FormTemplate> |
| | | </el-tab-pane> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | attrList:[], |
| | | eventList:[], |
| | | //码值的第二种只读隐藏情况 |
| | | codeValueApplyStatus:'', |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | watch:{ |
| | | codeApplyForm:{ |
| | | handler(newval,oldval){ |
| | | // console.log('newval',newval) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | openDialog() { |
| | | this.getFormTemplate(); |
| | |
| | | }, |
| | | getFormData(form) { |
| | | this.form = form; |
| | | //属性码段赋值 |
| | | if (this.attrList) { |
| | | this.attrList.forEach(item => { |
| | | if (this.form.hasOwnProperty(item.referAttributeId)) { |
| | | this.codeApplyForm[item.oid] = this.form[item.referAttributeId]; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //属性码段赋值 |
| | | attrListForm(attrListForm){ |
| | | this.attrList=attrListForm; |
| | | }, |
| | | getCodeApplyFormData(codeApplyForm) { |
| | | this.codeApplyForm = codeApplyForm; |
| | |
| | | this.$refs.CodeApply.form[item.name] = undefined; |
| | | item.readOnly=false; |
| | | item.referConfig.extraParams.parentClassifyValueOid=data.value; |
| | | item.referConfig.reloadData = true; |
| | | childItems.push(item) |
| | | } |
| | | return item; |
| | |
| | | // } |
| | | // } |
| | | let resembleQueryList = []; |
| | | if (this.$refs.resembleQueryRef) { |
| | | if (this.showResembleQuery && this.$refs.resembleQueryRef) { |
| | | // 进行相似项查询 |
| | | resembleQueryList = await this.$refs.resembleQueryRef.resembleQuery( |
| | | this.form |