Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2482cf00
authored
Jan 16, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 样式
1 parent
f632ec50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
364 additions
and
531 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
2482cf0
<
template
><div><div
class=
"scrm-sub-client-container"
>
<
!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<
!-- :style="{ 'min-height': heightBox + 'px' }"-->
<div
class=
"pageContent"
><GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm><div
class=
"leadList"
><div><span></span></div><GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton></div><GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
><span
slot=
"customerName"
slot-scope=
"scope"
><GLFull
:labelWidth=
"70"
:identification=
"`node_$
{scope.scope.id}`"> {
<
template
>
{
<div>
scope.scope.customerName ? scope.scope.customerName: '--'
<div
class=
"scrm-sub-client-container"
>
}
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
}
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<div
class=
"pageContent"
>
</GLFull></span>
<
!--
<span
slot=
"customerSex"
slot-scope=
"scope"
>
-->
<span
slot=
"customerSex"
slot-scope=
"scope"
><span>
{
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
{
<div
class=
"leadList"
>
scope.scope.customerSex==0 ? '未知': scope.scope.customerSex==1 ? '男': scope.scope.customerSex==2 ? '女': ''
<div>
}
<span></span>
}
</div>
<GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLButton>
</span></span>
<
!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
><div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div><div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
><div
v-if=
"idx == 0"
><span>
{
</div>
{
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
list.nickName
<span
slot=
"customerName"
slot-scope=
"scope"
>
}
<GLFull
:labelWidth=
"70"
:identification=
"`node_$
{scope.scope.id}`">
{{
scope
.
scope
.
customerName
?
scope
.
scope
.
customerName
:
'--'
}}
</GLFull>
}
</span>
<!--
<span
slot=
"customerSex"
slot-scope=
"scope"
>
-->
</span><span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}
<span
slot=
"customerSex"
slot-scope=
"scope"
>
}
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
</span>
<
/span></
div
><
span
v
-
if
=
"idx == 1"
><
el
-
popover
placement
=
"right-start"
trigger
=
"hover"
content
=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
><
div
v
-
for
=
"(i, index) in scope.scope.nickNameList"
:
key
=
"index"
style
=
"padding-bottom: 3px !important"
><
span
>
{
<!-- 企微名称 -->
{
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
i
.
nickName
<div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div>
}
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
}
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<
/span><span style="height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px" :class="
[
i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : ''
]
">@{{ i.corpName
}
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
}
</div>
<span
v-if=
"idx == 1"
>
<
/span></
div
><
img
class
=
"imgEll"
src
=
"@/assets/tagsManage/ellipsis.png"
alt
=
""
slot
=
"reference"
/><
/el-popover></
span
><
/div></
div
><
span
slot
=
"customerPhone"
slot
-
scope
=
"scope"
><
span
>
{
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
{
<div
v-for=
"(i, index) in scope.scope.nickNameList"
:key=
"index"
style=
"padding-bottom: 3px !important"
>
scope
.
scope
.
customerPhone
==
null
?
'--'
:
scope
.
scope
.
customerPhone
<span>
{{
i
.
nickName
}}
</span>
}
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
}
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
<
/span></
span
><
span
slot
=
"addWay"
slot
-
scope
=
"scope"
><
el
-
tooltip
effect
=
"dark"
:
content
=
"toLabel(scope.scope.addWay)"
placement
=
"top"
><
span
style
=
"display: inline-block; max-width: 120px; text-align: left"
>
{
</el-popover>
{
</span>
toLabel
(
scope
.
scope
.
addWay
)
</div>
}
</div>
}
<span
slot=
"customerPhone"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerPhone
==
null
?
'--'
:
scope
.
scope
.
customerPhone
}}
</span>
<
/span></
el
-
tooltip
><
/span>< !-- subscribe --><span slot="subscribe"slot-scope="scope"><span> {
</span>
{
<span
slot=
"addWay"
slot-scope=
"scope"
>
scope
.
scope
.
subscribe
==
'1'
?
'是'
:
'否'
<el-tooltip
effect=
"dark"
:content=
"toLabel(scope.scope.addWay)"
placement=
"top"
>
}
<span
style=
"display: inline-block; max-width: 120px; text-align: left"
>
{{
toLabel
(
scope
.
scope
.
addWay
)
}}
</span>
}
</el-tooltip>
</span>
<
/span></
span
><
span
slot
=
"isLoginApplet"
slot
-
scope
=
"scope"
><
span
>
{
<!-- subscribe -->
{
<span
slot=
"subscribe"
slot-scope=
"scope"
>
scope
.
scope
.
isLoginApplet
==
'1'
?
'是'
:
'否'
<span>
{{
scope
.
scope
.
subscribe
==
'1'
?
'是'
:
'否'
}}
</span>
}
</span>
}
<span
slot=
"isLoginApplet"
slot-scope=
"scope"
>
<
/span></
span
><
span
slot
=
"isJoin"
slot
-
scope
=
"scope"
><
span
>
{
<span>
{{
scope
.
scope
.
isLoginApplet
==
'1'
?
'是'
:
'否'
}}
</span>
{
</span>
scope
.
scope
.
isJoin
?
'是'
:
'否'
<span
slot=
"isJoin"
slot-scope=
"scope"
>
}
<span>
{{
scope
.
scope
.
isJoin
?
'是'
:
'否'
}}
</span>
}
</span>
<span
slot=
"status"
slot-scope=
"scope"
>
<
/span></
span
><
span
slot
=
"status"
slot
-
scope
=
"scope"
><
span
class
=
"statusText"
><
span
:
class
=
"
{
circleStatusGray
:
scope
.
scope
.
status
===
-
1
,
circleStatusGreen
:
scope
.
scope
.
status
==
0
}"
><
/span><span> {
<span
class=
"statusText"
>
{
<span
:class=
"
{ circleStatusGray: scope.scope.status === -1, circleStatusGreen: scope.scope.status == 0 }">
</span>
statusText
(
scope
.
scope
.
status
)
<span>
{{
statusText
(
scope
.
scope
.
status
)
}}
</span>
}
</span>
}
</span>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<
/span></
span
><
/span><div class="table-btns"slot="optionBtns"slot-scope="scope"><el-button type="text"@click="goDetail
(
scope.scope.oneId
)
">详情</
el
-
button
><
!--
<
GLButton
@
click
=
"goDetail(scope.scope.oneId)"
fn
=
"客户详情"
type
=
"text"
>
详情
<
/GLButton>--></
div
><
/GLTable></
div
><
/div></
div
><
/template><script>import {
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.oneId)"
>
详情
</el-button>
getTableList
,
<!--
<GLButton
@
click=
"goDetail(scope.scope.oneId)"
fn=
"客户详情"
type=
"text"
>
详情
</GLButton>
-->
getDictionaryFun
,
</div>
getStaffList
,
</GLTable>
syncCustomer
,
</div>
clientManageExportApi
</div>
}
</div>
</
template
>
from
'@/api/modules/clientManage'
<
script
>
import
{
getTableList
,
getDictionaryFun
,
getStaffList
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
export
default
{
name
:
'clientManage'
,
name
:
'clientManage'
,
data
()
{
data
()
{
return
{
return
{
isReload
:
true
,
isReload
:
true
,
url
:
url
,
url
:
url
,
sloading
:
false
,
sloading
:
false
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
searchForm
:
{
searchForm
:
{
addWay
:
''
,
addWay
:
''
,
isJoin
:
1
isJoin
:
1
}
},
searchFormTable
:
{},
,
clientManageFormList
:
[
searchFormTable
:
{
}
{
type
:
'input'
,
,
clientManageFormList
:
[
{
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
// prop: 'customerPhone',
// prop: 'customerPhone',
name
:
'customerPhone'
,
name
:
'customerPhone'
,
label
:
'联系电话'
,
label
:
'联系电话'
,
placeholder
:
'联系电话'
placeholder
:
'联系电话'
}
},
,
{
{
type
:
'select'
,
type
:
'select'
,
name
:
'followStaff'
,
name
:
'followStaff'
,
// prop: 'followStaff',
// prop: 'followStaff',
noFilter
:
false
,
noFilter
:
false
,
...
@@ -114,107 +108,84 @@ export default {
...
@@ -114,107 +108,84 @@ export default {
label
:
'跟进员工'
,
label
:
'跟进员工'
,
placeholder
:
'请输入跟进员工'
,
placeholder
:
'请输入跟进员工'
,
optionList
:
[]
optionList
:
[]
}
},
,
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
// prop: 'customerName',
// prop: 'customerName',
name
:
'customerName'
,
name
:
'customerName'
,
label
:
'客户名称'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
placeholder
:
'请输入客户名称'
}
},
,
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
// prop: 'nickName',
// prop: 'nickName',
name
:
'nickName'
,
name
:
'nickName'
,
label
:
'企微名称'
,
label
:
'企微名称'
,
placeholder
:
'请输入企微名称'
placeholder
:
'请输入企微名称'
}
},
,
{
{
type
:
'select'
,
type
:
'select'
,
// prop: 'isJoin',
// prop: 'isJoin',
name
:
'isJoin'
,
name
:
'isJoin'
,
label
:
'是否已加企微'
,
label
:
'是否已加企微'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionId
:
'value'
,
optionList
:
[
optionList
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
null
value
:
null
}
},
{
,
label
:
'是'
,
{
value
:
1
label
:
'是'
,
},
value
:
1
{
}
label
:
'否'
,
value
:
0
,
}
{
]
label
:
'否'
,
},
value
:
0
}
]
}
,
{
{
type
:
'select'
,
type
:
'select'
,
// prop: 'status',
// prop: 'status',
name
:
'status'
,
name
:
'status'
,
label
:
'当前状态'
,
label
:
'当前状态'
,
placeholder
:
'请选择当前状态'
,
placeholder
:
'请选择当前状态'
,
optionLabel
:
'optionLabel'
,
optionLabel
:
'optionLabel'
,
optionId
:
'optionId'
,
optionId
:
'optionId'
,
optionList
:
[
optionList
:
[
{
{
optionLabel
:
'全部'
,
optionLabel
:
'全部'
,
optionId
:
null
optionId
:
null
}
},
{
,
optionLabel
:
'正常'
,
{
optionId
:
0
optionLabel
:
'正常'
,
},
optionId
:
0
{
}
optionLabel
:
'删除好友'
,
optionId
:
-
1
,
}
{
]
optionLabel
:
'删除好友'
,
},
optionId
:
-
1
}
]
}
,
{
{
type
:
'datePicker'
,
type
:
'datePicker
'
,
// prop: 'daterange
',
// prop
: 'daterange',
name
:
'daterange'
,
name
:
'daterange
'
,
label
:
'添加时间
'
,
label
:
'添加时间
'
,
valueFormat
:
'yyyy-MM-dd
'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
}
}
},
}
,
{
{
type
:
'select'
,
type
:
'select'
,
// prop: 'addWay',
// prop: 'addWay',
name
:
'addWay'
,
name
:
'addWay'
,
label
:
'添加来源'
,
label
:
'添加来源'
,
...
@@ -222,11 +193,9 @@ export default {
...
@@ -222,11 +193,9 @@ export default {
optionId
:
'value'
,
optionId
:
'value'
,
placeholder
:
'请选择当前来源'
,
placeholder
:
'请选择当前来源'
,
optionList
:
[]
//this.$Constants.SOURCE_OPTION
optionList
:
[]
//this.$Constants.SOURCE_OPTION
}
},
,
{
{
type
:
'select'
,
type
:
'select'
,
// prop: 'customerSex',
// prop: 'customerSex',
name
:
'customerSex'
,
name
:
'customerSex'
,
label
:
'性别'
,
label
:
'性别'
,
...
@@ -234,292 +203,228 @@ export default {
...
@@ -234,292 +203,228 @@ export default {
optionId
:
'value'
,
optionId
:
'value'
,
placeholder
:
'请选择性别'
,
placeholder
:
'请选择性别'
,
optionList
:
this
.
$Constants
.
GENDER_OPTION
optionList
:
this
.
$Constants
.
GENDER_OPTION
}
},
,
{
{
type
:
'datePicker'
,
type
:
'datePicke
r'
,
name
:
'purchaseCa
r'
,
name
:
'purchaseCar
'
,
label
:
'购车时间
'
,
label
:
'购车时间
'
,
valueFormat
:
'yyyy-MM-dd
'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
}
}
},
}
,
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'carVin'
,
name
:
'carVin'
,
label
:
'车架号'
label
:
'车架号'
}
},
,
{
{
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
name
:
'carNumber'
,
name
:
'carNumber'
,
label
:
'车牌号'
label
:
'车牌号'
}
}
],
],
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
}
,
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
listName
:
'data'
,
tableOption
:
false
,
tableOption
:
false
,
// mutiSelectName: 'employeeList',
// mutiSelectName: 'employeeList',
// mutiSelectUniqueKey: 'id',
// mutiSelectUniqueKey: 'id',
tableColumns
:
[
//
{
tableColumns
:
[
// {
// label: '客户ID',
// label: '客户ID',
// prop: 'oneId',
// prop: 'oneId',
// width: 290,
// width: 290,
// line: 1
// line: 1
//
}
,
// },
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
addHtml
:
'customerName'
,
width
:
170
,
width
:
170
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'企微名称'
,
label
:
'企微名称'
,
prop
:
'nickNameList'
,
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
width
:
190
width
:
190
}
},
,
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'customerPhone'
,
prop
:
'customerPhone'
,
addHtml
:
'customerPhone'
,
addHtml
:
'customerPhone'
,
width
:
130
width
:
130
}
},
,
{
{
label
:
'性别'
,
label
:
'性别'
,
prop
:
'customerSex'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
addHtml
:
'customerSex'
}
},
,
{
{
label
:
'跟进员工'
,
label
:
'跟进员工'
,
prop
:
'followStaff'
,
prop
:
'followStaff'
,
// addHtml: 'followStaff',
// addHtml: 'followStaff',
width
:
320
width
:
320
}
},
,
{
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
addHtml
:
'isJoin'
,
width
:
120
width
:
120
}
},
,
{
{
label
:
'当前状态'
,
label
:
'当前状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
,
addHtml
:
'status'
,
width
:
120
width
:
120
}
},
,
{
{
label
:
'所属渠道'
,
label
:
'所属渠道'
,
prop
:
'sourceChannel'
,
prop
:
'sourceChannel'
,
width
:
160
,
width
:
160
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'添加来源'
,
label
:
'添加来源'
,
prop
:
'addWayName'
,
prop
:
'addWayName'
,
width
:
120
width
:
120
}
},
,
{
{
label
:
'添加时间'
,
label
:
'添加时间'
,
prop
:
'addTime'
,
prop
:
'addTime'
,
width
:
170
width
:
170
}
},
,
{
{
label
:
'车系'
,
label
:
'车系'
,
prop
:
'audi'
,
prop
:
'audi'
,
width
:
250
,
width
:
250
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'carVin'
,
prop
:
'carVin'
,
width
:
270
,
width
:
270
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'车牌号'
,
label
:
'车牌号'
,
prop
:
'carNumber'
,
prop
:
'carNumber'
,
width
:
170
,
width
:
170
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'购车时间'
,
label
:
'购车时间'
,
prop
:
'buyDate'
,
prop
:
'buyDate'
,
width
:
250
,
width
:
250
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'小区信息'
,
label
:
'小区信息'
,
prop
:
'communityInfo'
,
prop
:
'communityInfo'
,
width
:
250
,
width
:
250
,
line
:
1
line
:
1
}
},
,
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'66px'
,
width
:
'66px'
,
addHtml
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
fixed
:
'right'
}
}
]
]
}
},
,
getListApi
:
getTableList
,
getListApi
:
getTableList
,
merchantModel
:
1
,
merchantModel
:
1
,
sourceList
:
[],
sourceList
:
[],
followstaffList
:
[],
followstaffList
:
[],
queryFlag
:
0
,
queryFlag
:
0
,
accountLevel
:
0
,
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
//1,2,3,4工厂,省代,市代,门店
flushTime
:
false
flushTime
:
false
}
}
}
},
,
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
//运行在qiankun容器中
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
if
(
location
.
host
.
includes
(
'cgacar'
))
{
if
(
location
.
host
.
includes
(
'cgacar'
))
{
// cgacar
// cgacar
this
.
clientManageFormList
.
push
(
{
this
.
clientManageFormList
.
push
(
{
type
:
'select'
,
type
:
'select'
,
name
:
'subscribe'
,
name
:
'subscribe'
,
label
:
'关注公众号'
,
label
:
'关注公众号'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionId
:
'value'
,
optionList
:
[
{
optionList
:
[
label
:
'全部'
,
value
:
null
}
,
{
{
label
:
'是'
,
label
:
'全部'
,
value
:
1
value
:
null
}
},
,
{
{
label
:
'否'
,
label
:
'是'
,
value
:
0
value
:
1
}
},
{
label
:
'否'
,
value
:
0
}
]
]
}
},
{
,
{
type
:
'select'
,
type
:
'select'
,
name
:
'isLoginApplet'
,
name
:
'isLoginApplet'
,
label
:
'登录小程序'
,
label
:
'登录小程序'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionId
:
'value'
,
optionList
:
[
{
optionList
:
[
label
:
'全部'
,
value
:
null
}
,
{
{
label
:
'是'
,
label
:
'全部'
,
value
:
1
value
:
null
}
},
,
{
{
label
:
'否'
,
label
:
'是'
,
value
:
0
value
:
1
}
},
{
label
:
'否'
,
value
:
0
}
]
]
}
}
)
)
this
.
tableParams
.
tableColumns
.
splice
(
6
,
this
.
tableParams
.
tableColumns
.
splice
(
6
,
0
,
0
,
{
{
label
:
'关注公众号'
,
label
:
'关注公众号'
,
prop
:
'subscribe'
,
prop
:
'subscribe'
,
width
:
140
,
width
:
140
,
line
:
1
,
line
:
1
,
addHtml
:
'subscribe'
addHtml
:
'subscribe'
}
},
{
,
{
label
:
'登录小程序'
,
label
:
'登录小程序'
,
prop
:
'isLoginApplet'
,
prop
:
'isLoginApplet'
,
width
:
140
,
width
:
140
,
line
:
1
,
line
:
1
,
addHtml
:
'isLoginApplet'
addHtml
:
'isLoginApplet'
}
}
)
)
}
}
this
.
getDictionaryFun
()
this
.
getDictionaryFun
()
this
.
getStaffList
()
this
.
getStaffList
()
}
},
,
// filters:{
// filters:{
// // 截取@后面的文字
// // 截取@后面的文字
// cutText(str){
// cutText(str){
...
@@ -531,231 +436,175 @@ export default {
...
@@ -531,231 +436,175 @@ export default {
// },
// },
methods
:
{
methods
:
{
followList
(
str
)
{
followList
(
str
)
{
if
(
!
str
)
{
if
(
!
str
)
{
return
[]
return
[]
}
}
return
str
.
split
(
','
)
return
str
.
split
(
','
)
}
},
,
statusText
(
text
)
{
statusText
(
text
)
{
return
text
===-
1
?
'删除好友'
:
text
===
0
?
'正常'
:
''
return
text
===
-
1
?
'删除好友'
:
text
===
0
?
'正常'
:
''
}
},
,
setTableHeightEvent
()
{
setTableHeightEvent
()
{
this
.
$refs
.
clientManage
.
setTableHeightFun
()
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
},
,
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
):
this
.
$refs
.
clientManage
.
setTableHeightFun
()
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
},
,
getParams
()
{
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
if
(
params
.
daterange
)
{
}
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
else
{
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
}
if
(
params
.
purchaseCar
)
{
if
(
params
.
purchaseCar
)
{
params
.
beginCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
0
]
params
.
endCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
1
]
params
.
beginCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
0
]
}
params
.
endCarBuyDate
=
this
.
searchForm
.
purchaseCar
[
1
]
}
else
{
else
{
if
(
params
.
beginCarBuyDate
)
delete
params
.
beginCarBuyDate
&&
delete
params
.
endCarBuyDate
if
(
params
.
beginCarBuyDate
)
delete
params
.
beginCarBuyDate
&&
delete
params
.
endCarBuyDate
}
}
delete
params
.
daterange
delete
params
.
daterange
delete
params
.
purchaseCar
return
params
delete
params
.
purchaseCar
}
return
params
},
,
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
resolve
=>
{
if
(
Object
.
keys
(
this
.
$route
.
query
).
length
&&
this
.
queryFlag
==
0
)
{
if
(
Object
.
keys
(
this
.
$route
.
query
).
length
&&
this
.
queryFlag
==
0
)
{
const
res
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
let
add_way
=
this
.
$route
.
query
.
addWay
||
''
const
res
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
let
add_way
=
this
.
$route
.
query
.
addWay
||
''
let
isJoinVal
=
this
.
$route
.
query
.
isJoin
||
null
let
addWayObj
=
res
.
find
(
i
=>
i
.
label
===
add_way
)
this
.
searchForm
.
addWay
=
addWayObj
.
value
this
.
searchForm
.
isJoin
=
isJoinVal
===
null
?
null
:
Number
(
isJoinVal
)
setTimeout
(()
=>
{
let
isJoinVal
=
this
.
$route
.
query
.
isJoin
||
null
this
.
$refs
.
combiForm
.
expandFn
(
)
let
addWayObj
=
res
.
find
(
i
=>
i
.
label
===
add_way
)
}
this
.
searchForm
.
addWay
=
addWayObj
.
value
this
.
searchForm
.
isJoin
=
isJoinVal
===
null
?
null
:
Number
(
isJoinVal
)
,
100
)
// document.querySelector('.operate').lastElementChild.click()
setTimeout
(()
=>
{
this
.
queryFlag
=
1
this
.
$refs
.
combiForm
.
expandFn
()
}
}
,
100
)
// document.querySelector('.operate').lastElementChild.click()
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
this
.
queryFlag
=
1
}
}
)
this
.
searchFormTable
=
this
.
getParams
(
)
}
resolve
()
})
,
}
,
getDictionaryFun
()
{
getDictionaryFun
()
{
getDictionaryFun
(
{
getDictionaryFun
({
dictType
:
'add_way'
}).
then
(
res
=>
{
dictType
:
'add_way'
if
(
!
res
)
{
}
return
}
).
then
(
res
=>
{
// addWaySource
if
(
!
res
)
{
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
return
return
item
.
name
==
'addWay'
})
let
data
=
res
.
map
(
item
=>
{
return
{
// ...item,
label
:
item
.
dictLabel
,
value
:
item
.
dictValue
}
}
})
// addWaySource
data
.
unshift
({
label
:
'全部'
,
value
:
''
})
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
this
.
sourceList
=
data
||
[]
return
item
.
name
==
'addWay'
if
(
data
&&
data
.
length
>
0
)
{
}
window
.
localStorage
.
setItem
(
'sourceList'
,
JSON
.
stringify
(
data
))
}
)
let
data
=
res
.
map
(
item
=>
{
this
.
$set
(
this
.
clientManageFormList
[
id
],
'optionList'
,
data
)
return
{
})
// ...item,
},
label
:
item
.
dictLabel
,
value
:
item
.
dictValue
}
}
)
data
.
unshift
(
{
label
:
'全部'
,
value
:
''
}
)
this
.
sourceList
=
data
||
[]
if
(
data
&&
data
.
length
>
0
)
{
window
.
localStorage
.
setItem
(
'sourceList'
,
JSON
.
stringify
(
data
))
}
this
.
$set
(
this
.
clientManageFormList
[
id
],
'optionList'
,
data
)
}
)
}
,
getStaffList
(
val
)
{
getStaffList
(
val
)
{
const
params
=
{
const
params
=
{
staffName
:
val
?
val
.
trim
():
''
staffName
:
val
?
val
.
trim
()
:
''
}
}
getStaffList
(
params
).
then
(
res
=>
{
getStaffList
(
params
).
then
(
res
=>
{
if
(
res
.
length
==
0
)
{
if
(
res
.
length
==
0
)
{
return
''
return
''
}
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
return
item
.
name
==
'followStaff'
})
const
staff
=
res
.
map
(
item
=>
{
return
{
label
:
item
.
staffName
,
value
:
item
.
staffName
}
}
})
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
return
item
.
name
==
'followStaff'
this
.
followstaffList
=
staff
}
this
.
$nextTick
(()
=>
{
this
.
clientManageFormList
[
id
].
optionList
=
staff
)
const
staff
=
res
.
map
(
item
=>
{
})
return
{
})
label
:
item
.
staffName
,
},
value
:
item
.
staffName
}
}
)
staff
.
unshift
(
{
label
:
'全部'
,
value
:
''
}
)
this
.
followstaffList
=
staff
this
.
$nextTick
(()
=>
{
this
.
clientManageFormList
[
id
].
optionList
=
staff
}
)
}
)
}
,
//来源 value值转为对应label
//来源 value值转为对应label
toLabel
(
value
)
{
toLabel
(
value
)
{
if
(
value
!==
0
&&
!
value
)
{
if
(
value
!==
0
&&
!
value
)
{
return
return
}
}
let
curElement
=
this
.
sourceList
.
find
(
item
=>
{
return
item
.
value
===
value
})
let
curElement
=
this
.
sourceList
.
find
(
item
=>
{
return
curElement
.
label
return
item
.
value
===
value
},
}
)
return
curElement
.
label
}
,
//导出
//导出
handleExport
()
{
handleExport
()
{
let
params
=
this
.
getParams
()
clientManageExportApi
(
params
).
then
(
res
=>
{
let
params
=
this
.
getParams
()
this
.
$Utils
.
exportFn
(
res
)
clientManageExportApi
(
params
).
then
(
res
=>
{
}
this
.
$Utils
.
exportFn
(
res
)
})
)
},
}
,
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
}
},
,
syncClick
()
{
syncClick
()
{
let
_this
=
this
_this
.
sloading
=
true
syncCustomer
(
{
}
let
_this
=
this
_this
.
sloading
=
true
)
.
then
(
res
=>
{
syncCustomer
({})
if
(
!
res
)
{
.
then
(
res
=>
{
if
(
!
res
)
{
return
false
return
false
}
}
_this
.
sloading
=
false
_this
.
sloading
=
false
_this
.
$message
.
success
(
'已同步客户'
)
_this
.
$refs
.
clientManage
.
refreshTable
()
_this
.
$message
.
success
(
'已同步客户'
)
}
_this
.
$refs
.
clientManage
.
refreshTable
()
})
)
.
catch
(
err
=>
{
.
catch
(
err
=>
{
_this
.
sloading
=
false
_this
.
sloading
=
false
}
})
},
)
}
,
//重置表格
//重置表格
resetTable
()
{
resetTable
()
{
this
.
searchForm
=
{
}
this
.
searchForm
=
{}
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
// 点击之后强制页面刷新
// 点击之后强制页面刷新
// this.reload()
// this.reload()
// this.$forceUpdate() // 没用
// this.$forceUpdate() // 没用
// this.$router.go(0)//没有预期效果,会出现一段空白页,用户体验不好
// this.$router.go(0)//没有预期效果,会出现一段空白页,用户体验不好
// location.reload() //没有预期效果,会出现一段空白页,用户体验不好
// location.reload() //没有预期效果,会出现一段空白页,用户体验不好
}
},
,
goDetail
(
id
)
{
goDetail
(
id
)
{
this
.
$router
.
push
(
{
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
path
:
'/clientManage/clientDetail'
,
query
:
{
query
:
{
id
:
id
id
:
id
}
}
}
})
)
}
}
}
},
,
mounted
()
{}
mounted
()
{}
}
}
</
script
>
<
/script><style lang="scss"scoped>@import '@/
styles
/
variables
.
scss
';
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/resetelement.scss'
;
@import
'@/styles/resetelement.scss'
;
//
/
deep
/
.el-table
.el-table__header
tr
th
{
//
/
deep
/
.el-table
.el-table__header
tr
th
{
//
line-height
:
30px
;
//
line-height
:
30px
;
//
}
//
}
.expandImg
{
.expandImg
{
display
:
flex
;
display
:
flex
;
//
justify-content
:
center
;
//
justify-content
:
center
;
.smallFontSize
{
.smallFontSize
{
margin-left
:
2px
;
margin-left
:
2px
;
...
@@ -765,22 +614,18 @@ export default {
...
@@ -765,22 +614,18 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.imgEll
{
.imgEll
{
margin-left
:
6.5px
;
margin-left
:
6.5px
;
cursor
:
pointer
;
cursor
:
pointer
;
//
margin-bottom
:
3px
;
//
margin-bottom
:
3px
;
}
}
}
}
.pure-green-text
{
.pure-green-text
{
color
:
#61cc43
;
color
:
#61cc43
;
}
}
.pure-yello-text
{
.pure-yello-text
{
color
:
#fb8f28
;
color
:
#fb8f28
;
}
}
.scrm-sub-client-container
{
.scrm-sub-client-container
{
.pageTitle
{
.pageTitle
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -792,42 +637,33 @@ export default {
...
@@ -792,42 +637,33 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
letter-spacing
:
1px
;
letter-spacing
:
1px
;
}
}
.pageContent
{
.pageContent
{
.leadList
{
.leadList
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
8px
;
margin-bottom
:
8px
;
div
{
div
{
text-align
:
center
;
text-align
:
center
;
span
:
nth-child
(
1
)
{
span
:
nth-child
(
1
)
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
}
}
}
}
/
deep
/
.el-button
{
/
deep
/
.el-button
{
color
:
$themeColor
;
color
:
#08c489
;
border
:
1
px
solid
$themeColor
;
border
:
1px
solid
#08c489
;
}
}
}
}
padding
:
20px
20px
30px
;
padding
:
20px
20px
30px
;
background-color
:
#fff
;
background-color
:
#fff
;
.el-button
+
.el-button
{
.
el
-
button
+
.
el
-
button
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.searchTop
{
.searchTop
{
//
margin-bottom
:
20px
;
//
margin-bottom
:
20px
;
}
}
.glsx-table
{
.glsx-table
{
//
/deep/
.el-table__fixed
{
//
/deep/
.el-table__fixed
{
//
height
:
100%
!important
;
//设置高优先,以覆盖内联样式
//
height
:
100%
!important
;
//设置高优先,以覆盖内联样式
//
}
//
}
...
@@ -839,13 +675,11 @@ export default {
...
@@ -839,13 +675,11 @@ export default {
.entmicro
{
.entmicro
{
display
:
flex
;
display
:
flex
;
i
{
i
{
color
:
#75acff
;
color
:
#75acff
;
margin-right
:
3px
;
margin-right
:
3px
;
font-size
:
14px
;
font-size
:
14px
;
}
}
//
}
//
}
}
}
...
@@ -857,5 +691,4 @@ export default {
...
@@ -857,5 +691,4 @@ export default {
}
}
}
}
}
}
<
/style>
\ No newline at end of file
\ No newline at end of file
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment