@@ -1,7 +1,7 @@ | |||||
<template> | <template> | ||||
<view class="box"> | <view class="box"> | ||||
<view class="content"> | <view class="content"> | ||||
<view class="content-tips" @click="goedit()"> | |||||
<view class="content-tips"> | |||||
<view class="content-first"> | <view class="content-first"> | ||||
<view class="left"> | <view class="left"> | ||||
<view v-if="customerInfo.level.length==0"></view> | <view v-if="customerInfo.level.length==0"></view> | ||||
@@ -12,7 +12,7 @@ | |||||
<view class="test">{{customerInfo.name || '--'}}</view> | <view class="test">{{customerInfo.name || '--'}}</view> | ||||
<view class="edit"> | |||||
<view class="edit" @click="goedit()" v-if="isHavePermission"> | |||||
<image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image> | <image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -209,7 +209,7 @@ | |||||
</view> | </view> | ||||
<view class="pon-foot" v-if="buttonisshow"> | <view class="pon-foot" v-if="buttonisshow"> | ||||
<view class="foot-tab" @click="goRemind">添加提醒</view> | |||||
<!-- <view class="foot-tab" @click="goRemind">添加提醒</view> --> | |||||
<!-- <view class="foot-tab">拨打电话</view> --> | <!-- <view class="foot-tab">拨打电话</view> --> | ||||
<view class="foot-tab" @click="followRecordAdd()">写跟进</view> | <view class="foot-tab" @click="followRecordAdd()">写跟进</view> | ||||
</view> | </view> | ||||
@@ -245,7 +245,8 @@ | |||||
ratelist:[], | ratelist:[], | ||||
fllowList:[], | fllowList:[], | ||||
userInfo:{}, | userInfo:{}, | ||||
buttonisshow:false | |||||
buttonisshow:false, | |||||
isHavePermission:false | |||||
} | } | ||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
@@ -260,6 +261,10 @@ | |||||
} | } | ||||
this.getCustomerInfo() | this.getCustomerInfo() | ||||
this.tabtimetap(0) | this.tabtimetap(0) | ||||
let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | |||||
if(newmenulist.khgl_bj==true || newmenulist.khgl_gj==true){ | |||||
this.isHavePermission = true | |||||
} | |||||
}, | }, | ||||
methods:{ | methods:{ | ||||
// 获取到访记录 | // 获取到访记录 | ||||
@@ -379,7 +384,7 @@ | |||||
// 去编辑 | // 去编辑 | ||||
goedit(){ | goedit(){ | ||||
let newmenulist= uni.getStorageSync('weapp_session_Menu_data'); | let newmenulist= uni.getStorageSync('weapp_session_Menu_data'); | ||||
if(newmenulist.khgl_bj==true){ | |||||
if(newmenulist.khgl_bj==true || newmenulist.khgl_gj){ | |||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url:`/pages/center/consumer/edit?id=${this.customerId}` | url:`/pages/center/consumer/edit?id=${this.customerId}` | ||||
}) | }) | ||||
@@ -195,7 +195,7 @@ | |||||
data(){ | data(){ | ||||
return{ | return{ | ||||
orderBylist:[ | orderBylist:[ | ||||
{label:'全部',value:'0'}, | |||||
// {label:'全部',value:'0'}, | |||||
{label:'创建时间倒序',value:'1'}, | {label:'创建时间倒序',value:'1'}, | ||||
{label:'创建时间正序',value:'2'}, | {label:'创建时间正序',value:'2'}, | ||||
{label:'接待时间倒序',value:'3'}, | {label:'接待时间倒序',value:'3'}, | ||||
@@ -68,7 +68,7 @@ | |||||
data(){ | data(){ | ||||
return{ | return{ | ||||
orderBylist:[ | orderBylist:[ | ||||
{label:'全部',value:'0'}, | |||||
// {label:'全部',value:'0'}, | |||||
{label:'创建时间倒序',value:'1'}, | {label:'创建时间倒序',value:'1'}, | ||||
{label:'创建时间正序',value:'2'}, | {label:'创建时间正序',value:'2'}, | ||||
{label:'接待时间倒序',value:'3'}, | {label:'接待时间倒序',value:'3'}, | ||||
@@ -211,10 +211,11 @@ | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
orderBylist: [{ | |||||
label: '全部', | |||||
value: '0' | |||||
}, | |||||
orderBylist: [ | |||||
// { | |||||
// label: '全部', | |||||
// value: '0' | |||||
// }, | |||||
{ | { | ||||
label: '创建时间倒序', | label: '创建时间倒序', | ||||
value: '1' | value: '1' | ||||
@@ -239,10 +239,11 @@ | |||||
current: 1, | current: 1, | ||||
tabbarList: tabbarList, | tabbarList: tabbarList, | ||||
//--- end --- tabbar配置项 | //--- end --- tabbar配置项 | ||||
orderBylist: [{ | |||||
orderBylist: [ | |||||
/*{ | |||||
label: '全部', | label: '全部', | ||||
value: '0' | value: '0' | ||||
}, | |||||
},*/ | |||||
{ | { | ||||
label: '创建时间倒序', | label: '创建时间倒序', | ||||
value: '1' | value: '1' | ||||
@@ -317,7 +318,6 @@ | |||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
this.isnorefresh = 'refresh'; | this.isnorefresh = 'refresh'; | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | ||||
@@ -327,11 +327,12 @@ | |||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
this.nextPage = 1; | this.nextPage = 1; | ||||
this.recordList = [] | this.recordList = [] | ||||
this.getMyCustom() | |||||
// this.getMyCustom() | |||||
this.getFreeList() | this.getFreeList() | ||||
this.getfindKeywordsList() | this.getfindKeywordsList() | ||||
this.getFromSource(); | this.getFromSource(); | ||||
this.isnorefresh = ''; | |||||
// this.isnorefresh = ''; | |||||
this.getMyCustom() | |||||
} | } | ||||
}, | }, | ||||
onReachBottom() { | onReachBottom() { | ||||
@@ -63,16 +63,19 @@ | |||||
<view class="title"> | <view class="title"> | ||||
<view class="zuo"> | <view class="zuo"> | ||||
<view class="zuoimg">顾</view> | <view class="zuoimg">顾</view> | ||||
<view class="zuoname">{{item.agentName}}</view> | |||||
<view class="zuoname">{{item.agentName || '--'}}</view> | |||||
</view> | </view> | ||||
<view class="cen"> | |||||
自动结束 <u-count-down :timestamp="timestamp(item.createTime)" color="#E7483C"></u-count-down> | |||||
<view class="cen" v-if="timestamp(item.createTime)<30"> | |||||
<view v-if="item.status!=0"> | |||||
自动结束 <u-count-down :timestamp="timestamp(item.createTime)" color="#E7483C"></u-count-down> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="you"> | <view class="you"> | ||||
<!-- <view class="youimg1" v-if="item.status!=0"></view> | <!-- <view class="youimg1" v-if="item.status!=0"></view> | ||||
<view class="youimg1-1" v-if="item.status==0"></view> | <view class="youimg1-1" v-if="item.status==0"></view> | ||||
<view class="youtext">{{item.status==0?"排队中":item.status==1?"接待中":"已完成"}}</view> --> | <view class="youtext">{{item.status==0?"排队中":item.status==1?"接待中":"已完成"}}</view> --> | ||||
<view class="" v-if="item.status!=0" style="display: flex;"> | <view class="" v-if="item.status!=0" style="display: flex;"> | ||||
<block v-if="item.imei!=null || item.imei==''"> | |||||
<!-- 接待中 --> | <!-- 接待中 --> | ||||
<view class=""> | <view class=""> | ||||
<!-- 工牌标示 --> | <!-- 工牌标示 --> | ||||
@@ -104,6 +107,7 @@ | |||||
src="../../static/images/cus4.png" mode=""></image> | src="../../static/images/cus4.png" mode=""></image> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
</block> | |||||
</view> | </view> | ||||
<view class="youtext" v-else> | <view class="youtext" v-else> | ||||
<!--排队中 --> | <!--排队中 --> | ||||
@@ -111,7 +115,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="centerbox" v-if="item.status!=0"> | |||||
<view class="centerbox"> | |||||
<view class="content-sec"> | <view class="content-sec"> | ||||
<view class="left"> | <view class="left"> | ||||
<view class="adviser">客</view> | <view class="adviser">客</view> | ||||
@@ -190,6 +194,11 @@ | |||||
return totalTime - nowTime | return totalTime - nowTime | ||||
} | } | ||||
} | } | ||||
// judgeHalfAnHour(){ | |||||
// return (e)=>{ | |||||
// } | |||||
// } | |||||
}, | }, | ||||
onShow() { | onShow() { | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
@@ -114,6 +114,10 @@ | |||||
<view class="title" v-if="permissions.shishinum">今日工作</view> | <view class="title" v-if="permissions.shishinum">今日工作</view> | ||||
<view class="real-timebox" v-if="permissions.shishinum"> | <view class="real-timebox" v-if="permissions.shishinum"> | ||||
<view class="timebox"> | <view class="timebox"> | ||||
<view class="real" @click="tapjumpreception('1')"> | |||||
<view class="realnum">{{realtimeobj.fraction || 0}}%</view> | |||||
<view class="realtext">平均执行率</view> | |||||
</view> | |||||
<view class="real" @click="tapjumpreception('1')"> | <view class="real" @click="tapjumpreception('1')"> | ||||
<view class="realnum">{{realtimeobj.receptionCount || 0}}</view> | <view class="realnum">{{realtimeobj.receptionCount || 0}}</view> | ||||
<view class="realtext">接待量</view> | <view class="realtext">接待量</view> | ||||
@@ -126,20 +130,16 @@ | |||||
<view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view> | <view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view> | ||||
<view class="realtext">有效接待</view> | <view class="realtext">有效接待</view> | ||||
</view> | </view> | ||||
<view class="real" @click="tapjumpreception('1')"> | |||||
<view class="realnum">{{realtimeobj.fraction || 0}}%</view> | |||||
<view class="realtext">平均执行率</view> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="timebox"> | <view class="timebox"> | ||||
<view class="real" @click="tapjumpreception('4')"> | |||||
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view> | |||||
<view class="realtext">未标顾问</view> | |||||
</view> | |||||
<view class="real" @click="tapjumpreception('1')"> | <view class="real" @click="tapjumpreception('1')"> | ||||
<view class="realnum">{{realtimeobj.avgDuration|| 0}}</view> | <view class="realnum">{{realtimeobj.avgDuration|| 0}}</view> | ||||
<view class="realtext">平均接待时长</view> | <view class="realtext">平均接待时长</view> | ||||
</view> | </view> | ||||
<view class="real" @click="tapjumpreception('4')"> | |||||
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view> | |||||
<view class="realtext">未标顾问</view> | |||||
</view> | |||||
<view class="real"> | <view class="real"> | ||||
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;"> | <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;"> | ||||
{{realtimeobj.prohibitedCustomer || 0}}</view> | {{realtimeobj.prohibitedCustomer || 0}}</view> | ||||
@@ -171,6 +171,10 @@ | |||||
</view> | </view> | ||||
<view class="real-timebox" v-if="permissions.jileinum"> | <view class="real-timebox" v-if="permissions.jileinum"> | ||||
<view class="timebox"> | <view class="timebox"> | ||||
<view class="real" @click="tapjumpreception('3')"> | |||||
<view class="realnum">{{Thisweekobj.fraction || 0}}%</view> | |||||
<view class="realtext">平均执行率</view> | |||||
</view> | |||||
<view class="real" @click="tapjumpreception('3')"> | <view class="real" @click="tapjumpreception('3')"> | ||||
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view> | <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view> | ||||
<view class="realtext">接待量</view> | <view class="realtext">接待量</view> | ||||
@@ -179,10 +183,6 @@ | |||||
<view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view> | <view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view> | ||||
<view class="realtext">有效接待</view> | <view class="realtext">有效接待</view> | ||||
</view> | </view> | ||||
<view class="real" @click="tapjumpreception('3')"> | |||||
<view class="realnum">{{Thisweekobj.fraction || 0}}%</view> | |||||
<view class="realtext">平均执行率</view> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="timebox"> | <view class="timebox"> | ||||
<view class="real" @click="tapjumpreception('3')"> | <view class="real" @click="tapjumpreception('3')"> | ||||
@@ -102,13 +102,13 @@ | |||||
<image class="Piabodata-img1" src="../../static/images/img/message.png" | <image class="Piabodata-img1" src="../../static/images/img/message.png" | ||||
mode=""></image> | mode=""></image> | ||||
<!-- 热度 --> | <!-- 热度 --> | ||||
{{item.commentNum || 0 }} | |||||
{{item.commentCount || 0 }} | |||||
</view> | </view> | ||||
<view class="icon"> | <view class="icon"> | ||||
<image class="Piabodata-img1" src="../../static/images/img/hand.png" | <image class="Piabodata-img1" src="../../static/images/img/hand.png" | ||||
mode=""></image> | mode=""></image> | ||||
<!-- 点赞数 --> | <!-- 点赞数 --> | ||||
{{item.likeNum || 0 }} | |||||
{{item.likeCount || 0 }} | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||