Commit 6852d519 by 李长胜

修改

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