|
|
@ -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 |
|
|
|