| | |
| | | type: 'text', |
| | | method: 'handleSubmit', |
| | | disabFun: (row, index) => { |
| | | return row.isExamine != null |
| | | return row.state != 0 |
| | | } |
| | | }, { |
| | | id: 'handleIssued', |
| | |
| | | type: 'text', |
| | | method: 'handleIssued', |
| | | disabFun: (row, index) => { |
| | | return row.isExamine != null |
| | | return row.state == null||row.state == 0 ||row.isExamine == 1 |
| | | } |
| | | }, { |
| | | id: 'handleApprove', |
| | |
| | | type: 'text', |
| | | method: 'handleApprove', |
| | | disabFun: (row, index) => { |
| | | return row.isRatify != null |
| | | return row.state == null||row.state == 0||row.isExamine == 0||row.isExamine == null ||row.isRatify==1 |
| | | } |
| | | }], |
| | | linkEvent: { |
| | |
| | | value: 1, |
| | | type: 'success', |
| | | label: '通过' |
| | | }] |
| | | }, |
| | | state: { |
| | | select: [{ |
| | | value: 0, |
| | | type: 'danger', |
| | | label: '待提交' |
| | | }, { |
| | | value: 1, |
| | | type: 'success', |
| | | label: '已提交' |
| | | }] |
| | | } |
| | | }, |
| | |
| | | let edit = false |
| | | let up = false |
| | | let res = false |
| | | let sub = true |
| | | let sub = false |
| | | let issued = true |
| | | let approve = true |
| | | for (var i = 0; i < power.length; i++) { |
| | |
| | | } |
| | | if (power[i].menuMethod == 'upReportUrl') { |
| | | res = true |
| | | } |
| | | if (power[i].menuMethod == 'writeReport') { |
| | | sub = true |
| | | } |
| | | } |
| | | if (!approve) { |
| | |
| | | }, |
| | | subIssued(){ |
| | | this.loadingIssued = true; |
| | | this.$axios.post(this.$api.insReport.examineReport, { |
| | | id: this.currentInfo.id, |
| | | isExamine: 1 |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success('提交成功') |
| | | this.refreshTable() |
| | | this.loadingIssued = false; |
| | | this.currentInfo = null; |
| | | this.issuedVisible = false; |
| | | }).catch(e => { |
| | | this.$message.error('提交失败') |
| | | this.loadingIssued = false; |
| | | }) |
| | | }, |
| | | handleApprove(row){ |
| | | this.currentInfo = row; |
| | |
| | | cancelButtonText: "取消", |
| | | type: "success" |
| | | }).then(() => { |
| | | this.$axios.post(this.delUrl, { |
| | | this.$axios.post(this.$api.insReport.writeReport, { |
| | | id: row.id |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success('提交成功') |
| | | this.selectList() |
| | | this.refreshTable() |
| | | }).catch(e => { |
| | | this.$message.error('提交失败') |
| | | }) |
| | |
| | | return this.$message.error('请输入原因') |
| | | } |
| | | this.loadingIssuedReason = true; |
| | | this.$axios.post(this.$api.insReport.examineReport, { |
| | | id: this.currentInfo.id, |
| | | isExamine: 0, |
| | | examineTell:this.reason |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success('操作成功') |
| | | this.refreshTable() |
| | | this.loadingIssuedReason = false; |
| | | this.currentInfo = null; |
| | | this.reason = ''; |
| | | this.issuedVisible = false; |
| | | this.issuedReasonVisible = false; |
| | | }).catch(e => { |
| | | this.$message.error('操作失败') |
| | | this.loadingIssuedReason = false; |
| | | }) |
| | | }, |
| | | handleApproveReason(){ |
| | | if(!this.reason){ |