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
e4ca589c
Commit
e4ca589c
authored
Jun 04, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对接 待确认会员信息变更 相关
parent
53645b85
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
48 deletions
+53
-48
verifyComingSchema.ts
src/pages/member/common/schames/verifyComingSchema.ts
+0
-12
detail.tsx
src/pages/member/memberPrVerifyChangeConfirm/detail.tsx
+9
-9
index.tsx
src/pages/member/memberPrVerifyChangeConfirm/index.tsx
+13
-16
verify.tsx
src/pages/member/memberPrVerifyChangeConfirm/verify.tsx
+31
-11
No files found.
src/pages/member/common/schames/verifyComingSchema.ts
View file @
e4ca589c
...
...
@@ -69,18 +69,6 @@ const verifyComingSchema: ISchema = {
},
},
},
source
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'申请来源(全部)'
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
...
...
src/pages/member/memberPrVerifyChangeConfirm/detail.tsx
View file @
e4ca589c
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:33
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
5-26 10:38:08
* @LastEditTime: 2021-0
6-04 14:26:56
* @Description: 待确认会员变更详情
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -13,7 +13,7 @@ import {
}
from
'antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMember
AbilityMaintenanceDetailBasicResponse
}
from
'@/services/Member
Api'
;
import
{
GetMember
ModifyConfirmDetailResponse
}
from
'@/services/MemberV2
Api'
;
import
{
MEMBER_TYPE_CHANNEL_CORPORATE
,
MEMBER_TYPE_CHANNEL_INDIVIDUAL
,
...
...
@@ -33,17 +33,16 @@ import MemberDocIncomingInfo from '../components/MemberDocIncomingInfo';
import
MemberDocQualification
from
'../components/MemberDocQualification'
;
const
MemberPrVerifyChangeConfirmDetail
:
React
.
FC
<
{}
>
=
()
=>
{
const
{
id
,
validateId
}
=
usePageStatus
();
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMember
AbilityMaintenanceDetailBasic
Response
>
(
null
);
const
{
validateId
}
=
usePageStatus
();
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMember
ModifyConfirmDetail
Response
>
(
null
);
const
[
infoLoading
,
setInfoLoaading
]
=
useState
(
false
);
const
getBasicInfo
=
()
=>
{
if
(
!
id
||
!
validateId
)
{
if
(
!
validateId
)
{
return
;
}
setInfoLoaading
(
true
);
PublicApi
.
getMemberAbilityMaintenanceDetailBasic
({
memberId
:
id
,
PublicApi
.
getMemberModifyConfirmDetail
({
validateId
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
@@ -131,7 +130,7 @@ const MemberPrVerifyChangeConfirmDetail: React.FC<{}> = () => {
outerStatusName
:
memberInfo
?.
outerStatusName
,
levelTag
:
memberInfo
?.
levelTag
,
email
:
memberInfo
?.
email
,
createTime
:
memberInfo
?.
create
Time
,
createTime
:
memberInfo
?.
register
Time
,
}
}
id=
"basicInfo"
/>
...
...
@@ -160,10 +159,11 @@ const MemberPrVerifyChangeConfirmDetail: React.FC<{}> = () => {
{
/* 入库信息 */
}
<
Col
span=
{
24
}
>
<
MemberDocIncomingInfo
dataSource=
{
memberInfo
?.
depositDetails
}
id=
"incomingInfo"
/>
</
Col
>
{
/* 资质证明 */
}
<
Col
span=
{
24
}
>
<
MemberDocQualification
...
...
src/pages/member/memberPrVerifyChangeConfirm/index.tsx
View file @
e4ca589c
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:20
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
5-26 10:37:5
7
* @LastEditTime: 2021-0
6-04 14:25:1
7
* @Description: 待确认会员变更
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -28,11 +28,10 @@ const formActions = createFormActions();
const
MemberPrVerifyChangeConfrim
:
React
.
FC
<
{}
>
=
props
=>
{
const
ref
=
useRef
<
any
>
({});
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([]);
const
[
selectedList
,
setSelectList
]
=
useState
<
any
>
([]);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
number
[]
>
([]);
const
handleJumpAudit
=
record
=>
{
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/verify?
id=
${
record
.
memberId
}
&
validateId=
${
record
.
validateId
}
`
);
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/verify?validateId=
${
record
.
validateId
}
`
);
};
const
defaultColumns
=
verifyComingColumn
(
'/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/detail'
).
concat
([
...
...
@@ -54,9 +53,8 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
const
[
columns
,
columnsHandle
]
=
useSpliceArray
<
ColumnType
<
any
>>
(
defaultColumns
);
const
rowSelection
=
{
onChange
:
(
keys
:
any
,
rows
:
{}
[])
=>
{
onChange
:
(
keys
:
number
[])
=>
{
setSelectedRowKeys
(
keys
);
setSelectList
(
rows
);
},
selectedRowKeys
:
selectedRowKeys
,
};
...
...
@@ -72,7 +70,7 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
payload
.
endDate
=
moment
(
+
endDate
).
format
(
'YYYY-MM-DD'
);
}
const
res
=
await
PublicApi
.
getMember
AbilityMaintenance
Page
(
payload
);
const
res
=
await
PublicApi
.
getMember
ModifyConfirm
Page
(
payload
);
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
...
...
@@ -81,7 +79,7 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
};
const
handleBatch
=
()
=>
{
if
(
!
selected
List
.
length
)
{
if
(
!
selected
RowKeys
.
length
)
{
message
.
warning
(
'未选择任何会员'
);
return
;
}
...
...
@@ -90,9 +88,10 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
icon
:
<
QuestionCircleOutlined
/>,
content
:
'确定要审核通过选中的会员吗?'
,
onOk
()
{
const
members
=
selectedList
.
map
(
item
=>
({
memberId
:
item
.
memberId
,
validateId
:
item
.
validateId
}));
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
PublicApi
.
postMemberAbilityValidateCommitBatch
(
members
)
PublicApi
.
postMemberModifyConfirmBatch
({
validateIds
:
selectedRowKeys
,
})
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
...
...
@@ -111,14 +110,13 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
// 初始化高级筛选选项
const
fetchSearchItems
=
async
()
=>
{
const
res
=
await
PublicApi
.
getMember
AbilityValidateCommitPageitem
s
();
const
res
=
await
PublicApi
.
getMember
ModifyPageCondition
s
();
if
(
res
.
code
===
1000
)
{
const
{
data
=
{}
}:
any
=
res
;
const
{
memberTypes
=
[],
roles
=
[],
sources
=
[],
}
=
data
;
const
memberTypeIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'memberTypeName'
);
...
...
@@ -139,13 +137,12 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
return
{
memberTypeId
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
roleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
source
:
sources
.
map
(
item
=>
({
label
:
item
.
text
,
value
:
item
.
id
})),
};
}
return
{};
};
const
controllerBtns
=
(
const
ControllerBtns
=
()
=>
(
<
Space
>
<
Button
onClick=
{
handleBatch
}
>
批量审核通过
...
...
@@ -167,8 +164,8 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
<
NiceForm
actions=
{
formActions
}
onSubmit=
{
values
=>
ref
.
current
.
reload
(
values
)
}
expressionScope
=
{
{
c
ontrollerBtns
,
components
=
{
{
C
ontrollerBtns
,
}
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
...
...
src/pages/member/memberPrVerifyChangeConfirm/verify.tsx
View file @
e4ca589c
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:37
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
5-26 10:49:39
* @LastEditTime: 2021-0
6-04 14:28:21
* @Description: 确认会员变更
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -15,9 +15,10 @@ import {
import
{
CheckCircleOutlined
,
}
from
'@ant-design/icons'
;
import
{
history
}
from
'umi'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMember
AbilityMaintenanceDetailBasicResponse
}
from
'@/services/Member
Api'
;
import
{
GetMember
ModifyConfirmDetailResponse
}
from
'@/services/MemberV2
Api'
;
import
{
MEMBER_TYPE_CHANNEL_CORPORATE
,
MEMBER_TYPE_CHANNEL_INDIVIDUAL
,
...
...
@@ -35,21 +36,21 @@ import MemberBasicInfo from '../components/MemberBasicInfo';
import
MemberChannelInfo
from
'../components/MemberChannelInfo'
;
import
MemberDocIncomingInfo
from
'../components/MemberDocIncomingInfo'
;
import
MemberDocQualification
from
'../components/MemberDocQualification'
;
import
VerifyModal
from
'../components/VerifyModal'
;
import
VerifyModal
,
{
ValueType
as
VerifyData
}
from
'../components/VerifyModal'
;
const
MemberPrVerifyChangeConfirmVerify
:
React
.
FC
<
{}
>
=
()
=>
{
const
{
id
,
validateId
}
=
usePageStatus
();
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMember
AbilityMaintenanceDetailBasic
Response
>
(
null
);
const
{
validateId
}
=
usePageStatus
();
const
[
memberInfo
,
setMemberInfo
]
=
useState
<
GetMember
ModifyConfirmDetail
Response
>
(
null
);
const
[
infoLoading
,
setInfoLoaading
]
=
useState
(
false
);
const
[
visibleVerifyModal
,
setVisibleVerifyModal
]
=
useState
(
false
);
const
[
submitLoading
,
setSubmitLoading
]
=
useState
(
false
);
const
getBasicInfo
=
()
=>
{
if
(
!
id
||
!
validateId
)
{
if
(
!
validateId
)
{
return
;
}
setInfoLoaading
(
true
);
PublicApi
.
getMemberAbilityMaintenanceDetailBasic
({
memberId
:
id
,
PublicApi
.
getMemberModifyConfirmDetail
({
validateId
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
@@ -68,8 +69,25 @@ const MemberPrVerifyChangeConfirmVerify: React.FC<{}> = () => {
setVisibleVerifyModal
(
!!
flag
);
};
const
handleSubmit
=
()
=>
{
console
.
log
(
'表单提交'
)
const
handleSubmit
=
(
value
:
VerifyData
)
=>
{
setSubmitLoading
(
true
);
PublicApi
.
postMemberModifyConfirm
({
validateId
,
...
value
,
},
{
timeout
:
0
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
;
}
handleVisibleVerifyModal
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
});
};
const
anchorsArr
=
[
...
...
@@ -154,7 +172,7 @@ const MemberPrVerifyChangeConfirmVerify: React.FC<{}> = () => {
outerStatusName
:
memberInfo
?.
outerStatusName
,
levelTag
:
memberInfo
?.
levelTag
,
email
:
memberInfo
?.
email
,
createTime
:
memberInfo
?.
create
Time
,
createTime
:
memberInfo
?.
register
Time
,
}
}
id=
"basicInfo"
/>
...
...
@@ -183,6 +201,7 @@ const MemberPrVerifyChangeConfirmVerify: React.FC<{}> = () => {
{
/* 入库信息 */
}
<
Col
span=
{
24
}
>
<
MemberDocIncomingInfo
dataSource=
{
memberInfo
?.
depositDetails
}
id=
"incomingInfo"
/>
</
Col
>
...
...
@@ -211,6 +230,7 @@ const MemberPrVerifyChangeConfirmVerify: React.FC<{}> = () => {
<
VerifyModal
visible=
{
visibleVerifyModal
}
onClose=
{
()
=>
handleVisibleVerifyModal
(
false
)
}
submitLoading=
{
submitLoading
}
onSubmit=
{
handleSubmit
}
/>
</
Spin
>
...
...
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