From 4e022f5eb0d0d487e90da74e297bd2dfdcdc6a4d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 15 Jan 2024 10:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B5=84=E6=96=B9=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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue index d6d94edc40..6195a44213 100644 --- a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue +++ b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue @@ -451,18 +451,19 @@ export default { // 划扣 toDeduct() { if (this.list.length > 0) { - const click = true + let aa = '0' this.list.forEach((e) => { if (e.updateTime === '') { - this.click = false + aa = '1' return } }) - if (click) { + // click中1代表存在未更新的数据,0代表已全部更新 + if (aa === '0') { this.viewState = 3 this.$refs['divDeduct'].showAdd() } else { - this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表存在未更新的数据,请先点击更新' }) + this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表存在未更新的数据,请先点击更新后再进行划扣操作' }) } } else { this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' })