From 67b008c6b0e24d86935f283b0250e7fc30bca914 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 11 Sep 2024 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=A2=E6=88=B7=E8=BF=98?= =?UTF-8?q?=E6=AC=BE=E6=83=85=E5=86=B5=E7=BB=9F=E8=AE=A1=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerrepayment/customerrepayment.vue | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue b/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue index 3cec55fcbf..b777e70311 100644 --- a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue +++ b/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue @@ -310,10 +310,6 @@ export default { } } }, - created() { - // 初始化变量 - this.getList() - }, mounted() { getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => { if (res.success) { @@ -383,11 +379,28 @@ export default { this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') this.listQuery.params.menuUrl = this.$route.path - req.listPage(this.listQuery).then(response => { + req.listPage(this.listQuery).then((response) => { this.listLoading = false if (response.success) { this.list = response.data.records this.listQuery.total = response.data.total + if (this.list.length > 0) { + this.list.forEach((e) => { + if (e.updateDate !== '' && e.updateDate !== null) { + if (new Date(e.dueDate) > new Date(e.updateDate)) { + e.nowOverdue = '1' + } else { + if ((parseFloat(e.outstandingMoney !== '' ? e.outstandingMoney : 0) + parseFloat(e.bankBeInter !== '' ? e.bankBeInter : 0) + parseFloat(e.fund !== '' ? e.fund : 0)) > 0) { + e.nowOverdue = '1' + } else { + e.nowOverdue = '0' + } + } + } else { + e.nowOverdue = '1' + } + }) + } } else { this.list = [] this.listQuery.total = 0