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
aa05c754
Commit
aa05c754
authored
Jul 27, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员认证上传营业执照,状态修改,保函证书回显
parent
b3e2bdb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
16 deletions
+69
-16
user.js
src/api/member/user.js
+10
-2
index.vue
src/views/member/user/index.vue
+59
-14
No files found.
src/api/member/user.js
View file @
aa05c754
...
...
@@ -95,8 +95,8 @@ export function memberGetAuthEnterpriseInfo(query) {
export
function
memberUserAuditIdCard
(
query
)
{
return
request
({
url
:
'
/member/user/audit-idcard
'
,
method
:
'
ge
t
'
,
params
:
query
,
method
:
'
pu
t
'
,
data
:
query
,
})
}
...
...
@@ -135,3 +135,11 @@ export function setUserUpdateStatus(data) {
data
:
data
,
})
}
//新增企业
export
function
userCreateAuditEnterprise
(
data
){
return
request
({
url
:
'
/member/user/create-audit-enterprise
'
,
method
:
'
put
'
,
data
:
data
,
})
}
src/views/member/user/index.vue
View file @
aa05c754
...
...
@@ -38,7 +38,7 @@
<el-table-column
label=
"真实姓名"
align=
"center"
prop=
"identityName"
/>
<el-table-column
label=
"区号"
>
<template
v-slot:default =
'scope'
>
{{
scope
.
row
.
areaCode
?
`
+
${scope.row.areaCode
}
`
:
''
}}
{{
scope
.
row
.
areaCode
?
`${scope.row.areaCode
}
`
:
''
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
手机号
"
show
-
overflow
-
tooltip
align
=
"
center
"
prop
=
"
mobile
"
>
...
...
@@ -78,7 +78,7 @@
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
guarantee(scope.row)
"
>
保函
/
证书
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
operationLogFn(scope.row)
"
>
操作日志
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.identityAuditStatus !== 0 && scope.row.identityAuditStatus !== undefined
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row , '1')
"
>
身份证
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.enterpriseAuditStatus !== 0 && scope.row.enterpriseAuditStatus !== undefined
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row, '2')
"
>
营业执照
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row, '2')
"
>
营业执照
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
deleteFn(scope.row)
"
>
删
除
<
/el-button
>
<
/template
>
<
/el-table-column
>
...
...
@@ -157,14 +157,14 @@
<
el
-
form
-
item
label
=
"
审核状态
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
IdDetails
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核时间
"
>
<
el
-
form
-
item
label
=
"
审核时间
"
v
-
if
=
"
IdDetails.status === 2 || IdDetails.status === 3
"
>
{{
parseTime
(
IdDetails
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
IdDetails.status ===
0
"
label
=
"
审核备注
"
>
<
el
-
input
v
-
model
=
"
IdDetails.auditRemark
"
:
disabled
=
"
IdDetails.status ===
2
"
type
=
"
textarea
"
><
/el-input
>
<
el
-
form
-
item
v
-
if
=
"
IdDetails.status ===
1 || IdDetails.status === 3
"
label
=
"
审核备注
"
>
<
el
-
input
v
-
model
=
"
IdDetails.auditRemark
"
:
disabled
=
"
IdDetails.status ===
3
"
type
=
"
textarea
"
><
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
div
v
-
if
=
"
IdDetails.status ===
0
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
div
v
-
if
=
"
IdDetails.status ===
1
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
idCardAuditFn(2)
"
>
审核通过
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
idCardAuditFn(3)
"
>
审核不通过
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
...
...
@@ -175,7 +175,7 @@
<
/div
>
<
/div
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
营业执照
"
name
=
"
2
"
v
-
if
=
"
this.publicObj && this.publicObj.enterpriseAuditStatus !== 0 && this.publicObj.enterpriseAuditStatus !== undefined
"
>
<
el
-
tab
-
pane
label
=
"
营业执照
"
name
=
"
2
"
>
<
div
style
=
"
width: 500px;padding:0 40px;box-sizing: border-box;
"
>
<
el
-
form
:
rules
=
"
rulesEnterprise
"
:
model
=
"
enterpriseFrom
"
label
-
position
=
"
left
"
ref
=
"
formEnter
"
label
-
width
=
"
100px
"
>
<
el
-
form
-
item
label
=
"
企业名称
"
prop
=
"
name
"
>
...
...
@@ -198,17 +198,24 @@
<
ImageUpload
:
isShowTip
=
"
false
"
:
limit
=
"
1
"
v
-
model
=
"
enterpriseFrom.img2
"
><
/ImageUpload
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核状态
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
enterpriseFrom
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核时间
"
>
{{
parseTime
(
enterpriseFrom
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
enterpriseFrom.status === 2 || enterpriseFrom.status === 3
"
label
=
"
审核时间
"
>
{{
parseTime
(
enterpriseFrom
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
enterpriseFrom.status === 1 || enterpriseFrom.status === 3
"
label
=
"
审核备注
"
>
<
el
-
input
v
-
model
=
"
enterpriseFrom.auditRemark
"
:
disabled
=
"
enterpriseFrom.status === 3
"
type
=
"
textarea
"
><
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
div
v
-
if
=
"
enterpriseFrom.status ===
0 || enterpriseFrom.status === 3
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
div
v
-
if
=
"
enterpriseFrom.status ===
1
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
certificateVerificationFn(2)
"
>
审核通过
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
certificateVerificationFn(3)
"
>
审核不通过
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
/div
>
<
div
v
-
if
=
"
enterpriseFrom.status === 2
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
div
v
-
if
=
"
enterpriseFrom.status === 2
|| enterpriseFrom.status === 3
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
setMemberUserUpdateEnterprise
"
>
修
改
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
/div
>
<
div
v
-
if
=
"
enterpriseFrom.status === 0
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
submit
"
>
上
传
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
/div
>
<
/div
>
<
/el-tab-pane
>
<
/el-tabs
>
...
...
@@ -230,7 +237,7 @@ import {
memberGetAuthEnterpriseInfo
,
memberUserAuditIdCard
,
memberUserUpdateIdCard
,
memberUserUpdateEnterprise
,
setUserUpdateStatus
memberUserUpdateEnterprise
,
setUserUpdateStatus
,
userCreateAuditEnterprise
}
from
"
@/api/member/user
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
FileUpload
from
"
@/components/FileUpload
"
...
...
@@ -391,7 +398,7 @@ export default {
auditTime
:
undefined
,
cardNumber
:
undefined
,
createTime
:
undefined
,
id
:
0
,
id
:
undefined
,
img1
:
undefined
,
img2
:
undefined
,
legalName
:
undefined
,
...
...
@@ -416,6 +423,7 @@ export default {
guarantee
(
row
)
{
this
.
publicObj
=
row
;
this
.
guaranteeShow
=
true
;
this
.
guaranteeUrl
=
row
.
backLetterImg
;
}
,
// 操作日志
operationLogFn
(
row
){
...
...
@@ -526,7 +534,15 @@ export default {
memberUserUpdateIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
this
.
IdDetails
.
status
===
3
){
this
.
getIdentityDetails
()
this
.
$confirm
(
'
是否要将当前状态修改为审核成功?
'
,
'
状态修改
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
this
.
idCardAuditFn
(
2
);
}
).
catch
(()
=>
{
this
.
getIdentityDetails
()
}
);
}
this
.
getList
()
this
.
$message
.
success
(
'
修改成功
'
);
...
...
@@ -550,7 +566,15 @@ export default {
memberUserUpdateEnterprise
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
this
.
enterpriseFrom
.
status
===
3
){
this
.
getEnterpriseFn
();
this
.
$confirm
(
'
是否要将当前状态修改为审核成功?
'
,
'
状态修改
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}
).
then
(()
=>
{
this
.
certificateVerificationFn
(
2
);
}
).
catch
(()
=>
{
this
.
getEnterpriseFn
();
}
);
}
this
.
getList
()
this
.
$message
.
success
(
'
修改成功
'
);
...
...
@@ -569,6 +593,27 @@ export default {
}
else
if
(
row
.
enterpriseAuditRemark
>=
0
){
return
'
营业
'
}
}
,
submit
(){
let
p
=
{
cardNumber
:
this
.
enterpriseFrom
.
cardNumber
,
img1
:
this
.
enterpriseFrom
.
img1
,
img2
:
this
.
enterpriseFrom
.
img2
,
legalName
:
this
.
enterpriseFrom
.
legalName
,
name
:
this
.
enterpriseFrom
.
name
,
userEnterpriseAuthId
:
this
.
enterpriseFrom
.
id
,
userId
:
this
.
publicObj
.
id
}
userCreateAuditEnterprise
(
p
).
then
(
r
=>
{
console
.
log
(
r
);
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
添加成功!
'
);
this
.
enterpriseFrom
.
status
=
3
this
.
enterpriseFrom
.
auditTime
=
new
Date
().
getTime
()
}
}
)
}
}
,
watch
:{
...
...
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