Commit 8fc6aee2 by 前端

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

Wangzh dev 2.3.3

See merge request !51
2 parents 62803f23 fe936f0d
......@@ -9,11 +9,11 @@ const url = '/rop-scrm-marketing/router'
export default {
/**
* 获取跟进结果字典 */
followFindAllDictData(data) {
data.method = 'merchants.api.menu.findAllDictData'
return window.$HTTP({
url:window.$fetchConfig.dict,
url: window.$fetchConfig.dict,
data,
returnAll: true
})
......@@ -36,7 +36,7 @@ export default {
returnAll: true
})
},
// 客户招揽-任务总览
taskOverviewData(data) {
data.method = 'marketing.api.solicit.taskOverview'
......@@ -83,6 +83,15 @@ export default {
returnAll: true
})
},
// 一键营销-员工发送状态判断
staffSendStatus(data) {
data.method = 'marketing.api.solicit.ocmarketing.staff.sendStatus'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 获取送达、未送达列表
getCustomerList(data) {
......@@ -111,22 +120,22 @@ export default {
returnAll: true
})
},
// 跟进结果-成功到店与战败分析
getFollowResult(data) {
data.method = 'marketing.api.solicit.staffid.getFollowResult'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 跟进结果-成功到店与战败分析
getCustomerFollowTotal(data) {
data.method = 'marketing.api.solicit.staffid.getCustomerFollowTotal'
return window.$HTTP({
url,
data,
returnAll: true
})
}
// 跟进结果-成功到店与战败分析
getFollowResult(data) {
data.method = 'marketing.api.solicit.staffid.getFollowResult'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 跟进结果-成功到店与战败分析
getCustomerFollowTotal(data) {
data.method = 'marketing.api.solicit.staffid.getCustomerFollowTotal'
return window.$HTTP({
url,
data,
returnAll: true
})
}
}
<template>
<div>
<van-action-sheet v-model="show">
<van-action-sheet v-model="show" @click-overlay="clickOverlay">
<van-sticky class="name-title">
<div class="name-title-text">{{ info.customerName }}</div>
</van-sticky>
......@@ -25,7 +25,7 @@
<van-switch v-model="selectFollowForm.checked" active-color="#3975C6" size="24px" />
</template>
</van-field>
<div class="continue-follow-text field-bottom">若「打开」表示该客户暂未战败,仍需再次招揽; 若「关闭」表示该客户信息将从「待跟进」迁移至「已跟进」列表。</div>
<div class="continue-follow-text field-bottom">若「打开」表示该客户暂未战败,仍需再次招揽; 若「关闭」表示该客户信息将从「跟进」迁移至「结果」列表。</div>
<van-field
v-show="selectFollowForm.followResult == 1"
v-model="selectFollowForm.orderTime"
......@@ -56,7 +56,16 @@
:style="{ height: '500px' }"
@select="selectDate"
/>
<van-datetime-picker type="time" :default-time="defaultTime" v-model="defaultTime" v-show="tabIndex" @change="confirmTime" :min-hour="minHour" :show-toolbar="false" />
<van-datetime-picker
type="time"
:default-time="defaultTime"
v-model="defaultTime"
v-show="tabIndex"
@change="confirmTime"
:min-hour="minHour"
:min-minute="minMinute"
:show-toolbar="false"
/>
</div>
</van-cell-group>
</van-form>
......@@ -108,10 +117,11 @@ export default {
timeNow: '',
// 时间标签可选最小时间
minHour: '',
minMinute: '',
// 默认日期
defaultDate: '',
// 默认时间
defaultTime: '',
defaultTime: ''
}
},
props: {
......@@ -172,12 +182,15 @@ export default {
cancel() {
this.initFormData()
},
clickOverlay() {
this.initFormData()
},
// 提交按钮
submit() {
let params = {
followResult: this.selectFollowForm.followResult,
followMark: this.selectFollowForm.followMark,
followFlag: this.selectFollowForm.checked ? 1 : 0,
followFlag: this.selectFollowForm.checked ? 0 : 1,
activityId: this.activityId,
staffId: this.staffId,
groupId: this.groupId,
......@@ -221,6 +234,7 @@ export default {
},
// 日期格式转化
formatterDate(val, type) {
const dateNow = new Date(new Date().getTime() + (parseInt(new Date().getTimezoneOffset() / 60) + 8) * 3600 * 1000)
let date = new Date(val)
let y = date.getFullYear()
let m = date.getMonth() + 1
......@@ -228,19 +242,23 @@ export default {
let h = date.getHours()
let h1 = h < 10 ? '0' + h : h
let d = date.getDate()
let s = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
d = d < 10 ? '0' + d : d
const time = y + '-' + m + '-' + d
this.datePickList[0].date = time
//初始化当天的最小时分
if (!type) {
this.dayNow = time
this.timeNow = h1 + 1
this.timeNow = h1
}
if (this.dayNow == time) {
this.datePickList[1].date = this.timeNow + ':00'
this.minMinute = dateNow.getMinutes() < 10 ? '0' + dateNow.getMinutes() : dateNow.getMinutes()
this.datePickList[1].date = this.timeNow + ':' + this.minMinute
this.minHour = this.timeNow
return
}
this.minHour = ''
this.minMinute = ''
}
}
}
......
......@@ -10,11 +10,9 @@
</div>
<tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex">
<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-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="font-16 color-3 fw5 text-hide">{{ item.groupName }}</div>
<div class="m-t-8 flex-between fw7">
......@@ -127,7 +125,8 @@ export default {
.follow-statistics {
background: #fff;
height: 82px;
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81);
border-radius: 4px;
&-single {
padding: 12px 0;
width: 33.3%;
......
......@@ -155,7 +155,7 @@ export default {
]
this.chart.centerData = {
text: '达成率',
rate: overviewInfo.followedUpPercent
rate: overviewInfo.followedUpPercent ? (overviewInfo.followedUpPercent * 100) + '%' : 0
}
overviewInfo.customerGroupList.length > 0 &&
overviewInfo.customerGroupList.forEach(item => {
......@@ -173,7 +173,8 @@ export default {
.overview-container {
.overview-wrap {
background: #fff;
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81);
border-radius: 4px;
.overview-content {
height: 160px;
box-sizing: border-box;
......
......@@ -137,12 +137,35 @@ export default {
},
mounted() {
this.showLoading()
//员工发送状态判断
this.staffSendStatus()
// 触达统计-客户送达分层
this.deliveredStatistics()
this.getSendCustomerList(0) // 未送达
this.getSendCustomerList(1) // 已送达
},
methods: {
staffSendStatus() {
let params = {
// id: 65,
// staffId: 67,
// groupId: 26816
id: this.activityId,
staffId: this.staffId,
groupId: this.groupId
}
solicitApi.staffSendStatus(params).then(({ code, data, message }) => {
if (code == 0) {
if (data.createFlag == 0) {
Notify('营销活动尚未创建,请创建一键营销后重试')
}
if (data.massStatus == 1 && data.createFlag == 1 && data.status == 0) {
Notify('请前往“群发助手”确认群发消息')
}
}
})
},
showFollowPop(data) {
this.$refs.customerFollowRef.init()
this.customerIndex = data.customerIndex
......
......@@ -195,6 +195,8 @@ export default {
padding: 12px;
.succeed-wrap {
background: #fff;
box-shadow: 0px 3px 10px 0px rgba(223, 228, 234, 0.81);
border-radius: 4px;
.title-info {
position: relative;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!