Commit bb40025b by xuyl

更新2.4代码

1 parent c9e06b28
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div> -->
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage"> <keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,marketingPeople">
<router-view></router-view> <router-view></router-view>
</keep-alive> </keep-alive>
</div> </div>
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http3 } from '@/main' import {
http3
} from '@/main'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router' // const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
//获取数据概览上方的数据 /rop-scrm-datahub //获取数据概览上方的数据 /rop-scrm-datahub
...@@ -36,7 +38,7 @@ export function getDataOverviewBarMap(params) { ...@@ -36,7 +38,7 @@ export function getDataOverviewBarMap(params) {
export function getCustomerList(params) { export function getCustomerList(params) {
params.method = 'entmicro.api.customer.cluster.page' params.method = 'entmicro.api.customer.cluster.page'
return http3({ return http3({
url:'/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -46,7 +48,7 @@ export function getCustomerList(params) { ...@@ -46,7 +48,7 @@ export function getCustomerList(params) {
export function getcrowdManageList(params) { export function getcrowdManageList(params) {
params.method = 'entmicro.api.customer.crowd.page' params.method = 'entmicro.api.customer.crowd.page'
return http3({ return http3({
url:'/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
// url:'http://192.168.3.193:8395/rop-scrm-entmicro/router', // url:'http://192.168.3.193:8395/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -58,10 +60,32 @@ export function getcrowdManageList(params) { ...@@ -58,10 +60,32 @@ export function getcrowdManageList(params) {
export function customerClusterListExport(params) { export function customerClusterListExport(params) {
params.method = 'entmicro.api.customer.customerClusterListExport' params.method = 'entmicro.api.customer.customerClusterListExport'
return http3({ return http3({
url:'/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//获取客户分群展示
export function customerClusterListShow(params) {
params.method = 'scrm.api.datahub.user.queryCrowdGroupList'
return http3({
url: 'http://192.168.3.226:9636/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
// 通过分群Id查询人群列表详情请求
export function marketingPeopleListShow(params) {
params.method = 'scrm.api.datahub.user.queryCrowdListByCrowdGroupId'
return http3({
url: 'http://192.168.3.226:9636/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
\ No newline at end of file \ No newline at end of file
...@@ -24,8 +24,8 @@ const staticRoutes = Object.freeze([{ ...@@ -24,8 +24,8 @@ const staticRoutes = Object.freeze([{
}, },
{ {
name: 'marketingPeople', name: 'marketingPeople',
path: '/clientDataOverview/GroupOperating/marketingPeople', path: '/clientDataOverview/marketingPeople',
component: resolve => require([`@/views/clientDataOverview/GroupOperating/marketingPeople`], resolve), component: resolve => require([`@/views/clientDataOverview/marketingPeople`], resolve),
meta: {} meta: {}
}, },
{ {
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<GLCombiForm :formObj="searchForm" :formData="searchFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <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 v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="marketingPlan" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams">
<template slot="options" slot-scope="scope"> <template slot="options" slot-scope="scope">
<el-button class="blue-text" type="text" @click="goBasicInfo(scope.scope)">SOP分析</el-button> <el-button class="blue-text" type="text" @click="goSOPAnalysis(scope.scope.id)">SOP分析</el-button>
<el-button class="blue-text" type="text" @click="goBasicInfo(scope.scope)">编辑</el-button> <el-button class="blue-text" type="text" @click="goSOPEdit(scope.scope.id)">编辑</el-button>
<el-button class="blue-text" type="text" @click="confirm('delete')">删除</el-button> <el-button class="blue-text" type="text" @click="confirm('delete')">删除</el-button>
<el-button class="blue-text" type="text" @click="confirm(scope.scope)">结束</el-button> <el-button class="blue-text" type="text" @click="confirm(scope.scope)">结束</el-button>
</template> </template>
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<script> <script>
import { getTableList } from '@/api/modules/clientManage' import { getTableList } from '@/api/modules/clientManage'
import util from '@/utils/util'
export default { export default {
data() { data() {
return { return {
...@@ -87,6 +88,14 @@ export default { ...@@ -87,6 +88,14 @@ export default {
}, 200) }, 200)
}, },
methods: { methods: {
// 跳转SOP分析
goSOPAnalysis(){
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&id=183`)
},
// 跳转SOP编辑页面
goSOPEdit(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`)
},
// 确认删除或结束 // 确认删除或结束
confirm(type) { confirm(type) {
this.$confirm(`是否确认${type == 'delete' ? '删除' : '结束'}?`, '提示', { this.$confirm(`是否确认${type == 'delete' ? '删除' : '结束'}?`, '提示', {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div> <div>
<el-button size="small" @click="handleExport" class="export">导出</el-button> <el-button size="small" @click="handleExport" class="export">导出</el-button>
<el-button plain size="small"> <el-button plain size="small" @click="createMarketSOP()">
营销SOP 营销SOP
</el-button> </el-button>
</div> </div>
...@@ -91,7 +91,8 @@ export default { ...@@ -91,7 +91,8 @@ export default {
{ {
type: 'input', type: 'input',
name: 'customerPhone', name: 'customerPhone',
label: '联系电话' label: '联系电话',
width:170
}, },
{ {
type: 'input', type: 'input',
...@@ -172,7 +173,7 @@ export default { ...@@ -172,7 +173,7 @@ export default {
prop: 'followStaff', prop: 'followStaff',
// addHtml: 'followStaff', // addHtml: 'followStaff',
width: 170, width: 170,
line:1 line: 1
}, },
{ {
label: '是否加企微', //1. 加入,0.未加入 label: '是否加企微', //1. 加入,0.未加入
...@@ -234,6 +235,10 @@ export default { ...@@ -234,6 +235,10 @@ export default {
this.getStaffList() this.getStaffList()
}, },
methods: { methods: {
// 跳转到营销SOP
createMarketSOP(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('新建SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/group?selectTab=1')}&addOrEdit=add&id=183`)
},
//获取跟进员工 //获取跟进员工
getStaffList() { getStaffList() {
getStaffList({}).then(res => { getStaffList({}).then(res => {
...@@ -297,7 +302,7 @@ export default { ...@@ -297,7 +302,7 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1
} }
if (this.crowdType) params.customCrowd = true if (this.crowdType == 1 || this.crowdType == 2) params.customCrowd = true
customerClusterListExport(params).then(res => { customerClusterListExport(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<div class="topmsg"> <div class="topmsg">
<span class="normalTitle">客户分层</span> <span class="normalTitle">客户分层</span>
<div style="display:flex"> <div style="display: flex">
<div class="leftPieEcharts"> <div class="leftPieEcharts">
<div class="leftIntro"> <div class="leftIntro">
<span class="title">客户总数</span> <span class="title">客户总数</span>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
<div class="itembox"> <div class="itembox">
<div style="display:flex;overflow:hidden"> <div style="display: flex; overflow: hidden">
<div class="buy"> <div class="buy">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div"> <div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<div class="buyTitle"> <div class="buyTitle">
...@@ -292,33 +292,33 @@ ...@@ -292,33 +292,33 @@
</div> </div>
</div> </div>
<div class="itembox"> <div class="itembox">
<template v-for="(item, index) in titles"> <template v-for="(item, index) in customerSegmentation">
<!-- fn="人群客户列表" mode="div" --> <!-- fn="人群客户列表" mode="div" -->
<div class="item" @click="goToGroupOperating()" :key="index"> <div class="item" @click="goToGroupOperating(item.crowdGroupId)" :key="index">
<div class="itemTitle"> <div class="itemTitle">
<span class="itemName">{{ item.name }}</span> <span class="itemName">{{ item.crowdGroupName }}</span>
<el-popover placement="top" trigger="hover" :content="item.subName"> <el-popover placement="top" trigger="hover" :content="item.crowdGroupDesc">
<span class="dataOverPopover">{{ item.subName }}</span> <span class="dataOverPopover">{{ item.crowdGroupDesc }}</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" /> <img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover> </el-popover>
</div> </div>
<div class="itemBottom"> <div class="itemBottom">
<p class="totalNum"> <p class="totalNum">
{{ item.num | overThousandFilter }} {{ item.total | overThousandFilter }}
<span class="enum">人</span> <span class="enum">人</span>
</p> </p>
<div class="middlemsg-qiwei-total"> <div class="middlemsg-qiwei-total">
<div class="qiwei-describe"> <div class="qiwei-describe">
<div class="inWechat">已加企微</div> <div class="inWechat">已加企微</div>
<div class="num"> <div class="num">
{{ (item.add(topDataObj) || 0) | overThousandFilter }} {{ (item.wechatTotal || 0) | overThousandFilter }}
<span class="person-text">人</span> <span class="person-text">人</span>
</div> </div>
</div> </div>
<div class="qiwei-describe"> <div class="qiwei-describe">
<div class="inWechat">未加企微</div> <div class="inWechat">未加企微</div>
<div class="num"> <div class="num">
{{ (item.noAdd(topDataObj) || 0) | overThousandFilter }} {{ (item.notWechatTotal || 0) | overThousandFilter }}
<span class="person-text">人</span> <span class="person-text">人</span>
</div> </div>
</div> </div>
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
<script> <script>
import $ from 'jquery' import $ from 'jquery'
import { rwdImageMaps } from './jquery.rwdImageMaps.js' import { rwdImageMaps } from './jquery.rwdImageMaps.js'
import { getDataOverview, getDataOverviewBarMap } from '@/api/modules/clientDataOverview' import { getDataOverview, getDataOverviewBarMap, customerClusterListShow } from '@/api/modules/clientDataOverview'
import { getLoginCount } from '@/api/modules/loginCount' import { getLoginCount } from '@/api/modules/loginCount'
import pieEchart from '@/components/echarts/pieEchart' import pieEchart from '@/components/echarts/pieEchart'
// import pieEchartCopy from '@/components/echarts/pieEchartCopy' // import pieEchartCopy from '@/components/echarts/pieEchartCopy'
...@@ -410,56 +410,57 @@ export default { ...@@ -410,56 +410,57 @@ export default {
burseholderCustomerCount: 0, burseholderCustomerCount: 0,
silenceCustomerCount: 0 silenceCustomerCount: 0
}, },
titles: [ customerSegmentation: [], //客户分群展示列表
{ // titles: [
name: '新车客户数', // {
subName: '购车时间3个月的客户', // name: '新车客户数',
num: 0, // subName: '购车时间3个月的客户',
add: obj => { // num: 0,
return obj.newCarCustomerAddCount // add: obj => {
}, // return obj.newCarCustomerAddCount
noAdd: obj => { // },
return obj.newCarCustomerNAddCount // noAdd: obj => {
}, // return obj.newCarCustomerNAddCount
id: 7 // },
}, // id: 7
{ // },
name: '车险待续保客户数', // {
subName: '近一个月内车险即将到期的客户', // name: '车险待续保客户数',
num: 0, // subName: '近一个月内车险即将到期的客户',
add: obj => { // num: 0,
return obj.needRenewalCustomerAddCount // add: obj => {
}, // return obj.needRenewalCustomerAddCount
noAdd: obj => { // },
return obj.needRenewalCustomerNAddCount // noAdd: obj => {
}, // return obj.needRenewalCustomerNAddCount
id: 8 // },
}, // id: 8
{ // },
name: '新车待首保客户数', // {
subName: '购车时间5~7个月内,且无保养记录的客户', // name: '新车待首保客户数',
num: 0, // subName: '购车时间5~7个月内,且无保养记录的客户',
add: obj => { // num: 0,
return obj.burseholderCustomerAddCount // add: obj => {
}, // return obj.burseholderCustomerAddCount
noAdd: obj => { // },
return obj.burseholderCustomerNAddCount // noAdd: obj => {
}, // return obj.burseholderCustomerNAddCount
id: 9 // },
}, // id: 9
{ // },
name: '沉默客户数', // {
subName: '超过180天未到店的客户', // name: '沉默客户数',
num: 0, // subName: '超过180天未到店的客户',
add: obj => { // num: 0,
return obj.silenceCustomerAddCount // add: obj => {
}, // return obj.silenceCustomerAddCount
noAdd: obj => { // },
return obj.silenceCustomerNAddCount // noAdd: obj => {
}, // return obj.silenceCustomerNAddCount
id: 10 // },
} // id: 10
], // }
// ],
isNoBuyUp: 0, //默认环比为增 isNoBuyUp: 0, //默认环比为增
isBuyUp: 0, isBuyUp: 0,
bottomDataObj: {}, bottomDataObj: {},
...@@ -516,6 +517,7 @@ export default { ...@@ -516,6 +517,7 @@ export default {
//运行在qiankun容器中 //运行在qiankun容器中
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType this.userType = this.$globalState.session.userType
this.merchantId = this.$globalState.session.merchantId
} }
// 掉两个数据接口 // 掉两个数据接口
...@@ -524,10 +526,20 @@ export default { ...@@ -524,10 +526,20 @@ export default {
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner; //先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner; //不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this.getDataOverviewBarMapFun() this.getDataOverviewBarMapFun()
this.customerListShow()
}, },
methods: { methods: {
goToGroupOperating() { customerListShow() {
this.$router.push('/clientDataOverview/GroupOperating/marketingPeople') let param = {
'req.merchantId': this.merchantId
}
customerClusterListShow(param).then(res => {
this.customerSegmentation = res.crowdGroupUnitList
console.log(this.customerSegmentation)
})
},
goToGroupOperating(id) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}`)
}, },
goNextPage() { goNextPage() {
// window.open('https://www.baidu.com', '_blank') // window.open('https://www.baidu.com', '_blank')
...@@ -634,8 +646,6 @@ export default { ...@@ -634,8 +646,6 @@ export default {
// this.titles[1].num = res.needRenewalCustomerCount // this.titles[1].num = res.needRenewalCustomerCount
// this.titles[2].num = res.burseholderCustomerCount // this.titles[2].num = res.burseholderCustomerCount
// this.titles[4].num = res.silenceCustomerCount // this.titles[4].num = res.silenceCustomerCount
console.log(res, '这是上面数据')
this.isNoBuyUp = res.purposeUp this.isNoBuyUp = res.purposeUp
this.isBuyUp = res.purchaseUp this.isBuyUp = res.purchaseUp
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner; //先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
...@@ -671,10 +681,10 @@ export default { ...@@ -671,10 +681,10 @@ export default {
// }) // })
// } // }
console.log(this.isHasCustomerCountBanner, 'true/fasle') console.log(this.isHasCustomerCountBanner, 'true/fasle')
this.$set(this.titles[0], 'num', res.newCarCustomerCount) // this.$set(this.titles[0], 'num', res.newCarCustomerCount)
this.$set(this.titles[1], 'num', res.needRenewalCustomerCount) // this.$set(this.titles[1], 'num', res.needRenewalCustomerCount)
this.$set(this.titles[2], 'num', res.burseholderCustomerCount) // this.$set(this.titles[2], 'num', res.burseholderCustomerCount)
this.$set(this.titles[3], 'num', res.silenceCustomerCount) // this.$set(this.titles[3], 'num', res.silenceCustomerCount)
}) })
// .catch(err => { // .catch(err => {
// console.log('错误信息:', err) // console.log('错误信息:', err)
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<!-- 切换导航栏 --> <!-- 切换导航栏 -->
<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 label="营销人群" name="first">
<!-- v-if="activeName == 'first'" -->
<div class="pageContent"> <div class="pageContent">
<div class="markPeople"> <div class="markPeople">
<span>营销人群</span> <span>营销人群</span>
...@@ -26,13 +25,13 @@ ...@@ -26,13 +25,13 @@
<div class="bigMarketItem" v-if="closeFlag"> <div class="bigMarketItem" v-if="closeFlag">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)"> <div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<template v-if="idx < displayNum"> <template v-if="idx < displayNum">
<p class="peopleName">人群名称</p> <p class="peopleName">{{ item.crowdName }}</p>
<div class="itemBox"> <div class="itemBox">
<p class="peopleNum"> <p class="peopleNum">
{{ item.num }} {{ item.total }}
<span>人</span> <span>人</span>
</p> </p>
<p class="peopledesc">{{ item.desc }}</p> <p class="peopledesc">{{ item.crowdDesc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP()" :disabled="item.type">创建营销SOP</el-button> <el-button class="createSOP" @click.stop="createMarketSOP()" :disabled="item.type">创建营销SOP</el-button>
</div> </div>
</template> </template>
...@@ -43,13 +42,13 @@ ...@@ -43,13 +42,13 @@
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx, item.title)"> <div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx, item.title)">
<div class="marketItem-border"> <div class="marketItem-border">
<p class="peopleName">{{ item.title }}</p> <p class="peopleName">{{ item.crowdName }}</p>
<div class="itemBox"> <div class="itemBox">
<p class="peopleNum"> <p class="peopleNum">
{{ item.num }} {{ item.total }}
<span>人</span> <span>人</span>
</p> </p>
<p class="peopledesc">{{ item.desc }}</p> <p class="peopledesc">{{ item.crowdDesc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP(item.id)" :disabled="item.type">创建营销SOP</el-button> <el-button class="createSOP" @click.stop="createMarketSOP(item.id)" :disabled="item.type">创建营销SOP</el-button>
</div> </div>
</div> </div>
...@@ -82,15 +81,16 @@ ...@@ -82,15 +81,16 @@
</template> </template>
<script> <script>
import { marketingPeopleListShow } from '@/api/modules/clientDataOverview'
import marketingPlan from './components/marketingPlan.vue' import marketingPlan from './components/marketingPlan.vue'
import Swiper from 'swiper' import Swiper from 'swiper'
import util from '@/utils/util'
import 'swiper/dist/css/swiper.min.css' import 'swiper/dist/css/swiper.min.css'
export default { export default {
name: 'marketPeople', name: 'marketingPeople',
components: { marketingPlan }, components: { marketingPlan },
data() { data() {
return { return {
crowdGroupId: '',
activeName: 'first', activeName: 'first',
searchForm: {}, searchForm: {},
isActive: -1, isActive: -1,
...@@ -98,16 +98,15 @@ export default { ...@@ -98,16 +98,15 @@ export default {
closeFlag: false, //展开收起 closeFlag: false, //展开收起
showTitle: '', // 展示的标题 showTitle: '', // 展示的标题
itemArr: [ itemArr: [
// 后台传一个状态回来 // { title: 'N-23待定保客户', num: 323, desc: '我顶着大太阳,只想为你撑伞', id: 1, type: 'false' },
{ title: 'N-23待定保客户', num: 323, desc: '我顶着大太阳,只想为你撑伞', id: 1, type: 'false' }, // { title: 'N-45待定保客户', num: 1312, desc: '你专心在画睫毛,我专心在等你笑', id: 2 },
{ title: 'N-45待定保客户', num: 1312, desc: '你专心在画睫毛,我专心在等你笑', id: 2 }, // { title: 'N-33待定保客户', num: 43133, desc: '气球在我手上,牵着你瞎逛' },
{ title: 'N-33待定保客户', num: 43133, desc: '气球在我手上,牵着你瞎逛' }, // { title: 'N-1待定保客户', num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
{ title: 'N-1待定保客户', num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' }, // { title: 'N-2待定保客户', num: 1233, desc: '喜欢在人潮中,你只属于我的那画面' },
{ title: 'N-2待定保客户', num: 1233, desc: '喜欢在人潮中,你只属于我的那画面' }, // { title: 'N-7待定保客户', num: 43133, desc: '但偏偏,风渐渐,把距离吹的好远' },
{ title: 'N-7待定保客户', num: 43133, desc: '但偏偏,风渐渐,把距离吹的好远' }, // { title: 'N-6待定保客户', num: 123213, desc: '最美的不是下雨天,是曾与你躲过雨的屋檐' },
{ title: 'N-6待定保客户', num: 123213, desc: '最美的不是下雨天,是曾与你躲过雨的屋檐' }, // { title: 'N-5待定保客户', num: 1233, desc: '美人鱼的眼泪' },
{ title: 'N-5待定保客户', num: 1233, desc: '美人鱼的眼泪' }, // { title: 'N-4待定保客户', num: 1233, desc: '我一路向北,离开有你的季节' }
{ title: 'N-4待定保客户', num: 1233, desc: '我一路向北,离开有你的季节' }
], ],
marketPeopleFormList: [ marketPeopleFormList: [
{ {
...@@ -227,23 +226,54 @@ export default { ...@@ -227,23 +226,54 @@ export default {
minWidth: 120 minWidth: 120
}, },
{ {
label: '性别', label: '联系电话',
prop: 'customerSex', prop: 'customerSex',
addHtml: 'customerSex' addHtml: 'customerSex',
width: 150
}, },
{ {
label: '入群方式', label: '车架号',
prop: 'joinScene', prop: 'joinScene',
addHtml: 'joinScene', addHtml: 'joinScene',
minWidth: 140 minWidth: 140
}, },
{ {
label: '邀请人', label: '车牌号',
prop: 'invitorName', prop: 'invitorName',
minWidth: 120 minWidth: 120
}, },
{ {
label: '入群时间', label: '车系',
prop: 'joinTime',
width: 170
},
{
label: '车险开始时间',
prop: 'joinTime',
width: 170
},
{
label: '车险到期时间',
prop: 'joinTime',
width: 170
},
{
label: '跟进员工',
prop: 'joinTime',
width: 170
},
{
label: '是否加企微',
prop: 'joinTime',
width: 170
},
{
label: '购车时间',
prop: 'joinTime',
width: 170
},
{
label: '添加时间',
prop: 'joinTime', prop: 'joinTime',
width: 170 width: 170
} }
...@@ -261,7 +291,11 @@ export default { ...@@ -261,7 +291,11 @@ export default {
// getListApi: getDetailQuitTableList, // getListApi: getDetailQuitTableList,
} }
}, },
created() {
// this.$route.query || this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
this.crowdGroupId = this.$route.query.crowdId
this.getMarketingPeople()
},
mounted() { mounted() {
new Swiper('.swiper-container', { new Swiper('.swiper-container', {
// paginationClickable: true, // paginationClickable: true,
...@@ -276,6 +310,17 @@ export default { ...@@ -276,6 +310,17 @@ export default {
}) })
}, },
methods: { methods: {
// 获取营销人群展示
getMarketingPeople() {
let params = {
'req.crowdGroupId': this.crowdGroupId
}
marketingPeopleListShow(params).then(res => {
console.log(res)
this.itemArr = res.crowdUnitList
console.log(this.itemArr)
})
},
// 搜索表格 // 搜索表格
searchTable() { searchTable() {
console.log(this.searchForm) console.log(this.searchForm)
...@@ -288,7 +333,7 @@ export default { ...@@ -288,7 +333,7 @@ export default {
}, },
// 跳转到营销SOP // 跳转到营销SOP
createMarketSOP(id) { createMarketSOP(id) {
util.openUrl(location.origin + `/marketing/sop/editSop?addOrEdit=add&fromPage=sopList&corwedId=${id}`) this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('新建SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=1')}&addOrEdit=add&id=183`)
}, },
expandClick(val) { expandClick(val) {
if (val == 'expand') { if (val == 'expand') {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<GLButton type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton> <GLButton type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton>
<!-- <span style="margin-left: 20px" @click="btnClick('view', scope.scope)" class="blue-text">查看客户</span> --> <!-- <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="btnClick('view', scope.scope)">查看客户</GLButton> <GLButton class="blue-text leftDistance" type="text" fn="客户列表" v-if="userType !== 2" @click="btnClick('view', scope.scope)">查看客户</GLButton>
<el-button type="text" class="blue-text" >营销SOP</el-button> <el-button type="text" class="blue-text" @click="createMarketSOP()">营销SOP</el-button>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -116,6 +116,11 @@ export default { ...@@ -116,6 +116,11 @@ export default {
console.log(this.$route.params) console.log(this.$route.params)
}, },
methods: { methods: {
// 跳转到营销SOPs
createMarketSOP(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('新建SOP')}&fromPage=${encodeURI('/npmph/crowdManage/index')}&addOrEdit=add&info={
customerOptType=2}`)
},
btnClick(type, data) { btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2 const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') { if (type == 'detail') {
......
...@@ -95,10 +95,7 @@ ...@@ -95,10 +95,7 @@
> >
保存为人群 保存为人群
</el-button> </el-button>
<el-button <el-button plain size="small" @click="createMarketSOP()">
plain
size="small"
>
营销SOP 营销SOP
</el-button> </el-button>
</div> </div>
...@@ -582,6 +579,10 @@ export default { ...@@ -582,6 +579,10 @@ export default {
// toViewCustomer(info) { // toViewCustomer(info) {
// this.$router.push('/tagsManage/viewCustomers') // this.$router.push('/tagsManage/viewCustomers')
// }, // },
// 跳转到营销SOP
createMarketSOP(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('新建SOP')}&fromPage=${encodeURI('/npmph/tagsManage/index')}&addOrEdit=add&id=183`)
},
toViewCustomer(info) { toViewCustomer(info) {
console.log(info) console.log(info)
const id = info.labelGroup.id const id = info.labelGroup.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!