Commit 3160123c by 王志慧

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

2 parents 84c8367c f2be8785
...@@ -94,7 +94,7 @@ export function getTableDetail(params) { ...@@ -94,7 +94,7 @@ export function getTableDetail(params) {
} }
/*获取来源字典的 /*获取来源字典的
*/ */
export function getDictionaryFun(params) { export function getDictionaryFun(params) {
params.method = 'entmicro.api.common.dictdata.list' params.method = 'entmicro.api.common.dictdata.list'
return http3({ return http3({
...@@ -104,7 +104,15 @@ export function getDictionaryFun(params) { ...@@ -104,7 +104,15 @@ export function getDictionaryFun(params) {
sign: true 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 // entmicro.api.customer.list.export
//客户信息管理导出 //客户信息管理导出
export function clientManageExportApi(params) { export function clientManageExportApi(params) {
......
...@@ -31,7 +31,7 @@ ...@@ -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> <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>
<template v-else-if="item.type === 'select'"> <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-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> </el-select>
</template> </template>
......
<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>
...@@ -101,7 +114,7 @@ ...@@ -101,7 +114,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">{{ vehicleTableData.length || 0 }}辆</span> <span class="font-14 color-58">{{ vehicleTableData | filterCar }}辆</span>
</div> </div>
<div class="expande-button" v-if="expande" @click="expandeClick(false, 'expande')"> <div class="expande-button" v-if="expande" @click="expandeClick(false, 'expande')">
<span class="font-14 color-58">收起</span> <span class="font-14 color-58">收起</span>
...@@ -109,7 +122,7 @@ ...@@ -109,7 +122,7 @@
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande"> <div class="expande-button" @click="expandeClick(true, 'expande')" v-if="vehicleTableData.length > 1 && !expande">
<span class="font-14 color-58">更多车辆</span> <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>
</div> </div>
<layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row> <layout-row class="layout-detail" :layoutData="vehicleTableData" :layoutParams="vehicleTableParams" :isHidden="expande"></layout-row>
...@@ -125,7 +138,7 @@ ...@@ -125,7 +138,7 @@
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande"> <div class="expande-button" @click="expandeClick(true, 'deviceExpande')" v-if="deviceTableData.length > 1 && !deviceExpande">
<span class="font-14 color-58">更多设备</span> <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>
</div> </div>
<layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row> <layout-row class="layout-detail" :layoutData="deviceTableData" :layoutParams="deviceTableParams" :isHidden="deviceExpande"></layout-row>
...@@ -141,8 +154,8 @@ ...@@ -141,8 +154,8 @@
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-down color-58"></i>
</div> </div>
<div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande"> <div class="expande-button" @click="expandeClick(true, 'guaranteeExpande')" v-if="guaranteeTableData.length > 1 && !guaranteeExpande">
<span class="font-14 color-58">更多设备</span> <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>
</div> </div>
<layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row> <layout-row class="layout-detail" :layoutData="guaranteeTableData" :layoutParams="guaranteeTableParams" :isHidden="guaranteeExpande"></layout-row>
...@@ -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,
...@@ -284,7 +298,7 @@ export default { ...@@ -284,7 +298,7 @@ export default {
}, },
{ {
label: '发动机号:', label: '发动机号:',
prop: 'vehicleBrand' prop: 'engineNumber'
}, },
{ {
label: '车辆品牌:', label: '车辆品牌:',
...@@ -300,7 +314,7 @@ export default { ...@@ -300,7 +314,7 @@ export default {
}, },
{ {
label: '车身颜色:', label: '车身颜色:',
prop: 'vehicleType' prop: 'vehicleColor'
}, },
{ {
label: '购车价格:', label: '购车价格:',
...@@ -327,72 +341,72 @@ export default { ...@@ -327,72 +341,72 @@ export default {
deviceTableParams: [ deviceTableParams: [
{ {
label: '设备号(SN/IMEI):', label: '设备号(SN/IMEI):',
prop: 'standNo', prop: 'sn',
addHtml: 'standNo' addHtml: 'standNo'
}, },
{ {
label: '设备流量卡(ICCID):', label: '设备流量卡(ICCID):',
prop: 'vehicleNo' prop: 'iccId'
}, },
{ {
label: '设备类型:', label: '设备类型:',
prop: 'vehicleBrand' prop: 'deviceType'
}, },
{ {
label: '设备型号:', label: '设备型号:',
prop: 'vehicleBrand' prop: 'deviceModel'
}, },
{ {
label: '验证码:', label: '验证码:',
prop: 'vehicleTrain' prop: 'verificationCode'
}, },
{ {
label: '批次号:', label: '批次号:',
prop: 'vehicleType' prop: 'batchNo'
}, },
{ {
label: '绑定车辆(车架号):', label: '绑定车辆(车架号):',
prop: 'vehicleType' prop: 'standNo'
}, },
{ {
label: '设备激活时间:', label: '设备激活时间:',
prop: 'vehiclePrice' prop: 'deviceActiveTime'
} }
], ],
guaranteeTableData: [], //保单 guaranteeTableData: [], //保单
guaranteeTableParams: [ guaranteeTableParams: [
{ {
label: '保单号:', label: '保单号:',
prop: 'standNo', prop: 'attInsureOrder',
addHtml: 'standNo' addHtml: 'standNo'
}, },
{ {
label: '产品名称:', label: '产品名称:',
prop: 'vehicleNo' prop: 'attProductName'
}, },
{ {
label: '服务期限:', label: '服务期限:',
prop: 'vehicleBrand' prop: 'attServicePeriod'
}, },
{ {
label: '服务公司:', label: '服务公司:',
prop: 'vehicleBrand' prop: 'attServiceCompany'
}, },
{ {
label: '保险生效时间:', label: '保险生效时间:',
prop: 'vehicleTrain' prop: 'attInsureStartTime'
}, },
{ {
label: '保险到期时间:', label: '保险到期时间:',
prop: 'vehicleType' prop: 'attInsureEndTime'
}, },
{ {
label: '保险提单时间:', label: '保险提单时间:',
prop: 'vehicleType' prop: 'attInsureSubmitTime'
}, },
{ {
label: '绑定车辆:', label: '绑定车辆:',
prop: 'vehiclePrice' prop: 'standNo'
} }
], ],
//员工跟进 //员工跟进
...@@ -402,39 +416,49 @@ export default { ...@@ -402,39 +416,49 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '跟进员工', label: '跟进员工',
prop: 'staffName' prop: 'staffName',
//align: 'left'
}, },
{ {
label: '所属部门', label: '所属部门',
prop: 'departmentName' prop: 'departmentName',
//align: 'left'
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime', prop: 'addTime',
width: 100 minWidth: 160,
//align: 'left'
}, },
{ {
label: '来源', label: '来源',
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay' addHtml: 'addWay',
//align: 'left',
minWidth: 120
}, },
{ {
label: '添加类型', label: '添加类型',
prop: 'addType', prop: 'addType',
addHtml: 'addType', addHtml: 'addType',
width: 170 width: 170,
//align: 'left'
}, },
{ {
label: '备注手机号', label: '备注手机号',
prop: 'remarkMobiles' prop: 'remarkMobiles',
minWidth: 120,
//align: 'left'
}, },
{ {
label: '备注', label: '备注',
prop: 'remark' prop: 'remark',
//align: 'left'
}, },
{ {
label: '描述', label: '描述',
prop: 'description' prop: 'description',
//align: 'left'
} }
] ]
}, },
...@@ -446,23 +470,28 @@ export default { ...@@ -446,23 +470,28 @@ export default {
{ {
label: '群聊名称', label: '群聊名称',
prop: 'groupName', prop: 'groupName',
addHtml: 'groupName' addHtml: 'groupName',
//align: 'left'
}, },
{ {
label: '群主', label: '群主',
prop: 'groupHostName' prop: 'groupHostName',
//align: 'left'
}, },
{ {
label: '客户数', label: '客户数',
prop: 'membersNumber' prop: 'membersNumber',
//align: 'left'
}, },
{ {
label: '本群昵称', label: '本群昵称',
prop: 'groupNickName' prop: 'groupNickName',
//align: 'left'
}, },
{ {
label: '入群时间', label: '入群时间',
prop: 'joinTime' prop: 'joinTime',
//align: 'left'
}, },
{ {
label: '操作', label: '操作',
...@@ -502,7 +531,7 @@ export default { ...@@ -502,7 +531,7 @@ export default {
label: '已打标签', label: '已打标签',
prop: 'labelInfoList', prop: 'labelInfoList',
addHtml: 'labelInfoList', addHtml: 'labelInfoList',
align: 'left' //align: 'left'
} }
] ]
}, },
...@@ -540,7 +569,25 @@ export default { ...@@ -540,7 +569,25 @@ export default {
// this.getSingleClientTag(this.$route.query.id, this.merchantId) // this.getSingleClientTag(this.$route.query.id, this.merchantId)
console.log(this.tagsParams, 'kkkk') 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: { methods: {
// 切换基本信息的显示
switchBaseInfo() {
this.isShowBaseInfo = !this.isShowBaseInfo
},
expandeClick(value, data) { expandeClick(value, data) {
this[data] = value this[data] = value
}, },
...@@ -632,8 +679,9 @@ export default { ...@@ -632,8 +679,9 @@ export default {
this.userid = res.userid this.userid = res.userid
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.vehicleTableData = [{}] || [] this.deviceTableData = res.deviceInfoList || []
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 || []
...@@ -818,14 +866,14 @@ export default { ...@@ -818,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;
...@@ -842,8 +890,8 @@ export default { ...@@ -842,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;
...@@ -895,15 +943,42 @@ export default { ...@@ -895,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%;
...@@ -919,8 +994,8 @@ export default { ...@@ -919,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;
...@@ -930,7 +1005,7 @@ export default { ...@@ -930,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;
} }
...@@ -1167,6 +1242,10 @@ export default { ...@@ -1167,6 +1242,10 @@ export default {
font-size: 10px; font-size: 10px;
margin-left: 7px; margin-left: 7px;
} }
.el-icon-arrow-up {
font-size: 10px;
margin-left: 7px;
}
} }
} }
.layout-detail { .layout-detail {
......
...@@ -16,7 +16,7 @@ ...@@ -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"> <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"> <span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top"> <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> </el-tooltip>
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> --> <!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> -->
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 2 && idx == 2"> <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 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"> <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 class="el-icon-user-solid" style="color: #75acff"></i>
<!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} --> <!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} -->
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
</div> </div>
<span v-if="idx == 1"> <span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" :key="index" style="padding-bottom:3px !important"> <div v-for="(i, index) in scope.scope.nickNameList" :key="index" style="padding-bottom: 3px !important">
<span>{{ i.nickName }}</span> <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> </div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" /> <img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover> </el-popover>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</template> </template>
<script> <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' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'clientManage', name: 'clientManage',
...@@ -113,34 +113,34 @@ export default { ...@@ -113,34 +113,34 @@ export default {
searchFormTable: {}, searchFormTable: {},
clientManageFormList: [ clientManageFormList: [
{ {
type: 'daterange', type: 'input',
prop: 'daterange', inputType: 'text',
label: '添加时间', prop: 'customerPhone',
pickerOptions: { label: '联系电话',
disabledDate(time) { placeholder: '联系电话'
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
}, },
{ {
type: 'select', type: 'select',
prop: 'status', name: 'followStaffList',
label: '当前状态', prop: 'followStaff',
placeholder: '请选择当前状态', noFilter: false,
options: [ label: '跟进员工',
{ placeholder: '请输入跟进员工',
label: '全部', options: []
value: null
}, },
{ {
label: '正常', type: 'input',
value: 0 inputType: 'text',
prop: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}, },
{ {
label: '删除好友', type: 'input',
value: -1 inputType: 'text',
} prop: 'nickName',
] label: '企微名称',
placeholder: '请输入企微名称'
}, },
{ {
type: 'select', type: 'select',
...@@ -164,7 +164,39 @@ export default { ...@@ -164,7 +164,39 @@ export default {
}, },
{ {
type: 'select', type: 'select',
prop: 'status',
label: '当前状态',
placeholder: '请选择当前状态',
options: [
{
label: '全部',
value: null
},
{
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', prop: 'addWay',
name: 'addWaySource',
label: '添加来源', label: '添加来源',
placeholder: '请选择当前来源', placeholder: '请选择当前来源',
options: [] //this.$Constants.SOURCE_OPTION options: [] //this.$Constants.SOURCE_OPTION
...@@ -175,34 +207,6 @@ export default { ...@@ -175,34 +207,6 @@ export default {
label: '性别', label: '性别',
placeholder: '请选择性别', placeholder: '请选择性别',
options: this.$Constants.GENDER_OPTION 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 { ...@@ -215,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: '操作',
...@@ -287,6 +302,7 @@ export default { ...@@ -287,6 +302,7 @@ export default {
// width: 80 // width: 80
// } // }
}, },
followList2: [],
getListApi: getTableList, getListApi: getTableList,
sourceList: [], sourceList: [],
merchantModel: 1, merchantModel: 1,
...@@ -304,6 +320,7 @@ export default { ...@@ -304,6 +320,7 @@ export default {
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
this.getDictionaryFun() this.getDictionaryFun()
this.getStaffList()
}, },
// filters:{ // filters:{
// // 截取@后面的文字 // // 截取@后面的文字
...@@ -373,6 +390,10 @@ export default { ...@@ -373,6 +390,10 @@ export default {
if (!res) { if (!res) {
return return
} }
// addWaySource
const id = this.clientManageFormList.findIndex(item => {
return item.name == 'addWaySource'
})
let data = res.map(item => { let data = res.map(item => {
return { return {
...item, ...item,
...@@ -381,12 +402,35 @@ export default { ...@@ -381,12 +402,35 @@ export default {
} }
}) })
data.unshift({ label: '全部', value: '' }) data.unshift({ label: '全部', value: '' })
this.sourceList = data || [] this.sourceList = data || []
if (data && data.length > 0) { if (data && data.length > 0) {
window.localStorage.setItem('sourceList', JSON.stringify(data)) 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 //来源 value值转为对应label
...@@ -548,6 +592,5 @@ export default { ...@@ -548,6 +592,5 @@ export default {
background-color: #fff !important; background-color: #fff !important;
} }
} }
} }
</style> </style>
...@@ -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="新建人群" 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-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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!