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
shenshaokai
jinfa-platform
Commits
9d77105c
Commit
9d77105c
authored
Oct 30, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改最大额度字段、晚上样式
parent
315efde2
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
21 deletions
+64
-21
index.tsx
src/components/StatusTag/index.tsx
+4
-3
index.tsx
...dSettle/creditApplication/components/DetailInfo/index.tsx
+1
-0
index.tsx
...editApplication/components/QuotaApplicationInfo/index.tsx
+10
-4
index.tsx
...payandSettle/creditManage/components/DetailInfo/index.tsx
+7
-4
index.tsx
...le/creditManage/components/QuotaApplicationInfo/index.tsx
+6
-4
index.tsx
src/pages/payandSettle/creditManage/quotaPr1/index.tsx
+7
-1
index.tsx
src/pages/payandSettle/creditManage/quotaPr2/index.tsx
+7
-1
index.tsx
src/pages/payandSettle/creditManage/quotaPr3/index.tsx
+7
-1
index.tsx
src/pages/payandSettle/creditManage/quotaPrConfirm/index.tsx
+7
-1
index.tsx
src/pages/payandSettle/creditManage/quotaPrSubmit/index.tsx
+7
-1
useBusinessEffects.ts
.../bills/components/BillsForm/effects/useBusinessEffects.ts
+1
-1
No files found.
src/components/StatusTag/index.tsx
View file @
9d77105c
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-08-31 17:52:14
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-
22 13:56:48
* @LastEditTime: 2020-10-
30 13:34:05
* @Description: 状态 tag
*/
import
React
from
'react'
;
...
...
@@ -12,12 +12,13 @@ import styles from './index.less';
interface
StatusTagProps
{
type
:
'success'
|
'warning'
|
'default'
|
'danger'
|
'primary'
;
title
:
React
.
ReactNode
;
style
?:
{[
key
:
string
]:
any
},
};
const
StatusTag
:
React
.
FC
<
StatusTagProps
>
=
({
type
,
title
})
=>
{
const
StatusTag
:
React
.
FC
<
StatusTagProps
>
=
({
type
,
title
,
style
})
=>
{
const
cls
=
classNames
(
styles
.
tag
,
styles
[
`tag__
${
type
}
`
]);
return
(
<
span
className=
{
cls
}
>
{
title
}
</
span
>
<
span
className=
{
cls
}
style=
{
style
}
>
{
title
}
</
span
>
);
};
...
...
src/pages/payandSettle/creditApplication/components/DetailInfo/index.tsx
View file @
9d77105c
...
...
@@ -203,6 +203,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
billDay
:
quotaInfo
?.
verify
?.
billDay
,
repayPeriod
:
quotaInfo
?.
verify
?.
repayPeriod
,
verifyTime
:
quotaInfo
?.
verify
?.
verifyTime
,
maxApplyQuota
:
quotaInfo
?.
verify
?.
maxApplyQuota
,
}
:
null
}
...
...
src/pages/payandSettle/creditApplication/components/QuotaApplicationInfo/index.tsx
View file @
9d77105c
...
...
@@ -49,6 +49,8 @@ interface QuotaApplicationInfo {
repayPeriod
:
number
,
// 审批时间
verifyTime
:
string
,
// 最大申请额度
maxApplyQuota
:
number
,
}
|
null
,
};
...
...
@@ -60,6 +62,10 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
})
=>
{
const
[
modalVisible
,
setModalVisible
]
=
useState
(
false
);
// 最大申请额度,没有审批信息说明是第一次申请
// 第一次申请 最大值取 支付配置的默认额度,否则取审批信息的最大值数据
const
maxQuota
=
!
verify
?
quotaInfo
.
applyQuota
:
verify
.
maxApplyQuota
;
const
handleSubmit
=
values
=>
{
if
(
onSubmit
)
{
const
{
...
...
@@ -102,7 +108,7 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
left
:
'-20px'
}
}
>
<
div
>
{
quotaInfo
.
apply
Quota
}
</
div
>
<
div
>
{
max
Quota
}
</
div
>
<
div
>
最高可调额度
</
div
>
...
...
@@ -254,17 +260,17 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
setFieldState
(
'applyQuota'
,
fileState
=>
{
fileState
.
rules
=
fileState
.
rules
.
concat
({
validator
(
value
)
{
return
+
value
>
quotaInfo
.
apply
Quota
?
'输入值已超出最大额度'
:
''
;
return
+
value
>
max
Quota
?
'输入值已超出最大额度'
:
''
;
}
});
});
setFieldState
(
'quotaSlide'
,
fileState
=>
{
fileState
.
props
[
'x-component-props'
].
max
=
quotaInfo
.
apply
Quota
;
fileState
.
props
[
'x-component-props'
].
max
=
max
Quota
;
fileState
.
props
[
'x-component-props'
].
marks
=
{
0
:
{
label
:
MinMarks
,
},
[
quotaInfo
.
apply
Quota
]:
{
[
max
Quota
]:
{
label
:
MaxMarks
,
},
};
...
...
src/pages/payandSettle/creditManage/components/DetailInfo/index.tsx
View file @
9d77105c
...
...
@@ -6,6 +6,7 @@ import {
Badge
,
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
lodash
from
'lodash'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetPayCreditHandleGetApplyDetailResponse
}
from
'@/services/PayApi'
;
import
{
...
...
@@ -80,8 +81,9 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setQuotaInfo
(
res
.
data
);
// 审批信息不存在说明没有 修改过 审批信息,手动赋值 授信申请里的数据
if
(
!
verify
&&
res
.
data
.
member
.
innerStatus
===
CREDIT_INNER_STATUS_UNCOMMITTED
)
{
// 审批信息不存在 或者 审批信息里边 审批额度不存在
// 说明没有 修改过 审批信息,手动赋值 授信申请里的数据
if
((
!
verify
||
!
lodash
.
isNumber
(
verify
.
quota
))
&&
res
.
data
.
member
.
innerStatus
===
CREDIT_INNER_STATUS_UNCOMMITTED
)
{
setQuotaValues
({
quota
:
apply
.
applyQuota
,
billDay
:
apply
.
billDay
,
...
...
@@ -90,7 +92,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
}
// 如果有审批信息则直接赋值 审批信息
if
(
verify
)
{
if
(
verify
&&
lodash
.
isNumber
(
verify
.
quota
)
)
{
setQuotaValues
({
quota
:
verify
.
quota
,
billDay
:
verify
.
billDay
,
...
...
@@ -221,11 +223,12 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
applyType
:
quotaInfo
?.
apply
.
applyType
,
}
}
verify=
{
!
isNaN
(
quotaValues
.
quota
)
?
{
lodash
.
isNumber
(
quotaValues
.
quota
)
?
{
quota
:
quotaValues
.
quota
,
billDay
:
quotaValues
.
billDay
,
repayPeriod
:
quotaValues
.
repayPeriod
,
verifyTime
:
quotaInfo
?.
verify
?.
verifyTime
,
maxApplyQuota
:
quotaInfo
?.
verify
?.
maxApplyQuota
,
}
:
null
}
...
...
src/pages/payandSettle/creditManage/components/QuotaApplicationInfo/index.tsx
View file @
9d77105c
...
...
@@ -51,6 +51,8 @@ interface QuotaApplicationInfo {
repayPeriod
:
number
,
// 审批时间
verifyTime
:
string
,
// 最大申请额度
maxApplyQuota
:
number
,
}
|
null
,
};
...
...
@@ -106,7 +108,7 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
left
:
'-20px'
}
}
>
<
div
>
{
quotaInfo
.
a
pplyQuota
}
</
div
>
<
div
>
{
verify
?.
maxA
pplyQuota
}
</
div
>
<
div
>
最高可调额度
</
div
>
...
...
@@ -255,17 +257,17 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
setFieldState
(
'applyQuota'
,
fileState
=>
{
fileState
.
rules
=
fileState
.
rules
.
concat
({
validator
(
value
)
{
return
+
value
>
quotaInfo
.
a
pplyQuota
?
'输入值已超出最大额度'
:
''
;
return
+
value
>
verify
?.
maxA
pplyQuota
?
'输入值已超出最大额度'
:
''
;
}
});
});
setFieldState
(
'quotaSlide'
,
fileState
=>
{
fileState
.
props
[
'x-component-props'
].
max
=
quotaInfo
.
a
pplyQuota
;
fileState
.
props
[
'x-component-props'
].
max
=
verify
?.
maxA
pplyQuota
;
fileState
.
props
[
'x-component-props'
].
marks
=
{
0
:
{
label
:
MinMarks
,
},
[
quotaInfo
.
a
pplyQuota
]:
{
[
verify
?.
maxA
pplyQuota
]:
{
label
:
MaxMarks
,
},
};
...
...
src/pages/payandSettle/creditManage/quotaPr1/index.tsx
View file @
9d77105c
...
...
@@ -41,7 +41,13 @@ const QuotaPr1: React.FC = () => {
>
{
text
}
</
EyePreview
>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
/>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
style=
{
{
marginLeft
:
8
,
}
}
/>
<
div
>
<
ClockCircleOutlined
/>
{
record
.
applyTime
}
</
div
>
...
...
src/pages/payandSettle/creditManage/quotaPr2/index.tsx
View file @
9d77105c
...
...
@@ -41,7 +41,13 @@ const QuotaPr1: React.FC = () => {
>
{
text
}
</
EyePreview
>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
/>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
style=
{
{
marginLeft
:
8
,
}
}
/>
<
div
>
<
ClockCircleOutlined
/>
{
record
.
applyTime
}
</
div
>
...
...
src/pages/payandSettle/creditManage/quotaPr3/index.tsx
View file @
9d77105c
...
...
@@ -41,7 +41,13 @@ const QuotaPr3: React.FC = () => {
>
{
text
}
</
EyePreview
>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
/>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
style=
{
{
marginLeft
:
8
,
}
}
/>
<
div
>
<
ClockCircleOutlined
/>
{
record
.
applyTime
}
</
div
>
...
...
src/pages/payandSettle/creditManage/quotaPrConfirm/index.tsx
View file @
9d77105c
...
...
@@ -41,7 +41,13 @@ const QuotaPrConfirm: React.FC = () => {
>
{
text
}
</
EyePreview
>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
/>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
style=
{
{
marginLeft
:
8
,
}
}
/>
<
div
>
<
ClockCircleOutlined
/>
{
record
.
applyTime
}
</
div
>
...
...
src/pages/payandSettle/creditManage/quotaPrSubmit/index.tsx
View file @
9d77105c
...
...
@@ -41,7 +41,13 @@ const QuotaPrSubmit: React.FC = () => {
>
{
text
}
</
EyePreview
>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
/>
<
StatusTag
type=
"primary"
title=
{
record
.
applyTypeName
}
style=
{
{
marginLeft
:
8
,
}
}
/>
<
div
>
<
ClockCircleOutlined
/>
{
record
.
applyTime
}
</
div
>
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/useBusinessEffects.ts
View file @
9d77105c
...
...
@@ -501,7 +501,7 @@ export const useBusinessEffects = (context, actions) => {
);
const
current
=
originAsyncData
?
originAsyncData
.
find
(
item
=>
item
.
productId
===
goodId
)
:
null
;
if
(
!
current
||
isNaN
(
+
value
)
)
{
if
(
!
current
)
{
return
;
}
...
...
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