| | |
| | | <el-button size="small">不通过</el-button> |
| | | </div> --> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="issuedReasonVisible=true">不通过</el-button> |
| | | <el-button @click="issuedReasonVisible=true" :disabled="loadingIssued">不通过</el-button> |
| | | <el-button type="primary" @click="subIssued" :loading="loadingIssued">通 过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | v-model="reason"></el-input></div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="issuedReasonVisible=false">取消</el-button> |
| | | <el-button @click="issuedReasonVisible=false" :disabled="loadingIssuedReason">取消</el-button> |
| | | <el-button type="primary" @click="handleIssuedReason" :loading="loadingIssuedReason">确定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | <el-button size="small">不批准</el-button> |
| | | </div> --> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="approveReasonVisible=true">不批准</el-button> |
| | | <el-button @click="approveReasonVisible=true" :disabled="loadingApprove">不批准</el-button> |
| | | <el-button type="primary" @click="subApprove" :loading="loadingApprove">批 准</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | v-model="reason"></el-input></div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="approveReasonVisible=false">取消</el-button> |
| | | <el-button @click="approveReasonVisible=false" :disabled="loadingApproveReason">取消</el-button> |
| | | <el-button type="primary" @click="handleApproveReason" :loading="loadingApproveReason">确定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | 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) { |
| | |
| | | let url = row.urlS?row.urlS:row.url; |
| | | const link = document.createElement('a'); |
| | | link.href = this.javaApi + url; |
| | | link.target = '_blank'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | }, |
| | |
| | | }, |
| | | 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; |
| | |
| | | this.$confirm('是否提交当前报告?', "提交", { |
| | | confirmButtonText: "提交", |
| | | cancelButtonText: "取消", |
| | | type: "success" |
| | | type: "warning" |
| | | }).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){ |