Commit 87df3ff0 by 王志慧

commit

1 parent e0b75f33
<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;
......
......@@ -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!