| | |
| | | this.$message.error('请选择审批人') |
| | | return |
| | | } |
| | | if (this.currentInfo && this.currentInfo.examineUserId != null && Number(this.approver) === Number(this.currentInfo.examineUserId)) { |
| | | this.$message.error('审核人和批准人不能为同一人,请重新选择批准人') |
| | | return |
| | | } |
| | | this.loadingIssued = true; |
| | | examineReport({ |
| | | id: this.currentInfo.id, |
| | |
| | | this.addApproverDia = false |
| | | this.issuedVisible = false; |
| | | }).catch(e => { |
| | | this.$message.error('提交失败') |
| | | this.loadingIssued = false; |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // 点击通过,需要选择批准人员 |
| | | subIssued() { |
| | | this.getAuthorizedPerson() |
| | | this.getAuthorizedPerson(true) |
| | | this.addApproverDia = true |
| | | }, |
| | | // 获取人员列表 |
| | | getAuthorizedPerson() { |
| | | getAuthorizedPerson(filterExamine) { |
| | | selectUserCondition({type: 1}).then((res) => { |
| | | let data = []; |
| | | res.data.forEach((a) => { |
| | |
| | | value: a.id, |
| | | }); |
| | | }); |
| | | if (filterExamine && this.currentInfo && this.currentInfo.examineUserId != null) { |
| | | data = data.filter((item) => Number(item.value) !== Number(this.currentInfo.examineUserId)); |
| | | } |
| | | this.approverList = data; |
| | | }) |
| | | }, |