Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
linweijiong
jinfa-platform
Commits
08b94e0e
Commit
08b94e0e
authored
Jan 04, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加数据为空的展示
parent
3fd6b643
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
57 deletions
+61
-57
index.tsx
...tion/quotaMenage/detail/components/IntroduceRow/index.tsx
+61
-55
index.tsx
...ation/quotaMenage/detail/components/RefundModal/index.tsx
+0
-2
No files found.
src/pages/payandSettle/creditApplication/quotaMenage/detail/components/IntroduceRow/index.tsx
View file @
08b94e0e
...
...
@@ -10,6 +10,7 @@ import {
Modal
,
Spin
,
message
,
Empty
,
}
from
'antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
lodash
from
'lodash'
;
...
...
@@ -503,68 +504,73 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
<
Spin
spinning=
{
billInfoLoading
}
>
{
!
visibleRecord
?
(
<>
<
Row
gutter=
{
100
}
align=
"middle"
style=
{
{
marginBottom
:
24
,
}
}
>
<
Col
span=
{
14
}
>
<
div
className=
{
styles
.
repayment
}
>
<
div
className=
{
styles
[
'repayment-left'
]
}
>
<
div
className=
{
styles
.
statistic
}
>
<
div
className=
{
styles
[
'statistic-title'
]
}
>
剩余应还(元):
</
div
>
<
div
className=
{
styles
[
'statistic-amount'
]
}
>
{
billInfo
?.
residueRepayQuota
}
</
div
>
{
!
billInfoLoading
&&
billInfo
&&
(<>
<
Row
gutter=
{
100
}
align=
"middle"
style=
{
{
marginBottom
:
24
,
}
}
>
<
Col
span=
{
14
}
>
<
div
className=
{
styles
.
repayment
}
>
<
div
className=
{
styles
[
'repayment-left'
]
}
>
<
div
className=
{
styles
.
statistic
}
>
<
div
className=
{
styles
[
'statistic-title'
]
}
>
剩余应还(元):
</
div
>
<
div
className=
{
styles
[
'statistic-amount'
]
}
>
{
billInfo
?.
residueRepayQuota
}
</
div
>
</
div
>
<
div
className=
{
styles
[
'repayment-end'
]
}
>
<
span
className=
{
styles
[
'repayment-time'
]
}
>
{
billInfo
?.
expireTime
}
到期
</
span
>
<
StatusTag
type=
"danger"
title=
{
billInfo
&&
billInfo
.
expireDay
!==
undefined
?
billInfo
.
expireDay
>
0
?
`${billInfo.expireDay}天后`
:
`逾期 ${billInfo.expireDay} 天`
:
''
}
/>
</
div
>
</
div
>
<
div
className=
{
styles
[
'repayment-end'
]
}
>
<
span
className=
{
styles
[
'repayment-time'
]
}
>
{
billInfo
?.
expireTime
}
到期
</
span
>
<
StatusTag
type=
"danger"
title=
{
billInfo
&&
billInfo
.
expireDay
!==
undefined
?
billInfo
.
expireDay
>
0
?
`${billInfo.expireDay}天后`
:
`逾期 ${billInfo.expireDay} 天`
:
''
}
/>
<
div
className=
{
styles
[
'repayment-right'
]
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
this
.
handleRepayment
(
true
)
}
>
立即还款
</
Button
>
</
div
>
</
div
>
<
div
className=
{
styles
[
'repayment-right'
]
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
this
.
handleRepayment
(
true
)
}
>
立即还款
</
Button
>
</
div
>
</
div
>
</
Col
>
<
Col
span=
{
10
}
>
<
div
className=
{
styles
.
statistic
}
>
<
div
className=
{
styles
[
'statistic-title'
]
}
>
本期账单(元):
</
div
>
<
div
className=
{
styles
[
'statistic-amount'
]
}
>
{
billInfo
?.
billQuota
}
</
div
>
</
div
>
</
Col
>
</
Row
>
<
div
className=
{
styles
.
foot
}
>
<
Row
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#EF6260"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
最后还款日期:
</
span
>)
}
/>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
lastRepayDate
}
</
span
>
</
div
>
</
Col
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#DFE1E6"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
还款周期:
</
span
>)
}
/>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
repayPeriod
}
天
</
span
>
</
div
>
</
Col
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#DFE1E6"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
账单日期:
</
span
>)
}
/
>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
billDay
}
日
</
span
>
<
Col
span=
{
10
}
>
<
div
className=
{
styles
.
statistic
}
>
<
div
className=
{
styles
[
'statistic-title'
]
}
>
本期账单(元):
</
div
>
<
div
className=
{
styles
[
'statistic-amount'
]
}
>
{
billInfo
?.
billQuota
}
</
div
>
</
div
>
</
Col
>
</
Row
>
</
div
>
<
div
className=
{
styles
.
foot
}
>
<
Row
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#EF6260"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
最后还款日期:
</
span
>)
}
/>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
lastRepayDate
}
</
span
>
</
div
>
</
Col
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#DFE1E6"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
还款周期:
</
span
>)
}
/>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
repayPeriod
}
天
</
span
>
</
div
>
</
Col
>
<
Col
span=
{
8
}
>
<
div
className=
{
styles
.
badgeWrap
}
>
<
Badge
color=
"#DFE1E6"
text=
{
(<
span
className=
{
styles
[
'badgeWrap-title'
]
}
>
账单日期:
</
span
>)
}
/>
<
span
className=
{
styles
[
'badgeWrap-content'
]
}
>
{
billInfo
?.
billDay
}
日
</
span
>
</
div
>
</
Col
>
</
Row
>
</
div
>
</>)
}
{
!
billInfoLoading
&&
!
billInfo
&&
(
<
Empty
style=
{
{
marginTop
:
80
}
}
/>
)
}
</>
)
:
(
<
TradeRecord
fetchRecordList=
{
this
.
getRecordList
}
ref=
{
node
=>
this
.
tradeRecordRef
=
node
}
/>
...
...
src/pages/payandSettle/creditApplication/quotaMenage/detail/components/RefundModal/index.tsx
View file @
08b94e0e
...
...
@@ -116,8 +116,6 @@ const RefundModal: React.FC<RefundModalProps> = (props) => {
});
createEffects
(
$
,
actions
);
console
.
log
(
'123'
)
useAsyncSelect
(
'tradeChannel'
,
getPayChannels
,
[
'label'
,
'value'
]);
}
}
expressionScope=
{
{
...
...
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