| | |
| | | } |
| | | |
| | | this.legalPersonForm.projectId = this.projectForm.id; |
| | | this.handleBlur(); |
| | | |
| | | }, |
| | | beforeDestroy() { |
| | | if(Object.keys(this.legalPersonForm).length !==0) localStorage.setItem("legalPersonForm", JSON.stringify(this.legalPersonForm)); |
| | |
| | | this.options.forEach(item => { |
| | | if (item.id === row) { |
| | | this.legalPersonForm = item; |
| | | this.legalPersonForm.id = null; |
| | | } |
| | | }) |
| | | } |
| | |
| | | }, |
| | | //项目单位输入时触发 |
| | | handleBlur(query){ |
| | | console.log(query) |
| | | |
| | | this.legalPersonForm.projectUnit = query; |
| | | if (this.legalPersonForm.projectUnit !== null && this.legalPersonForm.projectUnit !== '' && this.legalPersonForm.projectUnit !== undefined){ |
| | | getUnitRegistrationInfoByName(this.legalPersonForm).then(res =>{ |