Commit d1532c3a by 王志慧

Merge branch 'v2.0.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into v2.0.0

2 parents e13daa17 9a3a39f5
......@@ -11,6 +11,7 @@
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.4.4",
"dayjs": "^1.10.7",
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
......
<template>
<div class="scrm-sub-client-container">
<div class="head-container">
<div class="head-container-title color-3 font-20">人群名称</div>
<div class="head-container-content color-6 font-14">{{ describe }}</div>
<div class="head-container-title color-3 font-20"> {{describeData[id-1].name}}</div>
<div class="head-container-content color-6 font-14">{{ describeData[id-1].info }}</div>
<!-- <div class="reminder font-14 color-3">企业标签 | 自动更新</div> -->
<div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div>
......@@ -12,7 +12,7 @@
全部客户
<span class="main-container-head-number font-14">{{ totalCount }}个</span>
</div>
<el-button type="primary" class="export flex" @click="handleExport()">导出</el-button>
<el-button type="primary" class="export flex" @click="handleExport()">导出</el-button>
</div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="customerName" class="flex-center" slot-scope="scope">
......@@ -20,8 +20,26 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<span :class="[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
<span style="font-size: 12px" :class="[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<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 style="padding-bottom:3px !important" v-for="(i, index) in scope.scope.nickNameList" :key="index">
<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" />
</el-popover>
</span>
</div>
</div>
</GLTable>
</div>
</div>
......@@ -50,7 +68,13 @@ export default {
minWidth: '120'
},
{
label: '手机号',
label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 200
},
{
label: '联系电话',
prop: 'customerPhone',
minWidth: '110'
},
......@@ -76,16 +100,60 @@ export default {
},
{
label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoinName'
prop: 'isJoinName',
width: 100
},
{
label: '添加时间',
prop: 'addTime'
prop: 'addTime',
width: 150
}
]
},
describeData: [
{
name: '潜在意向客户',
info: '无购车且无其他交易行为的所有客户'
},
{
name: '潜在意向客户(已加企微客户)',
info: '在潜在意向客户中,已加企微的客户'
},
{
name: '潜在意向客户(未加企微客户)',
info: '在潜在意向客户中,未加企微的客户'
},
{
name: '基盘客户',
info: '有购车或其他交易行为的所有客户'
},
{
name: '基盘客户(已加企微客户)',
info: '在基盘客户中,已加企微的客户'
},
{
name: '基盘客户(未加企微客户)',
info: '在基盘客户中,未加企微的客户'
},
{
name: '新车客户',
info: '购车时间3个月的客户'
},
{
name: '车险待续保客户',
info: '近一个月内车险即将到期的客户'
},
{
name: '新车待首保客户',
info: '购车时间5~7个月内,且无保养记录的客户'
},
{
name: '沉默客户',
info: '超过180天未到店的客户'
}
],
url: url,
describeData: ['无购车且无其他交易行为的所有客户', '在潜在意向客户中,已加企微的客户', '在潜在意向客户中,未加企微的客户', '有购车或其他交易行为的所有客户', '在基盘客户中,已加企微的客户', '在基盘客户中,未加企微的客户', '购车时间3个月的客户', '近一个月内车险即将到期的客户', '购车时间5~7个月内,且无保养记录的客户', '超过180天未到店的客户']
//describeData: ['无购车且无其他交易行为的所有客户', '在潜在意向客户中,已加企微的客户', '在潜在意向客户中,未加企微的客户', '有购车或其他交易行为的所有客户', '在基盘客户中,已加企微的客户', '在基盘客户中,未加企微的客户', '购车时间3个月的客户', '近一个月内车险即将到期的客户', '购车时间5~7个月内,且无保养记录的客户', '超过180天未到店的客户']
}
},
created() {
......@@ -129,6 +197,29 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.scrm-sub-client-container {
.head-container {
position: relative;
......@@ -184,8 +275,8 @@ export default {
line-height: 20px;
}
.export {
width:74px;
height:32px;
width: 74px;
height: 32px;
box-sizing: border-box;
// font-weight: 400;
padding: 6px 23px;
......
......@@ -47,7 +47,7 @@
</div>
<div class="itembox">
<div class="no-buy">
<GLButton class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<GLButton class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<span>潜在意向客户数</span>
<span>无购车且无其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
......
......@@ -24,8 +24,31 @@
</span>
</el-tooltip>
</p>
<<<<<<< HEAD
<p>
<span>联系电话:</span>
=======
<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>
<p style="margin-top:15px">
<span>联系电话</span>
>>>>>>> 9a3a39f5d830c89e4bcd7e4264911f3fac0f3179
<span class="ellipsis-1">{{ leftPanelInfo.customerPhone }}</span>
</p>
<p>
......@@ -245,6 +268,8 @@ export default {
},
data() {
return {
isShowTooltip: false,
remark: '' ,
sloading: false,
expande: false, //车辆
deviceExpande: false, //设备
......@@ -462,6 +487,7 @@ export default {
//标签信息的内容
currentIndex: 1,
clientTagsList: [],
nickNameList: [],
tagsParams: {
listName: 'labelInfos',
tableOption: false,
......@@ -621,6 +647,7 @@ export default {
this.tagsList = res.labels || []
this.labelIdList = (res.labels || []).map(item => item.labelId)
this.clientTagsList = res.labelInfos || []
this.nickNameList = res.nickNameList || []
},
goNewTag() {
this.$router.push({ path: '/tagsManage/index' })
......@@ -785,7 +812,57 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.newStyle {
display: flex;
font-size: 14px;
margin: 20px 0;
.nameListItem {
display: flex;
flex-direction: column;
margin-left: 22px;
.qiweiItem {
max-width: 132px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.qiweiItemNick {
height: 20px;
font-size: 14px;
color: #666666;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.qiweiItemCrop {
margin-left: 2px;
height: 20px;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
}
}
.WechatName {
font-weight: 600;
color: #333333;
line-height: 20px;
margin-left: 20px;
height: 20px;
}
}
.overHidden {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.scrm-sub-client-container {
.header {
display: flex;
......
......@@ -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})` : '' }} -->
......@@ -49,7 +49,24 @@
</el-tag>
</div>
</div>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<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">
<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" />
</el-popover>
</span>
</div>
</div>
<span slot="customerPhone" slot-scope="scope">
<span>{{ scope.scope.customerPhone == 'null' ? '' : scope.scope.customerPhone }}</span>
</span>
......@@ -163,8 +180,8 @@ export default {
type: 'input',
inputType: 'text',
prop: 'customerPhone',
label: '手机号',
placeholder: '请输入手机号'
label: '联系电话',
placeholder: '联系电话'
},
{
type: 'input',
......@@ -179,6 +196,13 @@ export default {
prop: 'followStaff',
label: '跟进员工',
placeholder: '请输入跟进员工'
},
{
type: 'input',
inputType: 'text',
prop: 'nickName',
label: '企微名称',
placeholder: '请输入企微名称'
}
],
......@@ -200,7 +224,13 @@ export default {
minWidth: 150
},
{
label: '手机号',
label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 200
},
{
label: '联系电话',
prop: 'customerPhone',
addHtml: 'customerPhone',
minWidth: 110
......@@ -232,7 +262,7 @@ export default {
{
label: '所属渠道',
prop: 'sourceChannel',
width: 100
width: 120
},
{
label: '添加来源',
......@@ -275,6 +305,15 @@ export default {
}
this.getDictionaryFun()
},
// filters:{
// // 截取@后面的文字
// cutText(str){
// let index = str.lastIndexOf("\@")
// start = str.substring(0,index)
// res = str.substring(index+1,str.length)
// return
// }
// },
methods: {
followList(str) {
if (!str) {
......@@ -417,6 +456,29 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.scrm-sub-client-container {
.pageTitle {
margin-bottom: 20px;
......
<template>
<div>
<div v-loading="loading2">
<div class="scrm-sub-client-container">
<div class="pageContent">
<div class="labelSet">
......@@ -29,7 +29,7 @@
</div>
</div>
<div class="scrm-sub-client-container">
<div class="pageContent">
<div class="pageContent" >
<div>
<div class="clientNumExp">
<div class="clientNum">
......@@ -41,9 +41,30 @@
<div class="clientNumText">{{ tableTotal }}个</div>
</div>
</div>
<el-button class="export" type="primary" @click="handleExport">导出</el-button>
<el-button class="export" size="small" type="primary" @click="handleExport">导出</el-button>
</div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams">
<span slot="qiweimingcheng" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span>
</span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0">
<span>{{ list.nickName }}</span>
<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" style="padding-bottom:3px !important" :key="index">
<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" />
</el-popover>
</span>
</div>
</div>
<span slot="carVin" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span>
</span>
......@@ -100,6 +121,7 @@ export default {
components: {},
data() {
return {
loading2: false,
checkedId: '',
allListParams: {
tagLists: []
......@@ -130,7 +152,7 @@ export default {
type: 'input',
inputType: 'text',
prop: 'phoneNumber',
label: '手机号',
label: '联系电话',
placeholder: ''
},
{
......@@ -215,18 +237,19 @@ export default {
tableColumns: [
{
label: '客户姓名',
prop: 'customerName'
// width: 160
prop: 'customerName',
minWidth: 150
},
// {
// label: '企微名称',
// prop: 'nickname'
// // minWidth:
// },
{
label: '手机号',
prop: 'customerPhone'
// width: 160
label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 200
},
{
label: '联系电话',
prop: 'customerPhone',
minWidth: 110
},
{
label: '车牌号',
......@@ -234,10 +257,10 @@ export default {
// width: 160
},
{
label: '车架号(后6位)',
label: '车架号(后6位)',
prop: 'carVin',
addHtml: 'carVin'
// width: 160
addHtml: 'carVin',
minWidth: '110'
},
{
label: '车系',
......@@ -246,19 +269,19 @@ export default {
},
{
label: '跟进员工',
prop: 'followStaff'
// width: 160
prop: 'followStaff',
minWidth: 120
},
{
label: '是否加企微',
prop: 'isJoin',
addHtml: 'isJoin'
// width: 160
addHtml: 'isJoin',
minWidth: 100
},
{
label: '添加时间',
prop: 'addTime'
// width: 160
prop: 'addTime',
minWidth: 150
}
]
},
......@@ -328,13 +351,18 @@ export default {
pageSize: this.$refs.viewCustomers.page.pageSize,
pageNum: this.$refs.viewCustomers.page.pageNum
}
this.exportParams = { ...JSON.parse(JSON.stringify(this.allListParams)) }
this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))}
this.loading2 = true;
getCustomersList(params).then(res => {
this.tableData = res.data
this.tableTotal = res.count
if (res.data.length == 0) {
this.$refs.viewCustomers.setTableHeightFun()
}
setTimeout(()=>{
this.loading2 = false;
},300)
})
},
//获取标签组
......@@ -486,6 +514,30 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.expandImg {
display: flex;
justify-content: center;
.smallFontSize {
margin-left: 2px;
height: 20px;
font-size: 12px;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
}
.imgEll {
margin-left: 6.5px;
cursor: pointer;
// margin-bottom:3px;
}
}
.pure-green-text {
color: #61cc43;
}
.pure-yello-text {
color: #fb8f28;
}
.noRelatedLabel {
margin-top: 59px;
text-align: center;
......@@ -535,17 +587,6 @@ export default {
}
}
.export {
width: 74px;
height: 32px;
// font-size: 14px;
// color: #666666;
// line-height: 32px;
// background: #ffffff;
// border-radius: 4px;
// text-align: center;
// border: 1px solid rgba(105, 105, 105, 0.3);
box-sizing: border-box;
padding: 6px 23px;
}
}
::v-deep .el-dialog {
......@@ -647,6 +688,7 @@ export default {
font-size: 20px;
}
.glsx-table {
// min-width: 1250px;
/deep/ .el-table__fixed,
/deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!