diff --git a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue index 2c66f66b1f..178ecca8c8 100644 --- a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue +++ b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue @@ -266,25 +266,27 @@ export default { }, toEdit() { if (this.sids.length === 1) { - if (this.multipleSelection[0].handleBtn) { - this.viewState = 2 - this.$refs['divAdd'].showEdit(this.sids[0]) - } else { - this.$message({ showClose: true, type: 'error', message: '该记录资方合同号为空或已生成还款计划表且已存在还款记录' }) + // if (this.multipleSelection[0].handleBtn) { + // this.viewState = 2 + // this.$refs['divAdd'].showEdit(this.sids[0]) + // } else { + // this.$message({ showClose: true, type: 'error', message: '该记录资方合同号为空或已生成还款计划表且已存在还款记录' }) + // } + if (this.state_list.length > 0) { + for (var i = 0; i < this.state_list.length; i++) { + if (this.state_list[i] === '是') { + this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' }) + return + } + } } + this.viewState = 2 + this.$refs['divAdd'].showEdit(this.sids[0]) } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) } }, downloadRepaymentPlan() { - if (this.state_list.length > 0) { - for (var i = 0; i < this.state_list.length; i++) { - if (this.state_list[i] === '是') { - this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' }) - return - } - } - } if (this.sids.length > 0) { req.createRepaymentVoucher(this.sids).then((res) => { if (res.success) {