From 22a57c30be2634dd1e12e9dd94625fa4de6dd8ff Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 8 May 2024 11:10:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BF=98=E6=AC=BE=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repaymentschedule/repaymentschedule.vue | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) 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) {