Browse Source

完善客户还款情况统计表

master
yunuo970428 8 months ago
parent
commit
67b008c6b0
  1. 23
      anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue

23
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

Loading…
Cancel
Save