| | |
| | | }, |
| | | methods: { |
| | | openDialog() { |
| | | //新增和修改共同调用 |
| | | this.getFormTemplate(); |
| | | if (this.type === "add" || this.status === "amend") { |
| | | if (this.type === "add" || (this.type !== "add" && this.status === "amend")) { |
| | | this.getCodeRule(); |
| | | return; |
| | | } |
| | | }, |
| | | close() { |
| | |
| | | }, |
| | | // 接口获取表单数据 |
| | | getFormTemplate() { |
| | | //新增和修改共同调用 |
| | | getFormTemplate({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | |
| | | } else { |
| | | this.showResembleQuery = false; |
| | | } |
| | | //传递表单上方区域数据 (新增和修改) |
| | | this.$nextTick(() => { |
| | | this.$refs.FormTemplate.templateRender( |
| | | res.data.formDefineVO.items |
| | |
| | | that.secVOList = (res.data.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | if ((that.secVOList.length > 0 && that.type === "add") || that.status === "amend") { |
| | | if (that.secVOList.length > 0 && that.type === "add" ||(that.type !== "add" && that.status === "amend")) { |
| | | that.showCodeApply = true; |
| | | that.activeName = "codeApply"; |
| | | |