Commit f2be8785 by 徐忆琳

Merge branch 'xuyl_dev_v2.0.0' into 'v2.0.0'

更新v2.0.0

See merge request !5
2 parents e73908d5 de253457
<template> <template>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="header"> <!-- <div class="header">
<div class="userId"> <div class="userId">
<span>客户ID:{{ leftPanelInfo.oneId }}</span> <span>客户ID:{{ leftPanelInfo.oneId }}</span>
</div> </div>
<button class="backBtn" @click="goBack">返回客户信息管理</button> <button class="backBtn" @click="goBack">返回客户信息管理</button>
</div> </div> -->
<div class="content"> <div class="content">
<div class="leftWrap"> <div class="leftWrap">
<div class="avatorStyle">
<div class="avator"> <div class="avator">
<img :src="leftPanelInfo.avatar" alt="" v-if="leftPanelInfo.avatar" /> <img :src="leftPanelInfo.avatar" alt="" v-if="leftPanelInfo.avatar" />
<img src="@/assets/clientDetail/defaultAvator.png" alt="" v-else /> <img src="@/assets/clientDetail/defaultAvator.png" alt="" v-else />
</div> </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> <p>
<span>客户名称:</span> <span>客户姓名:</span>
<el-tooltip effect="dark" :content="leftPanelInfo.customerName" placement="top"> <el-tooltip effect="dark" :content="leftPanelInfo.customerName" placement="top">
<span class="ellipsis-1"> <span class="ellipsis-1">
<!-- {{ leftPanelInfo.customerName }} --> <!-- {{ leftPanelInfo.customerName }} -->
...@@ -64,7 +75,7 @@ ...@@ -64,7 +75,7 @@
<span class="ellipsis-1">{{ leftPanelInfo.type == 1 ? '微信用户' : leftPanelInfo.type == 2 ? '企微用户' : '' }}</span> <span class="ellipsis-1">{{ leftPanelInfo.type == 1 ? '微信用户' : leftPanelInfo.type == 2 ? '企微用户' : '' }}</span>
</p> </p>
<p> <p>
<span>是否加企微:</span> <span>是否加入企微:</span>
<!-- 1-是,2-否 --> <!-- 1-是,2-否 -->
<span>{{ leftPanelInfo.isJoin == 1 ? '是' : leftPanelInfo.isJoin == 0 ? '否' : '' }}</span> <span>{{ leftPanelInfo.isJoin == 1 ? '是' : leftPanelInfo.isJoin == 0 ? '否' : '' }}</span>
</p> </p>
...@@ -75,7 +86,7 @@ ...@@ -75,7 +86,7 @@
</p> </p>
<p> <p>
<span>所属渠道:</span> <span>来源渠道:</span>
<el-tooltip effect="dark" :content="leftPanelInfo.sourceChannel" placement="top"> <el-tooltip effect="dark" :content="leftPanelInfo.sourceChannel" placement="top">
<span class="ellipsis-1">{{ leftPanelInfo.sourceChannel }}</span> <span class="ellipsis-1">{{ leftPanelInfo.sourceChannel }}</span>
</el-tooltip> </el-tooltip>
...@@ -91,6 +102,8 @@ ...@@ -91,6 +102,8 @@
<span>{{ leftPanelInfo.addTime }}</span> <span>{{ leftPanelInfo.addTime }}</span>
</p> </p>
</div> </div>
</div>
</div>
<div class="rightWrap"> <div class="rightWrap">
<div class="choseRow"> <div class="choseRow">
<span class="tabItemText" :class="{ activeItemText: currentIndex == 1 }" @click="tabClick(1)">概况</span> <span class="tabItemText" :class="{ activeItemText: currentIndex == 1 }" @click="tabClick(1)">概况</span>
...@@ -117,7 +130,7 @@ ...@@ -117,7 +130,7 @@
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
设备信息 设备信息
<span class="font-14 color-58">{{ deviceTableData | filterCar }}辆</span> <span class="font-14 color-58">{{ deviceTableData.length || 0 }}辆</span>
</div> </div>
<div class="expande-button" v-if="deviceExpande" @click="expandeClick(false, 'deviceExpande')"> <div class="expande-button" v-if="deviceExpande" @click="expandeClick(false, 'deviceExpande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
...@@ -134,7 +147,7 @@ ...@@ -134,7 +147,7 @@
<div class="public-text"> <div class="public-text">
<div class="public-text-info font-16 flex"> <div class="public-text-info font-16 flex">
保单信息 保单信息
<span class="font-14 color-58">{{ guaranteeTableData | filterCar }}辆</span> <span class="font-14 color-58">{{ guaranteeTableData.length || 0 }}辆</span>
</div> </div>
<div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')"> <div class="expande-button" v-if="guaranteeExpande" @click="expandeClick(false, 'guaranteeExpande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
...@@ -260,6 +273,7 @@ export default { ...@@ -260,6 +273,7 @@ export default {
}, },
data() { data() {
return { return {
isShowBaseInfo: true,
isShowTooltip: false, isShowTooltip: false,
remark: '', remark: '',
sloading: false, sloading: false,
...@@ -403,46 +417,48 @@ export default { ...@@ -403,46 +417,48 @@ export default {
{ {
label: '跟进员工', label: '跟进员工',
prop: 'staffName', prop: 'staffName',
align: 'left' //align: 'left'
}, },
{ {
label: '所属部门', label: '所属部门',
prop: 'departmentName', prop: 'departmentName',
align: 'left' //align: 'left'
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime', prop: 'addTime',
width: 100, minWidth: 160,
align: 'left' //align: 'left'
}, },
{ {
label: '来源', label: '来源',
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay', addHtml: 'addWay',
align: 'left' //align: 'left',
minWidth: 120
}, },
{ {
label: '添加类型', label: '添加类型',
prop: 'addType', prop: 'addType',
addHtml: 'addType', addHtml: 'addType',
width: 170, width: 170,
align: 'left' //align: 'left'
}, },
{ {
label: '备注手机号', label: '备注手机号',
prop: 'remarkMobiles', prop: 'remarkMobiles',
align: 'left' minWidth: 120,
//align: 'left'
}, },
{ {
label: '备注', label: '备注',
prop: 'remark', prop: 'remark',
align: 'left' //align: 'left'
}, },
{ {
label: '描述', label: '描述',
prop: 'description', prop: 'description',
align: 'left' //align: 'left'
} }
] ]
}, },
...@@ -455,27 +471,27 @@ export default { ...@@ -455,27 +471,27 @@ export default {
label: '群聊名称', label: '群聊名称',
prop: 'groupName', prop: 'groupName',
addHtml: 'groupName', addHtml: 'groupName',
align: 'left' //align: 'left'
}, },
{ {
label: '群主', label: '群主',
prop: 'groupHostName', prop: 'groupHostName',
align: 'left' //align: 'left'
}, },
{ {
label: '客户数', label: '客户数',
prop: 'membersNumber', prop: 'membersNumber',
align: 'left' //align: 'left'
}, },
{ {
label: '本群昵称', label: '本群昵称',
prop: 'groupNickName', prop: 'groupNickName',
align: 'left' //align: 'left'
}, },
{ {
label: '入群时间', label: '入群时间',
prop: 'joinTime', prop: 'joinTime',
align: 'left' //align: 'left'
}, },
{ {
label: '操作', label: '操作',
...@@ -515,7 +531,7 @@ export default { ...@@ -515,7 +531,7 @@ export default {
label: '已打标签', label: '已打标签',
prop: 'labelInfoList', prop: 'labelInfoList',
addHtml: 'labelInfoList', addHtml: 'labelInfoList',
align: 'left' //align: 'left'
} }
] ]
}, },
...@@ -568,6 +584,10 @@ export default { ...@@ -568,6 +584,10 @@ export default {
} }
}, },
methods: { methods: {
// 切换基本信息的显示
switchBaseInfo() {
this.isShowBaseInfo = !this.isShowBaseInfo
},
expandeClick(value, data) { expandeClick(value, data) {
this[data] = value this[data] = value
}, },
...@@ -660,8 +680,8 @@ export default { ...@@ -660,8 +680,8 @@ export default {
this.staffId = res.staffId this.staffId = res.staffId
this.leftPanelInfo = res.info this.leftPanelInfo = res.info
this.vehicleTableData = res.vehicleInfoList || [{}] this.vehicleTableData = res.vehicleInfoList || [{}]
this.deviceTableData = res.deviceInfoList || [{}] this.deviceTableData = res.deviceInfoList || []
this.guaranteeTableData = res.insureInfoList || [{}] //保单 this.guaranteeTableData = res.insureInfoList || [] //保单
this.employTableList = res.staffFollows || [] this.employTableList = res.staffFollows || []
this.clientGroupTableList = res.customerBases || [] this.clientGroupTableList = res.customerBases || []
this.tagsList = res.labels || [] this.tagsList = res.labels || []
...@@ -846,14 +866,14 @@ export default { ...@@ -846,14 +866,14 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.qiweiItem { .qiweiItem {
max-width: 132px; max-width: 140px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
.qiweiItemNick { .qiweiItemNick {
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
color: #666666; color: #333333;
letter-spacing: 0; letter-spacing: 0;
line-height: 20px; line-height: 20px;
font-weight: 400; font-weight: 400;
...@@ -870,8 +890,8 @@ export default { ...@@ -870,8 +890,8 @@ export default {
} }
.WechatName { .WechatName {
font-weight: 600; font-weight: 500;
color: #333333; color: #666666;
line-height: 20px; line-height: 20px;
margin-left: 20px; margin-left: 20px;
height: 20px; height: 20px;
...@@ -923,15 +943,42 @@ export default { ...@@ -923,15 +943,42 @@ export default {
min-height: calc(100vh - 92px); min-height: calc(100vh - 92px);
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 20px; // padding: 0 20px;
box-sizing: border-box; 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 { .avator {
margin: 0 auto; margin: 0 auto;
margin-top: 40px; margin-top: 40px;
margin-bottom: 12px;
width: 60px; width: 60px;
height: 60px; height: 60px;
text-align: center; text-align: center;
line-height: 60px; line-height: 60px;
img { img {
border-radius: 50%; border-radius: 50%;
width: 100%; width: 100%;
...@@ -947,8 +994,8 @@ export default { ...@@ -947,8 +994,8 @@ export default {
display: inline-block; display: inline-block;
// height: 20px; // height: 20px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 500;
color: #333333; color: #666666;
line-height: 20px; line-height: 20px;
min-width: 90px; min-width: 90px;
text-align: right; text-align: right;
...@@ -958,7 +1005,7 @@ export default { ...@@ -958,7 +1005,7 @@ export default {
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #333333;
line-height: 20px; line-height: 20px;
max-width: 146px; max-width: 146px;
} }
......
...@@ -219,65 +219,76 @@ export default { ...@@ -219,65 +219,76 @@ export default {
{ {
label: '客户ID', label: '客户ID',
prop: 'oneId', prop: 'oneId',
minWidth: 160 minWidth: 150,
// //align: 'left'
}, },
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
minWidth: 150 minWidth: 130,
// //align: 'left'
}, },
{ {
label: '企微名称', label: '企微名称',
prop: 'nickNameList', prop: 'nickNameList',
addHtml: 'nickNameList', addHtml: 'nickNameList',
minWidth: 200 minWidth: 170,
// //align: 'left'
}, },
{ {
label: '联系电话', label: '联系电话',
prop: 'customerPhone', prop: 'customerPhone',
addHtml: 'customerPhone', addHtml: 'customerPhone',
minWidth: 110 minWidth: 110,
// //align: 'left'
}, },
{ {
label: '性别', label: '性别',
prop: 'customerSex', prop: 'customerSex',
addHtml: 'customerSex', addHtml: 'customerSex',
minWidth: 80 minWidth: 80,
// //align: 'left'
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
addHtml: 'followStaff', addHtml: 'followStaff',
minWidth: 120 minWidth: 120,
// //align: 'left'
}, },
{ {
label: '是否加企微', //1. 加入,0.未加入 label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoin', prop: 'isJoin',
addHtml: 'isJoin', addHtml: 'isJoin',
width: 100 width: 100,
// //align: 'left'
}, },
{ {
label: '当前状态', label: '当前状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status',
minWidth: 100 minWidth: 100,
// //align: 'left'
}, },
{ {
label: '所属渠道', label: '所属渠道',
prop: 'sourceChannel', prop: 'sourceChannel',
width: 120 width: 150,
// //align: 'left'
}, },
{ {
label: '添加来源', label: '添加来源',
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay', addHtml: 'addWay',
minWidth: 100 minWidth: 100,
// //align: 'left'
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime', prop: 'addTime',
width: 150 width: 150,
// //align: 'left'
}, },
{ {
label: '操作', label: '操作',
...@@ -403,6 +414,9 @@ export default { ...@@ -403,6 +414,9 @@ export default {
staffName: val ? val.trim() : '' staffName: val ? val.trim() : ''
} }
getStaffList(params).then(res => { getStaffList(params).then(res => {
if (res.length == 0) {
return ''
}
const id = this.clientManageFormList.findIndex(item => { const id = this.clientManageFormList.findIndex(item => {
return item.name == 'followStaffList' return item.name == 'followStaffList'
}) })
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-tabs v-model="activeName" @tab-click="handleClick()"> <el-tabs v-model="activeName" @tab-click="handleClick()">
<el-tab-pane label="推荐人群" name="first"></el-tab-pane> <el-tab-pane label="推荐人群" name="first"></el-tab-pane>
<el-tab-pane label="自定义人群" name="second"> <el-tab-pane label="自定义人群" name="second">
<GLButton class="addBtn" fn="新建人群" @click="addClick">+ 新建人群</GLButton> <GLButton class="addBtn" fn="新建人群" @click="addClick"><i class="el-icon-plus"></i> 新建人群</GLButton>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div class="pageContent"> <div class="pageContent">
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
</search-form> </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' }"> <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"> <template slot="xxx" slot-scope="scope">
<span @click="btnClick('detail', scope.scope)" class="blue-text">查看详情</span> <!-- <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 type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton>
<!-- <GLButton class="blue-text leftDistance" type="text" fn="查看客户" v-if="userType !== 2" @click="toViewCustomer(scope.scope)">查看客户</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> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -57,26 +58,26 @@ export default { ...@@ -57,26 +58,26 @@ export default {
label: '人群名称', label: '人群名称',
prop: 'crowdName', prop: 'crowdName',
// addHtml: 'crowdName', // addHtml: 'crowdName',
align: 'left' // //align: 'left'
}, },
{ {
label: '人群描述', label: '人群描述',
prop: 'crowdDesc', prop: 'crowdDesc',
align: 'left' //align: 'left'
// width: 180 // width: 180
}, },
{ {
label: '人数', label: '人数',
prop: 'total', prop: 'total',
// addHtml: 'total', // addHtml: 'total',
align: 'left' //align: 'left'
}, },
{ {
label: '操作', label: '操作',
prop: 'xxx', prop: 'xxx',
fixed: 'right', fixed: 'right',
addHtml: 'xxx', addHtml: 'xxx',
align: 'left', //align: 'left',
width: 180 width: 180
} }
] ]
......
...@@ -199,33 +199,33 @@ export default { ...@@ -199,33 +199,33 @@ export default {
label: '客户', label: '客户',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
align: 'left' //align: 'left'
// width: 200 // width: 200
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime', prop: 'createdTime',
align: 'left' //align: 'left'
// width: 200 // width: 200
}, },
{ {
label: '现群名称', label: '现群名称',
prop: 'chatName', prop: 'chatName',
align: 'left' //align: 'left'
}, },
{ {
label: '现群主', label: '现群主',
prop: 'createdBy', prop: 'createdBy',
// minWidth: '180px', // minWidth: '180px',
addHtml: 'groupOwner', addHtml: 'groupOwner',
align: 'left' //align: 'left'
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status',
// width: 250, // width: 250,
align: 'left' //align: 'left'
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!