Commit 6d8a3d27 by 前端

Merge branch 'wangzh_dev_2.3.3' into 'v2.3.3'

Wangzh dev 2.3.3

See merge request !24
2 parents 54ab9d76 585e90c8
/*
* @Description:
* @Author: huyue
* @Date: 2022-06-06 14:26:32
* @LastEditors: huyue
* @LastEditTime: 2022-06-06 21:19:53
*/
const url = '/rop-scrm-marketing/router' const url = '/rop-scrm-marketing/router'
export default { export default {
/** /**
...@@ -23,7 +30,7 @@ export default { ...@@ -23,7 +30,7 @@ export default {
taskOverviewData(data) { taskOverviewData(data) {
data.method = 'marketing.api.solicit.taskOverview' data.method = 'marketing.api.solicit.taskOverview'
return window.$HTTP({ return window.$HTTP({
url: 'http://192.168.3.226:8593/rop-scrm-marketing/router', url:'http://192.168.3.226:8593/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
...@@ -41,7 +48,7 @@ export default { ...@@ -41,7 +48,7 @@ export default {
createdOcmarketing(data) { createdOcmarketing(data) {
data.method = 'marketing.api.solicit.ocmarketing.send' data.method = 'marketing.api.solicit.ocmarketing.send'
return window.$HTTP({ return window.$HTTP({
url, url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data data
}) })
}, },
...@@ -50,7 +57,7 @@ export default { ...@@ -50,7 +57,7 @@ export default {
getocmarketingList(data) { getocmarketingList(data) {
data.method = 'marketing.api.solicit.ocmarketing.echo' data.method = 'marketing.api.solicit.ocmarketing.echo'
return window.$HTTP({ return window.$HTTP({
url, url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
...@@ -70,7 +77,7 @@ export default { ...@@ -70,7 +77,7 @@ export default {
getCustomerList(data) { getCustomerList(data) {
data.method = 'marketing.api.solicit.page.customer.condition' data.method = 'marketing.api.solicit.page.customer.condition'
return window.$HTTP({ return window.$HTTP({
url: 'http://192.168.1.170:8065/rop-scrm-marketing/router', url:'http://192.168.1.170:8065/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
...@@ -88,7 +95,7 @@ export default { ...@@ -88,7 +95,7 @@ export default {
sendSolicitRecord(data) { sendSolicitRecord(data) {
data.method = 'marketing.api.solicit.record.save' data.method = 'marketing.api.solicit.record.save'
return window.$HTTP({ return window.$HTTP({
url, url:'http://192.168.1.170:8065/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
......
<template> <template>
<div> <div>
<div class="customer-box" v-for="item in customerInfo" :key="item.id"> <div class="customer-box" v-for="item in customerData" :key="item.id">
<div class="customer-title"> <div class="customer-title">
<div class="customer-name">{{ item.customerName }}</div> <div class="customer-name">{{ item.customerName }}</div>
<div class="customer-carnumber">{{ item.cars.length > 0 && item.cars[0].carNumber }}</div> <div class="customer-carnumber">{{ item.cars.length > 0 && item.cars[0].carNumber }}</div>
...@@ -84,6 +84,11 @@ export default { ...@@ -84,6 +84,11 @@ export default {
} }
} }
}, },
watch: {
customerInfo(n) {
this.customerData = n
}
},
data() { data() {
return { return {
// 电话营销弹窗 // 电话营销弹窗
...@@ -96,7 +101,9 @@ export default { ...@@ -96,7 +101,9 @@ export default {
chatId: '' chatId: ''
}, },
followCustomerData: {}, followCustomerData: {},
phoneNumber: null phoneNumber: null,
customerData: this.customerInfo,
} }
}, },
mounted() { mounted() {
......
...@@ -110,6 +110,9 @@ export default { ...@@ -110,6 +110,9 @@ export default {
default: '' default: ''
} }
}, },
created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : ''
},
computed: { computed: {
...mapState({ ...mapState({
followResultList: state => state.solicit.followResultList, followResultList: state => state.solicit.followResultList,
...@@ -180,7 +183,8 @@ export default { ...@@ -180,7 +183,8 @@ export default {
followFlag: this.selectFollowForm.checked ? 1 : 0, followFlag: this.selectFollowForm.checked ? 1 : 0,
activityId: this.activityId, activityId: this.activityId,
staffId: this.staffId, staffId: this.staffId,
groupId: this.groupId groupId: this.groupId,
actCutId: this.info.actCutId //活动客户id//活动客户id
} }
// 如果选择标签为预约到店,判断日期和时间是否填了 // 如果选择标签为预约到店,判断日期和时间是否填了
...@@ -192,7 +196,7 @@ export default { ...@@ -192,7 +196,7 @@ export default {
} }
if (this.selectFollowForm.followResult == 1) params.orderTime = this.selectFollowForm.orderTime if (this.selectFollowForm.followResult == 1) params.orderTime = this.selectFollowForm.orderTime
console.log(params) console.log(params)
solicitApi.sendSolicitRecord({ params }).then(({ code, data, message }) => { solicitApi.sendSolicitRecord(params).then(({ code, data, message }) => {
if (code == 0) { if (code == 0) {
Toast('提交成功') Toast('提交成功')
this.initFormData() this.initFormData()
......
import {solicitApi} from '@/api' import {solicitApi} from '@/api'
import { util } from 'utils'
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
currentIndex: 0, currentIndex: 0,
follewIndex: 0, follewIndex: 0,
activityId: window.localStorage.getItem('dj_scrm_activityId') ? window.localStorage.getItem('dj_scrm_activityId') : '', activityId: util.getLocalStorage('dj_scrm_activityId') ? util.getLocalStorage('dj_scrm_activityId') :3,
staffId: '', staffId: util.getLocalStorage('dj_STAFF_ID') ? util.getLocalStorage('dj_STAFF_ID') :363,
followResultList:[], followResultList:[],
customerInfoList: [ customerInfoList: [
{ {
...@@ -128,6 +128,7 @@ export default { ...@@ -128,6 +128,7 @@ export default {
}, },
['SET_STAFF_ID'](state, payload) { ['SET_STAFF_ID'](state, payload) {
state.staffId = payload.staffId state.staffId = payload.staffId
}, },
['SET_COUSTOMER_LIST'](state, payload) { ['SET_COUSTOMER_LIST'](state, payload) {
state.customerInfoList = payload.customerInfoList state.customerInfoList = payload.customerInfoList
...@@ -140,15 +141,16 @@ export default { ...@@ -140,15 +141,16 @@ export default {
//设置staffId //设置staffId
getStaffId(conText, payload) { getStaffId(conText, payload) {
console.log(22222222) console.log(22222222)
conText.commit('SET_STAFF_ID', { staffId: 3 }) // conText.commit('SET_STAFF_ID', { staffId: 3 })
// solicitApi.getStaffid(payload).then(res => { solicitApi.getStaffid(payload).then(res => {
// if (res.code == 0) { if (res.code == 0) {
// conText.commit('SET_STAFF_ID', { staffId: res.data }) conText.commit('SET_STAFF_ID', { staffId: res.data })
// if (payload.success) { util.setLocalStorage('dj_STAFF_ID',res.data)
// payload.success() if (payload.success) {
// } payload.success()
// } }
// }) }
})
}, },
// 获取跟进结果字典数据 // 获取跟进结果字典数据
getFollowDataList(conText, payload) { getFollowDataList(conText, payload) {
......
...@@ -42,13 +42,17 @@ export default { ...@@ -42,13 +42,17 @@ export default {
initCanvas() { initCanvas() {
let id = this.refId let id = this.refId
let { barList, color } = this let { barList, color } = this
let textLength = 2
this.list.forEach(item => {
textLength = item.text.length > textLength ? item.text.length : textLength
})
this.chart && this.chart.clear() this.chart && this.chart.clear()
this.chart = null this.chart = null
this.chart = new F2.Chart({ this.chart = new F2.Chart({
id, id,
pixelRatio: window.devicePixelRatio, pixelRatio: window.devicePixelRatio,
padding: [16, 24, 24, 120], padding: [16, 24, 24, textLength * 10 + 20],
height: barList.length * 45 height: barList.length<2?80: barList.length*45
}) })
this.chart.source(barList, { this.chart.source(barList, {
sales: { sales: {
...@@ -69,7 +73,7 @@ export default { ...@@ -69,7 +73,7 @@ export default {
const point = this.chart.getPosition(obj) const point = this.chart.getPosition(obj)
const text = group.addShape('text', { const text = group.addShape('text', {
attrs: { attrs: {
x: 134, x: textLength * 10 + 24,
y: point.y - offset, y: point.y - offset,
text: obj.value, text: obj.value,
fill: '#ffffff', fill: '#ffffff',
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{{ item.customerName }} {{ item.customerName }}
</label> </label>
<label class="origin">{{ item.type == 1 ? '@微信' : '@企微' }}</label> <label class="origin">{{ item.type == 1 ? '@微信' : item.type == 2 ? '@企微' : '' }}</label>
</div> </div>
</div> </div>
<div class="buttomLine"></div> <div class="buttomLine"></div>
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
methods: { methods: {
//初始化微信接口 //初始化微信接口
initWx() { initWx() {
wxConfig.init(['openEnterpriseChat']).then(() => {}) wxConfig.init(['openEnterpriseChat']).then(() => { })
}, },
//打开会话 //打开会话
gotoInfo(item) { gotoInfo(item) {
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tagContainer { .tagContainer {
.customerList { .customerList {
// background: #fff; // background: #fff;
.customer { .customer {
padding: 0 8px; padding: 0 8px;
...@@ -82,21 +83,26 @@ export default { ...@@ -82,21 +83,26 @@ export default {
width: 44px; width: 44px;
height: 44px; height: 44px;
padding: 12px 16px; padding: 12px 16px;
img { img {
width: 100%; width: 100%;
} }
} }
.customer-info { .customer-info {
padding: 16px 0; padding: 16px 0;
width: calc(100% - 130px); width: calc(100% - 130px);
.customer-info-name { .customer-info-name {
font-size: 16px; font-size: 16px;
line-height: 22px; line-height: 22px;
color: #333333; color: #333333;
display: flex; display: flex;
.name { .name {
max-width: 70%; max-width: 70%;
} }
.origin { .origin {
font-size: 14px; font-size: 14px;
color: #2cca74; color: #2cca74;
...@@ -106,6 +112,7 @@ export default { ...@@ -106,6 +112,7 @@ export default {
} }
} }
} }
.buttomLine { .buttomLine {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -116,11 +123,13 @@ export default { ...@@ -116,11 +123,13 @@ export default {
background-color: #c3c3c3 !important; background-color: #c3c3c3 !important;
} }
} }
.tagContainer /deep/ .van-checkbox__icon--checked .van-icon { .tagContainer /deep/ .van-checkbox__icon--checked .van-icon {
color: #fff; color: #fff;
background-color: #3975c6 !important; background-color: #3975c6 !important;
border-color: #3975c6 !important; border-color: #3975c6 !important;
} }
.tagContainer /deep/.van-checkbox__icon .van-icon { .tagContainer /deep/.van-checkbox__icon .van-icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
......
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
</div> </div>
<tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex"> <tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-if="solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"> <template
v-if="solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0">
<div class="follow-content"> <div class="follow-content">
<div class="follow-content-item m-b-12" v-for="(item, index) in solicitationFollowData.weComMarketingList" :key="index"> <div class="follow-content-item m-b-12" v-for="(item, index) in solicitationFollowData.weComMarketingList"
:key="index">
<div class="follow-content-item-top"> <div class="follow-content-item-top">
<div class="font-16 color-3 fw5 text-hide">{{ item.groupName }}</div> <div class="font-16 color-3 fw5 text-hide">{{ item.groupName }}</div>
<div class="m-t-8 flex-between fw7"> <div class="m-t-8 flex-between fw7">
...@@ -46,7 +48,7 @@ ...@@ -46,7 +48,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState, mapMutations,mapActions } from 'vuex' import { mapState, mapMutations, mapActions } from 'vuex'
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
import { Toast } from 'vant' import { Toast } from 'vant'
export default { export default {
...@@ -68,9 +70,9 @@ export default { ...@@ -68,9 +70,9 @@ export default {
}, },
{ {
activityId: 0, activityId: 0,
groupId: 0, groupId: 527,
staffId: 0, staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-3', groupName: '定保招揽定保招揽定保招揽 N-4',
groupWeComCustomerCount: 265, groupWeComCustomerCount: 265,
solicitationMonth: 5 solicitationMonth: 5
}, },
...@@ -78,7 +80,7 @@ export default { ...@@ -78,7 +80,7 @@ export default {
activityId: 0, activityId: 0,
groupId: 0, groupId: 0,
staffId: 0, staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-3', groupName: '定保招揽定保招揽定保招揽 N-5',
groupWeComCustomerCount: 265, groupWeComCustomerCount: 265,
solicitationMonth: 5 solicitationMonth: 5
}, },
...@@ -86,7 +88,7 @@ export default { ...@@ -86,7 +88,7 @@ export default {
activityId: 0, activityId: 0,
groupId: 0, groupId: 0,
staffId: 0, staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-3', groupName: '定保招揽定保招揽定保招揽 N-6',
groupWeComCustomerCount: 265, groupWeComCustomerCount: 265,
solicitationMonth: 5 solicitationMonth: 5
}, },
...@@ -94,7 +96,7 @@ export default { ...@@ -94,7 +96,7 @@ export default {
activityId: 0, activityId: 0,
groupId: 0, groupId: 0,
staffId: 0, staffId: 0,
groupName: '定保招揽定保招揽定保招揽 N-3', groupName: '定保招揽定保招揽定保招揽 N-7',
groupWeComCustomerCount: 265, groupWeComCustomerCount: 265,
solicitationMonth: 5 solicitationMonth: 5
}, },
...@@ -126,8 +128,7 @@ export default { ...@@ -126,8 +128,7 @@ export default {
SET_FOLLOW_INDEX: 'solicit/SET_FOLLOW_INDEX' SET_FOLLOW_INDEX: 'solicit/SET_FOLLOW_INDEX'
}), }),
...mapActions({ ...mapActions({
getFollowDataList: 'solicit/getFollowDataList', getFollowDataList: 'solicit/getFollowDataList'
}), }),
solicitationFollow() { solicitationFollow() {
let params = { let params = {
...@@ -147,12 +148,14 @@ export default { ...@@ -147,12 +148,14 @@ export default {
}, },
goTo(name, item) { goTo(name, item) {
let { activityId, groupId, staffId } = item let { groupId, groupName } = item
let query = { groupId }
if (name !== 'solicit.marketing') {
query.groupName = groupName
}
this.$router.push({ this.$router.push({
name, name,
query: { query
groupId
}
}) })
}, },
changeFollow(index) { changeFollow(index) {
...@@ -170,29 +173,36 @@ export default { ...@@ -170,29 +173,36 @@ export default {
.follow-statistics { .follow-statistics {
background: #fff; background: #fff;
height: 82px; height: 82px;
&-single { &-single {
padding: 12px 0; padding: 12px 0;
width: 33.3%; width: 33.3%;
div { div {
text-align: center; text-align: center;
} }
} }
} }
.content { .content {
height: calc(100vh - 232px); height: calc(100vh - 232px);
.follow-content { .follow-content {
padding: 16px 12px; padding: 16px 12px;
box-sizing: border-box; box-sizing: border-box;
&-item { &-item {
background: #f7f7f7; background: #f7f7f7;
border-radius: 8px; border-radius: 8px;
height: 140px; height: 140px;
&-top { &-top {
padding: 16px 16px 0 16px; padding: 16px 16px 0 16px;
border-bottom: 1px solid rgba(216, 216, 216, 0.3); border-bottom: 1px solid rgba(216, 216, 216, 0.3);
height: 96px; height: 96px;
box-sizing: border-box; box-sizing: border-box;
} }
.follow-btn { .follow-btn {
padding: 10px 52px; padding: 10px 52px;
box-sizing: border-box; box-sizing: border-box;
...@@ -201,6 +211,7 @@ export default { ...@@ -201,6 +211,7 @@ export default {
} }
} }
} }
.custom-image { .custom-image {
background: #fff; background: #fff;
height: 100%; height: 100%;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
import overview from './overview.vue' import overview from './overview.vue'
import follow from './follow.vue' import follow from './follow.vue'
import result from './result.vue' import result from './result.vue'
import { mapState, mapMutations, mapActions } from 'vuex' import { mapState, mapMutations, } from 'vuex'
export default { export default {
name: 'index', name: 'index',
data() { data() {
...@@ -29,17 +29,13 @@ export default { ...@@ -29,17 +29,13 @@ export default {
}) })
}, },
created() { created() {
this.getStaffId({
staffuuid: this.getLocalStorage('dj_scrm_userInfo').uuid ? this.getLocalStorage('dj_scrm_userInfo').uuid : ''
})
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
SET_TAB_INDEX: 'solicit/SET_TAB_INDEX' SET_TAB_INDEX: 'solicit/SET_TAB_INDEX'
}), }),
...mapActions({
getStaffId: 'solicit/getStaffId'
}),
changeIndex(index) { changeIndex(index) {
this.SET_TAB_INDEX({ currentIndex: index }) this.SET_TAB_INDEX({ currentIndex: index })
} }
......
<template> <template>
<div class="customer-container"> <div class="customer-container" v-if="flag">
<div class="customer-container-head"> <div class="customer-container-head">
<div class="font-16 color54 line-24 title">定保N-5</div> <div class="font-16 color54 line-24 title">{{ groupName }}</div>
<div class="search-head flex"> <div class="search-head flex">
<van-dropdown-menu active-color="#3369B1"> <van-dropdown-menu active-color="#3369B1">
<van-dropdown-item v-model="searchType" :options="seachArray" @change="selectType" /> <van-dropdown-item v-model="searchType" :options="seachArray" @change="selectType" />
...@@ -11,15 +11,18 @@ ...@@ -11,15 +11,18 @@
<drop-down :selectOption1="statusList" :selectOption2="resultList" :currentValue1="status" :currentValue2="result" @changeFirst="changeFirst" @changeSecond="selectSecondChange"></drop-down> <drop-down :selectOption1="statusList" :selectOption2="resultList" :currentValue1="status" :currentValue2="result" @changeFirst="changeFirst" @changeSecond="selectSecondChange"></drop-down>
</div> </div>
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<customer-card :customerInfo="customerInfo"></customer-card> <!-- <customer-card :customerInfo="customerInfo"></customer-card> -->
<!-- <empty v-else></empty> -->
</scroll-view> </scroll-view>
</div> </div>
</template> </template>
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { solicitApi } from '@/api'
export default { export default {
data() { data() {
return { return {
flag: false,
keyWord: '', keyWord: '',
status: 0, status: 0,
result: 0, result: 0,
...@@ -30,65 +33,7 @@ export default { ...@@ -30,65 +33,7 @@ export default {
{ text: '车架号', value: 2 }, { text: '车架号', value: 2 },
{ text: '手机号码', value: 3 } { text: '手机号码', value: 3 }
], ],
customerInfo: [ customerInfo: [],
{
id: 1,
name: '崔美女',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '',
type: 1,
wechatnick: '',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 2,
name: '匡先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 2,
wechatnick: '横穿',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 3,
name: 'xu先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 1,
wechatnick: 'BB',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
}
],
statusList: [ statusList: [
{ text: '全部状态', value: 0 }, { text: '全部状态', value: 0 },
{ text: '已跟进', value: 1 }, { text: '已跟进', value: 1 },
...@@ -99,9 +44,15 @@ export default { ...@@ -99,9 +44,15 @@ export default {
}, },
computed: { computed: {
...mapState({ ...mapState({
followResultList: state => state.solicit.followResultList followResultList: state => state.solicit.followResultList,
staffId: state => state.solicit.staffId,
activityId: state => state.solicit.activityId
}) })
}, },
created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : ''
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
},
mounted() { mounted() {
this.initOption() this.initOption()
this.showLoading() this.showLoading()
...@@ -110,7 +61,6 @@ export default { ...@@ -110,7 +61,6 @@ export default {
methods: { methods: {
// 获取送达客户信息 // 获取送达客户信息
getSendCustomerList(index) { getSendCustomerList(index) {
console.log(index)
this.hideLoading() this.hideLoading()
let params = { let params = {
keyWord: this.keyWord, keyWord: this.keyWord,
...@@ -125,13 +75,14 @@ export default { ...@@ -125,13 +75,14 @@ export default {
params.followResult = this.result != 0 ? this.result : '' params.followResult = this.result != 0 ? this.result : ''
} }
console.log(params) console.log(params)
// solicitApi.getCustomerList().then(({ code, data, message }) => { solicitApi.getCustomerList(params).then(({ code, data, message }) => {
// if (code == 0) { if (code == 0) {
// this.customerInfo = data this.customerInfo = data
// } else { } else {
// Notify(message) Notify(message)
// } }
// }) this.flag = true
})
}, },
onReachBottom() { onReachBottom() {
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
...@@ -139,6 +90,10 @@ export default { ...@@ -139,6 +90,10 @@ export default {
}, },
searchkeyWord(e) { searchkeyWord(e) {
this.keyWord = e this.keyWord = e
if (this.searchType != 0 && this.keyWord.length <= 2) {
return
}
this.getSendCustomerList() this.getSendCustomerList()
}, },
selectType() { selectType() {
...@@ -146,7 +101,6 @@ export default { ...@@ -146,7 +101,6 @@ export default {
}, },
changeFirst(index) { changeFirst(index) {
this.status = index this.status = index
console.log(index)
this.result = 0 this.result = 0
this.getSendCustomerList() this.getSendCustomerList()
}, },
...@@ -207,6 +161,9 @@ export default { ...@@ -207,6 +161,9 @@ export default {
} }
.content { .content {
height: calc(100vh - 154px); height: calc(100vh - 154px);
/deep/ .van-list {
background: #f7f7f7;
}
} }
} }
</style> </style>
...@@ -22,12 +22,14 @@ ...@@ -22,12 +22,14 @@
<div class="marking-container-customer flex-between"> <div class="marking-container-customer flex-between">
<div class="font-16 color-3 fw5">发送客户</div> <div class="font-16 color-3 fw5">发送客户</div>
<div class="color-2f font-14 flex" @click="goTo('solicit.customer')"> <div class="color-2f font-14 flex" @click="goTo('solicit.customer')">
共{{ marketingDetails.customerInfoList.length }}人 共{{ marketingDetails.customerInfoList ? marketingDetails.customerInfoList.length : 0 }}人
<div class="sprite-icon icon-arrow m-l-8"></div> <div class="sprite-icon icon-arrow m-l-8"></div>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">
<div :class="{ 'marking-button': true, disabled: marketingDetails.customerInfoList.length == 0 }" @click="sendHandle">一键发送</div> <div
:class="{ 'marking-button': true, disabled: !marketingDetails.customerInfoList || marketingDetails.customerInfoList.length == 0 }"
@click="sendHandle">一键发送</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -47,7 +49,7 @@ export default { ...@@ -47,7 +49,7 @@ export default {
businessUuid: 'string', businessUuid: 'string',
businessDesc: 'string', businessDesc: 'string',
attContent: attContent:
' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 ', ' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 jlkajsdfaklsj\n大法师[困][饥饿][示爱]',
attType: 1, attType: 1,
attNum: 0, attNum: 0,
mediaId: 'string', mediaId: 'string',
...@@ -72,7 +74,8 @@ export default { ...@@ -72,7 +74,8 @@ export default {
} }
}, },
created() { created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : '' this.groupId = this.getQuery().groupId ? this.getQuery().groupId : 2
this.getocmarketingList()
}, },
computed: { computed: {
...mapState({ ...mapState({
...@@ -87,7 +90,7 @@ export default { ...@@ -87,7 +90,7 @@ export default {
//一键营销内容回显 //一键营销内容回显
getocmarketingList() { getocmarketingList() {
let params = { let params = {
activityId: this.activityId, id: this.activityId,
staffId: this.staffId, staffId: this.staffId,
groupId: this.groupId groupId: this.groupId
} }
...@@ -95,7 +98,8 @@ export default { ...@@ -95,7 +98,8 @@ export default {
solicitApi.getocmarketingList(params).then(({ code, data, message }) => { solicitApi.getocmarketingList(params).then(({ code, data, message }) => {
this.hideLoading() this.hideLoading()
if (code == '0') { if (code == '0') {
this.marketingDetails = data // this.marketingDetails = data
this.$set(this, 'marketingDetails', data)
this.SET_COUSTOMER_LIST({ customerInfoList: data.customerInfoList }) this.SET_COUSTOMER_LIST({ customerInfoList: data.customerInfoList })
} else { } else {
Notify(message) Notify(message)
...@@ -118,6 +122,7 @@ export default { ...@@ -118,6 +122,7 @@ export default {
staffId: this.staffId staffId: this.staffId
} }
solicitApi.createdOcmarketing(params).then(res => { solicitApi.createdOcmarketing(params).then(res => {
console.log(res)
if (res) { if (res) {
Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送') Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送')
this.$router.go(-1) this.$router.go(-1)
...@@ -136,25 +141,31 @@ export default { ...@@ -136,25 +141,31 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.marking-container { .marking-container {
padding: 16px; padding: 16px;
&-content { &-content {
background: #fff; background: #fff;
padding: 16px; padding: 16px;
.marking-image { .marking-image {
width: 248px; width: 248px;
height: 198px; height: 198px;
margin: 12px 32px 16px 32px; margin: 12px 32px 16px 32px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.marking-empty { .marking-empty {
padding: 39px 0 24px 0 !important; padding: 39px 0 24px 0 !important;
/deep/ .van-empty__description { /deep/ .van-empty__description {
padding: 0; padding: 0;
} }
} }
} }
&-customer { &-customer {
height: 56px; height: 56px;
background: #ffffff; background: #ffffff;
...@@ -163,6 +174,7 @@ export default { ...@@ -163,6 +174,7 @@ export default {
padding: 0 16px; padding: 0 16px;
margin-bottom: 50px; margin-bottom: 50px;
} }
.footer { .footer {
width: 343px; width: 343px;
height: 58px; height: 58px;
...@@ -171,6 +183,7 @@ export default { ...@@ -171,6 +183,7 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
} }
.marking-button { .marking-button {
width: 343px; width: 343px;
height: 42px; height: 42px;
...@@ -181,8 +194,10 @@ export default { ...@@ -181,8 +194,10 @@ export default {
color: #ffffff; color: #ffffff;
line-height: 42px; line-height: 42px;
text-align: center; text-align: center;
margin-bottom: 16px;; margin-bottom: 16px;
;
} }
.disabled { .disabled {
background: #d5d8db !important; background: #d5d8db !important;
} }
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
import pieChart from '../solicit/components/pie.vue' import pieChart from '../solicit/components/pie.vue'
import barChart from '../solicit/components/bar.vue' import barChart from '../solicit/components/bar.vue'
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
import { mapState } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
components: { components: {
pieChart, pieChart,
...@@ -109,10 +109,22 @@ export default { ...@@ -109,10 +109,22 @@ export default {
}, },
created() { created() {
this.bulletinList = this.$constants.BULLETINLIST this.bulletinList = this.$constants.BULLETINLIST
this.getTaskOverviewData() this.getStaffId({
// this.initChartData() success: res => {
this.getTaskOverviewData()
}
})
},
computed: {
...mapState({
activityId: state => state.solicit.activityId,
staffId: state => state.solicit.staffId
})
}, },
methods: { methods: {
...mapActions({
getStaffId: 'solicit/getStaffId'
}),
getTaskOverviewData() { getTaskOverviewData() {
let params = { let params = {
// activityId: this.activityId, // activityId: this.activityId,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="font-12 color-2f m-t-4">客户:200人</div> <div class="font-12 color-2f m-t-4">客户:200人</div>
</div> </div>
</div> </div>
<div class="result-content-list flex-top"> <div class="result-content-list flex-top" @click="goto('solicit.succeed')">
<div class="sprite-icon icon-fail"></div> <div class="sprite-icon icon-fail"></div>
<div class="m-l-8"> <div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div> <div class="font-14 color-3 fw5">成功到店</div>
......
<template> <template>
<div> <div class="statisic-container">
<van-tabs v-model="tabIndex" sticky @change="tabChange"> <van-tabs v-model="tabIndex" sticky @change="tabChange">
<van-tab :title="'未送达(' + customerInfo1.length + ')'"> <van-tab :title="'未送达(' + deliveredData.undelivered + ')'">
<scroll-view @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view @ReachBottom="onReachBottom" ref="scrollView">
<div class="reason"> <div class="reason">
<div>未送达可能原因:</div> <div>未送达可能原因:</div>
<div>1. 客户开启消息免打扰,消息发送失败;</div> <div>1. 客户开启消息免打扰,消息发送失败;</div>
<div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div> <div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div>
</div> </div>
<customer-card v-if="customerInfo1.length" :customerInfo="customerInfo1" :groupId="groupId" :groupName="groupName"></customer-card> <customer-card v-if="customerInfo1.length > 0" :customerInfo="customerInfo1"></customer-card>
<empty v-else></empty> <empty v-else></empty>
</scroll-view> </scroll-view>
</van-tab> </van-tab>
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
<div class="circle" :style="{ background: status.color }"></div> <div class="circle" :style="{ background: status.color }"></div>
{{ status.text }} {{ status.text }}
<span class="font-16 color-3 m-l-8 bold">{{ status.value(deliveredData) }}</span> <span class="font-16 color-3 m-l-8 bold">{{ status.value(deliveredData) }}</span>
<span class="font-10 color39 m-l-4 fw5">({{ ((Number(status.value(deliveredData)) / Number(status.proportion(deliveredData))) * 100).toFixed(2) }}%)</span> <span class="font-10 color39 m-l-4 fw5">({{ parseInt((Number(status.value(deliveredData)) / Number(status.proportion(deliveredData))) * 100) }}%)</span>
</div> </div>
</template> </template>
</div> </div>
</div> </div>
<select-bar :index="alreadyIndex" :list="selectBarList" @change="changeSelectTab"></select-bar> <select-bar :index="alreadyIndex" :list="selectBarList" @change="changeSelectTab"></select-bar>
<customer-card v-if="customerInfo1.length" :customerInfo="customerInfo2" :groupId="groupId" :groupName="groupName"></customer-card> <customer-card v-if="customerInfo2.length > 0" :customerInfo="customerInfo2" ></customer-card>
<empty v-else></empty> <empty v-else></empty>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
...@@ -51,146 +51,11 @@ export default { ...@@ -51,146 +51,11 @@ export default {
alreadyIndex: 0, alreadyIndex: 0,
deliveredNum: 0, deliveredNum: 0,
selectBarList: ['已送达', '已查看', '已领取', '已到店'], selectBarList: ['已送达', '已查看', '已领取', '已到店'],
// 未送达页码
unSendPageParam: {
pagesize: 10,
pageNum: 1
},
// 送达页码
sendPageParam: {
pagesize: 10,
pageNum: 1
},
// 未送达客户数量
unSendCount: null,
// 送达客户数量
sendCount: null,
// 未送达客户列表 // 未送达客户列表
customerInfo1: [ customerInfo1: [],
{
id: 1,
customerName: '崔美女',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '',
type: 1,
wechatnick: '',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 2,
customerName: '匡先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 2,
wechatnick: '横穿',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 3,
customerName: 'xu先生',
followResult: '未接听',
checkStatus: '一查看',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 1,
wechatnick: 'BB',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
}
],
// 已送达客户列表 // 已送达客户列表
customerInfo2: [ customerInfo2: [],
{ deliveredData: {},
id: 1,
customerName: '崔美女',
followResult: '未接听',
checkStatus: '1',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '',
type: 1,
wechatnick: '',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 2,
customerName: '匡先生',
followResult: '未接听',
checkStatus: '0',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 2,
wechatnick: '横公司高峰期穿',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
},
{
id: 3,
customerName: 'xu先生',
followResult: '未接听',
checkStatus: '1',
solicitTime: '05-07 15:30',
updatedTime: '05-07 15:30',
phoneNumber: '18818188989',
type: 2,
wechatnick: 'BB',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
]
}
],
deliveredData: {
// delivered: '2000',
// viewed: '1600',
// received: '800',
// arrived: '400'
},
reachStatus: [ reachStatus: [
{ {
text: '已送达', text: '已送达',
...@@ -247,44 +112,32 @@ export default { ...@@ -247,44 +112,32 @@ export default {
}, },
mounted() { mounted() {
this.showLoading() this.showLoading()
// 未送达
this.getSendCustomerList(0)
// 已送达
this.getSendCustomerList(1)
// 触达统计-客户送达分层 // 触达统计-客户送达分层
this.deliveredStatistics() this.deliveredStatistics()
this.getSendCustomerList(0) //未送达
this.getSendCustomerList(1) //已送达
}, },
methods: { methods: {
// tab栏切换 // tab栏切换
tabChange(e) { tabChange(e) {
this.tabIndex = e this.tabIndex = e
if (e == 1) {
// 触达统计-客户送达分层
// this.deliveredStatistics()
}
}, },
// 已送达Tab四种状态 // 已送达Tab四种状态
changeSelectTab(e) { changeSelectTab(e) {
console.log(e)
this.alreadyIndex = e this.alreadyIndex = e
this.getSendCustomerList(1) this.getSendCustomerList(1)
}, },
// 获取送达/未送达客户信息 // 获取送达客户信息
getSendCustomerList(index) { getSendCustomerList(index) {
console.log(index)
this.hideLoading() this.hideLoading()
let target = ['customerInfo1', 'customerInfo2'] let target = ['customerInfo1', 'customerInfo2']
let { alreadyIndex } = this let { alreadyIndex } = this
let params = { let params = {
customerGroupType: 1, customerGroupType: 2,
// id: this.activityId, id: this.activityId,
id: 3, staffId: this.staffId,
// staffId: this.staffId, groupId: this.groupId,
staffId: 363, sendStatus: index //发送状态 0-未发送 1-已发送
// groupId: this.groupId,
groupId: 527,
// 发送状态 0-未发送 1-已发送
sendStatus: index
} }
if (index === 1) { if (index === 1) {
// 0-未查看 1-已查看 // 0-未查看 1-已查看
...@@ -294,10 +147,11 @@ export default { ...@@ -294,10 +147,11 @@ export default {
// 0.未到店 1.已到店 // 0.未到店 1.已到店
if (alreadyIndex === 3) params.retFacFlag = 1 if (alreadyIndex === 3) params.retFacFlag = 1
} }
console.log(params)
solicitApi.getCustomerList(params).then(({ code, data, message }) => { solicitApi.getCustomerList(params).then(({ code, data, message }) => {
if (code == 0) { if (code == 0) {
this.target[index] = data this[target[index]] = data
} else {
Notify(message)
} }
}) })
}, },
...@@ -320,22 +174,19 @@ export default { ...@@ -320,22 +174,19 @@ export default {
}, },
// 下拉触底刷新 // 下拉触底刷新
onReachBottom() { onReachBottom() {
console.log('触底')
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true this.$refs.scrollView.finished = true
// 未送达页面
if (this.tabIndex === 0) {
this.unSendPageParam.pageNum++
return
}
// 送达页面
this.sendPageParam.pageNum++
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.statisic-container {
/deep/ .van-list {
background: #f7f7f7;
}
}
.reason { .reason {
padding: 16px; padding: 16px;
font-size: 12px; font-size: 12px;
...@@ -362,6 +213,7 @@ export default { ...@@ -362,6 +213,7 @@ export default {
} }
.statistic-list { .statistic-list {
white-space: nowrap; white-space: nowrap;
width: calc(100% - 208px);
.circle { .circle {
width: 8px; width: 8px;
height: 8px; height: 8px;
......
...@@ -51,7 +51,7 @@ const spritesmithFunction = data => { ...@@ -51,7 +51,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-kuangyq/', // 署应用包时的基本 URL。 vue-router hash 模式使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-test/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用 // publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!