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: '资方划扣还款明细列表数据为空,无需执行划扣操作' }) }