Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
caa9dd62
Commit
caa9dd62
authored
Aug 27, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员认证修改
parent
0e82810f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
61 deletions
+71
-61
index.vue
src/views/member/user/index.vue
+71
-61
No files found.
src/views/member/user/index.vue
View file @
caa9dd62
...
...
@@ -244,7 +244,7 @@ import FileUpload from "@/components/FileUpload"
import
ImageUpload
from
"
@/components/ImageUpload
"
;
import
uploadImage
from
"
@/components/UploadImage
"
;
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
import
{
changeUserStatus
,
listServiceUser
,
listSimpleUsers
}
from
"
@/api/system/user
"
;
let
stateId
=
{
0
:
'
审核中
'
,
...
...
@@ -492,11 +492,12 @@ export default {
userCardAuthId
:
this
.
IdDetails
.
id
,
auditRemark
:
this
.
IdDetails
.
auditRemark
}
if
(
val
===
3
){
if
(
val
===
2
){
p
.
auditRemark
=
undefined
}
memberUserAuditIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
修改成功
'
);
this
.
getList
()
this
.
getIdentityDetails
()
}
...
...
@@ -509,7 +510,7 @@ export default {
userCardAuthId
:
this
.
enterpriseFrom
.
id
,
auditRemark
:
this
.
enterpriseFrom
.
auditRemark
}
if
(
val
===
3
){
if
(
val
===
2
){
p
.
auditRemark
=
undefined
}
memberUserAuditEnterprise
(
p
).
then
(
r
=>
{
...
...
@@ -520,8 +521,7 @@ export default {
}
)
}
,
setMemberUserUpdateIdCard
(){
this
.
$refs
.
formId
.
validate
(
valid
=>
{
if
(
valid
){
this
.
$refs
.
formId
.
validate
(
async
valid
=>
{
let
p
=
{
cardNumber
:
this
.
IdDetails
.
cardNumber
,
cardType
:
this
.
IdDetails
.
cardType
,
...
...
@@ -529,31 +529,38 @@ export default {
img2
:
this
.
IdDetails
.
img2
,
name
:
this
.
IdDetails
.
name
,
userCardAuthId
:
this
.
IdDetails
.
id
,
auditPass
:
this
.
IdDetails
.
status
===
3
?
true
:
false
,
}
;
memberUserUpdateIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
this
.
IdDetails
.
status
===
3
){
}
;
if
(
valid
&&
this
.
IdDetails
.
status
===
3
){
let
res
=
await
new
Promise
((
resolve
)
=>
{
this
.
$confirm
(
'
是否要将当前状态修改为审核成功?
'
,
'
状态修改
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
this
.
idCardAuditFn
(
2
);
}
).
catch
(()
=>
{
}
).
then
(
r
=>
{
resolve
(
r
)
}
).
catch
((
r
)
=>
{
resolve
(
r
)
}
)
}
)
p
.
auditPass
=
res
===
'
confirm
'
?
true
:
false
;
}
else
if
(
valid
)
{
p
.
auditPass
=
false
;
}
else
{
return
}
memberUserUpdateIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
修改成功
'
)
if
(
p
.
auditPass
===
true
){
this
.
getIdentityDetails
()
}
);
}
this
.
getList
()
this
.
$message
.
success
(
'
修改成功
'
);
}
}
)
}
}
)
}
,
setMemberUserUpdateEnterprise
(){
this
.
$refs
.
formEnter
.
validate
(
valid
=>
{
if
(
valid
){
this
.
$refs
.
formEnter
.
validate
(
async
valid
=>
{
let
p
=
{
cardNumber
:
this
.
enterpriseFrom
.
cardNumber
,
img1
:
this
.
enterpriseFrom
.
img1
,
...
...
@@ -561,26 +568,30 @@ export default {
legalName
:
this
.
enterpriseFrom
.
legalName
,
name
:
this
.
enterpriseFrom
.
name
,
userEnterpriseAuthId
:
this
.
enterpriseFrom
.
id
,
auditPass
:
this
.
enterpriseFrom
.
status
===
3
?
true
:
false
,
}
memberUserUpdateEnterprise
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
this
.
enterpriseFrom
.
status
===
3
){
if
(
valid
&&
this
.
enterpriseFrom
.
status
===
3
){
let
res
=
await
new
Promise
((
resolve
)
=>
{
this
.
$confirm
(
'
是否要将当前状态修改为审核成功?
'
,
'
状态修改
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
this
.
certificateVerificationFn
(
2
);
}
).
catch
(()
=>
{
}
).
then
(
r
=>
resolve
(
r
)).
catch
(
r
=>
resolve
(
r
))
}
)
p
.
auditPass
=
res
===
'
confirm
'
?
true
:
false
;
}
else
if
(
valid
){
p
.
auditPass
=
false
;
}
else
{
return
}
memberUserUpdateEnterprise
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
p
.
auditPass
===
3
){
this
.
getEnterpriseFn
();
}
);
}
this
.
getList
()
this
.
$message
.
success
(
'
修改成功
'
);
}
}
)
}
}
)
}
,
authentication
(
row
){
...
...
@@ -608,10 +619,9 @@ export default {
console
.
log
(
r
);
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
添加成功!
'
);
this
.
enterpriseFrom
.
status
=
3
this
.
enterpriseFrom
.
status
=
2
this
.
enterpriseFrom
.
auditTime
=
new
Date
().
getTime
()
this
.
getEnterpriseFn
();
}
}
)
}
...
...
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