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 3160123c
authored
Mar 12, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.0.0' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into v2.0.0
2 parents
84c8367c
f2be8785
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
398 additions
and
267 deletions
src/api/modules/clientManage.js
src/components/search-form/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/crowdManage/index.vue
src/api/modules/clientManage.js
View file @
3160123
...
...
@@ -24,95 +24,103 @@ import { http, http3 } from '@/main'
// params.method='datahub.api.label.querylabeltree'
export
function
getSingleClientTag
(
params
)
{
params
.
method
=
'scrm.api.datahub.user.getuserlabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.datahub.user.getuserlabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
getAllTagTree
(
params
)
{
// params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
// params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
})
}
// /router/datahub.api.user.addUserLabel/1.0.0
//编辑用户标签(包含标签新增列表和删除列表)
export
function
addSingleClientTag
(
params
)
{
params
.
method
=
'scrm.api.datahub.user.editUserLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
params
.
method
=
'scrm.api.datahub.user.editUserLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
})
}
export
function
getTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.page'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.customer.page'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
syncCustomer
(
params
)
{
params
.
method
=
'entmicro.api.synchro.syncCustomer'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.synchro.syncCustomer'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
getTableDetail
(
params
)
{
params
.
method
=
'entmicro.api.customer.detail'
params
.
method
=
'entmicro.api.customer.detail'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/*获取来源字典的
*/
*/
export
function
getDictionaryFun
(
params
)
{
params
.
method
=
'entmicro.api.common.dictdata.list'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.common.dictdata.list'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
function
getStaffList
(
params
)
{
params
.
method
=
'entmicro.api.staff.findStaffByMerchantId'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// entmicro.api.customer.list.export
//客户信息管理导出
export
function
clientManageExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.customerListExport`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`entmicro.api.customer.customerListExport`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
src/components/search-form/index.vue
View file @
3160123
...
...
@@ -31,7 +31,7 @@
<el-input
v-model=
"formModel[item.prop]"
:type=
"item.inputType || 'text'"
:placeholder=
"item.placeholder || '请输入'"
:clearable=
"item.clearable || false"
:readonly=
"item.readonly || false"
@
keyup
.
enter
.
native=
"onInput"
></el-input>
</
template
>
<
template
v-else-if=
"item.type === 'select'"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
>
<el-select
size=
"small"
v-model=
"formModel[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"!item.noFilter"
>
<el-option
v-for=
"i in item.options"
:key=
"i[item.value] || i.value"
:label=
"i[item.key] || i.label"
:value=
"i[item.value] || i.value"
:disabled=
"i.disabled"
></el-option>
</el-select>
</
template
>
...
...
src/views/clientManage/clientDetail.vue
View file @
3160123
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"header"
>
<
!--
<
div
class=
"header"
>
<div
class=
"userId"
>
<span>
客户ID:
{{
leftPanelInfo
.
oneId
}}
</span>
</div>
<button
class=
"backBtn"
@
click=
"goBack"
>
返回客户信息管理
</button>
</div>
</div>
-->
<div
class=
"content"
>
<div
class=
"leftWrap"
>
<div
class=
"avator"
>
<div
class=
"avatorStyle"
>
<div
class=
"avator"
>
<img
:src=
"leftPanelInfo.avatar"
alt=
""
v-if=
"leftPanelInfo.avatar"
/>
<img
src=
"@/assets/clientDetail/defaultAvator.png"
alt=
""
v-else
/>
</div>
<p>
<span>
客户名称:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<label
class=
"pure-blue-text"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label>
</span>
</el-tooltip>
</p>
<div
class=
"newStyle"
>
<span
class=
"WechatName"
>
企微名称:
</span>
<div
class=
"nameListItem"
>
<div
v-for=
"(item, index) in nickNameList"
:key=
"index"
style=
"margin-bottom: 5px"
>
<el-tooltip
effect=
"dark"
placement=
"top"
>
<div
class=
"qiweiItem"
slot=
"content"
>
<span
class=
"qiweiItemNick"
>
{{
item
.
nickName
}}
</span>
<span
class=
"qiweiItemCrop"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
item
.
corpName
}}
</span>
</div>
<div
class=
"qiweiItem"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
<span
class=
"qiweiItemNick"
>
{{
item
.
nickName
}}
</span>
<span
class=
"qiweiItemCrop"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
item
.
corpName
}}
</span>
</div>
<span
class=
"customerID"
>
客户ID:
{{
leftPanelInfo
.
oneId
}}
</span>
</div>
<hr>
<div
class=
"leftWrapTop"
>
<div
class=
"baseInfo"
>
<span>
基本信息
</span>
<i
class=
"el-icon-arrow-down iconStyle"
@
click=
"switchBaseInfo()"
v-if=
"isShowBaseInfo"
></i>
<i
class=
"el-icon-arrow-up iconStyle"
@
click=
"switchBaseInfo()"
v-else
></i>
</div>
<div
class=
"leftWrapBottom"
v-if=
"isShowBaseInfo"
>
<p>
<span>
客户姓名:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<label
class=
"pure-blue-text"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label>
</span>
</el-tooltip>
</p>
<div
class=
"newStyle"
>
<span
class=
"WechatName"
>
企微名称:
</span>
<div
class=
"nameListItem"
>
<div
v-for=
"(item, index) in nickNameList"
:key=
"index"
style=
"margin-bottom: 5px"
>
<el-tooltip
effect=
"dark"
placement=
"top"
>
<div
class=
"qiweiItem"
slot=
"content"
>
<span
class=
"qiweiItemNick"
>
{{
item
.
nickName
}}
</span>
<span
class=
"qiweiItemCrop"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
item
.
corpName
}}
</span>
</div>
<div
class=
"qiweiItem"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
<span
class=
"qiweiItemNick"
>
{{
item
.
nickName
}}
</span>
<span
class=
"qiweiItemCrop"
:class=
"[item.type == 1 ? 'pure-green-text' : '', item.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
item
.
corpName
}}
</span>
</div>
</el-tooltip>
</div>
</div>
</div>
</div>
</div>
<p>
<span>
联系电话:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
customerPhone
}}
</span>
</p>
<p>
<span>
证件号码:
</span>
<span
class=
"ellipsis-1"
>
341189199508293021
</span>
</p>
<p>
<span>
性别:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
customerSex
==
0
?
'未知'
:
leftPanelInfo
.
customerSex
==
1
?
'男'
:
leftPanelInfo
.
customerSex
==
2
?
'女'
:
''
}}
</span>
</p>
<p>
<span>
企业简称:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
corpName
||
'待完善'
}}
</span>
</p>
<p>
<span>
职务:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
position
||
'待完善'
}}
</span>
</p>
<p
v-if=
"leftPanelInfo.type == 2"
>
<span>
类型:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
type
==
1
?
'微信用户'
:
leftPanelInfo
.
type
==
2
?
'企微用户'
:
''
}}
</span>
</p>
<p>
<span>
是否加企微:
</span>
<!-- 1-是,2-否 -->
<span>
{{
leftPanelInfo
.
isJoin
==
1
?
'是'
:
leftPanelInfo
.
isJoin
==
0
?
'否'
:
''
}}
</span>
</p>
<p>
<span>
联系电话:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
customerPhone
}}
</span>
</p>
<p>
<span>
证件号码:
</span>
<span
class=
"ellipsis-1"
>
341189199508293021
</span>
</p>
<p>
<span>
性别:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
customerSex
==
0
?
'未知'
:
leftPanelInfo
.
customerSex
==
1
?
'男'
:
leftPanelInfo
.
customerSex
==
2
?
'女'
:
''
}}
</span>
</p>
<p>
<span>
企业简称:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
corpName
||
'待完善'
}}
</span>
</p>
<p>
<span>
职务:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
position
||
'待完善'
}}
</span>
</p>
<p
v-if=
"leftPanelInfo.type == 2"
>
<span>
类型:
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
type
==
1
?
'微信用户'
:
leftPanelInfo
.
type
==
2
?
'企微用户'
:
''
}}
</span>
</p>
<p>
<span>
是否加入企微:
</span>
<!-- 1-是,2-否 -->
<span>
{{
leftPanelInfo
.
isJoin
==
1
?
'是'
:
leftPanelInfo
.
isJoin
==
0
?
'否'
:
''
}}
</span>
</p>
<p>
<span>
当前状态:
</span>
<span>
{{
leftPanelInfo
.
status
==
-
1
?
'删除好友'
:
leftPanelInfo
.
status
==
0
?
'正常'
:
''
}}
</span>
</p>
<p>
<span>
当前状态:
</span>
<span>
{{
leftPanelInfo
.
status
==
-
1
?
'删除好友'
:
leftPanelInfo
.
status
==
0
?
'正常'
:
''
}}
</span>
</p>
<p>
<span>
所属渠道:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.sourceChannel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChannel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
添加来源:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.addWay | toLabel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
添加时间:
</span>
<span>
{{
leftPanelInfo
.
addTime
}}
</span>
</p>
<p>
<span>
来源渠道:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.sourceChannel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChannel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
添加来源:
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.addWay | toLabel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
添加时间:
</span>
<span>
{{
leftPanelInfo
.
addTime
}}
</span>
</p>
</div>
</div>
</div>
<div
class=
"rightWrap"
>
<div
class=
"choseRow"
>
...
...
@@ -101,7 +114,7 @@
<div
class=
"public-text"
>
<div
class=
"public-text-info font-16 flex"
>
车辆信息
<span
class=
"font-14 color-58"
>
{{
vehicleTableData
.
length
||
0
}}
辆
</span>
<span
class=
"font-14 color-58"
>
{{
vehicleTableData
|
filterCar
}}
辆
</span>
</div>
<div
class=
"expande-button"
v-if=
"expande"
@
click=
"expandeClick(false, 'expande')"
>
<span
class=
"font-14 color-58"
>
收起
</span>
...
...
@@ -109,7 +122,7 @@
</div>
<div
class=
"expande-button"
@
click=
"expandeClick(true, 'expande')"
v-if=
"vehicleTableData.length > 1 && !expande"
>
<span
class=
"font-14 color-58"
>
更多车辆
</span>
<i
class=
"el-icon-arrow-
down
color-58"
></i>
<i
class=
"el-icon-arrow-
up
color-58"
></i>
</div>
</div>
<layout-row
class=
"layout-detail"
:layoutData=
"vehicleTableData"
:layoutParams=
"vehicleTableParams"
:isHidden=
"expande"
></layout-row>
...
...
@@ -125,7 +138,7 @@
</div>
<div
class=
"expande-button"
@
click=
"expandeClick(true, 'deviceExpande')"
v-if=
"deviceTableData.length > 1 && !deviceExpande"
>
<span
class=
"font-14 color-58"
>
更多设备
</span>
<i
class=
"el-icon-arrow-
down
color-58"
></i>
<i
class=
"el-icon-arrow-
up
color-58"
></i>
</div>
</div>
<layout-row
class=
"layout-detail"
:layoutData=
"deviceTableData"
:layoutParams=
"deviceTableParams"
:isHidden=
"deviceExpande"
></layout-row>
...
...
@@ -141,8 +154,8 @@
<i
class=
"el-icon-arrow-down color-58"
></i>
</div>
<div
class=
"expande-button"
@
click=
"expandeClick(true, 'guaranteeExpande')"
v-if=
"guaranteeTableData.length > 1 && !guaranteeExpande"
>
<span
class=
"font-14 color-58"
>
更多
设备
</span>
<i
class=
"el-icon-arrow-
down
color-58"
></i>
<span
class=
"font-14 color-58"
>
更多
保单
</span>
<i
class=
"el-icon-arrow-
up
color-58"
></i>
</div>
</div>
<layout-row
class=
"layout-detail"
:layoutData=
"guaranteeTableData"
:layoutParams=
"guaranteeTableParams"
:isHidden=
"guaranteeExpande"
></layout-row>
...
...
@@ -260,6 +273,7 @@ export default {
},
data
()
{
return
{
isShowBaseInfo
:
true
,
isShowTooltip
:
false
,
remark
:
''
,
sloading
:
false
,
...
...
@@ -284,7 +298,7 @@ export default {
},
{
label
:
'发动机号:'
,
prop
:
'
vehicleBrand
'
prop
:
'
engineNumber
'
},
{
label
:
'车辆品牌:'
,
...
...
@@ -300,7 +314,7 @@ export default {
},
{
label
:
'车身颜色:'
,
prop
:
'vehicle
Type
'
prop
:
'vehicle
Color
'
},
{
label
:
'购车价格:'
,
...
...
@@ -327,72 +341,72 @@ export default {
deviceTableParams
:
[
{
label
:
'设备号(SN/IMEI):'
,
prop
:
's
tandNo
'
,
prop
:
's
n
'
,
addHtml
:
'standNo'
},
{
label
:
'设备流量卡(ICCID):'
,
prop
:
'
vehicleNo
'
prop
:
'
iccId
'
},
{
label
:
'设备类型:'
,
prop
:
'
vehicleBrand
'
prop
:
'
deviceType
'
},
{
label
:
'设备型号:'
,
prop
:
'
vehicleBrand
'
prop
:
'
deviceModel
'
},
{
label
:
'验证码:'
,
prop
:
've
hicleTrain
'
prop
:
've
rificationCode
'
},
{
label
:
'批次号:'
,
prop
:
'
vehicleType
'
prop
:
'
batchNo
'
},
{
label
:
'绑定车辆(车架号):'
,
prop
:
'
vehicleType
'
prop
:
'
standNo
'
},
{
label
:
'设备激活时间:'
,
prop
:
'
vehiclePric
e'
prop
:
'
deviceActiveTim
e'
}
],
guaranteeTableData
:
[],
//保单
guaranteeTableParams
:
[
{
label
:
'保单号:'
,
prop
:
'
standNo
'
,
prop
:
'
attInsureOrder
'
,
addHtml
:
'standNo'
},
{
label
:
'产品名称:'
,
prop
:
'
vehicleNo
'
prop
:
'
attProductName
'
},
{
label
:
'服务期限:'
,
prop
:
'
vehicleBran
d'
prop
:
'
attServicePerio
d'
},
{
label
:
'服务公司:'
,
prop
:
'
vehicleBrand
'
prop
:
'
attServiceCompany
'
},
{
label
:
'保险生效时间:'
,
prop
:
'
vehicleTrain
'
prop
:
'
attInsureStartTime
'
},
{
label
:
'保险到期时间:'
,
prop
:
'
vehicleTyp
e'
prop
:
'
attInsureEndTim
e'
},
{
label
:
'保险提单时间:'
,
prop
:
'
vehicleTyp
e'
prop
:
'
attInsureSubmitTim
e'
},
{
label
:
'绑定车辆:'
,
prop
:
'
vehiclePrice
'
prop
:
'
standNo
'
}
],
//员工跟进
...
...
@@ -402,39 +416,49 @@ export default {
tableColumns
:
[
{
label
:
'跟进员工'
,
prop
:
'staffName'
prop
:
'staffName'
,
//align: 'left'
},
{
label
:
'所属部门'
,
prop
:
'departmentName'
prop
:
'departmentName'
,
//align: 'left'
},
{
label
:
'添加时间'
,
prop
:
'addTime'
,
width
:
100
minWidth
:
160
,
//align: 'left'
},
{
label
:
'来源'
,
prop
:
'addWay'
,
addHtml
:
'addWay'
addHtml
:
'addWay'
,
//align: 'left',
minWidth
:
120
},
{
label
:
'添加类型'
,
prop
:
'addType'
,
addHtml
:
'addType'
,
width
:
170
width
:
170
,
//align: 'left'
},
{
label
:
'备注手机号'
,
prop
:
'remarkMobiles'
prop
:
'remarkMobiles'
,
minWidth
:
120
,
//align: 'left'
},
{
label
:
'备注'
,
prop
:
'remark'
prop
:
'remark'
,
//align: 'left'
},
{
label
:
'描述'
,
prop
:
'description'
prop
:
'description'
,
//align: 'left'
}
]
},
...
...
@@ -446,23 +470,28 @@ export default {
{
label
:
'群聊名称'
,
prop
:
'groupName'
,
addHtml
:
'groupName'
addHtml
:
'groupName'
,
//align: 'left'
},
{
label
:
'群主'
,
prop
:
'groupHostName'
prop
:
'groupHostName'
,
//align: 'left'
},
{
label
:
'客户数'
,
prop
:
'membersNumber'
prop
:
'membersNumber'
,
//align: 'left'
},
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
prop
:
'groupNickName'
,
//align: 'left'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
prop
:
'joinTime'
,
//align: 'left'
},
{
label
:
'操作'
,
...
...
@@ -502,7 +531,7 @@ export default {
label
:
'已打标签'
,
prop
:
'labelInfoList'
,
addHtml
:
'labelInfoList'
,
align
:
'left'
//
align: 'left'
}
]
},
...
...
@@ -540,7 +569,25 @@ export default {
// this.getSingleClientTag(this.$route.query.id, this.merchantId)
console
.
log
(
this
.
tagsParams
,
'kkkk'
)
},
filters
:
{
filterCar
(
val
)
{
// if (val && Object.keys(val[0])) {
// return 0
// } else {
// return val.length
// }
if
(
val
&&
JSON
.
stringify
(
val
[
0
])
===
'{}'
)
{
return
0
}
else
{
return
val
.
length
}
}
},
methods
:
{
// 切换基本信息的显示
switchBaseInfo
()
{
this
.
isShowBaseInfo
=
!
this
.
isShowBaseInfo
},
expandeClick
(
value
,
data
)
{
this
[
data
]
=
value
},
...
...
@@ -632,8 +679,9 @@ export default {
this
.
userid
=
res
.
userid
this
.
staffId
=
res
.
staffId
this
.
leftPanelInfo
=
res
.
info
// this.vehicleTableData = res.vehicleInfoList || []
this
.
vehicleTableData
=
[{}]
||
[]
this
.
vehicleTableData
=
res
.
vehicleInfoList
||
[{}]
this
.
deviceTableData
=
res
.
deviceInfoList
||
[]
this
.
guaranteeTableData
=
res
.
insureInfoList
||
[]
//保单
this
.
employTableList
=
res
.
staffFollows
||
[]
this
.
clientGroupTableList
=
res
.
customerBases
||
[]
this
.
tagsList
=
res
.
labels
||
[]
...
...
@@ -818,14 +866,14 @@ export default {
display
:
flex
;
flex-direction
:
column
;
.qiweiItem
{
max-width
:
1
32
px
;
max-width
:
1
40
px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
.qiweiItemNick
{
height
:
20px
;
font-size
:
14px
;
color
:
#
666666
;
color
:
#
333333
;
letter-spacing
:
0
;
line-height
:
20px
;
font-weight
:
400
;
...
...
@@ -842,8 +890,8 @@ export default {
}
.WechatName
{
font-weight
:
6
00
;
color
:
#
333333
;
font-weight
:
5
00
;
color
:
#
666666
;
line-height
:
20px
;
margin-left
:
20px
;
height
:
20px
;
...
...
@@ -895,15 +943,42 @@ export default {
min-height
:
calc
(
100vh
-
92px
);
background-color
:
#fff
;
box-sizing
:
border-box
;
padding
:
0
20px
;
//
padding
:
0
20px
;
box-sizing
:
border-box
;
text-align
:
center
;
.customerID
{
font-size
:
14px
;
}
.leftWrapTop
{
padding
:
0
20px
;
.baseInfo
{
padding-top
:
5px
;
display
:
flex
;
justify-content
:
space-between
;
span
{
font-size
:
16px
;
font-weight
:
600
;
}
.iconStyle
{
width
:
16px
;
height
:
16px
;
color
:
#666666
;
}
}
}
.avatorStyle
{
padding-bottom
:
5px
;
}
.avator
{
margin
:
0
auto
;
margin-top
:
40px
;
margin-bottom
:
12px
;
width
:
60px
;
height
:
60px
;
text-align
:
center
;
line-height
:
60px
;
img
{
border-radius
:
50%
;
width
:
100%
;
...
...
@@ -919,8 +994,8 @@ export default {
display
:
inline-block
;
//
height
:
20px
;
font-size
:
14px
;
font-weight
:
6
00
;
color
:
#
333333
;
font-weight
:
5
00
;
color
:
#
666666
;
line-height
:
20px
;
min-width
:
90px
;
text-align
:
right
;
...
...
@@ -930,7 +1005,7 @@ export default {
height
:
20px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#
666666
;
color
:
#
333333
;
line-height
:
20px
;
max-width
:
146px
;
}
...
...
@@ -1167,6 +1242,10 @@ export default {
font-size
:
10px
;
margin-left
:
7px
;
}
.el-icon-arrow-up
{
font-size
:
10px
;
margin-left
:
7px
;
}
}
}
.layout-detail
{
...
...
src/views/clientManage/index.vue
View file @
3160123
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -16,7 +16,7 @@
<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"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left
;
"
>
{{
scope
.
scope
.
customerName
}}
</span>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<!--
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
-->
...
...
@@ -36,9 +36,9 @@
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 2 && idx == 2"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div>
<div
class=
"entmicro-hover"
>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
style=
"margin-right: 10px; margin-bottom: 10px"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
<!--
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
-->
...
...
@@ -57,10 +57,10 @@
<
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"
>
<
el
-
popover
placement
=
"right-start"
trigger
=
"hover"
content
=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
div
v
-
for
=
"(i, index) in scope.scope.nickNameList"
:
key
=
"index"
style
=
"padding-bottom:3px !important"
>
<
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
>
{{
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
>
<
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"
/>
<
/el-popover
>
...
...
@@ -99,7 +99,7 @@
<
/template
>
<
script
>
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
{
getTableList
,
getDictionaryFun
,
getStaffList
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientManage'
,
...
...
@@ -113,58 +113,90 @@ export default {
searchFormTable
:
{
}
,
clientManageFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'添加时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerPhone'
,
label
:
'联系电话'
,
placeholder
:
'联系电话'
}
,
{
type
:
'select'
,
prop
:
'status'
,
label
:
'当前状态'
,
placeholder
:
'请选择当前状态'
,
name
:
'followStaffList'
,
prop
:
'followStaff'
,
noFilter
:
false
,
label
:
'跟进员工'
,
placeholder
:
'请输入跟进员工'
,
options
:
[]
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'nickName'
,
label
:
'企微名称'
,
placeholder
:
'请输入企微名称'
}
,
{
type
:
'select'
,
prop
:
'isJoin'
,
label
:
'是否已加企微'
,
placeholder
:
'请选择'
,
options
:
[
{
label
:
'全部'
,
value
:
null
}
,
{
label
:
'
正常
'
,
value
:
0
label
:
'
是
'
,
value
:
1
}
,
{
label
:
'
删除好友
'
,
value
:
-
1
label
:
'
否
'
,
value
:
0
}
]
}
,
{
type
:
'select'
,
prop
:
'
isJoin
'
,
label
:
'
是否已加企微
'
,
placeholder
:
'请选择'
,
prop
:
'
status
'
,
label
:
'
当前状态
'
,
placeholder
:
'请选择
当前状态
'
,
options
:
[
{
label
:
'全部'
,
value
:
null
}
,
{
label
:
'
是
'
,
value
:
1
label
:
'
正常
'
,
value
:
0
}
,
{
label
:
'
否
'
,
value
:
0
label
:
'
删除好友
'
,
value
:
-
1
}
]
}
,
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'添加时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
}
,
{
type
:
'select'
,
prop
:
'addWay'
,
name
:
'addWaySource'
,
label
:
'添加来源'
,
placeholder
:
'请选择当前来源'
,
options
:
[]
//this.$Constants.SOURCE_OPTION
...
...
@@ -175,34 +207,6 @@ export default {
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
this
.
$Constants
.
GENDER_OPTION
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerPhone'
,
label
:
'联系电话'
,
placeholder
:
'联系电话'
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'followStaff'
,
label
:
'跟进员工'
,
placeholder
:
'请输入跟进员工'
}
,
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'nickName'
,
label
:
'企微名称'
,
placeholder
:
'请输入企微名称'
}
],
...
...
@@ -215,65 +219,76 @@ export default {
{
label
:
'客户ID'
,
prop
:
'oneId'
,
minWidth
:
160
minWidth
:
150
,
// //align: 'left'
}
,
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
minWidth
:
150
minWidth
:
130
,
// //align: 'left'
}
,
{
label
:
'企微名称'
,
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
minWidth
:
200
minWidth
:
170
,
// //align: 'left'
}
,
{
label
:
'联系电话'
,
prop
:
'customerPhone'
,
addHtml
:
'customerPhone'
,
minWidth
:
110
minWidth
:
110
,
// //align: 'left'
}
,
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
,
minWidth
:
80
minWidth
:
80
,
// //align: 'left'
}
,
{
label
:
'跟进员工'
,
prop
:
'followStaff'
,
addHtml
:
'followStaff'
,
minWidth
:
120
minWidth
:
120
,
// //align: 'left'
}
,
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
width
:
100
width
:
100
,
// //align: 'left'
}
,
{
label
:
'当前状态'
,
prop
:
'status'
,
addHtml
:
'status'
,
minWidth
:
100
minWidth
:
100
,
// //align: 'left'
}
,
{
label
:
'所属渠道'
,
prop
:
'sourceChannel'
,
width
:
120
width
:
150
,
// //align: 'left'
}
,
{
label
:
'添加来源'
,
prop
:
'addWay'
,
addHtml
:
'addWay'
,
minWidth
:
100
minWidth
:
100
,
// //align: 'left'
}
,
{
label
:
'添加时间'
,
prop
:
'addTime'
,
width
:
150
width
:
150
,
// //align: 'left'
}
,
{
label
:
'操作'
,
...
...
@@ -287,6 +302,7 @@ export default {
// width: 80
//
}
}
,
followList2
:
[],
getListApi
:
getTableList
,
sourceList
:
[],
merchantModel
:
1
,
...
...
@@ -304,6 +320,7 @@ export default {
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
this
.
getDictionaryFun
()
this
.
getStaffList
()
}
,
// filters:
{
// // 截取@后面的文字
...
...
@@ -373,6 +390,10 @@ export default {
if
(
!
res
)
{
return
}
// addWaySource
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
return
item
.
name
==
'addWaySource'
}
)
let
data
=
res
.
map
(
item
=>
{
return
{
...
item
,
...
...
@@ -381,12 +402,35 @@ export default {
}
}
)
data
.
unshift
({
label
:
'全部'
,
value
:
''
}
)
this
.
sourceList
=
data
||
[]
if
(
data
&&
data
.
length
>
0
)
{
window
.
localStorage
.
setItem
(
'sourceList'
,
JSON
.
stringify
(
data
))
}
this
.
$set
(
this
.
clientManageFormList
[
3
],
'options'
,
data
)
this
.
$set
(
this
.
clientManageFormList
[
id
],
'options'
,
data
)
}
)
}
,
getStaffList
(
val
)
{
const
params
=
{
staffName
:
val
?
val
.
trim
()
:
''
}
getStaffList
(
params
).
then
(
res
=>
{
if
(
res
.
length
==
0
)
{
return
''
}
const
id
=
this
.
clientManageFormList
.
findIndex
(
item
=>
{
return
item
.
name
==
'followStaffList'
}
)
const
staff
=
res
.
map
(
item
=>
{
return
{
label
:
item
.
staffName
,
value
:
item
.
staffName
}
}
)
staff
.
unshift
({
label
:
'全部'
,
value
:
''
}
)
this
.
$nextTick
(()
=>
{
this
.
clientManageFormList
[
id
].
options
=
staff
}
)
}
)
}
,
//来源 value值转为对应label
...
...
@@ -461,7 +505,7 @@ export default {
justify
-
content
:
center
;
.
smallFontSize
{
margin
-
left
:
2
px
;
height
:
20
px
;
height
:
20
px
;
font
-
size
:
12
px
;
letter
-
spacing
:
0
;
line
-
height
:
20
px
;
...
...
@@ -548,6 +592,5 @@ export default {
background
-
color
:
#
fff
!
important
;
}
}
}
<
/style
>
src/views/crowdManage/index.vue
View file @
3160123
...
...
@@ -3,7 +3,7 @@
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick()"
>
<el-tab-pane
label=
"推荐人群"
name=
"first"
></el-tab-pane>
<el-tab-pane
label=
"自定义人群"
name=
"second"
>
<GLButton
class=
"addBtn"
fn=
"新建人群"
v-if=
"!admin"
@
click=
"addClick"
>
+
新建人群
</GLButton>
<GLButton
class=
"addBtn"
fn=
"新建人群"
v-if=
"!admin"
@
click=
"addClick"
>
<i
class=
"el-icon-plus"
></i>
新建人群
</GLButton>
</el-tab-pane>
</el-tabs>
<div
class=
"pageContent"
>
...
...
@@ -15,9 +15,10 @@
</search-form>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<template
slot=
"xxx"
slot-scope=
"scope"
>
<span
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
>
查看详情
</span>
<span
style=
"margin-left: 20px"
@
click=
"btnClick('view', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
<!--
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType !== 2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
-->
<!--
<span
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
>
查看详情
</span>
-->
<GLButton
type=
"text"
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
fn=
"查看详情"
>
查看详情
</GLButton>
<!--
<span
style=
"margin-left: 20px"
@
click=
"btnClick('view', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
-->
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType !== 2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
</
template
>
</GLTable>
</div>
...
...
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