From a0e89ddc0c312d8029e035dfc5ddaa7d5ef56212 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 15 Jan 2024 10:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=87=AA=E6=94=BE=E8=BF=98?= =?UTF-8?q?=E6=AC=BE=E5=88=92=E6=89=A3=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/monthlypayment/monthlypayment.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue index c403adf787..d6d94edc40 100644 --- a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue +++ b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue @@ -451,14 +451,19 @@ export default { // 划扣 toDeduct() { if (this.list.length > 0) { + const click = true this.list.forEach((e) => { if (e.updateTime === '') { - this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表存在未更新的数据,请先点击更新' }) + this.click = false return } }) - this.viewState = 3 - this.$refs['divDeduct'].showAdd() + if (click) { + this.viewState = 3 + this.$refs['divDeduct'].showAdd() + } else { + this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表存在未更新的数据,请先点击更新' }) + } } else { this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' }) }