Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
cacf10a4
Commit
cacf10a4
authored
Sep 25, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://t-git.51gjj.com/fangbin/51business
parents
b0ce1a6c
3d340875
Pipeline
#14212
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
blacklist.js
app/service/credit/blacklist.js
+23
-1
No files found.
app/service/credit/blacklist.js
View file @
cacf10a4
...
@@ -124,7 +124,7 @@ class BlacklistService extends Service {
...
@@ -124,7 +124,7 @@ class BlacklistService extends Service {
msg
:
''
,
msg
:
''
,
},
},
overdue
:
{
//逾期详情
overdue
:
{
//逾期详情
list
:
!
reportData
?
[]
:
JSON
.
parse
(
reportData
.
overdue
),
list
:
await
this
.
overdueAnalysis
(
reportData
.
overdue
),
msg
:
''
,
msg
:
''
,
},
},
six_months
:
{
//近6个月关联风险
six_months
:
{
//近6个月关联风险
...
@@ -251,6 +251,28 @@ class BlacklistService extends Service {
...
@@ -251,6 +251,28 @@ class BlacklistService extends Service {
return
ret
;
return
ret
;
}
}
/**
* 对逾期的情况处理数据
* @param {*} overdue
*/
async
overdueAnalysis
(
overdue
)
{
let
ret
=
[];
if
(
!
overdue
||
overdue
===
'[]'
)
{
return
ret
;
}
let
overdueInfo
=
JSON
.
parse
(
overdue
);
for
(
let
i
in
overdueInfo
)
{
let
temp
=
{
overdue_date
:
overdueInfo
[
i
].
overdue_date
,
overdue_amount
:
overdueInfo
[
i
].
overdue_amount
,
overdue_time
:
overdueInfo
[
i
].
overdue_time
.
replace
(
/
\(
/
,
''
).
replace
(
/
\]
/
,
''
).
replace
(
/,/
,
'-'
)
+
'天'
,
is_settle
:
overdueInfo
[
i
].
is_settle
===
'N'
?
'否'
:
'是'
,
}
ret
.
push
(
temp
);
}
return
ret
;
}
/**
/**
* 获取多头借贷的分值
* 获取多头借贷的分值
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment