Commit 6852d519 by 李长胜

修改

1 parent c96b069f
......@@ -19,7 +19,7 @@
<span>
<!-- {{ leftPanelInfo.customerName }} -->
{{ beautySub(leftPanelInfo.customerName) }}
<span style="color:#5850ff">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</span>
<span style="color: #5850ff">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</span>
</span>
</span>
</el-tooltip>
......@@ -70,7 +70,7 @@
<p>
<span>渠道来源</span>
<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>
</p>
</div>
......@@ -90,7 +90,12 @@
</p>
<!--1. 车辆信息表 -->
<!-- :row-style="{ height: 88 + 'px' }" -->
<el-table :data="vehicleTableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable :hasNum="false" :tableData="vehicleTableData" :hasPage="false" :tableParams="vehicleTableParams" :headerStyle="{ height: '54px' }">
<span slot="standNo" slot-scope="scope">
<span>{{ myStandNo(scope.scope) }}</span>
</span>
</GLTable>
<!-- <el-table :data="vehicleTableData" style="width: 100%" :headerStyle="{ height: '54px' }">
<el-table-column prop="standNo" label="车架号(后6位)" align="center" width="120">
<template slot-scope="scope">
<span>{{ myStandNo(scope.scope) }}</span>
......@@ -106,7 +111,7 @@
</template>
</el-table-column>
<el-table-column prop="vehicleType" label="车型" align="center">
<template slot-scope="scope">
<template slot-scope="scope">
<el-tooltip :content="scope.row.vehicleType" placement="top">
<p class="showOverTooltip">{{ scope.row.vehicleType }}</p>
</el-tooltip>
......@@ -115,26 +120,20 @@
<el-table-column prop="vehicleModelYear" label="年款" align="center"></el-table-column>
<el-table-column prop="vehiclePrice" label="购车价格" align="center">
<template slot-scope="scope">
<span>{{scope.row.vehiclePrice || ''}}</span>
<span>{{ scope.row.vehiclePrice || '' }}</span>
</template>
</el-table-column>
<el-table-column prop="buyTime" label="购车时间" align="center"></el-table-column>
<el-table-column prop="insBgnTime" label="保险开始时间" align="center" width="120"></el-table-column>
<el-table-column prop="insEndTime" label="保险到期时间" align="center" width="120"></el-table-column>
<el-table-column prop="maintRecTime" label="最近保养时间" align="center" width="120"></el-table-column>
<!-- 无数据插槽用法 -->
<!-- <div slot="empty" class="emptyBg">
<img src="@/assets/clientDataOverview/nodata.png" alt="">
<div>暂无数据</div>
</div> -->
</el-table>
</el-table> -->
<p>
<span>跟进员工</span>
<span>{{ employTableList.length || 0 }}人</span>
</p>
<!-- <div></div> -->
<!--2. 员工跟进表 -->
<GLTable :hasNum="false" :tableData="employTableList" :hasPage="false" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable :hasNum="false" :tableData="employTableList" :hasPage="false" :tableParams="employTableParams" :headerStyle="{ height: '54px' }">
<span slot="addWay" slot-scope="scope">
<span>{{ scope.scope.addWay | toLabel }}</span>
</span>
......@@ -142,44 +141,18 @@
<span>{{ addTypeToLable(scope.scope.addType) }}</span>
</span>
</GLTable>
<!-- <el-table :data="employTableList" style="width: 100%" :header-cell-style="{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column prop="staffName" label="跟进员工" align="center"></el-table-column>
<el-table-column prop="departmentName" label="所属部门" align="center"></el-table-column>
<el-table-column prop="addTime" label="添加时间" align="center"></el-table-column>
<el-table-column prop="addWay" label="来源" align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.addWay" placement="top">
<p class="showOverTooltip">{{ scope.row.addWay }}</p>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="addType" label="添加类型" align="center"></el-table-column>
<el-table-column prop="remarkMobiles" label="备注手机号" align="center"></el-table-column>
<el-table-column prop="remark" label="备注" align="center"></el-table-column>
<el-table-column prop="description" label="描述" align="center"></el-table-column>
</el-table> -->
<p>
<span>所属群聊</span>
<span>{{ clientGroupTableList.length || 0 }}个</span>
</p>
<!-- <div>所属客户群表格,待定</div> -->
<!-- 3.所属客户群/群聊 -->
<el-table :data="clientGroupTableList" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column label="客户群名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.groupName || '群聊(默认)' }}</span>
</template>
</el-table-column>
<el-table-column prop="groupHostName" label="群主" align="center"></el-table-column>
<el-table-column prop="membersNumber" label="客户数" align="center"></el-table-column>
<el-table-column prop="groupNickName" label="本群昵称" align="center"></el-table-column>
<el-table-column prop="joinTime" label="入群时间" align="center"></el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<span class="blue-text" @click="goDetail(scope.row.id, scope.row.groupName)">详情</span>
</template>
</el-table-column>
</el-table>
<GLTable :hasNum="false" :tableData="clientGroupTableList" :hasPage="false" :tableParams="clientGroupTableParams" :headerStyle="{ height: '54px' }">
<span slot="groupName" slot-scope="scope">
<span>{{ scope.scope.groupName || '群聊(默认)' }}</span>
</span>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="goDetail(scope.scope.id, scope.scope.groupName)">详情</el-button>
</div>
</GLTable>
</div>
</div>
<basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :isShowThirdBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
......@@ -219,10 +192,73 @@ export default {
// { name: '初次沟通', id: 2 }
],
vehicleTableData: [],
vehicleTableParams: {
listName: 'vehicleInfoList',
tableOption: false,
tableColumns: [
{
label: '车架号(后6位)',
prop: 'standNo',
addHtml: 'standNo',
minWidth:'120'
},
{
label: '车牌号',
prop: 'vehicleNo'
},
{
label: '车辆品牌',
prop: 'vehicleBrand'
},
{
label: '车系',
prop: 'vehicleTrain',
width:160,
line: 2
},
{
label: '车型',
prop: 'vehicleType',
width:160,
line: 2
},
{
label: '年款',
prop: 'vehicleModelYear'
},
{
label: '购车价格',
prop: 'vehiclePrice',
formatter: cellValue => {
return cellValue.vehiclePrice || ''
}
},
{
label: '购车时间',
prop: 'buyTime',
},
{
label: '保险开始时间',
prop: 'insBgnTime',
minWidth:'120'
},
{
label: '保险到期时间',
prop: 'insEndTime',
minWidth:'120'
},
{
label: '最近保养时间',
prop: 'maintRecTime',
minWidth:'120'
},
]
},
//员工跟进
tableParams: {
employTableParams: {
listName: 'staffFollows',
// tableOption: true,
tableOption: false,
tableColumns: [
{
label: '跟进员工',
......@@ -263,8 +299,43 @@ export default {
]
},
employTableList: [],
employTableTotal: 0,
clientGroupTableList: [],
clientGroupTableParams: {
listName: 'customerBases',
tableColumns: [
{
label: '客户群名称',
prop: 'groupName',
addHtml: 'groupName'
},
{
label: '群主',
prop: 'groupHostName'
},
{
label: '客户数',
prop: 'membersNumber'
},
{
label: '本群昵称',
prop: 'groupNickName'
},
{
label: '入群时间',
prop: 'joinTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '80px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
// tableOption:{
// width:80
// }
},
//弹窗数据
tagsDialogTitle: '添加标签',
tagsVisible: false,
......@@ -278,7 +349,7 @@ export default {
merchantId: 10001001,
merchantModel: 1, //集团:1,门店:2
userType: 0, //1是商户,2是员工
userid:0 //小龙需要用户id
userid: 0 //小龙需要用户id
}
},
created() {
......@@ -300,11 +371,11 @@ export default {
str:需要进行处理的字符串,可含汉字
len:需要显示多少个汉字,两个英文字母相当于一个汉字
*/
myStandNo(row){
if(!row){
myStandNo(row) {
if (!row) {
return ''
}
return row.standNo.substring(row.standNo.length - 6)
return row.standNo.substring(row.standNo.length - 6)
},
beautySub(value) {
......@@ -363,7 +434,7 @@ export default {
if (!res) {
return false
}
this.userid=res.userid;
this.userid = res.userid
this.leftPanelInfo = res.info
this.vehicleTableData = res.vehicleInfoList || []
this.employTableList = res.staffFollows || []
......@@ -445,7 +516,7 @@ export default {
'req.labelGroupId': item.labelGroup.id,
'req.edition': this.merchantModel,
'req.merchantId': this.merchantId,
'req.staffId':this.userid
'req.staffId': this.userid
// 'req.labelIdList': item.labelList.map(ele => ele.id)
}
var ids = item.labelList.map(ele => ele.id)
......@@ -608,7 +679,7 @@ export default {
display: -webkit-box;
text-overflow: ellipsis;
overflow: hidden;
/*这里是2行*/
/*这里是2行*/
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!