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
陈智峰
jinfa-platform
Commits
da292250
Commit
da292250
authored
Jan 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加采购商内部状态相关
parent
e28d6cb4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
7 deletions
+30
-7
index.ts
src/constants/index.ts
+15
-1
constant.ts
src/pages/payandSettle/constant.ts
+9
-0
index.tsx
...dSettle/creditApplication/components/DetailInfo/index.tsx
+2
-2
index.tsx
...s/payandSettle/creditApplication/quotaFormQuery/index.tsx
+2
-2
index.tsx
...es/payandSettle/creditApplication/quotaPrSubmit/index.tsx
+2
-2
No files found.
src/constants/index.ts
View file @
da292250
...
...
@@ -1240,7 +1240,7 @@ export const BILL_TRADE_OPERATION = {
[
BILL_TRADE_OPERATION_REPAYMENT
]:
'还款'
,
};
// 授信内部状态
// 授信内部状态
(上级)
/**
* 待提交审核
*/
...
...
@@ -1299,6 +1299,20 @@ export const CREDIT_INNER_STATUS = {
[
CREDIT_INNER_STATUS_CONFIRM_SUCCESS
]:
'审核通过'
,
};
// 授信内部状态(下级)
/**
* 待提交
*/
export
const
CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER
=
1
;
/**
* 已提交
*/
export
const
CREDIT_INNER_STATUS_COMMITTED_PURCHASER
=
2
;
export
const
CREDIT_INNER_STATUS_PURCHASER
=
{
[
CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER
]:
'待提交'
,
[
CREDIT_INNER_STATUS_COMMITTED_PURCHASER
]:
'已提交'
,
};
// 授信外部状态
/**
* 待提交
...
...
src/pages/payandSettle/constant.ts
View file @
da292250
...
...
@@ -31,6 +31,9 @@ import {
CREDIT_STATUS_APPLYING
,
CREDIT_STATUS_NORMAL
,
CREDIT_STATUS_FROZEN
,
CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER
,
CREDIT_INNER_STATUS_COMMITTED_PURCHASER
,
}
from
'@/constants'
;
// 授信状态 Badge map
...
...
@@ -95,6 +98,12 @@ export const CREDIT_INNER_STATUS_BADGE_MAP = {
[
CREDIT_INNER_STATUS_FAILED
]:
'#EF6260'
,
};
// 授信内部部状态 Badge map
export
const
CREDIT_INNER_STATUS_BADGE_MAP_PURCHASER
=
{
[
CREDIT_INNER_STATUS_UNCOMMITTED_PURCHASER
]:
'#669EDE'
,
[
CREDIT_INNER_STATUS_COMMITTED_PURCHASER
]:
'#41CC9E'
,
};
/**
* 资金账户相关常量
...
...
src/pages/payandSettle/creditApplication/components/DetailInfo/index.tsx
View file @
da292250
...
...
@@ -18,7 +18,7 @@ import { CREDIT_INNER_STATUS, CREDIT_OUTER_STATUS, CREDIT_STATUS } from '@/const
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
{
CREDIT_STATUS_TAG_MAP
,
CREDIT_OUTER_STATUS_TAG_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
}
from
'../../../constant'
;
import
{
CREDIT_STATUS_TAG_MAP
,
CREDIT_OUTER_STATUS_TAG_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
}
from
'../../../constant'
;
const
OuterCirculation
=
React
.
lazy
(()
=>
import
(
'../OuterCirculation'
));
const
QuotaApplicationInfo
=
React
.
lazy
(()
=>
import
(
'../QuotaApplicationInfo'
));
...
...
@@ -170,7 +170,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<
StatusTag
type=
{
CREDIT_OUTER_STATUS_TAG_MAP
[
quotaInfo
?.
member
.
outerStatus
]
}
title=
{
CREDIT_OUTER_STATUS
[
quotaInfo
?.
member
.
outerStatus
]
}
/>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"内部状态"
>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
[
quotaInfo
?.
member
.
innerStatus
]
||
'#606266'
}
text=
{
CREDIT_INNER_STATUS
[
quotaInfo
?.
member
.
innerStatus
]
}
/>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
[
quotaInfo
?.
member
.
innerStatus
]
||
'#606266'
}
text=
{
CREDIT_INNER_STATUS
[
quotaInfo
?.
member
.
innerStatus
]
}
/>
</
Descriptions
.
Item
>
</
Descriptions
>
</
PageHeader
>
...
...
src/pages/payandSettle/creditApplication/quotaFormQuery/index.tsx
View file @
da292250
...
...
@@ -19,7 +19,7 @@ import StatusTag from '@/components/StatusTag';
import
{
listSearchSchema
}
from
'./schema'
;
import
{
CREDIT_OUTER_STATUS_TAG_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
,
}
from
'../../constant'
;
import
styles
from
'./index.less'
;
...
...
@@ -94,7 +94,7 @@ const QuotaFormQuery: React.FC = () => {
align
:
'center'
,
filters
:
[],
onFilter
:
(
value
,
record
)
=>
record
.
innerStatus
===
value
,
render
:
(
text
,
record
)
=>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
[
record
.
innerStatus
]
||
'#606266'
}
text=
{
text
}
/>,
render
:
(
text
,
record
)
=>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
[
record
.
innerStatus
]
||
'#606266'
}
text=
{
text
}
/>,
},
];
...
...
src/pages/payandSettle/creditApplication/quotaPrSubmit/index.tsx
View file @
da292250
...
...
@@ -29,7 +29,7 @@ import {
}
from
'@/constants'
;
import
{
CREDIT_OUTER_STATUS_TAG_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
,
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
,
}
from
'../../constant'
;
import
styles
from
'./index.less'
;
...
...
@@ -136,7 +136,7 @@ const QuotaPrSubmit: React.FC = () => {
title
:
'内部状态'
,
dataIndex
:
'innerStatus'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
[
record
.
innerStatus
]
||
'#606266'
}
text=
{
record
.
innerStatusName
}
/>,
render
:
(
text
,
record
)
=>
<
Badge
color=
{
CREDIT_INNER_STATUS_BADGE_MAP
_PURCHASER
[
record
.
innerStatus
]
||
'#606266'
}
text=
{
record
.
innerStatusName
}
/>,
},
{
title
:
'操作'
,
...
...
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