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
6c456cef
Commit
6c456cef
authored
Sep 30, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册会员管理国际化
parent
d4d4bcc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
152 additions
and
167 deletions
+152
-167
index.vue
src/views/member/user/index.vue
+98
-106
underReview.vue
src/views/member/user/underReview.vue
+54
-61
No files found.
src/views/member/user/index.vue
View file @
6c456cef
...
...
@@ -3,26 +3,26 @@
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"关键字
"
prop=
"nickname"
>
<el-input
v-model=
"queryParams.searchKey"
placeholder=
"搜索昵称、姓名、手机、Email
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-form-item
:label=
"$t('关键字')
"
prop=
"nickname"
>
<el-input
v-model=
"queryParams.searchKey"
:placeholder=
"$t('搜索昵称、姓名、手机、Email')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"成交
"
prop=
"mobile"
>
<el-form-item
:label=
"$t('成交')
"
prop=
"mobile"
>
<el-select
v-model=
"queryParams.isDeal"
>
<el-option
v-for=
"item in [
{label:
'全部',value:''},{label:'是',value:true},{label:'否'
,value:false}]" :value="item.value" :label="item.label" :key="item.value" >
</el-option>
<el-option
v-for=
"item in [
{label:
$t('全部'),value:''},{label:$t('是'),value:true},{label:$t('否')
,value:false}]" :value="item.value" :label="item.label" :key="item.value" >
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"认证
"
prop=
"password"
>
<el-form-item
:label=
"$t('认证')
"
prop=
"password"
>
<el-select
v-model=
"queryParams.authType"
>
<el-option
v-for=
"item in [
{label:
'全部',value: ''},{label:'营业执照认证',value:1},{label:'身份证认证',value:2},{label:'双认证'
,value:3}]" :key="item.value" :value="item.value" :label="item.label">
</el-option>
<el-option
v-for=
"item in [
{label:
$t('全部'),value: ''},{label:$t('营业执照认证'),value:1},{label:$t('身份证认证'),value:2},{label:$t('双认证')
,value:3}]" :key="item.value" :value="item.value" :label="item.label">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"审核状态
"
prop=
"registerIp"
>
<el-form-item
:label=
"$t('审核状态')
"
prop=
"registerIp"
>
<dict-selector
v-model=
"queryParams.auditStatus"
:type=
"DICT_TYPE.AUDIT_STATUS"
></dict-selector>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
:loading=
"exportLoading"
type=
"primary"
@
click=
"exportFn"
>
导 出
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
<el-button
:loading=
"exportLoading"
type=
"primary"
@
click=
"exportFn"
>
{{
$t
(
'
导 出
'
)
}}
</el-button>
</el-form-item>
</el-form>
...
...
@@ -33,57 +33,57 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"公司名称
"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"用户昵称
"
align=
"center"
prop=
"nickname"
/>
<el-table-column
label=
"真实姓名
"
align=
"center"
prop=
"identityName"
/>
<el-table-column
label=
"区号
"
>
<el-table-column
:label=
"$t('公司名称')
"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
:label=
"$t('用户昵称')
"
align=
"center"
prop=
"nickname"
/>
<el-table-column
:label=
"$t('真实姓名')
"
align=
"center"
prop=
"identityName"
/>
<el-table-column
:label=
"$t('区号')
"
>
<template
v-slot:default =
'scope'
>
+
{{
scope
.
row
.
areaCode
?
`${scope.row.areaCode
}
`
:
''
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
手机号
"
show
-
overflow
-
tooltip
align
=
"
center
"
prop
=
"
mobile
"
>
<
el
-
table
-
column
:
label
=
"
$t('手机号')
"
show
-
overflow
-
tooltip
align
=
"
center
"
prop
=
"
mobile
"
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
成交
"
align
=
"
center
"
prop
=
"
customerStatus
"
show
-
overflow
-
tooltip
>
<
el
-
table
-
column
:
label
=
"
$t('成交')
"
align
=
"
center
"
prop
=
"
customerStatus
"
show
-
overflow
-
tooltip
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
row
.
customerStatus
===
3
?
'
成交
'
:
'
非成交
'
}}
{{
row
.
customerStatus
===
3
?
$t
(
'
成交
'
)
:
$t
(
'
非成交
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
认证
"
align
=
"
center
"
:
formatter
=
"
authentication
"
/>
<
el
-
table
-
column
label
=
"
状态
"
align
=
"
center
"
prop
=
"
status
"
>
<
el
-
table
-
column
:
label
=
"
$t('认证')
"
align
=
"
center
"
:
formatter
=
"
authentication
"
/>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
align
=
"
center
"
prop
=
"
status
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
switch
v
-
model
=
"
scope.row.status
"
:
active
-
value
=
"
0
"
:
inactive
-
value
=
"
1
"
@
change
=
"
handleStatusChange(scope.row)
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
身份证审核状态
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
div
v
-
if
=
"
!scope.row.identityAuditStatus
"
>
未提交
<
/div
>
<
div
v
-
if
=
"
!scope.row.identityAuditStatus
"
>
{{
$t
(
'
未提交
'
)
}}
<
/div
>
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.AUDIT_STATUS
"
:
value
=
"
scope.row.identityAuditStatus
"
><
/dict-tag
>
<
el
-
tooltip
v
-
if
=
"
scope.row.identityAuditStatus === 3
"
class
=
"
item
"
effect
=
"
dark
"
:
content
=
"
scope.row.identityAuditRemark
"
placement
=
"
bottom
"
>
<
i
class
=
"
el-icon-question
"
><
/i
>
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
营业执照审核状态
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
el
-
table
-
column
:
label
=
"
$t('营业执照审核状态')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
div
v
-
if
=
"
!scope.row.enterpriseAuditStatus
"
>
未提交
<
/div
>
<
div
v
-
if
=
"
!scope.row.enterpriseAuditStatus
"
>
{{
$t
(
'
未提交
'
)
}}
<
/div
>
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.AUDIT_STATUS
"
:
value
=
"
scope.row.enterpriseAuditStatus
"
><
/dict-tag
>
<
el
-
tooltip
v
-
if
=
"
scope.row.enterpriseAuditStatus === 3
"
class
=
"
item
"
effect
=
"
dark
"
:
content
=
"
scope.row.rowenterpriseAuditRemark
"
placement
=
"
bottom
"
>
<
i
class
=
"
el-icon-question
"
><
/i
>
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
创建时间
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
el
-
table
-
column
:
label
=
"
$t('创建时间')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
class
-
name
=
"
small-padding fixed-width
"
width
=
"
200px
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
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
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row , '1')
"
>
身份证
<
/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
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
guarantee(scope.row)
"
>
{{
$t
(
'
保函/证书
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
operationLogFn(scope.row)
"
>
{{
$t
(
'
操作日志
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row , '1')
"
>
{{
$t
(
'
身份证
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row, '2')
"
>
{{
$t
(
'
营业执照
'
)
}}
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
deleteFn(scope.row)
"
>
{{
$t
(
'
删 除
'
)
}}
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -96,139 +96,139 @@
:
before
-
close
=
"
()=>{guaranteeUrl = ''; guaranteeShow = false;
}
"
width
=
"
50%
"
>
<
el
-
form
>
<
el
-
form
-
item
label
=
"
保函/证书
"
>
<
el
-
form
-
item
:
label
=
"
$t('保函/证书')
"
>
<
el
-
row
:
gutter
=
"
20
"
type
=
"
flex
"
justify
=
"
center
"
>
<
el
-
col
:
span
=
"
12
"
><
el
-
input
v
-
model
=
"
guaranteeUrl
"
><
/el-input></
el
-
col
>
<
el
-
col
:
span
=
"
4
"
><
div
style
=
"
height: 45px;overflow: hidden;
"
>
<
file
-
upload
v
-
model
=
"
guaranteeUrl
"
:
fileType
=
"
['png', 'jpg', 'jpeg','pdf']
"
:
limit
=
"
1
"
:
isShowTip
=
"
false
"
><
/file-upload
>
<
/div></
el
-
col
>
<
el
-
col
:
span
=
"
6
"
>
<
div
>
可上传图片
,
pdf
文档
<
/div
>
<
div
>
{{
$t
(
'
可上传图片,pdf文档
'
)
}}
<
/div
>
<
/el-col
>
<
/el-row
>
<
/el-form-item
>
<
/el-form
>
<
div
style
=
"
text-align: center;
"
><
el
-
button
@
click
=
"
setGuarantee
"
>
保
存
<
/el-button></
div
>
<
div
style
=
"
text-align: center;
"
><
el
-
button
@
click
=
"
setGuarantee
"
>
{{
$t
(
'
保 存
'
)
}}
<
/el-button></
div
>
<
/el-dialog
>
<
el
-
dialog
title
=
"
操作日志
"
:
title
=
"
$t('操作日志')
"
:
visible
.
sync
=
"
operationLogShow
"
width
=
"
50%
"
>
<
el
-
table
:
data
=
"
operationLogList
"
>
<
el
-
table
-
column
label
=
"
标题
"
prop
=
"
title
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作内容
"
prop
=
"
content
"
><
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作人
"
prop
=
"
userId
"
>
<
el
-
table
-
column
:
label
=
"
$t('标题')
"
prop
=
"
title
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作内容')
"
prop
=
"
content
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作人')
"
prop
=
"
userId
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
list
.
find
(
i
=>
i
.
id
==
row
.
userId
).
identityName
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作时间
"
>
<
el
-
table
-
column
:
label
=
"
$t('操作时间')
"
>
<
template
v
-
slot
:
default
=
"
scope
"
>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作ip
"
prop
=
"
ip
"
><
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作ip')
"
prop
=
"
ip
"
><
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"
totalLog > 0
"
:
total
=
"
totalLog
"
:
page
.
sync
=
"
operationLogFrom.page
"
:
limit
.
sync
=
"
operationLogFrom.row
"
@
pagination
=
"
getOperationLogList
"
/>
<
/el-dialog
>
<
el
-
dialog
title
=
"
认证
"
:
title
=
"
$t('认证')
"
:
visible
.
sync
=
"
attestationShow
"
width
=
"
80%
"
>
<
div
class
=
"
details
"
>
<
el
-
tabs
v
-
model
=
"
activeName
"
@
tab
-
click
=
"
handleClick
"
>
<
el
-
tab
-
pane
label
=
"
身份证
"
name
=
"
1
"
>
<
el
-
tab
-
pane
:
label
=
"
$t('身份证')
"
name
=
"
1
"
>
<
div
style
=
"
padding:0 40px;box-sizing: border-box;
"
>
<
el
-
form
:
disabled
=
"
[2,3].includes(IdDetails.status) && modifyIdCard
"
ref
=
"
formId
"
label
-
position
=
"
left
"
label
-
width
=
"
100px
"
:
rules
=
"
rulesId
"
:
model
=
"
IdDetails
"
>
<
el
-
form
-
item
label
=
"
姓名
"
prop
=
"
name
"
>
<
el
-
form
-
item
:
label
=
"
$t('姓名')
"
prop
=
"
name
"
>
<
el
-
input
v
-
model
=
"
IdDetails.name
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件类型
"
prop
=
"
cardType
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件类型')
"
prop
=
"
cardType
"
>
<
dict
-
selector
v
-
model
=
"
IdDetails.cardType
"
:
type
=
"
DICT_TYPE.CERTIFICATE_TYPE
"
><
/dict-selector
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件号码
"
prop
=
"
cardNumber
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件号码')
"
prop
=
"
cardNumber
"
>
<
el
-
input
v
-
model
=
"
IdDetails.cardNumber
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件正面照
"
prop
=
"
img1
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件正面照')
"
prop
=
"
img1
"
>
<
div
>
<
el
-
input
readonly
style
=
"
margin-bottom: 20px
"
v
-
model
=
"
IdDetails.img1
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
v
-
model
=
"
IdDetails.img1
"
:
limit
=
"
1
"
><
/ImageUpload
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件背面照
"
prop
=
"
img2
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件背面照')
"
prop
=
"
img2
"
>
<
div
>
<
el
-
input
readonly
style
=
"
margin-bottom: 20px
"
v
-
model
=
"
IdDetails.img2
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
:
limit
=
"
1
"
v
-
model
=
"
IdDetails.img2
"
><
/ImageUpload
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核状态
"
v
-
if
=
"
modifyIdCard && IdDetails.status !== 0
"
>
<
el
-
form
-
item
:
label
=
"
$t('审核状态')
"
v
-
if
=
"
modifyIdCard && IdDetails.status !== 0
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
IdDetails
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核时间
"
v
-
if
=
"
[2,3].includes(IdDetails.status) && modifyIdCard
"
>
<
el
-
form
-
item
:
label
=
"
$t('审核时间')
"
v
-
if
=
"
[2,3].includes(IdDetails.status) && modifyIdCard
"
>
{{
parseTime
(
IdDetails
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
modifyIdCard && IdDetails.status !== 0
"
label
=
"
审核备注
"
>
<
el
-
form
-
item
v
-
if
=
"
modifyIdCard && IdDetails.status !== 0
"
:
label
=
"
$t('审核备注')
"
>
<
el
-
input
v
-
model
=
"
IdDetails.auditRemark
"
:
disabled
=
"
IdDetails.status === 3
"
type
=
"
textarea
"
><
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
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
type
=
"
primary
"
@
click
=
"
idCardAuditFn(2)
"
>
{{
$t
(
'
审核通过
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
idCardAuditFn(3)
"
>
{{
$t
(
'
审核不通过
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
/div
>
<
div
v
-
if
=
"
IdDetails.status === 2 || IdDetails.status === 3
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
v
-
if
=
"
modifyIdCard
"
@
click
=
"
modifyIdCard = false;
"
>
修
改
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
else
@
click
=
"
setMemberUserUpdateIdCard
"
>
提交审核
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
if
=
"
modifyIdCard
"
@
click
=
"
modifyIdCard = false;
"
>
{{
$t
(
'
修 改
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
else
@
click
=
"
setMemberUserUpdateIdCard
"
>
{{
$t
(
'
提交审核
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/el-button
>
<
/div
>
<
div
v
-
if
=
"
IdDetails.status === 0
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
submitId
"
>
上
传
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
submitId
"
>
{{
$t
(
'
上 传
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"
营业执照
"
name
=
"
2
"
>
<
el
-
tab
-
pane
:
label
=
"
$t('营业执照')
"
name
=
"
2
"
>
<
div
style
=
"
width: 500px;padding:0 40px;box-sizing: border-box;
"
>
<
el
-
form
:
disabled
=
"
modifyLicense && [2,3].includes(enterpriseFrom.status)
"
:
rules
=
"
rulesEnterprise
"
:
model
=
"
enterpriseFrom
"
label
-
position
=
"
left
"
ref
=
"
formEnter
"
label
-
width
=
"
100px
"
>
<
el
-
form
-
item
label
=
"
企业名称
"
prop
=
"
name
"
>
<
el
-
form
-
item
:
label
=
"
$t('企业名称')
"
prop
=
"
name
"
>
<
el
-
input
v
-
model
=
"
enterpriseFrom.name
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
企业法人
"
prop
=
"
legalName
"
>
<
el
-
form
-
item
:
label
=
"
$t('企业法人')
"
prop
=
"
legalName
"
>
<
el
-
input
v
-
model
=
"
enterpriseFrom.legalName
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件号码
"
prop
=
"
cardNumber
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件号码')
"
prop
=
"
cardNumber
"
>
<
el
-
input
v
-
model
=
"
enterpriseFrom.cardNumber
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件照
"
prop
=
"
img1
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件照')
"
prop
=
"
img1
"
>
<
div
>
<
el
-
input
readonly
style
=
"
margin-bottom: 20px
"
v
-
model
=
"
enterpriseFrom.img1
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
:
limit
=
"
1
"
v
-
model
=
"
enterpriseFrom.img1
"
><
/ImageUpload
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
附件
"
>
<
el
-
form
-
item
:
label
=
"
$t('附件')
"
>
<
el
-
input
readonly
v
-
model
=
"
enterpriseFrom.img2
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
:
limit
=
"
1
"
v
-
model
=
"
enterpriseFrom.img2
"
><
/ImageUpload
>
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
modifyLicense && enterpriseFrom.status !== 0
"
label
=
"
审核状态
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
enterpriseFrom
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
[2,3].includes(enterpriseFrom.status) && modifyLicense
"
label
=
"
审核时间
"
>
{{
parseTime
(
enterpriseFrom
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
modifyLicense && enterpriseFrom.status !== 0
"
label
=
"
审核备注
"
>
<
el
-
form
-
item
v
-
if
=
"
modifyLicense && enterpriseFrom.status !== 0
"
:
label
=
"
$t('审核状态')
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
enterpriseFrom
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
[2,3].includes(enterpriseFrom.status) && modifyLicense
"
:
label
=
"
$t('审核时间')
"
>
{{
parseTime
(
enterpriseFrom
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
modifyLicense && enterpriseFrom.status !== 0
"
:
label
=
"
$t('审核备注')
"
>
<
el
-
input
v
-
model
=
"
enterpriseFrom.auditRemark
"
:
disabled
=
"
enterpriseFrom.status === 3
"
type
=
"
textarea
"
><
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
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
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
certificateVerificationFn(2)
"
>
{{
$t
(
'
审核通过
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
certificateVerificationFn(3)
"
>
{{
$t
(
'
审核不通过
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/el-button
>
<
/div
>
<
div
v
-
if
=
"
enterpriseFrom.status === 2 || enterpriseFrom.status === 3
"
style
=
"
text-align: center;margin-top: 20px;
"
>
<
el
-
button
type
=
"
primary
"
v
-
if
=
"
modifyLicense
"
@
click
=
"
modifyLicense = false
"
>
修
改
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
else
@
click
=
"
setMemberUserUpdateEnterprise
"
>
提交审核
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
取
消
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
if
=
"
modifyLicense
"
@
click
=
"
modifyLicense = false
"
>
{{
$t
(
'
修 改
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
v
-
else
@
click
=
"
setMemberUserUpdateEnterprise
"
>
{{
$t
(
'
提交审核
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/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
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
submit
"
>
{{
$t
(
'
上 传
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
/el-tab-pane
>
...
...
@@ -263,13 +263,6 @@ import ImageUpload from "@/components/ImageUpload";
import
uploadImage
from
"
@/components/UploadImage
"
;
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
,
listServiceUser
,
listSimpleUsers
}
from
"
@/api/system/user
"
;
let
stateId
=
{
0
:
'
审核中
'
,
1
:
'
审核通过
'
,
2
:
'
审核不通过
'
,
3
:
'
已过期
'
}
export
default
{
name
:
"
User
"
,
components
:
{
...
...
@@ -279,7 +272,6 @@ export default {
data
()
{
return
{
totalLog
:
0
,
stateId
,
IdDetails
:{
}
,
enterpriseFrom
:{
}
,
guaranteeUrl
:
undefined
,
...
...
@@ -316,17 +308,17 @@ export default {
form
:
{
}
,
// 表单校验
rulesId
:
{
name
:
[{
required
:
true
,
message
:
"
用户昵称不能为空
"
,
trigger
:
"
blur
"
}
],
cardType
:
[{
required
:
true
,
message
:
"
证件类型不能为空
"
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
"
证件号码不能为空
"
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
"
身份正面照不能为空
"
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
img2
:
[{
required
:
true
,
message
:
"
身份正面照不能为空
"
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
用户昵称不能为空
'
)
,
trigger
:
"
blur
"
}
],
cardType
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件类型不能为空
'
)
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件号码不能为空
'
)
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
this
.
$t
(
'
身份正面照不能为空
'
)
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
img2
:
[{
required
:
true
,
message
:
this
.
$t
(
'
身份正面照不能为空
'
)
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
}
,
rulesEnterprise
:
{
name
:
[{
required
:
true
,
message
:
"
企业名称不能为空
"
,
trigger
:
"
blur
"
}
],
legalName
:
[{
required
:
true
,
message
:
"
企业法人不能为空
"
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
"
证件号码不能为空
"
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
"
证件照不能为空
"
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
企业名称不能为空
'
)
,
trigger
:
"
blur
"
}
],
legalName
:
[{
required
:
true
,
message
:
this
.
$t
(
'
企业法人不能为空
'
)
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件号码不能为空
'
)
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件照不能为空
'
)
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
}
,
publicObj
:
undefined
,
operationLogShow
:
false
,
...
...
@@ -350,33 +342,33 @@ export default {
methods
:
{
deleteFn
(
row
){
console
.
log
(
row
)
this
.
$modal
.
confirm
(
`
是否要删除昵称为
${row.nickname
}
的会员`
).
then
(
function
(){
this
.
$modal
.
confirm
(
`
${this.$t('是否要删除昵称为')
}
${row.nickname
}
的会员`
).
then
(
function
(){
return
deleteUser
(
row
.
id
)
}
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
this
.
getList
();
this
.
$message
.
success
(
'
删除成功
'
)
if
(
res
.
code
===
0
)
this
.
getList
();
this
.
$message
.
success
(
this
.
$t
(
'
删除成功
'
)
)
}
).
catch
(()
=>
{
this
.
$message
.
success
(
'
删除失败
'
)
this
.
$message
.
success
(
this
.
$t
(
'
删除失败
'
)
)
}
)
}
,
//导出
exportFn
(){
this
.
$modal
.
confirm
(
'
是否确认导出所有用户数据项?
'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有用户数据项?
'
)
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportUserExcel
(
this
.
queryParams
);
}
).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
${table.classComment
}
.xls
'
);
this
.
$download
.
excel
(
response
,
`${this.$t('注册会员')
}
.xls`
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
,
// 用户状态修改
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要"
'
+
text
+
'
""
'
+
row
.
nickname
+
'
"用户吗?
'
).
then
(
function
()
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
this
.
$t
(
'
启用
'
)
:
this
.
$t
(
'
停用
'
)
;
this
.
$modal
.
confirm
(
this
.
$t
(
'
确认要"
'
)
+
text
+
'
""
'
+
row
.
nickname
+
this
.
$t
(
'
"用户吗?
'
)
).
then
(
function
()
{
return
setUserUpdateStatus
({
id
:
row
.
id
,
status
:
row
.
status
}
)
}
).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
this
.
$modal
.
msgSuccess
(
text
+
this
.
$t
(
'
成功
'
)
);
}
).
catch
(
function
()
{
row
.
status
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
;
...
...
@@ -468,7 +460,7 @@ export default {
if
(
r
.
code
===
0
){
this
.
publicObj
.
backLetterImg
=
this
.
guaranteeUrl
;
this
.
guaranteeShow
=
false
;
this
.
$message
.
success
(
'
保存成功
'
);
this
.
$message
.
success
(
this
.
$t
(
'
保存成功
'
)
);
}
}
)
}
,
...
...
@@ -514,7 +506,7 @@ export default {
}
memberUserAuditIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
修改成功
'
);
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
)
);
this
.
getList
()
this
.
getIdentityDetails
()
}
...
...
@@ -548,7 +540,7 @@ export default {
}
;
memberUserUpdateIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
修改成功
'
)
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
)
)
if
(
p
.
auditPass
===
true
){
this
.
getIdentityDetails
()
}
...
...
@@ -578,7 +570,7 @@ export default {
}
this
.
getList
()
this
.
modifyLicense
=
true
;
this
.
$message
.
success
(
'
修改成功
'
);
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
)
);
}
}
)
}
...
...
@@ -586,13 +578,13 @@ export default {
}
,
authentication
(
row
){
if
(
!
row
.
identityAuditStatus
&&
!
row
.
enterpriseAuditRemark
){
return
'
否
'
return
this
.
$t
(
'
否
'
)
}
else
if
(
row
.
identityAuditStatus
>=
0
&&
row
.
enterpriseAuditRemark
>=
0
){
return
'
双认证
'
return
this
.
$t
(
'
双认证
'
)
}
else
if
(
row
.
identityAuditStatus
>=
0
){
return
'
身份
'
return
this
.
$t
(
'
身份
'
)
}
else
if
(
row
.
enterpriseAuditRemark
>=
0
){
return
'
营业
'
return
this
.
$t
(
'
营业
'
)
}
}
,
submit
(){
...
...
@@ -607,7 +599,7 @@ export default {
}
userCreateAuditEnterprise
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
添加成功!
'
);
this
.
$message
.
success
(
this
.
$t
(
'
添加成功!
'
)
);
this
.
enterpriseFrom
.
status
=
2
this
.
enterpriseFrom
.
auditTime
=
new
Date
().
getTime
()
this
.
getEnterpriseFn
();
...
...
@@ -629,7 +621,7 @@ export default {
}
;
createAuditIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
添加成功!
'
);
this
.
$message
.
success
(
this
.
$t
(
'
添加成功!
'
)
);
this
.
IdDetails
.
status
=
2
this
.
IdDetails
.
auditTime
=
new
Date
().
getTime
()
this
.
getIdentityDetails
();
...
...
src/views/member/user/underReview.vue
View file @
6c456cef
...
...
@@ -4,23 +4,23 @@
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"关键字
"
prop=
"nickname"
>
<el-input
v-model=
"queryParams.searchKey"
placeholder=
"搜索昵称、姓名、手机、Email
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-form-item
:label=
"$t('关键字')
"
prop=
"nickname"
>
<el-input
v-model=
"queryParams.searchKey"
:placeholder=
"$t('搜索昵称、姓名、手机、Email')
"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"成交"
prop=
"mobile"
>
<el-select
v-model=
"queryParams.isDeal"
>
<el-option
v-for=
"item in [
{label:
'全部',value:''},{label:'是',value:true},{label:'否'
,value:false}]" :value="item.value" :label="item.label" :key="item.value" >
</el-option>
<el-option
v-for=
"item in [
{label:
$t('全部'),value:''},{label:$t('是'),value:true},{label:$t('否')
,value:false}]" :value="item.value" :label="item.label" :key="item.value" >
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"认证"
prop=
"password"
>
<el-select
v-model=
"queryParams.authType"
>
<el-option
v-for=
"item in [
{label:
'全部',value: ''},{label:'营业执照认证',value:1},{label:'身份证认证',value:2},{label:'双认证'
,value:3}]" :key="item.value" :value="item.value" :label="item.label">
</el-option>
<el-option
v-for=
"item in [
{label:
$t('全部'),value: ''},{label:$t('营业执照认证'),value:1},{label:$t('身份证认证'),value:2},{label:$t('双认证')
,value:3}]" :key="item.value" :value="item.value" :label="item.label">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
:loading=
"exportLoading"
type=
"primary"
@
click=
"exportFn"
>
导 出
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
<el-button
:loading=
"exportLoading"
type=
"primary"
@
click=
"exportFn"
>
{{
$t
(
'
导 出
'
)
}}
</el-button>
</el-form-item>
</el-form>
...
...
@@ -31,19 +31,19 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"公司名称
"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"用户昵称
"
align=
"center"
prop=
"nickname"
/>
<el-table-column
label=
"真实姓名
"
align=
"center"
prop=
"identityName"
/>
<el-table-column
label=
"区号
"
>
<el-table-column
:label=
"$t('公司名称')
"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
:label=
"$t('用户昵称')
"
align=
"center"
prop=
"nickname"
/>
<el-table-column
:label=
"$t('真实姓名')
"
align=
"center"
prop=
"identityName"
/>
<el-table-column
:label=
"$t('区号')
"
>
<template
v-slot:default =
'scope'
>
+
{{
scope
.
row
.
areaCode
?
`${scope.row.areaCode
}
`
:
''
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
手机号
"
show
-
overflow
-
tooltip
align
=
"
center
"
prop
=
"
mobile
"
>
<
el
-
table
-
column
:
label
=
"
$t('手机号')
"
show
-
overflow
-
tooltip
align
=
"
center
"
prop
=
"
mobile
"
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
成交
"
align
=
"
center
"
prop
=
""
show
-
overflow
-
tooltip
>
<
el
-
table
-
column
:
label
=
"
$t('成交')
"
align
=
"
center
"
prop
=
""
show
-
overflow
-
tooltip
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
row
.
customerStatus
===
3
?
'
成交
'
:
'
非成交
'
}}
{{
row
.
customerStatus
===
3
?
$t
(
'
成交
'
)
:
$t
(
'
非成交
'
)
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
认证
"
align
=
"
center
"
:
formatter
=
"
authentication
"
/>
...
...
@@ -52,32 +52,32 @@
<
el
-
switch
v
-
model
=
"
scope.row.status
"
:
active
-
value
=
"
0
"
:
inactive
-
value
=
"
1
"
@
change
=
"
handleStatusChange(scope.row)
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
身份证审核状态
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
el
-
table
-
column
:
label
=
"
$t('身份证审核状态')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
div
v
-
if
=
"
!scope.row.identityAuditStatus
"
>
未提交
<
/div
>
<
div
v
-
if
=
"
!scope.row.identityAuditStatus
"
>
{{
$t
(
'
未提交
'
)
}}
<
/div
>
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.AUDIT_STATUS
"
:
value
=
"
scope.row.identityAuditStatus
"
><
/dict-tag
>
<
el
-
tooltip
v
-
if
=
"
scope.row.identityAuditStatus === 3
"
class
=
"
item
"
effect
=
"
dark
"
:
content
=
"
scope.row.identityAuditRemark
"
placement
=
"
bottom
"
>
<
i
class
=
"
el-icon-question
"
><
/i
>
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
营业执照审核状态
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
el
-
table
-
column
:
label
=
"
$t('营业执照审核状态')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
div
v
-
if
=
"
!scope.row.enterpriseAuditStatus
"
>
未提交
<
/div
>
<
div
v
-
if
=
"
!scope.row.enterpriseAuditStatus
"
>
{{
$t
(
'
未提交
'
)
}}
<
/div
>
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.AUDIT_STATUS
"
:
value
=
"
scope.row.enterpriseAuditStatus
"
><
/dict-tag
>
<
el
-
tooltip
v
-
if
=
"
scope.row.enterpriseAuditStatus === 3
"
class
=
"
item
"
effect
=
"
dark
"
:
content
=
"
scope.row.rowenterpriseAuditRemark
"
placement
=
"
bottom
"
>
<
i
class
=
"
el-icon-question
"
><
/i
>
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
创建时间
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
el
-
table
-
column
:
label
=
"
$t('创建时间')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
class
-
name
=
"
small-padding fixed-width
"
width
=
"
200px
"
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
align
=
"
center
"
class
-
name
=
"
small-padding fixed-width
"
width
=
"
200px
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
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.identityAuditStatus !== 0 && scope.row.identityAuditStatus !== undefined
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
identityFn(scope.row , '1')
"
>
{{
$t
(
'
身份证审核
'
)
}}
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -85,49 +85,49 @@
<
pagination
v
-
show
=
"
total > 0
"
:
total
=
"
total
"
:
page
.
sync
=
"
queryParams.page
"
:
limit
.
sync
=
"
queryParams.rows
"
@
pagination
=
"
getList
"
/>
<
el
-
dialog
title
=
"
认证
"
:
title
=
"
$t('认证')
"
:
visible
.
sync
=
"
attestationShow
"
width
=
"
80%
"
>
<
div
class
=
"
details
"
>
<
el
-
tabs
v
-
model
=
"
activeName
"
>
<
el
-
tab
-
pane
label
=
"
身份证
"
name
=
"
1
"
>
<
el
-
tab
-
pane
:
label
=
"
$t('身份证')
"
name
=
"
1
"
>
<
div
style
=
"
padding:0 40px;box-sizing: border-box;
"
>
<
el
-
form
ref
=
"
formId
"
label
-
position
=
"
left
"
label
-
width
=
"
100px
"
:
rules
=
"
rulesId
"
:
model
=
"
IdDetails
"
>
<
el
-
form
-
item
label
=
"
姓名
"
prop
=
"
name
"
>
<
el
-
form
-
item
:
label
=
"
$t('姓名')
"
prop
=
"
name
"
>
<
el
-
input
v
-
model
=
"
IdDetails.name
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件类型
"
prop
=
"
cardType
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件类型')
"
prop
=
"
cardType
"
>
<
dict
-
selector
v
-
model
=
"
IdDetails.cardType
"
:
type
=
"
DICT_TYPE.CERTIFICATE_TYPE
"
><
/dict-selector
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件号码
"
prop
=
"
cardNumber
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件号码')
"
prop
=
"
cardNumber
"
>
<
el
-
input
v
-
model
=
"
IdDetails.cardNumber
"
><
/el-input
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件正面照
"
prop
=
"
img1
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件正面照')
"
prop
=
"
img1
"
>
<
div
>
<
el
-
input
readonly
style
=
"
margin-bottom: 20px
"
v
-
model
=
"
IdDetails.img1
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
v
-
model
=
"
IdDetails.img1
"
:
limit
=
"
1
"
><
/ImageUpload
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
证件背面照
"
prop
=
"
img2
"
>
<
el
-
form
-
item
:
label
=
"
$t('证件背面照')
"
prop
=
"
img2
"
>
<
div
>
<
el
-
input
readonly
style
=
"
margin-bottom: 20px
"
v
-
model
=
"
IdDetails.img2
"
><
/el-input
>
<
ImageUpload
:
isShowTip
=
"
false
"
:
limit
=
"
1
"
v
-
model
=
"
IdDetails.img2
"
><
/ImageUpload
>
<
/div
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核状态
"
>
<
el
-
form
-
item
:
label
=
"
$t('审核状态')
"
>
{{
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
)[
IdDetails
.
status
].
label
}}
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
审核时间
"
v
-
if
=
"
IdDetails.status === 2 || IdDetails.status === 3
"
>
<
el
-
form
-
item
:
label
=
"
$t('审核时间')
"
v
-
if
=
"
IdDetails.status === 2 || IdDetails.status === 3
"
>
{{
parseTime
(
IdDetails
.
auditTime
)
}}
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
IdDetails.status === 1 || IdDetails.status === 3
"
label
=
"
审核备注
"
>
<
el
-
form
-
item
v
-
if
=
"
IdDetails.status === 1 || IdDetails.status === 3
"
:
label
=
"
$t('审核备注')
"
>
<
el
-
input
v
-
model
=
"
IdDetails.auditRemark
"
:
disabled
=
"
IdDetails.status === 3
"
type
=
"
textarea
"
><
/el-input
>
<
/el-form-item
>
<
/el-form
>
<
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
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
idCardAuditFn(2)
"
>
{{
$t
(
'
审核通过
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
idCardAuditFn(3)
"
>
{{
$t
(
'
审核不通过
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
attestationShow = false
"
>
{{
$t
(
'
取 消
'
)
}}
<
/el-button
>
<
/div
>
<
/div
>
<
/el-tab-pane
>
...
...
@@ -159,12 +159,6 @@ import uploadImage from "@/components/UploadImage";
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
,
listServiceUser
,
listSimpleUsers
}
from
"
@/api/system/user
"
;
let
stateId
=
{
0
:
'
审核中
'
,
1
:
'
审核通过
'
,
2
:
'
审核不通过
'
,
3
:
'
已过期
'
}
export
default
{
name
:
"
underReview
"
,
components
:
{
...
...
@@ -174,7 +168,6 @@ export default {
data
()
{
return
{
totalLog
:
0
,
stateId
,
IdDetails
:{
}
,
enterpriseFrom
:{
}
,
guaranteeUrl
:
undefined
,
...
...
@@ -211,11 +204,11 @@ export default {
form
:
{
}
,
// 表单校验
rulesId
:
{
name
:
[{
required
:
true
,
message
:
"
用户昵称不能为空
"
,
trigger
:
"
blur
"
}
],
cardType
:
[{
required
:
true
,
message
:
"
证件类型不能为空
"
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
"
证件号码不能为空
"
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
"
身份正面照不能为空
"
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
img2
:
[{
required
:
true
,
message
:
"
身份正面照不能为空
"
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
name
:
[{
required
:
true
,
message
:
this
.
$t
(
'
用户昵称不能为空
'
)
,
trigger
:
"
blur
"
}
],
cardType
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件类型不能为空
'
)
,
trigger
:
"
blur
"
}
],
cardNumber
:
[{
required
:
true
,
message
:
this
.
$t
(
'
证件号码不能为空
'
)
,
trigger
:
"
blur
"
}
],
img1
:
[{
required
:
true
,
message
:
this
.
$t
(
'
身份正面照不能为空
'
)
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
img2
:
[{
required
:
true
,
message
:
this
.
$t
(
'
身份正面照不能为空
'
)
,
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
}
,
publicObj
:
undefined
,
operationLogShow
:
false
,
...
...
@@ -237,33 +230,33 @@ export default {
methods
:
{
deleteFn
(
row
){
console
.
log
(
row
)
this
.
$modal
.
confirm
(
`
是否要删除昵称为${row.nickname
}
的会员
`
).
then
(
function
(){
this
.
$modal
.
confirm
(
`
${this.$t('是否要删除昵称为')
}
${row.nickname
}
${this.$t('的会员')
}
`
).
then
(
function
(){
return
deleteUser
(
row
.
id
)
}
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
this
.
getList
();
this
.
$message
.
success
(
'
删除成功
'
)
if
(
res
.
code
===
0
)
this
.
getList
();
this
.
$message
.
success
(
this
.
$t
(
'
删除成功
'
)
)
}
).
catch
(()
=>
{
this
.
$message
.
success
(
'
删除失败
'
)
this
.
$message
.
success
(
this
.
$t
(
'
删除失败
'
)
)
}
)
}
,
//导出
exportFn
(){
this
.
$modal
.
confirm
(
'
是否确认导出所有用户数据项?
'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有用户数据项?
'
)
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportUserExcel
(
this
.
queryParams
);
}
).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
${table.classComment
}
.xls
'
);
this
.
$download
.
excel
(
response
,
`${this.$t('待审核会员')
}
.xls`
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
,
// 用户状态修改
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要"
'
+
text
+
'
""
'
+
row
.
nickname
+
'
"用户吗?
'
).
then
(
function
()
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
this
.
$t
(
'
启用
'
)
:
this
.
$t
(
'
停用
'
)
;
this
.
$modal
.
confirm
(
this
.
$t
(
'
确认要"
'
)
+
text
+
'
""
'
+
row
.
nickname
+
this
.
$t
(
'
"用户吗?
'
)
).
then
(
function
()
{
return
setUserUpdateStatus
({
id
:
row
.
id
,
status
:
row
.
status
}
)
}
).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
this
.
$modal
.
msgSuccess
(
text
+
this
.
$t
(
'
成功
'
)
);
}
).
catch
(
function
()
{
row
.
status
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
;
...
...
@@ -340,7 +333,7 @@ export default {
if
(
r
.
code
===
0
){
this
.
publicObj
.
backLetterImg
=
this
.
guaranteeUrl
;
this
.
guaranteeShow
=
false
;
this
.
$message
.
success
(
'
保存成功
'
);
this
.
$message
.
success
(
this
.
$t
(
'
保存成功
'
)
);
}
}
)
}
,
...
...
@@ -378,7 +371,7 @@ export default {
}
memberUserAuditIdCard
(
p
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
修改成功
'
);
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
)
);
this
.
getList
()
this
.
attestationShow
=
false
;
...
...
@@ -387,13 +380,13 @@ export default {
}
,
authentication
(
row
){
if
(
!
row
.
identityAuditStatus
&&
!
row
.
enterpriseAuditRemark
){
return
'
否
'
return
this
.
$t
(
'
否
'
)
}
else
if
(
row
.
identityAuditStatus
>=
0
&&
row
.
enterpriseAuditRemark
>=
0
){
return
'
双认证
'
return
this
.
$t
(
'
双认证
'
)
}
else
if
(
row
.
identityAuditStatus
>=
0
){
return
'
身份
'
return
this
.
$t
(
'
身份
'
)
}
else
if
(
row
.
enterpriseAuditRemark
>=
0
){
return
'
营业
'
return
this
.
$t
(
'
营业
'
)
}
}
,
submit
(){
...
...
@@ -409,7 +402,7 @@ export default {
userCreateAuditEnterprise
(
p
).
then
(
r
=>
{
console
.
log
(
r
);
if
(
r
.
code
===
0
){
this
.
$message
.
success
(
'
添加成功!
'
);
this
.
$message
.
success
(
this
.
$t
(
'
添加成功!
'
)
);
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