|
|
@@ -86,14 +86,16 @@ |
|
|
|
<view class="shebenchetext">已用小时</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche"> |
|
|
|
<view class="shebenchenum" :style="paraphraseObj.surplusSum < 100 ? 'color: red' : ''">{{paraphraseObj.surplusSum || 0}}</view> |
|
|
|
<view class="shebenchenum" :style="paraphraseObj.surplusSum < 100 ? 'color: red' : ''"> |
|
|
|
{{paraphraseObj.surplusSum || 0}} |
|
|
|
</view> |
|
|
|
<view class="shebenchetext">剩余小时</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="equipmentisshow"> |
|
|
|
<view class="title" >设备</view> |
|
|
|
<view class="title">设备</view> |
|
|
|
<view class="shebenbox"> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(0)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view> |
|
|
@@ -128,7 +130,7 @@ |
|
|
|
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view> |
|
|
|
<view class="realtext">未标顾问</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="real"> |
|
|
|
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;"> |
|
|
|
{{realtimeobj.prohibitedCustomer || 0}} |
|
|
@@ -149,8 +151,8 @@ |
|
|
|
<view class="realnum">{{max100(realtimeobj.wordFinishFraction)}}%</view> |
|
|
|
<view class="realtext">平均挖掘率</view> |
|
|
|
</view> |
|
|
|
<view class="real"> |
|
|
|
<view class="realnum" > |
|
|
|
<view class="real" @click="toCustomerManagement('dateType=0')"> |
|
|
|
<view class="realnum"> |
|
|
|
{{realtimeobj.sumLevelFraction || 0}}% |
|
|
|
</view> |
|
|
|
<view class="realtext">客户意向度</view> |
|
|
@@ -197,14 +199,14 @@ |
|
|
|
<view class="realnum">{{max100(Thisweekobj.wordFinishFraction)}}%</view> |
|
|
|
<view class="realtext">平均挖掘率</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('333'))"> |
|
|
|
<view class="realnum">{{max100(Thisweekobj.fraction)}}%</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="real"> |
|
|
|
<view class="realnum" > |
|
|
|
|
|
|
|
<view class="real" @click="toCustomerManagement"> |
|
|
|
<view class="realnum"> |
|
|
|
{{Thisweekobj.sumLevelFraction || 0}}% |
|
|
|
</view> |
|
|
|
<view class="realtext">客户意向度</view> |
|
|
@@ -443,12 +445,32 @@ |
|
|
|
this.initworkThisWeek() |
|
|
|
this.initrealTimeStatistics() |
|
|
|
this.findByHouseIdForRecharge() |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
}, 3000) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 跳转客户详情 |
|
|
|
toCustomerManagement(str) { |
|
|
|
if (str != 'dateType=0') { |
|
|
|
// dateType == 2 // |
|
|
|
if (this.zhixingcenterindex != 7) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&dataType=${this.zhixingcenterindex}` |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&dataType=4&staTime=${this.statDateStart}&endTime=${this.statDateEnd}` |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&${str}` |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
max100(num) { |
|
|
|
if (num > 100) { |
|
|
|
return 100 |
|
|
@@ -604,6 +626,7 @@ |
|
|
|
return |
|
|
|
} else { |
|
|
|
this.Thisweekobj = { |
|
|
|
...data.data.data, |
|
|
|
sumCustomer: data.data.data.sumCustomer, |
|
|
|
receivingCustomer: data.data.data.receivingCustomer, |
|
|
|
activeCustomer: data.data.data.activeCustomer, |
|
|
@@ -636,6 +659,7 @@ |
|
|
|
return |
|
|
|
} else { |
|
|
|
this.realtimeobj = { |
|
|
|
...data.data.data, |
|
|
|
sumCustomer: data.data.data.sumCustomer || 0, |
|
|
|
receivingCustomer: data.data.data.receivingCustomer || 0, |
|
|
|
activeCustomer: data.data.data.activeCustomer || 0, |
|
|
@@ -644,8 +668,9 @@ |
|
|
|
tagCustomer: data.data.data.tagCustomer || 0, |
|
|
|
fraction: data.data.data.fraction || 0, |
|
|
|
wordFinishFraction: data.data.data.wordFinishFraction || 0, |
|
|
|
receptionCount: data.data.data.receptionCount || 0 |
|
|
|
receptionCount: data.data.data.receptionCount || 0, |
|
|
|
} |
|
|
|
this.tabbarList[1].count = data.data.data.receivingCustomer || 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: () => { |
|
|
@@ -653,7 +678,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 转写充值剩余 |
|
|
|
findByHouseIdForRecharge() { |
|
|
|
this.$u.get(`/cusLvStatistics/findByHouseIdForRecharge?houseId=${this.buildingID}`).then(res => { |
|
|
|