diff --git a/anrui-riskcenter-ui/src/views/courseofthecase/courseofthecase.vue b/anrui-riskcenter-ui/src/views/courseofthecase/courseofthecase.vue index e6b56be87d..f2218629d5 100644 --- a/anrui-riskcenter-ui/src/views/courseofthecase/courseofthecase.vue +++ b/anrui-riskcenter-ui/src/views/courseofthecase/courseofthecase.vue @@ -85,19 +85,19 @@ - + - + - + @@ -117,6 +117,10 @@ + + + + @@ -130,6 +134,8 @@ import courseofthecaseAdd from './courseofthecaseAdd' import courseofthecaseInfo from './courseofthecaseInfo' import casedelegationAdd from '../casedelegation/casedelegationAdd' import caseappealAdd from '../caseappeal/caseappealAdd' +import caseexecutionAdd from '../caseexecution/caseexecutionAdd' +import caseclosedAdd from '../caseclosed/caseclosedAdd' export default { name: 'CourseOfTheCase', @@ -140,7 +146,9 @@ export default { courseofthecaseAdd, courseofthecaseInfo, casedelegationAdd, - caseappealAdd + caseappealAdd, + caseexecutionAdd, + caseclosedAdd }, data() { return { @@ -202,6 +210,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs + multipleSelection: [], FormLoading: false, listLoading: false, // 翻页 @@ -293,6 +302,7 @@ export default { // 信息条数 获取点击时当前的sid handleSelectionChange(row) { const aa = [] + this.multipleSelection = row row.forEach(element => { aa.push(element.sid) }) @@ -399,8 +409,12 @@ export default { // 委托律师申请 toEntrust() { if (this.sids.length === 1) { - this.viewState = 5 - this.$refs['divCaseDelegation'].showAdd(this.sids[0]) + if (this.multipleSelection[0].caseStage === '一审' || this.multipleSelection[0].caseStage === '二审') { + this.viewState = 5 + this.$refs['divCaseDelegation'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择案件当前阶段为一审或二审的记录,进行操作' }) + } } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) } @@ -408,16 +422,34 @@ export default { // 上/应诉申请 toAppeal() { if (this.sids.length === 1) { - this.viewState = 6 - this.$refs['divCaseAppeal'].showAdd(this.sids[0]) + if (this.multipleSelection[0].caseStage === '一审' || this.multipleSelection[0].caseStage === '二审') { + this.viewState = 6 + this.$refs['divCaseAppeal'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择案件当前阶段为一审或二审的记录,进行操作' }) + } } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) } }, // 执行立案申请 - toExecute() {}, + toExecute() { + if (this.sids.length === 1) { + this.viewState = 7 + this.$refs['divCasEexecution'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } + }, // 结案申请 - toClosing() {}, + toClosing() { + if (this.sids.length === 1) { + this.viewState = 8 + this.$refs['divCaseClosed'].showAdd(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } + }, // 修改、编辑、详情返回列表页面 resetState() { this.viewState = 1