|
|
@@ -134,47 +134,53 @@ |
|
|
|
</view> |
|
|
|
<view class="real-timebox"> |
|
|
|
<view class="timebox"> |
|
|
|
<view class="real" @click="tapjumpreception('1')"> |
|
|
|
<view class="realnum u-flex" style="justify-content: center">{{realtimeobj.fraction || 0}}<text |
|
|
|
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text> |
|
|
|
<!-- <image class="qushi-icon" src="/static/images/excute.png" mode="" /> --> |
|
|
|
</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('6')"> |
|
|
|
<view class="realnum">{{realtimeobj.wordFraction|| 0}}%</view> |
|
|
|
<view class="realtext">平均挖掘执行率</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('11')"> |
|
|
|
<view class="real" @click="tapjumpreception(checkParams('1'))"> |
|
|
|
<view class="realnum">{{realtimeobj.receptionCount || 0}}</view> |
|
|
|
<view class="realtext">接待量</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('2')"> |
|
|
|
<view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view> |
|
|
|
<view class="realtext">正在接待</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="timebox"> |
|
|
|
<view class="real" @click="tapjumpreception('6')"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('6'))"> |
|
|
|
<view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view> |
|
|
|
<view class="realtext">有效接待</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('1')"> |
|
|
|
<view class="realnum">{{realtimeobj.avgDuration|| 0}}<text |
|
|
|
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view> |
|
|
|
<view class="realtext">平均接待时长</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('4')"> |
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('4'))"> |
|
|
|
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view> |
|
|
|
<view class="realtext">未标顾问</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="real" @click="prohibitedtap(1)" v-if="methodsisshow"> |
|
|
|
<view class="realnum" style="color: red;"> |
|
|
|
{{realtimeobj.prohibitedCustomer || 0}} |
|
|
|
</view> |
|
|
|
<view class="realtext">违禁预警</view> |
|
|
|
<view class="realtext">违禁次数</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="timebox"> |
|
|
|
<view class="real" @click="tapjumpreception(checkParams('auth'))"> |
|
|
|
<view class="realnum u-flex" style="justify-content: center">{{realtimeobj.fraction || 0}}<text |
|
|
|
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text> |
|
|
|
<!-- <image class="qushi-icon" src="/static/images/excute.png" mode="" /> --> |
|
|
|
</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('auth'))"> |
|
|
|
<view class="realnum">{{realtimeobj.avgDuration|| 0}}<text |
|
|
|
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view> |
|
|
|
<view class="realtext">平均接待时长</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception(checkParams('6'))"> |
|
|
|
<view class="realnum">{{realtimeobj.wordFraction|| 0}}%</view> |
|
|
|
<view class="realtext">平均挖掘执行率</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="real" @click="toCustomerManagement('dateType')"> |
|
|
|
<view class="realnum">{{realtimeobj.sumLevelFraction || 0}}%</view> |
|
|
|
<view class="realtext">平均意向度</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -191,38 +197,50 @@ |
|
|
|
</view> |
|
|
|
<view class="real-timebox"> |
|
|
|
<view class="timebox"> |
|
|
|
<view class="real" @click="tapjumpreception('3')"> |
|
|
|
<view class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text |
|
|
|
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text> |
|
|
|
</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('7')"> |
|
|
|
<view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view> |
|
|
|
<view class="realtext">平均挖掘执行率</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('33')"> |
|
|
|
<view class="real" @click="tapjumpreception(checkParams('3'))"> |
|
|
|
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view> |
|
|
|
<view class="realtext">接待量</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="timebox" style="margin-bottom:0;"> |
|
|
|
<view class="real" @click="tapjumpreception('7')"> |
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('7'))"> |
|
|
|
<view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view> |
|
|
|
<view class="realtext">有效接待</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="tapjumpreception('3')"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('44'))"> |
|
|
|
<view class="realnum">{{Thisweekobj.tagCustomer || 0}}</view> |
|
|
|
<view class="realtext">未标顾问</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="real" @click="prohibitedtap(2)" v-if="methodsisshow"> |
|
|
|
<view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view> |
|
|
|
<view class="realtext">违禁次数</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="timebox" style="margin-bottom:0;"> |
|
|
|
<view class="real" @click="tapjumpreception(checkParams('333'))"> |
|
|
|
<view class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text |
|
|
|
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text> |
|
|
|
</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('333'))"> |
|
|
|
<view class="realnum">{{Thisweekobj.avgDuration || 0}}<text |
|
|
|
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view> |
|
|
|
<view class="realtext">平均接待时长</view> |
|
|
|
</view> |
|
|
|
<view class="real" @click="prohibitedtap(2)" v-if="methodsisshow"> |
|
|
|
<view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view> |
|
|
|
<view class="realtext">违禁预警</view> |
|
|
|
|
|
|
|
<view class="real" @click="tapjumpreception(checkParams('333'))"> |
|
|
|
<view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view> |
|
|
|
<view class="realtext">平均挖掘执行率</view> |
|
|
|
</view> |
|
|
|
<view class="real" v-else> |
|
|
|
<view class="realnum"></view> |
|
|
|
<view class="realtext"></view> |
|
|
|
|
|
|
|
<view class="real" @click="toCustomerManagement()"> |
|
|
|
<view class="realnum">{{Thisweekobj.sumLevelFraction || 0}}%</view> |
|
|
|
<view class="realtext">平均意向度</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -403,7 +421,8 @@ |
|
|
|
prohibitedCustomer: '', |
|
|
|
tagCustomer: '', |
|
|
|
fraction: '', |
|
|
|
receptionCount: '' |
|
|
|
receptionCount: '', |
|
|
|
sumLevelFraction: '', |
|
|
|
}, |
|
|
|
Thisweekobj: { |
|
|
|
sumCustomer: '', |
|
|
@@ -536,6 +555,31 @@ |
|
|
|
this.findByHouseIdForRecharge() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 跳转客户详情 |
|
|
|
toCustomerManagement(str) { |
|
|
|
console.log(str) |
|
|
|
console.log(this.zhixingcenterindex) |
|
|
|
if (str != 'dateType') { |
|
|
|
// dateType == 2 // |
|
|
|
if (this.zhixingcenterindex != 7) { |
|
|
|
let index = this.zhixingcenterindex == 6 ? 3 : 2 |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&dateType=${index}` |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&dateType=4&staTime=${this.statDateStart}&endTime=${this.statDateEnd}` |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
console.log('adasdasljdlks', str) |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/consumer/index?refresh=refresh&dateType=0` |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 需求挖掘分析 |
|
|
|
toRequireAnalysis() { |
|
|
|
uni.navigateTo({ |
|
|
@@ -691,6 +735,16 @@ |
|
|
|
return |
|
|
|
} else { |
|
|
|
this.realtimeobj = data.data.data |
|
|
|
if (data.data.data.receivingCustomer > 0) { |
|
|
|
uni.setTabBarBadge({ |
|
|
|
index: 0, |
|
|
|
text: data.data.data.receivingCustomer.toString() || "0" |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.hideTabBarRedDot({ |
|
|
|
inndex: 0, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: () => { |
|
|
@@ -853,76 +907,141 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
tapjumpreception(i) { |
|
|
|
if (this.permissions.commonly2 == true) { |
|
|
|
if (i == 1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0' |
|
|
|
}); |
|
|
|
} else if (i == 11) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=0' |
|
|
|
}); |
|
|
|
} else if (i == 2) { |
|
|
|
uni.switchTab({ |
|
|
|
url: '/pages/index/customer' |
|
|
|
}); |
|
|
|
} else if (i == 3) { |
|
|
|
if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0' |
|
|
|
}); |
|
|
|
} else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0' |
|
|
|
}); |
|
|
|
} else { // 自定义时间段 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + |
|
|
|
this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
}); |
|
|
|
|
|
|
|
// 跳转参数 |
|
|
|
checkParams(i) { |
|
|
|
let str = '' |
|
|
|
switch (i) { |
|
|
|
case '1': |
|
|
|
str = '&activeTotal=0'; |
|
|
|
break; |
|
|
|
case 'auth': |
|
|
|
str = '&activeTotal=0&validInvalid=0' |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
// 筛选时间类型后传的参数 |
|
|
|
if (this.zhixingcenterindex == 2) { |
|
|
|
str = '&activeTotal=2' |
|
|
|
} else if (this.zhixingcenterindex == 6) { |
|
|
|
str = '&activeTotal=3' |
|
|
|
} else { |
|
|
|
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}` |
|
|
|
} |
|
|
|
} else if (i == 33) { |
|
|
|
if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=2' |
|
|
|
}); |
|
|
|
} else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=3' |
|
|
|
}); |
|
|
|
} else { // 自定义时间段 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this |
|
|
|
.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
}); |
|
|
|
break; |
|
|
|
case '333': |
|
|
|
case '7': |
|
|
|
if (this.zhixingcenterindex == 2) { |
|
|
|
str = '&activeTotal=2&validInvalid=0' |
|
|
|
} else if (this.zhixingcenterindex == 6) { |
|
|
|
str = '&activeTotal=3&validInvalid=0' |
|
|
|
} else { |
|
|
|
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0` |
|
|
|
} |
|
|
|
} else if (i == 6) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0' |
|
|
|
}); |
|
|
|
} else if (i == 7) { |
|
|
|
break; |
|
|
|
case '6': |
|
|
|
str = '&activeTotal=0&validInvalid=0' |
|
|
|
break; |
|
|
|
case '4': |
|
|
|
str = '&activeTotal=0&markAdvisor=0&validInvalid=0' |
|
|
|
break; |
|
|
|
case '44': |
|
|
|
if (this.zhixingcenterindex == 2) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0' |
|
|
|
}); |
|
|
|
str = '&activeTotal=2&validInvalid=0&markAdvisor=0' |
|
|
|
} else if (this.zhixingcenterindex == 6) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0' |
|
|
|
}); |
|
|
|
str = '&activeTotal=3&validInvalid=0&markAdvisor=0' |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + |
|
|
|
this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
}); |
|
|
|
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0&markAdvisor=0` |
|
|
|
} |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0&validInvalid=0' |
|
|
|
}); |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
str = '&activeTotal=0&markAdvisor=0' |
|
|
|
break; |
|
|
|
} |
|
|
|
return str |
|
|
|
}, |
|
|
|
|
|
|
|
// 跳转 |
|
|
|
tapjumpreception(params) { |
|
|
|
// 校验是否有权限 |
|
|
|
if (this.permissions.commonly2) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/center/records/index?refresh=refresh${params}` |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// tapjumpreception(i) { |
|
|
|
// if (this.permissions.commonly2 == true) { |
|
|
|
// if (i == 1) { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else if (i == 11) { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0' |
|
|
|
// }); |
|
|
|
// } else if (i == 2) { |
|
|
|
// uni.switchTab({ |
|
|
|
// url: '/pages/index/customer' |
|
|
|
// }); |
|
|
|
// } else if (i == 3) { |
|
|
|
// if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else { // 自定义时间段 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + |
|
|
|
// this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } else if (i == 33) { |
|
|
|
// if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2' |
|
|
|
// }); |
|
|
|
// } else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3' |
|
|
|
// }); |
|
|
|
// } else { // 自定义时间段 |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this |
|
|
|
// .statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } else if (i == 6) { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else if (i == 7) { |
|
|
|
// if (this.zhixingcenterindex == 2) { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else if (this.zhixingcenterindex == 6) { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + |
|
|
|
// this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0&validInvalid=0' |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
//集团对比 |
|
|
|
Groupcontrast() { |
|
|
|
uni.navigateTo({ |
|
|
|