Commit 95ff4cac by 前端

Merge branch 'kuangyq_v2.3.3' into 'v2.3.3'

Kuangyq v2.3.3

See merge request !25
2 parents 6d8a3d27 798a0076
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
getStaffid(data) { getStaffid(data) {
data.method = 'marketing.api.solicit.staffid.obtain' data.method = 'marketing.api.solicit.staffid.obtain'
return window.$HTTP({ return window.$HTTP({
url, url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
...@@ -30,7 +30,7 @@ export default { ...@@ -30,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
}) })
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,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({
...@@ -77,7 +77,7 @@ export default { ...@@ -77,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
}) })
...@@ -95,7 +95,7 @@ export default { ...@@ -95,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:'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
}) })
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<div class="customer-box" v-for="item in customerData" :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> -->
</div> </div>
<div class="customer-info"> <div class="customer-info">
<div class="customer-info-left"> <div class="customer-info-left">
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">车系:</div> <div class="customer-info-name">车系:</div>
<div class="customer-info-message">{{ item.cars.length > 0 && item.cars[0].carSeries }}</div> <!-- <div class="customer-info-message">{{ item.cars.length > 0 && item.cars[0].carSeries }}</div> -->
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">招揽结果:</div> <div class="customer-info-name">招揽结果:</div>
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
<div class="customer-info-right"> <div class="customer-info-right">
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">企微账号:</div> <div class="customer-info-name">企微账号:</div>
<div v-if="item.wechatnick"> <div v-if="item.nickName">
<span class="customer-info-message customer-info-wechatnick text-hide">{{ item.wechatnick }}</span> <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-wechat customer-info-message" v-if="item.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span> <span class="customer-info-qiwechat customer-info-message" v-else>@企微</span>
</div> </div>
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
</div> </div>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">招揽日期:</div> <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>
<div class="customer-info-label"> <div class="customer-info-label">
<div class="customer-info-name">更新日期:</div> <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> </div>
</div> </div>
...@@ -102,8 +102,7 @@ export default { ...@@ -102,8 +102,7 @@ export default {
}, },
followCustomerData: {}, followCustomerData: {},
phoneNumber: null, phoneNumber: null,
customerData: this.customerInfo, customerData: this.customerInfo
} }
}, },
mounted() { mounted() {
......
...@@ -27,18 +27,18 @@ ...@@ -27,18 +27,18 @@
</div> </div>
<div class="customer-info-item"> <div class="customer-info-item">
<div class="customer-info-item-title">最近保养</div> <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>
<div class="customer-info-item"> <div class="customer-info-item">
<div class="customer-info-item-title">人群分组</div> <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>
<div class="customer-info-item"> <div class="customer-info-item">
<div class="customer-info-item-title">企微账号</div> <div class="customer-info-item-title">企微账号</div>
<div v-if="customerList.wechatnick"> <div v-if="customerList.nickName">
<span class="customer-info-item-content">{{ customerList.wechatnick }}</span> <span class="customer-info-item-content">{{ customerList.nickName }}</span>
<span class="customer-info-wechat customer-info-message" v-if="customerList.type == 1">@微信</span> <span class="customer-info-item-wechat customer-info-item-message" v-if="customerList.type == 1">@微信</span>
<span class="customer-info-qiwechat customer-info-message" v-else>@企微</span> <span class="customer-info-item-qiwechat customer-info-item-message" v-else>@企微</span>
</div> </div>
<div class="customer-info-message" v-else>未添加</div> <div class="customer-info-message" v-else>未添加</div>
</div> </div>
...@@ -71,22 +71,22 @@ ...@@ -71,22 +71,22 @@
<!-- 跟进记录 --> <!-- 跟进记录 -->
<div class="record"> <div class="record">
<div class="customer-info-title">跟进记录</div> <div class="customer-info-title">跟进记录</div>
<template v-if="customerList.followRecordList.length"> <template v-if="followRecordList.length">
<div class="stepItem" v-for="(item, index) in customerList.followRecordList" :key="index"> <div class="stepItem" v-for="(item, index) in followRecordList" :key="index">
<div class="sprite-icon icon-followRecord"></div> <div class="sprite-icon icon-followRecord"></div>
<div class="stepBox"> <div style="width: 90%">
<div class="stepBox-left"> <div class="stepBox-follow">
<div class="stepBox-left-name">{{ item.followResult }}</div> <div class="stepBox-left-name">{{ item.followResult }}</div>
<div class="stepBox-right">{{ item.createdTime }}</div>
</div>
<div class="stepBox-left-title"> <div class="stepBox-left-title">
预约时间: 预约时间:
<span class="stepBox-left-content">{{ item.orderTime ? item.orderTime : '-' }}</span> <span class="stepBox-left-content">{{ item.orderTime ? item.orderTime : '-' }}</span>
</div> </div>
<div class="stepBox-left-title"> <div class="stepBox-left-title" style="display: flex">
备注: <div class="stepBox-left-title-tip">备注:</div>
<span class="stepBox-left-content">{{ item.followMark ? item.followMark : '-' }}</span> <div class="stepBox-left-content stepBox-left-content-overflow">{{ item.followMark ? item.followMark : '-' }}</div>
</div>
</div> </div>
<div class="stepBox-right">{{ item.createdTime }}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
<script> <script>
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
import { Notify } from 'vant'
export default { export default {
name: 'CustomerInfoPopup', name: 'CustomerInfoPopup',
data() { data() {
...@@ -107,89 +106,72 @@ export default { ...@@ -107,89 +106,72 @@ export default {
// 客户信息弹出层展示 // 客户信息弹出层展示
showCustomerDetail: false, showCustomerDetail: false,
// 客户信息表 // 客户信息表
customerList: { customerList: {},
id: 1, // 车辆信息列表
customerName: '徐妹妹', carInfoList: [],
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'
}
]
},
// 维保记录表 // 维保记录表
maintennceList: [ maintennceList: [],
{ // 跟进记录列表
repairItems: '保养项目保养项目AAA', followRecordList: []
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
},
{
repairItems: '保养项目保养项目保养项目BB',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
}
]
} }
}, },
created() {
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
},
methods: { methods: {
init(val) { init(val) {
console.log(val) console.log(val)
this.showCustomerDetail = true // this.showCustomerDetail = true
this.getCustomerDetail(val) this.getCustomerDetail(val)
}, },
// 获取客户详情 // 获取客户详情
getCustomerDetail(val) { getCustomerDetail(val) {
this.showCustomerDetail = true
console.log(this.showCustomerDetail)
var params = { var params = {
// customerId: // customerId: val.actCutId
groupId: val.groupId, customerId: 21
id: val.id,
staffId: val.staffId
} }
console.log(params) console.log(params)
// solicitApi.getCustomerDetail().then(({ code, data, message }) => { solicitApi.getCustomerDetail(params).then(({ code, data, message }) => {
// if (code === 0) { if (code == 0) {
// this.customerList = data this.customerList = data
// } else { if (data.cars.length) {
// Notify(message) 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() { onCancel() {
...@@ -269,7 +251,7 @@ export default { ...@@ -269,7 +251,7 @@ export default {
.stepItem:not(:last-of-type):after { .stepItem:not(:last-of-type):after {
content: ''; content: '';
font-size: 0; font-size: 0;
height: 80px; height: 100%;
width: 1px; width: 1px;
background: #e6e8eb; background: #e6e8eb;
position: absolute; position: absolute;
...@@ -280,6 +262,10 @@ export default { ...@@ -280,6 +262,10 @@ export default {
width: 90%; width: 90%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&-follow {
display: flex;
justify-content: space-between;
}
} }
.stepBox-left { .stepBox-left {
&-name { &-name {
...@@ -295,6 +281,10 @@ export default { ...@@ -295,6 +281,10 @@ export default {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
line-height: 18px; line-height: 18px;
&-tip {
display: inline-block;
min-width: 36px;
}
} }
&-content { &-content {
font-size: 12px; font-size: 12px;
...@@ -302,6 +292,10 @@ export default { ...@@ -302,6 +292,10 @@ export default {
font-weight: 400; font-weight: 400;
color: #330000; color: #330000;
line-height: 18px; line-height: 18px;
&-overflow {
display: inline-block;
padding-right: 16px;
}
} }
} }
.stepBox-right { .stepBox-right {
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
// activityId: this.activityId, // activityId: this.activityId,
activityId: 1, activityId: 1,
// staffId: this.staffId // staffId: this.staffId
staffId: 363 staffId: 334
} }
this.showLoading() this.showLoading()
solicitApi.taskOverviewData(params).then(({ code, data, message }) => { solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<van-tab :title="'已送达(' + deliveredData.delivered + ')'"> <van-tab :title="'已送达(' + deliveredData.delivered + ')'">
<div class="statistic-pic flex"> <div class="statistic-pic flex">
<div class="funnel-logo"> <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>
<div class="statistic-list"> <div class="statistic-list">
<template v-for="(status, index) in reachStatus"> <template v-for="(status, index) in reachStatus">
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
</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="customerInfo2.length > 0" :customerInfo="customerInfo2" ></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>
...@@ -55,7 +56,10 @@ export default { ...@@ -55,7 +56,10 @@ export default {
customerInfo1: [], customerInfo1: [],
// 已送达客户列表 // 已送达客户列表
customerInfo2: [], customerInfo2: [],
// 客户送达分层
deliveredData: {}, deliveredData: {},
// 套餐类型是否不是权益套餐或秒杀活动
activityGroupType: true,
reachStatus: [ reachStatus: [
{ {
text: '已送达', text: '已送达',
...@@ -108,14 +112,13 @@ export default { ...@@ -108,14 +112,13 @@ export default {
}, },
created() { created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : '' this.groupId = this.getQuery().groupId ? this.getQuery().groupId : ''
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
}, },
mounted() { mounted() {
this.showLoading() this.showLoading()
// 触达统计-客户送达分层 // 触达统计-客户送达分层
this.deliveredStatistics() this.deliveredStatistics()
this.getSendCustomerList(0) //未送达 this.getSendCustomerList(0) // 未送达
this.getSendCustomerList(1) //已送达 this.getSendCustomerList(1) // 已送达
}, },
methods: { methods: {
// tab栏切换 // tab栏切换
...@@ -134,10 +137,13 @@ export default { ...@@ -134,10 +137,13 @@ export default {
let { alreadyIndex } = this let { alreadyIndex } = this
let params = { let params = {
customerGroupType: 2, customerGroupType: 2,
id: this.activityId, // id: this.activityId,
staffId: this.staffId, id: 3,
groupId: this.groupId, // staffId: this.staffId,
sendStatus: index //发送状态 0-未发送 1-已发送 staffId: 363,
// groupId: this.groupId,
groupId: 527,
sendStatus: index // 发送状态 0-未发送 1-已发送
} }
if (index === 1) { if (index === 1) {
// 0-未查看 1-已查看 // 0-未查看 1-已查看
...@@ -150,6 +156,8 @@ export default { ...@@ -150,6 +156,8 @@ export default {
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
console.log(this.customerInfo1)
console.log(this.customerInfo2)
} else { } else {
Notify(message) Notify(message)
} }
...@@ -168,6 +176,14 @@ export default { ...@@ -168,6 +176,14 @@ export default {
solicitApi.deliveredStatistics(params).then(({ code, data, message }) => { solicitApi.deliveredStatistics(params).then(({ code, data, message }) => {
if (code == 0) { if (code == 0) {
this.deliveredData = data this.deliveredData = data
// 判断发送方式是否为权益套餐或秒杀活动
if ((data.activityGroupType && data.activityGroupType == 4) || (data.activityGroupType && data.activityGroupType == 5)) {
this.activityGroupType = false
this.reachStatus.splice(2, 1)
console.log(this.reachStatus)
this.selectBarList.splice(2, 1)
console.log(this.selectBarList)
}
console.log(this.deliveredData, '------') console.log(this.deliveredData, '------')
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!