Commit 51dc5da4 by xuyl

开发紧急需求

1 parent 79037a75
......@@ -23,6 +23,12 @@ const staticRoutes = Object.freeze([{
meta: {}
},
{
name: 'marketingPeople',
path: '/clientDataOverview/GroupOperating/marketingPeople',
component: resolve => require([`@/views/clientDataOverview/GroupOperating/marketingPeople`], resolve),
meta: {}
},
{
name: 'clientManage',
path: '/clientManage/index',
component: resolve => require([`@/views/clientManage/index.vue`], resolve),
......
<template>
<div class="scrm-sub-client-container">
<div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="searchFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="marketingPlan" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable>
</div>
</div>
</template>
<script>
export default {
data() {
return {
searchForm: {},
searchFormList: [{
type: 'input',
inputType: 'text',
// name: 'keyword',
label: '分群名称',
placeholder: '请输入分群关键字'
},
{
type: 'select',
// name: 'type',
label: '营销状态',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: ''
},
{
label: '救援服务',
value: 3
},
{
label: '新车询价',
value: 4
},
{
label: '试驾预约',
value: 5
},
{
label: '维保预约',
value: 6
}
],
placeholder: '请选择'
}
],
// getListApi: getTableList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '人群名称',
prop: 'orderNo'
},
{
label: 'SOP名称',
prop: 'name'
},
{
label: '营销时间',
prop: 'phone'
},
{
label: '完成度',
prop: 'dsdasd'
},
{
label: '营销状态',
prop: 'dsdasds'
}
]
}
}
},
mounted() {
//没数据的时候要算高度
setTimeout(() => {
if (!this.$refs.marketingPlan.data.length) {
this.loading = true
this.$refs.marketingPlan.setTableHeightFun()
this.loading = false
}
}, 200)
},
methods: {
setTableFinishFun() {
this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun()
},
setTableHeightEvent() {
this.$refs.marketingPlan.setTableHeightFun()
},
// 搜索表格
searchTable() {
console.log(this.searchForm)
this.$refs.marketingPlan.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = {
status: '',
type: ''
}
this.$refs.marketingPlan.refreshTable()
}
}
}
</script>
<style lang="scss" scoped>
.pageContent {
padding: 20px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
}
</style>
<template>
<div>
<!-- 大标题 -->
<p class="topTitle">
<span class="title">待定保客户</span>
<span class="desc">下个月待定保客户</span>
</p>
<!-- 切换导航栏 -->
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="营销人群" name="first">
<div class="pageContent">
<div class="markPeople">
<span>
营销人群
</span>
<span>展开营销人群
<i class="el-icon-arrow-down color-58"></i>
</span>
</div>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div class="marketItem">
<p class="peopleName">人群名称</p>
<div class="itemBox">
<p class="peopleNum">
111
<span>人</span>
</p>
<p class="peopledesc">上次到店满30天,不满40天的待定保客户</p>
<el-button class="createSOP">创建营销SOP</el-button>
</div>
</div>
<el-progress :percentage="percentage" color="#eee"></el-progress>
</div>
<div class="otherPageContent">
<GLCombiForm :formObj="searchForm" :formData="marketPeopleFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span>N-3待定保客户</span>
</div>
<div>
<el-button size="small" @click="handleExport">导出</el-button>
<el-button class="marketSOP" size="small">营销SOP</el-button>
</div>
</div>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="marketPeople" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams"></GLTable>
</div>
</el-tab-pane>
<el-tab-pane label="营销计划" name="second">
<marketing-plan></marketing-plan>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import marketingPlan from './components/marketingPlan.vue'
export default {
name: 'marketPeople',
components: { marketingPlan },
data() {
return {
activeName: 'first',
searchForm: {},
marketPeopleFormList: [
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '车牌号'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '车系'
},
{
type: 'select',
name: 'status',
label: '跟进员工',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: ''
},
{
label: '待跟进',
value: 0
},
{
label: '跟进中',
value: 1
},
{
label: '已完成',
value: 2
}
],
placeholder: '请选择'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '联系电话'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '企微名称'
},
{
type: 'input',
inputType: 'text',
name: 'userName',
label: '客户名称'
},
{
type: 'select',
name: 'type',
label: '是否已加企微',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: ''
},
{
label: '救援服务',
value: 3
},
{
label: '新车询价',
value: 4
},
{
label: '试驾预约',
value: 5
},
{
label: '维保预约',
value: 6
}
],
placeholder: '请选择'
},
{
type: 'datePicker',
name: 'daterange',
label: '购车',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'datePicker',
name: 'daterange',
label: '车险到期时间',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
listName: 'data',
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
minWidth: 150
},
{
label: '企微名称',
prop: 'customerPhone',
minWidth: 120
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth: 140
},
{
label: '邀请人',
prop: 'invitorName',
minWidth: 120
},
{
label: '入群时间',
prop: 'joinTime',
width: 170
}
],
tableOption: {
width: 60,
btnList: [
{
name: '详情',
pType: 'detail'
}
]
}
}
// getListApi: getDetailQuitTableList,
}
},
methods: {
setTableFinishFun() {
this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
},
setTableHeightEvent() {
this.$refs.marketPeople.setTableHeightFun()
},
handleClick(tab) {
console.log(tab)
}
}
}
</script>
<style lang="scss" scoped>
.topTitle {
.title {
color: #333333;
font-size: 20px;
font-weight: 600;
}
.desc {
margin-left: 8px;
font-size: 14px;
color: #666666;
}
}
/deep/.el-tabs__header {
padding: 5px 0;
.el-tabs__item {
font-size: 16px;
}
}
.pageContent {
padding: 0 0 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
.markPeople {
padding: 20px 20px 0;
display: flex;
justify-content: space-between;
font-weight: 600;
color: #333333;
span:last-child {
color: #5850ff;
}
}
.marketItem {
padding: 0 20px;
width: 23%;
.peopleName {
height: 54px;
line-height: 54px;
background: #f7f7fc;
font-size: 16px;
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
}
.itemBox {
border-left: 1px solid #ededf0;
border-right: 1px solid #ededf0;
border-bottom: 1px solid #ededf0;
padding: 0 16px;
box-sizing: border-box;
.peopleNum {
padding: 24px 0;
font-size: 26px;
font-weight: 600;
color: #333333;
span {
font-size: 14px;
font-weight: 400;
}
}
.peopledesc {
font-size: 14px;
color: #666666;
}
.createSOP {
margin: 24px 0;
border-radius: 4px;
border: 1px solid #5850ff;
width: 100%;
color: #5850ff;
padding: 9px 20px;
}
}
}
}
.otherPageContent {
padding: 20px 20px 30px;
margin-top: 16px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 20px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
.marketSOP {
color: #666666;
border: 1px solid #696969;
}
}
}
.PageContent2 {
padding: 20px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
}
</style>
......@@ -98,7 +98,7 @@
<p class="clientNum">
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent }}</span>
<span class="numPro">占比:{{ (topDataObj.purchaseCustomerAddPercent && topDataObj.purchaseCustomerAddPercent.toFixed(2)) || 0 }}%</span>
</p>
<!-- <div class="marketingBtn">
<el-dropdown>
......@@ -124,7 +124,7 @@
<p class="clientNum">
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerNAddPercent }}</span>
<span class="numPro">占比:{{ (topDataObj.purchaseCustomerNAddPercent && topDataObj.purchaseCustomerNAddPercent.toFixed(2)) || 0 }}%</span>
</p>
<!-- <div class="marketingBtn">
智能营销
......@@ -179,7 +179,7 @@
<p class="clientNum">
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent }}</span>
<span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span>
</p>
<!-- <div class="marketingBtn">
<el-dropdown>
......@@ -205,7 +205,7 @@
<p class="clientNum">
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purposeCustomerNAddPercent }}</span>
<span class="numPro">占比:{{ (topDataObj.purposeCustomerNAddPercent && topDataObj.purposeCustomerNAddPercent.toFixed(2) || 0) }}%</span>
</p>
<!-- <div class="marketingBtn">
智能营销
......@@ -282,7 +282,7 @@
</div>
</div>
<div class="middlemsg">
<span class="normalTitle">客户分群</span>
<span class="normalTitle" @click="goToGroupOperating()">客户分群</span>
<div class="itembox">
<template v-for="(item, index) in titles">
<div class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
......@@ -707,6 +707,9 @@ export default {
goto(id) {
if (this.userType == 2) return
this.$router.push('/clientDataOverview/group/' + id)
},
goToGroupOperating() {
this.$router.push('/clientDataOverview/GroupOperating/marketingPeople')
}
}
}
......@@ -1016,7 +1019,7 @@ export default {
.no-buy,
.buy {
display: flex;
margin-left: 10px;
margin-left: 16px;
width: 50%;
background-color: #f9f9fc;
padding-bottom: 20px;
......@@ -1108,7 +1111,7 @@ export default {
// height: 110px;
width: 50%;
background: #f9f9fc;
margin-left: 10px;
margin-left: 16px;
padding: 16px 32px 20px 16px;
cursor: pointer;
.intend-name {
......@@ -1168,8 +1171,12 @@ export default {
display: flex;
justify-content: space-between;
.item {
width: 24%;
width: 25%;
margin-right: 16px;
cursor: pointer;
&:last-child{
margin-right: 0;
}
.itemTitle {
height: 54px;
background: #f4f6fc;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!