Commit 1e2ccf1e by 王志慧

Merge branch 'v2.3.3' of http://192.168.3.233:8090/glsx/dj-scrm-wx-work-attachme…

…nt-customer into wangzh_dev_2.3.3
2 parents 733b1c15 95ff4cac
/*
* @Description:
* @Description:
* @Author: huyue
* @Date: 2022-06-06 14:26:32
* @LastEditors: huyue
......@@ -30,7 +30,7 @@ export default {
taskOverviewData(data) {
data.method = 'marketing.api.solicit.taskOverview'
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,
returnAll: true
})
......@@ -53,7 +53,7 @@ export default {
})
},
//一键营销内容回显
// 一键营销内容回显
getocmarketingList(data) {
data.method = 'marketing.api.solicit.ocmarketing.echo'
return window.$HTTP({
......@@ -77,7 +77,7 @@ export default {
getCustomerList(data) {
data.method = 'marketing.api.solicit.page.customer.condition'
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,
returnAll: true
})
......@@ -95,7 +95,7 @@ export default {
sendSolicitRecord(data) {
data.method = 'marketing.api.solicit.record.save'
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,
returnAll: true
})
......
......@@ -23,8 +23,8 @@
<div class="customer-info-right">
<div class="customer-info-label">
<div class="customer-info-name">企微账号:</div>
<div v-if="item.wechatnick">
<span class="customer-info-message customer-info-wechatnick text-hide">{{ item.wechatnick }}</span>
<div v-if="item.nickName">
<span class="customer-info-message customer-info-wechatnick text-hide">{{ item.nickName }}</span>
<span class="customer-info-wechat customer-info-message" v-if="item.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span>
</div>
......@@ -32,11 +32,11 @@
</div>
<div class="customer-info-label">
<div class="customer-info-name">招揽日期:</div>
<div class="customer-info-message">{{ item.solicitTime }}</div>
<div class="customer-info-message">{{ item.solicitTime ? item.solicitTime.slice(0, 10) : '' }}</div>
</div>
<div class="customer-info-label">
<div class="customer-info-name">更新日期:</div>
<div class="customer-info-message">{{ item.updatedTime }}</div>
<div class="customer-info-message">{{ item.updatedTime ? item.updatedTime.slice(0, 10) : '' }}</div>
</div>
</div>
</div>
......
......@@ -27,18 +27,18 @@
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">最近保养</div>
<div class="customer-info-item-content">{{ customerList.length > 0 && customerList.maListcars[0].maDate }}</div>
<div class="customer-info-item-content">{{ maintennceList.length > 0 && maintennceList[0].maDate }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">人群分组</div>
<div class="customer-info-item-content">{{ customerList.customerGroup }}</div>
<div class="customer-info-item-content">{{ groupName }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">企微账号</div>
<div v-if="customerList.wechatnick">
<span class="customer-info-item-content">{{ customerList.wechatnick }}</span>
<span class="customer-info-wechat customer-info-message" v-if="customerList.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span>
<div v-if="customerList.nickName">
<span class="customer-info-item-content">{{ customerList.nickName }}</span>
<span class="customer-info-item-wechat customer-info-item-message" v-if="customerList.type == 1">@微信</span>
<span class="customer-info-item-qiwechat customer-info-item-message" v-else>@企微</span>
</div>
<div class="customer-info-message" v-else>未添加</div>
</div>
......@@ -71,22 +71,22 @@
<!-- 跟进记录 -->
<div class="record">
<div class="customer-info-title">跟进记录</div>
<template v-if="customerList.followRecordList.length">
<div class="stepItem" v-for="(item, index) in customerList.followRecordList" :key="index">
<template v-if="followRecordList.length">
<div class="stepItem" v-for="(item, index) in followRecordList" :key="index">
<div class="sprite-icon icon-followRecord"></div>
<div class="stepBox">
<div class="stepBox-left">
<div style="width: 90%">
<div class="stepBox-follow">
<div class="stepBox-left-name">{{ item.followResult }}</div>
<div class="stepBox-left-title">
预约时间:
<span class="stepBox-left-content">{{ item.orderTime ? item.orderTime : '-' }}</span>
</div>
<div class="stepBox-left-title">
备注:
<span class="stepBox-left-content">{{ item.followMark ? item.followMark : '-' }}</span>
</div>
<div class="stepBox-right">{{ item.createdTime }}</div>
</div>
<div class="stepBox-left-title">
预约时间:
<span class="stepBox-left-content">{{ item.orderTime ? item.orderTime : '-' }}</span>
</div>
<div class="stepBox-left-title" style="display: flex">
<div class="stepBox-left-title-tip">备注:</div>
<div class="stepBox-left-content stepBox-left-content-overflow">{{ item.followMark ? item.followMark : '-' }}</div>
</div>
<div class="stepBox-right">{{ item.createdTime }}</div>
</div>
</div>
</template>
......@@ -99,7 +99,6 @@
<script>
import { solicitApi } from '@/api'
import { Notify } from 'vant'
export default {
name: 'CustomerInfoPopup',
data() {
......@@ -107,89 +106,72 @@ export default {
// 客户信息弹出层展示
showCustomerDetail: false,
// 客户信息表
customerList: {
id: 1,
customerName: '徐妹妹',
vinCode: 'LFMAYACC5M029512',
recentCare: '2022-05-16',
customerGroup: '定保招揽 N-6',
wechatNumber: '未添加',
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
],
maList: [
{
repairItems: '保养项目保养项目AAA',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
},
{
repairItems: '保养项目保养项目保养项目BB',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
}
],
followRecordList: [
{
followResult: '预约到店',
orderTime: '2022-05-21',
followMark: '',
createdTime: '05-28 16:00'
},
{
followResult: '未接听',
orderTime: '',
followMark: '',
createdTime: '05-28 16:00'
}
]
},
customerList: {},
// 车辆信息列表
carInfoList: [],
// 维保记录表
maintennceList: [
{
repairItems: '保养项目保养项目AAA',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
},
{
repairItems: '保养项目保养项目保养项目BB',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
}
]
maintennceList: [],
// 跟进记录列表
followRecordList: []
}
},
created() {
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
},
methods: {
init(val) {
console.log(val)
this.showCustomerDetail = true
// this.showCustomerDetail = true
this.getCustomerDetail(val)
},
// 获取客户详情
getCustomerDetail(val) {
this.showCustomerDetail = true
console.log(this.showCustomerDetail)
var params = {
// customerId:
groupId: val.groupId,
id: val.id,
staffId: val.staffId
// customerId: val.actCutId
customerId: 21
}
console.log(params)
// solicitApi.getCustomerDetail().then(({ code, data, message }) => {
// if (code === 0) {
// this.customerList = data
// } else {
// Notify(message)
// }
// })
solicitApi.getCustomerDetail(params).then(({ code, data, message }) => {
if (code == 0) {
this.customerList = data
if (data.cars.length) {
this.carInfoList = data.cars
this.carInfoList.map(item => {
item.carBuyDate = this.timeTransfer(item.carBuyDate)
})
}
if (data.maList.length) {
this.maintennceList = data.maList.slice(0, 2)
this.maintennceList.map(item => {
item.maDate = this.timeTransfer(item.maDate)
})
}
if (data.followRecordList.length) {
this.followRecordList = data.followRecordList
this.followRecordList.map(item => {
item.orderTime = this.timeTransfer(item.orderTime)
item.createdTime = this.timeTransfer(item.createdTime)
})
}
}
})
},
// 时间戳转换
timeTransfer(val) {
let time = new Date(val)
let year = time.getFullYear() + '-'
let month = time.getMonth() + 1
let date = time.getDate()
let hour = time.getHours()
let minute = time.getMinutes()
month = month < 10 ? '0' + month + '-' : month + '-'
date = date < 10 ? '0' + date : date
hour = hour < 10 ? '0' + hour + ':' : hour + ':'
minute = minute < 10 ? '0' + minute : minute
let result = String(year) + String(month) + String(date) + ' ' + String(hour) + String(minute)
return result
},
// 关闭弹窗
onCancel() {
......@@ -269,7 +251,7 @@ export default {
.stepItem:not(:last-of-type):after {
content: '';
font-size: 0;
height: 80px;
height: 100%;
width: 1px;
background: #e6e8eb;
position: absolute;
......@@ -280,6 +262,10 @@ export default {
width: 90%;
display: flex;
justify-content: space-between;
&-follow {
display: flex;
justify-content: space-between;
}
}
.stepBox-left {
&-name {
......@@ -295,6 +281,10 @@ export default {
font-weight: 400;
color: #999999;
line-height: 18px;
&-tip {
display: inline-block;
min-width: 36px;
}
}
&-content {
font-size: 12px;
......@@ -302,6 +292,10 @@ export default {
font-weight: 400;
color: #330000;
line-height: 18px;
&-overflow {
display: inline-block;
padding-right: 16px;
}
}
}
.stepBox-right {
......
......@@ -131,7 +131,7 @@ export default {
// activityId: this.activityId,
activityId: 1,
// staffId: this.staffId
staffId: 363
staffId: 334
}
this.showLoading()
solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
......
......@@ -15,7 +15,8 @@
<van-tab :title="'已送达(' + deliveredData.delivered + ')'">
<div class="statistic-pic flex">
<div class="funnel-logo">
<img src="@/assets/images/funnel.png" alt="" />
<img v-if="activityGroupType" src="@/assets/images/funnel.png" alt="" />
<img v-else src="@/assets/images/funnel2.png" alt="" />
</div>
<div class="statistic-list">
<template v-for="(status, index) in reachStatus">
......@@ -29,7 +30,7 @@
</div>
</div>
<select-bar :index="alreadyIndex" :list="selectBarList" @change="changeSelectTab"></select-bar>
<customer-card v-if="customerInfo2.length > 0" :customerInfo.sync="customerInfo2" ></customer-card>
<customer-card v-if="customerInfo2.length > 0" :customerInfo="customerInfo2"></customer-card>
<empty v-else></empty>
</van-tab>
</van-tabs>
......@@ -55,7 +56,10 @@ export default {
customerInfo1: [],
// 已送达客户列表
customerInfo2: [],
// 客户送达分层
deliveredData: {},
// 套餐类型是否不是权益套餐或秒杀活动
activityGroupType: true,
reachStatus: [
{
text: '已送达',
......@@ -108,14 +112,13 @@ export default {
},
created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : ''
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
},
mounted() {
this.showLoading()
// 触达统计-客户送达分层
this.deliveredStatistics()
this.getSendCustomerList(0) //未送达
this.getSendCustomerList(1) //已送达
this.getSendCustomerList(0) // 未送达
this.getSendCustomerList(1) // 已送达
},
methods: {
// tab栏切换
......@@ -137,7 +140,7 @@ export default {
id: this.activityId,
staffId: this.staffId,
groupId: this.groupId,
sendStatus: index //发送状态 0-未发送 1-已发送
sendStatus: index // 发送状态 0-未发送 1-已发送
}
if (index === 1) {
// 0-未查看 1-已查看
......@@ -158,17 +161,19 @@ export default {
// 客户送达分层
deliveredStatistics() {
let params = {
// id: this.activityId,
id: 3,
// staffId: this.staffId,
staffId: 363,
// groupId: this.groupId
groupId: 527
id: this.activityId,
staffId: this.staffId,
groupId: this.groupId
}
solicitApi.deliveredStatistics(params).then(({ code, data, message }) => {
if (code == 0) {
this.deliveredData = data
console.log(this.deliveredData, '------')
// 判断发送方式是否为权益套餐或秒杀活动
if ((data.activityGroupType && data.activityGroupType == 4) || (data.activityGroupType && data.activityGroupType == 5)) {
this.activityGroupType = false
this.reachStatus.splice(2, 1)
this.selectBarList.splice(2, 1)
}
}
})
},
......@@ -183,7 +188,7 @@ export default {
<style lang="scss" scoped>
.statisic-container {
/deep/ .van-list {
/deep/ .van-list {
background: #f7f7f7;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!