Commit 585e90c8 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 a42814d8 54ab9d76
......@@ -63,15 +63,15 @@ export default {
})
},
// 触达统计-客户送达分层
deliveredStatistics(data) {
data.method = 'marketing.api.solicit.customer.delivered.statistics'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 触达统计-客户送达分层
deliveredStatistics(data) {
data.method = 'marketing.api.solicit.customer.delivered.statistics'
return window.$HTTP({
url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data,
returnAll: true
})
},
// 获取送达、未送达列表
getCustomerList(data) {
......@@ -86,7 +86,7 @@ deliveredStatistics(data) {
getCustomerDetail(data) {
data.method = 'marketing.api.solicit.customer.detail'
return window.$HTTP({
url,
url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data,
returnAll: true
})
......
......@@ -17,14 +17,14 @@
</div>
<div class="customer-info-label">
<div class="customer-info-name">企微营销:</div>
<div class="customer-info-message">{{ item.checkStatus }}</div>
<div class="customer-info-message">{{ item.checkStatus == 0 ? '未查看' : '已查看' }}</div>
</div>
</div>
<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">{{ item.wechatnick }}</span>
<span class="customer-info-message customer-info-wechatnick text-hide">{{ item.wechatnick }}</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>
......@@ -70,6 +70,18 @@ export default {
default: () => {
return []
}
},
groupId: {
type: String,
default: () => {
return null
}
},
groupName: {
type: String,
default: () => {
return ''
}
}
},
watch: {
......@@ -98,7 +110,7 @@ export default {
// this.initWx()
},
methods: {
//初始化微信接口
// 初始化微信接口
initWx() {
window.$wx = wxConfig
window.$wx.init(['setClipboardData', 'makePhoneCall']).then(() => {})
......@@ -141,12 +153,12 @@ export default {
followCustomer(val) {
console.log(val)
this.followCustomerData = val
this.$refs.customerFollowRef.init()
this.$refs.customerFollowRef.init(val)
},
// 客户详情
sendMessage(val) {
console.log(val)
this.$refs.customerInfoRef.init()
this.$refs.customerInfoRef.init(val)
},
// 企微沟通
sendWechat(val) {
......@@ -219,10 +231,16 @@ export default {
color: #333333;
line-height: 18px;
}
.customer-info-wechatnick {
display: inline-block;
max-width: 58px;
}
.customer-info-wechat {
vertical-align: bottom;
color: #3975c6;
}
.customer-info-qiwechat {
vertical-align: bottom;
color: #2cca74;
}
</style>
......@@ -2,7 +2,7 @@
<div>
<van-action-sheet v-model="show">
<van-sticky class="name-title">
<div class="name-title-text">{{ info.name }}</div>
<div class="name-title-text">xxx</div>
</van-sticky>
<div class="follow-content">
<!-- <div class="name-title">
......@@ -13,8 +13,8 @@
<van-field name="跟进结果" label="跟进结果" class="field-bottom">
<template #input>
<div class="follow-list">
<div class="follow-list-item" v-for="item in followResultList" :key="item.dictValue" @click="selectFollow(item)">
<div :class="item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : ''">{{ item.dictLabel }}</div>
<div class="follow-list-tag" v-for="item in followResultList" :key="item.dictValue" @click="selectFollow(item)">
<div :class="item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : 'follow-list-item'">{{ item.dictLabel }}</div>
</div>
</div>
</template>
......@@ -61,7 +61,7 @@
</template>
<script>
import { Toast } from 'vant'
import { Toast, Notify } from 'vant'
import { mapState } from 'vuex'
import { solicitApi } from '@/api'
export default {
......@@ -101,10 +101,10 @@ export default {
}
},
props: {
info: {
type: Object,
default: () => {}
},
// info: {
// type: Object,
// default: () => {}
// },
groupId: {
type: String,
default: ''
......@@ -121,7 +121,10 @@ export default {
})
},
methods: {
init() {
init(val) {
// this.customerName = val.customerName
console.log(this.followResultList)
console.log(this.activityId)
this.show = true
// 获取当前时间
const date = new Date(new Date().getTime() + (parseInt(new Date().getTimezoneOffset() / 60) + 8) * 3600 * 1000)
......@@ -131,14 +134,14 @@ export default {
selectFollow(val) {
this.selectFollowForm.followResult = val.dictValue
},
// // 获取跟进备注
// getTips(e) {
// console.log(e)
// this.selectFollowForm.followTips = e
// },
// 获取跟进备注
getTips(e) {
console.log(e)
this.selectFollowForm.followTips = e
},
// 继续跟进按钮切换
switchChange() {
// this.selectFollowForm.checked = !this.selectFollowForm.checked
this.selectFollowForm.checked = !this.selectFollowForm.checked
console.log(this.selectFollowForm.checked)
},
// 展示日历表
......@@ -202,7 +205,7 @@ export default {
}
})
},
//数据清空
// 数据清空
initFormData() {
this.selectFollowForm = {
followResult: '',
......@@ -272,21 +275,23 @@ export default {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
&-item {
&-tag {
width: 80px;
height: 28px;
margin-bottom: 8px;
text-align: center;
line-height: 28px;
}
&-item {
background: #ffffff;
border-radius: 14px;
border: 1px solid #dadde0;
text-align: center;
line-height: 28px;
}
&-item-select {
color: #3975c6;
border-radius: 14px;
background: rgba(57, 117, 198, 0.1);
border: none;
border: 1px solid transparent;
}
}
.item {
......
......@@ -3,7 +3,7 @@
<van-action-sheet v-model:show="showCustomerDetail" cancel-text="关闭详情" close-on-click-action @cancel="onCancel">
<div class="popup-card">
<div class="name-title">
<div class="name-title-text">{{ customerList.name }}</div>
<div class="name-title-text">{{ customerList.customerName }}</div>
</div>
<!-- 客户信息 -->
<div class="customer-message">
......@@ -15,19 +15,19 @@
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">车系</div>
<div class="customer-info-item-content">{{ customerList.carBrand }}</div>
<div class="customer-info-item-content">{{ customerList.cars.length > 0 && customerList.cars[0].carSeries }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">车牌号码</div>
<div class="customer-info-item-content">{{ customerList.carNumber }}</div>
<div class="customer-info-item-content">{{ customerList.cars.length > 0 && customerList.cars[0].carNumber }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">购车日期</div>
<div class="customer-info-item-content">{{ customerList.buyCarDate }}</div>
<div class="customer-info-item-content">{{ customerList.cars.length > 0 && customerList.cars[0].carBuyDate }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">最近保养</div>
<div class="customer-info-item-content">{{ customerList.recentCare }}</div>
<div class="customer-info-item-content">{{ customerList.length > 0 && customerList.maListcars[0].maDate }}</div>
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">人群分组</div>
......@@ -35,7 +35,12 @@
</div>
<div class="customer-info-item">
<div class="customer-info-item-title">企微账号</div>
<div class="customer-info-item-content">{{ customerList.wechatNumber }}</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>
<div class="customer-info-message" v-else>未添加</div>
</div>
</div>
</div>
......@@ -47,17 +52,17 @@
<div class="sprite-icon icon-maintant"></div>
<div class="stepBox">
<div class="stepBox-left">
<div class="stepBox-left-name">{{ item.name }}</div>
<div class="stepBox-left-name">{{ item.repairItems }}</div>
<div class="stepBox-left-title">
费用:
<span class="stepBox-left-content">{{ item.price }}</span>
</div>
<div class="stepBox-left-title">
跟进人:
<span class="stepBox-left-content">{{ item.followStaff }}</span>
<span class="stepBox-left-content">{{ item.follower }}</span>
</div>
</div>
<div class="stepBox-right">{{ item.date }}</div>
<div class="stepBox-right">{{ item.maDate }}</div>
</div>
</div>
</template>
......@@ -66,22 +71,22 @@
<!-- 跟进记录 -->
<div class="record">
<div class="customer-info-title">跟进记录</div>
<template v-if="recordList.length">
<div class="stepItem" v-for="(item, index) in recordList" :key="index">
<template v-if="customerList.followRecordList.length">
<div class="stepItem" v-for="(item, index) in customerList.followRecordList" :key="index">
<div class="sprite-icon icon-followRecord"></div>
<div class="stepBox">
<div class="stepBox-left">
<div class="stepBox-left-name">{{ item.name }}</div>
<div class="stepBox-left-name">{{ item.followResult }}</div>
<div class="stepBox-left-title">
预约时间:
<span class="stepBox-left-content">{{ item.recordDate ? item.recordDate : '-' }}</span>
<span class="stepBox-left-content">{{ item.orderTime ? item.orderTime : '-' }}</span>
</div>
<div class="stepBox-left-title">
备注:
<span class="stepBox-left-content">{{ item.tips ? item.tips : '-' }}</span>
<span class="stepBox-left-content">{{ item.followMark ? item.followMark : '-' }}</span>
</div>
</div>
<div class="stepBox-right">{{ item.date }}</div>
<div class="stepBox-right">{{ item.createdTime }}</div>
</div>
</div>
</template>
......@@ -93,6 +98,8 @@
</template>
<script>
import { solicitApi } from '@/api'
import { Notify } from 'vant'
export default {
name: 'CustomerInfoPopup',
data() {
......@@ -102,78 +109,87 @@ export default {
// 客户信息表
customerList: {
id: 1,
name: '徐妹妹',
customerName: '徐妹妹',
vinCode: 'LFMAYACC5M029512',
carBrand: '兰博基尼',
carNumber: '粤B 88888',
buyCarDate: '2021-04-20',
recentCare: '2022-05-16',
customerGroup: '定保招揽 N-6',
wechatNumber: '未添加',
careRecord: [
cars: [
{
customerId: 0,
carSeries: '奔驰 G63',
carNumber: '粤B 6666',
carBuyDate: '2022-06-04T06:36:16.314Z'
}
],
maList: [
{
type: '保养项目保养项目AAA',
cost: '240元',
followStaff: 'kuangge',
date: '05-28 16:00'
repairItems: '保养项目保养项目AAA',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
},
{
type: '保养项目保养项目保养项目BB',
cost: '240元',
followStaff: 'kuangge',
date: '05-28 16:00'
repairItems: '保养项目保养项目保养项目BB',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
}
],
followRecord: [
followRecordList: [
{
type: '预约到店',
oppointmentTime: '2022-05-21',
tips: '',
date: '05-28 16:00'
followResult: '预约到店',
orderTime: '2022-05-21',
followMark: '',
createdTime: '05-28 16:00'
},
{
type: '未接听',
oppointmentTime: '',
tips: '',
date: '05-28 16:00'
followResult: '未接听',
orderTime: '',
followMark: '',
createdTime: '05-28 16:00'
}
]
},
// 维保记录表
maintennceList: [
// {
// name: '保养项目A',
// price: '240元',
// followStaff: '续梅厄米',
// date: '05-28 16:00'
// },
// {
// name: '保养项目B',
// price: '240元',
// followStaff: '续梅厄米',
// date: '05-28 16:00'
// }
],
// 跟进记录表
recordList: [
{
name: '预约到店',
recordDate: '2022-05-21',
tips: '续梅厄米',
date: '05-28 16:00'
repairItems: '保养项目保养项目AAA',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
},
{
name: '未接听',
recordDate: '',
tips: '续梅厄米',
date: '05-28 16:00'
repairItems: '保养项目保养项目保养项目BB',
price: '240元',
follower: 'kuangge',
maDate: '05-28 16:00'
}
]
}
},
methods: {
init() {
init(val) {
console.log(val)
this.showCustomerDetail = true
this.getCustomerDetail(val)
},
// 获取客户详情
getCustomerDetail(val) {
var params = {
// customerId:
groupId: val.groupId,
id: val.id,
staffId: val.staffId
}
console.log(params)
// solicitApi.getCustomerDetail().then(({ code, data, message }) => {
// if (code === 0) {
// this.customerList = data
// } else {
// Notify(message)
// }
// })
},
// 关闭弹窗
onCancel() {
......@@ -196,7 +212,7 @@ export default {
&-text {
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 600;
color: #333333;
line-height: 48px;
}
......@@ -211,6 +227,7 @@ export default {
font-weight: 400;
color: #333333;
line-height: 22px;
margin-bottom: 12px;
}
.customer-info-item {
display: flex;
......@@ -226,6 +243,18 @@ export default {
&-content {
color: #333333;
}
&-message {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 18px;
}
&-wechat {
color: #3975c6;
}
&-qiwei {
color: #2cca74;
}
}
.record {
margin-top: 16px;
......@@ -244,8 +273,8 @@ export default {
width: 1px;
background: #e6e8eb;
position: absolute;
left: 8px;
top: 4px;
left: 10px;
top: 20px;
}
.stepBox {
width: 90%;
......@@ -256,7 +285,7 @@ export default {
&-name {
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 600;
color: #333333;
line-height: 22px;
}
......
......@@ -8,7 +8,7 @@
*/
// 本地环境配置
module.exports = {
envVersion: "develop",
envVersion: 'develop',
title: '嘀加企微管家',
request: {
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
......@@ -28,14 +28,14 @@ module.exports = {
logout_function: 'reLogin',
code_message_map: {}
},
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
shopmall_appid: "wxe10067a63c1856ac",
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
shopmall_appid: 'wxe10067a63c1856ac',
sign: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637",
format: "json",
locale: "zh_CN",
source: "scrm-main",
v: "1.0.0",
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
format: 'json',
locale: 'zh_CN',
source: 'scrm-main',
v: '1.0.0'
},
vconsole: true
}
\ No newline at end of file
}
......@@ -101,6 +101,12 @@ export default {
}
}
},
computed: {
...mapState({
activityId: state => state.solicit.activityId,
staffId: state => state.solicit.staffId
})
},
created() {
this.bulletinList = this.$constants.BULLETINLIST
this.getStaffId({
......@@ -121,8 +127,10 @@ export default {
}),
getTaskOverviewData() {
let params = {
activityId: this.activityId,
staffId: this.staffId
// activityId: this.activityId,
activityId: 1,
// staffId: this.staffId
staffId: 363
}
this.showLoading()
solicitApi.taskOverviewData(params).then(({ code, data, message }) => {
......
......@@ -42,6 +42,7 @@ import ScrollView from '../../components/ScrollView.vue'
import SelectBar from '../../components/SelectBar.vue'
import { solicitApi } from '@/api'
import { mapState } from 'vuex'
import { Notify } from 'vant'
export default {
components: { SelectBar, Empty, ScrollView },
data() {
......@@ -107,6 +108,7 @@ export default {
},
created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : ''
this.groupName = this.getQuery().groupName ? this.getQuery().groupName : ''
},
mounted() {
this.showLoading()
......@@ -120,7 +122,7 @@ export default {
tabChange(e) {
this.tabIndex = e
},
//已送达Tab四种状态
// 已送达Tab四种状态
changeSelectTab(e) {
this.alreadyIndex = e
this.getSendCustomerList(1)
......@@ -137,10 +139,13 @@ export default {
groupId: this.groupId,
sendStatus: index //发送状态 0-未发送 1-已发送
}
if (index == 1) {
if (alreadyIndex == 1) params.checkStatus = 1 //0-未查看 1-已查看
if (alreadyIndex == 2) params.receiveStatus = 1 //0-未领取 1-已领取
if (alreadyIndex == 3) params.retFacFlag = 1 //0.未到店 1.已到店
if (index === 1) {
// 0-未查看 1-已查看
if (alreadyIndex === 1) params.checkStatus = 1
// 0-未领取 1-已领取
if (alreadyIndex === 2) params.receiveStatus = 1
// 0.未到店 1.已到店
if (alreadyIndex === 3) params.retFacFlag = 1
}
solicitApi.getCustomerList(params).then(({ code, data, message }) => {
if (code == 0) {
......@@ -153,13 +158,17 @@ export default {
// 客户送达分层
deliveredStatistics() {
let params = {
id: this.activityId,
staffId: this.staffId,
groupId: this.groupId
// id: this.activityId,
id: 3,
// staffId: this.staffId,
staffId: 363,
// groupId: this.groupId
groupId: 527
}
solicitApi.deliveredStatistics({ params }).then(({ code, data, message }) => {
solicitApi.deliveredStatistics(params).then(({ code, data, message }) => {
if (code == 0) {
this.deliveredData = data
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!