Commit 78175430 by 王志慧

commit

1 parent 669102f5
...@@ -48,10 +48,6 @@ ...@@ -48,10 +48,6 @@
</div> </div>
<!-- 电话营销弹窗 --> <!-- 电话营销弹窗 -->
<van-action-sheet v-model:show="show" :actions="actions" @select="onSelect" cancel-text="取消" close-on-click-action @cancel="onCancel" /> <van-action-sheet v-model:show="show" :actions="actions" @select="onSelect" cancel-text="取消" close-on-click-action @cancel="onCancel" />
<!-- 跟进弹窗 -->
<customer-follow-popup ref="customerFollowRef" :info="followCustomerData" @changeIndexEvent="changeIndexEvent"></customer-follow-popup>
<!-- 客户信息弹窗 -->
<customer-info-popup ref="customerInfoRef"></customer-info-popup>
</div> </div>
</template> </template>
...@@ -86,6 +82,7 @@ export default { ...@@ -86,6 +82,7 @@ export default {
}, },
watch: { watch: {
customerInfo(n) { customerInfo(n) {
console.log(n, '监听数据')
this.customerData = n this.customerData = n
} }
}, },
...@@ -100,7 +97,6 @@ export default { ...@@ -100,7 +97,6 @@ export default {
userIds: [], userIds: [],
chatId: '' chatId: ''
}, },
followCustomerData: {},
phoneNumber: null, phoneNumber: null,
customerData: this.customerInfo, customerData: this.customerInfo,
customerIndex: 0 customerIndex: 0
...@@ -110,21 +106,6 @@ export default { ...@@ -110,21 +106,6 @@ export default {
this.initWx() this.initWx()
}, },
methods: { methods: {
changeIndexEvent() {
let params = {
customerId: this.followCustomerData.actCutId
}
solicitApi.getCustomerDetail(params).then(({ code, data, message }) => {
if (code == 0) {
data.solicitTime = data.solicitTime ? data.solicitTime.slice(0, 11) : data.solicitTime
data.updatedTime = data.updatedTime ? data.updatedTime.slice(0, 11) : data.updatedTime
this.customerData[this.customerIndex] = data
this.$set(this.customerData, this.customerIndex, data)
} else {
Notify(message)
}
})
},
// 初始化微信接口 // 初始化微信接口
initWx() { initWx() {
window.$wx = wxConfig window.$wx = wxConfig
...@@ -164,13 +145,11 @@ export default { ...@@ -164,13 +145,11 @@ export default {
}, },
// 招揽跟进 // 招揽跟进
followCustomer(val, index) { followCustomer(val, index) {
this.customerIndex = index this.$emit('showFollowPop', { customerIndex: index, followCustomerData: val })
this.followCustomerData = val
this.$refs.customerFollowRef.init()
}, },
// 客户详情 // 客户详情
sendMessage(val) { sendMessage(val) {
this.$refs.customerInfoRef.getCustomerDetail(val) this.$emit('showInfoPop', { followCustomerData: val })
}, },
// 企微沟通 // 企微沟通
sendWechat(val) { sendWechat(val) {
......
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
// 默认日期 // 默认日期
defaultDate: '', defaultDate: '',
// 默认时间 // 默认时间
defaultTime: '' defaultTime: '',
} }
}, },
props: { props: {
...@@ -183,7 +183,10 @@ export default { ...@@ -183,7 +183,10 @@ export default {
groupId: this.groupId, groupId: this.groupId,
actCutId: this.info.actCutId // 活动客户id actCutId: this.info.actCutId // 活动客户id
} }
if (this.selectFollowForm.followResult == '') {
Toast.fail('请选择跟进结果')
return
}
// 如果选择标签为预约到店,判断日期和时间是否填了 // 如果选择标签为预约到店,判断日期和时间是否填了
if (this.selectFollowForm.followResult == 1) { if (this.selectFollowForm.followResult == 1) {
if (!this.selectFollowForm.orderTime) { if (!this.selectFollowForm.orderTime) {
......
...@@ -11,9 +11,13 @@ ...@@ -11,9 +11,13 @@
<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 v-if="customerInfo.length > 0" :customerInfo="customerInfo"></customer-card> <customer-card v-if="customerInfo.length > 0" :customerInfo="customerInfo" @showFollowPop="showFollowPop" @showInfoPop="showInfoPop"></customer-card>
<empty v-else></empty> <empty v-else></empty>
</scroll-view> </scroll-view>
<!-- 跟进弹窗 -->
<customer-follow-popup ref="customerFollowRef" :info="followCustomerData" @changeIndexEvent="changeIndexEvent"></customer-follow-popup>
<!-- 客户信息弹窗 -->
<customer-info-popup ref="customerInfoRef"></customer-info-popup>
</div> </div>
</template> </template>
<script> <script>
...@@ -40,7 +44,9 @@ export default { ...@@ -40,7 +44,9 @@ export default {
{ text: '已跟进', value: 1 }, { text: '已跟进', value: 1 },
{ text: '未跟进', value: 2 } { text: '未跟进', value: 2 }
], ],
resultList: [{ text: '全部结果', value: 0 }] resultList: [{ text: '全部结果', value: 0 }],
followCustomerData: {},
customerIndex: 0
} }
}, },
computed: { computed: {
...@@ -60,6 +66,29 @@ export default { ...@@ -60,6 +66,29 @@ export default {
this.getSendCustomerList() this.getSendCustomerList()
}, },
methods: { methods: {
showFollowPop(data) {
this.$refs.customerFollowRef.init()
this.customerIndex = data.customerIndex
this.followCustomerData = data.followCustomerData
},
showInfoPop(data) {
this.$refs.customerInfoRef.getCustomerDetail(data.followCustomerData)
},
changeIndexEvent() {
let params = {
customerId: this.followCustomerData.actCutId
}
solicitApi.getCustomerDetail(params).then(({ code, data, message }) => {
if (code == 0) {
data.solicitTime = data.solicitTime ? data.solicitTime.slice(0, 11) : data.solicitTime
data.updatedTime = data.updatedTime ? data.updatedTime.slice(0, 11) : data.updatedTime
this.customerInfo[this.customerIndex] = data
this.$set(this.customerInfo, this.customerIndex, data)
} else {
Notify(message)
}
})
},
// 获取送达客户信息 // 获取送达客户信息
getSendCustomerList(index) { getSendCustomerList(index) {
this.hideLoading() this.hideLoading()
...@@ -67,9 +96,7 @@ export default { ...@@ -67,9 +96,7 @@ export default {
keyWord: this.keyWord, keyWord: this.keyWord,
type: this.searchType + 1, type: this.searchType + 1,
customerGroupType: 2, customerGroupType: 2,
// id: 3,
// staffId: 363,
// groupId:527,
id: this.activityId, id: this.activityId,
staffId: this.staffId, staffId: this.staffId,
groupId: this.groupId, groupId: this.groupId,
...@@ -168,7 +195,7 @@ export default { ...@@ -168,7 +195,7 @@ export default {
} }
} }
.content { .content {
height: calc(100vh - 154px); height: calc(100vh - 100px);
/deep/ .van-list { /deep/ .van-list {
background: #f7f7f7; background: #f7f7f7;
} }
......
<template> <template>
<div class="result-container"> <div class="result-container">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-if="true"> <template v-if="getCustomerFollow.length>0">
<div class="result-container-content"> <div class="result-container-content">
<template v-for="(item, i) in getCustomerFollow"> <template v-for="(item, i) in getCustomerFollow">
<div :key="i" class="result-container-content-item"> <div :key="i" class="result-container-content-item">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div>1. 客户开启消息免打扰,消息发送失败;</div> <div>1. 客户开启消息免打扰,消息发送失败;</div>
<div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div> <div>2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)</div>
</div> </div>
<customer-card v-if="customerInfo1.length > 0" :customerInfo.sync="customerInfo1"></customer-card> <customer-card v-if="customerInfo1.length > 0" :customerInfo="customerInfo1" @showFollowPop="showFollowPop" @showInfoPop="showInfoPop"></customer-card>
<empty v-else></empty> <empty v-else></empty>
</scroll-view> </scroll-view>
</van-tab> </van-tab>
...@@ -32,10 +32,14 @@ ...@@ -32,10 +32,14 @@
</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" @showFollowPop="showFollowPop" @showInfoPop="showInfoPop"></customer-card>
<empty v-else></empty> <empty v-else></empty>
</van-tab> </van-tab>
</van-tabs> </van-tabs>
<!-- 跟进弹窗 -->
<customer-follow-popup ref="customerFollowRef" :info="followCustomerData" @changeIndexEvent="changeIndexEvent"></customer-follow-popup>
<!-- 客户信息弹窗 -->
<customer-info-popup ref="customerInfoRef"></customer-info-popup>
</div> </div>
</template> </template>
...@@ -72,6 +76,8 @@ export default { ...@@ -72,6 +76,8 @@ export default {
customerInfo1: [], customerInfo1: [],
// 已送达客户列表 // 已送达客户列表
customerInfo2: [], customerInfo2: [],
followCustomerData: {},
customerIndex: 0,
// 客户送达分层 // 客户送达分层
deliveredData: {}, deliveredData: {},
// 套餐类型是否不是权益套餐或秒杀活动 // 套餐类型是否不是权益套餐或秒杀活动
...@@ -137,6 +143,30 @@ export default { ...@@ -137,6 +143,30 @@ export default {
this.getSendCustomerList(1) // 已送达 this.getSendCustomerList(1) // 已送达
}, },
methods: { methods: {
showFollowPop(data) {
this.$refs.customerFollowRef.init()
this.customerIndex = data.customerIndex
this.followCustomerData = data.followCustomerData
},
showInfoPop(data) {
this.$refs.customerInfoRef.getCustomerDetail(data.followCustomerData)
},
changeIndexEvent() {
let params = {
customerId: this.followCustomerData.actCutId
}
let target = ['customerInfo1', 'customerInfo2']
solicitApi.getCustomerDetail(params).then(({ code, data, message }) => {
if (code == 0) {
data.solicitTime = data.solicitTime ? data.solicitTime.slice(0, 11) : data.solicitTime
data.updatedTime = data.updatedTime ? data.updatedTime.slice(0, 11) : data.updatedTime
this[target[this.tabIndex]][this.customerIndex] = data
this.$set(this[target[this.tabIndex]], this.customerIndex, data)
} else {
Notify(message)
}
})
},
// tab栏切换 // tab栏切换
tabChange(e) { tabChange(e) {
this.tabIndex = e this.tabIndex = e
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!