|
|
@@ -63,32 +63,56 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 临期项目提醒 --> |
|
|
|
<view class="endworking" v-if="bulidIngObj.daysRemaining <= 60" :class="{sixty: (bulidIngObj.daysRemaining > 15 && bulidIngObj.daysRemaining <= 60), fifteen: bulidIngObj.daysRemaining <= 15}"> |
|
|
|
<view class="endworking" v-if="bulidIngObj.daysRemaining <= 60" |
|
|
|
:class="{sixty: (bulidIngObj.daysRemaining > 15 && bulidIngObj.daysRemaining <= 60), fifteen: bulidIngObj.daysRemaining <= 15}"> |
|
|
|
您的服务于{{ bulidIngObj.endWorking }}到期,为了避免影响您的使用,请与服务商联系 |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="title" v-if="equipmentisshow">设备</view> |
|
|
|
<view class="shebenbox" v-if="equipmentisshow"> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(0)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view> |
|
|
|
<view class="shebenchetext">设备总数</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(1)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view> |
|
|
|
<view class="shebenchetext">在线</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(3)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view> |
|
|
|
<view class="shebenchetext">活跃</view> |
|
|
|
<template v-if="checkAuthority('转写时长剩余')"> |
|
|
|
<view class="title">转写消费</view> |
|
|
|
<view class="shebenbox"> |
|
|
|
<view class="shebenche"> |
|
|
|
<view class="shebenchenum">{{paraphraseObj.rechargeSum || 0}}</view> |
|
|
|
<view class="shebenchetext">购买小时</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche"> |
|
|
|
<view class="shebenchenum">{{paraphraseObj.presenterSum || 0}}</view> |
|
|
|
<view class="shebenchetext">赠送小时</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche"> |
|
|
|
<view class="shebenchenum">{{paraphraseObj.useSum || 0}}</view> |
|
|
|
<view class="shebenchetext">已用小时</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche"> |
|
|
|
<view class="shebenchenum" :style="paraphraseObj.surplusSum < 100 ? 'color: red' : ''">{{paraphraseObj.surplusSum || 0}}</view> |
|
|
|
<view class="shebenchetext">剩余小时</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(2)"> |
|
|
|
<view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view> |
|
|
|
<view class="shebenchetext">急需充电</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="equipmentisshow"> |
|
|
|
<view class="title" >设备</view> |
|
|
|
<view class="shebenbox"> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(0)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view> |
|
|
|
<view class="shebenchetext">设备总数</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(1)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view> |
|
|
|
<view class="shebenchetext">在线</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(3)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view> |
|
|
|
<view class="shebenchetext">活跃</view> |
|
|
|
</view> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(2)"> |
|
|
|
<view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view> |
|
|
|
<view class="shebenchetext">急需充电</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
<view class="title">实时统计</view> |
|
|
|
<view class="real-timebox"> |
|
|
|
<view class="timebox"> |
|
|
@@ -301,6 +325,7 @@ |
|
|
|
statDateStart: '', |
|
|
|
statDateEnd: '', |
|
|
|
needShow: ['客户管理', '接待记录', '销讲数据', '设备管理', '值班顾问', '顾问排名', '违禁记录'], // 权限配置需要展示出来的功能入口 |
|
|
|
paraphraseObj: {}, // 转写消费 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@@ -328,15 +353,15 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
this.initPopup() |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onShow() { |
|
|
|
this.upDateBulidIngObj() |
|
|
|
this.upDateBulidIngObj() |
|
|
|
this.LOADING = true |
|
|
|
this.getMenu() |
|
|
|
|
|
|
|
|
|
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) { |
|
|
|
this.methodsisshow = false; |
|
|
@@ -369,6 +394,7 @@ |
|
|
|
this.initworkThisWeek() |
|
|
|
this.initrealTimeStatistics() |
|
|
|
this.updateInit() |
|
|
|
this.findByHouseIdForRecharge() |
|
|
|
}, |
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
@@ -405,17 +431,19 @@ |
|
|
|
} |
|
|
|
this.initworkThisWeek() |
|
|
|
this.initrealTimeStatistics() |
|
|
|
this.findByHouseIdForRecharge() |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
}, 3000) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
max100(num) { |
|
|
|
if(num>100){ |
|
|
|
if (num > 100) { |
|
|
|
return 100 |
|
|
|
} else if(!num){ |
|
|
|
} else if (!num) { |
|
|
|
return 0; |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return num; |
|
|
|
} |
|
|
|
}, |
|
|
@@ -519,13 +547,13 @@ |
|
|
|
uni.setStorageSync("weapp_session_Menu_data", data) |
|
|
|
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
let remind = uni.getStorageSync("remind"); |
|
|
|
uni.setStorageSync("remind",1); |
|
|
|
if(this.Menulist.length){ |
|
|
|
uni.setStorageSync("remind", 1); |
|
|
|
if (this.Menulist.length) { |
|
|
|
if (this.Menulist.findIndex(item => item.name == '今日接待弹框') != -1) { |
|
|
|
this.modalShow = remind==0?true:false |
|
|
|
} else { |
|
|
|
this.modalShow = false |
|
|
|
} |
|
|
|
this.modalShow = remind == 0 ? true : false |
|
|
|
} else { |
|
|
|
this.modalShow = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@@ -597,15 +625,15 @@ |
|
|
|
return |
|
|
|
} else { |
|
|
|
this.realtimeobj = { |
|
|
|
sumCustomer: data.data.data.sumCustomer||0, |
|
|
|
receivingCustomer: data.data.data.receivingCustomer||0, |
|
|
|
activeCustomer: data.data.data.activeCustomer||0, |
|
|
|
prohibitedCustomer: data.data.data.prohibitedCustomer||0, |
|
|
|
sumCustomer: data.data.data.sumCustomer || 0, |
|
|
|
receivingCustomer: data.data.data.receivingCustomer || 0, |
|
|
|
activeCustomer: data.data.data.activeCustomer || 0, |
|
|
|
prohibitedCustomer: data.data.data.prohibitedCustomer || 0, |
|
|
|
avgDuration: Math.floor(data.data.data.avgDuration / 60) || 0, |
|
|
|
tagCustomer: data.data.data.tagCustomer||0, |
|
|
|
fraction: data.data.data.fraction||0, |
|
|
|
wordFinishFraction: data.data.data.wordFinishFraction||0, |
|
|
|
receptionCount: data.data.data.receptionCount||0 |
|
|
|
tagCustomer: data.data.data.tagCustomer || 0, |
|
|
|
fraction: data.data.data.fraction || 0, |
|
|
|
wordFinishFraction: data.data.data.wordFinishFraction || 0, |
|
|
|
receptionCount: data.data.data.receptionCount || 0 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@@ -614,6 +642,16 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 转写充值剩余 |
|
|
|
findByHouseIdForRecharge() { |
|
|
|
this.$u.get(`/cusLvStatistics/findByHouseIdForRecharge?houseId=${this.buildingID}`).then(res => { |
|
|
|
console.log(res) |
|
|
|
if (res) { |
|
|
|
this.paraphraseObj = res.list |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//设备 |
|
|
|
initequipment() { |
|
|
@@ -868,61 +906,68 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.modal-box{ |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
width: 590rpx; |
|
|
|
padding: 50rpx 30rpx 60rpx; |
|
|
|
.modal-title{ |
|
|
|
text-align: center; |
|
|
|
height: 45rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Medium, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #333333; |
|
|
|
line-height: 45rpx; |
|
|
|
margin-bottom: 60rpx; |
|
|
|
} |
|
|
|
.number-box{ |
|
|
|
width: 100%; |
|
|
|
.modal-box { |
|
|
|
display: flex; |
|
|
|
justify-content: space-around; |
|
|
|
margin-bottom: 80rpx; |
|
|
|
.item{ |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
width: 590rpx; |
|
|
|
padding: 50rpx 30rpx 60rpx; |
|
|
|
|
|
|
|
.modal-title { |
|
|
|
text-align: center; |
|
|
|
height: 45rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Medium, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #333333; |
|
|
|
line-height: 45rpx; |
|
|
|
margin-bottom: 60rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.number-box { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
.num{ |
|
|
|
margin-bottom: 12rpx; |
|
|
|
height: 60rpx; |
|
|
|
font-size: 42rpx; |
|
|
|
font-family: PingFangSC-Semibold, PingFang SC; |
|
|
|
font-weight: 600; |
|
|
|
color: #333333; |
|
|
|
line-height: 60rpx; |
|
|
|
margin-bottom: 12rpx; |
|
|
|
} |
|
|
|
.num-text{ |
|
|
|
height: 45rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #333333; |
|
|
|
line-height: 45rpx; |
|
|
|
justify-content: space-around; |
|
|
|
margin-bottom: 80rpx; |
|
|
|
|
|
|
|
.item { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
.num { |
|
|
|
margin-bottom: 12rpx; |
|
|
|
height: 60rpx; |
|
|
|
font-size: 42rpx; |
|
|
|
font-family: PingFangSC-Semibold, PingFang SC; |
|
|
|
font-weight: 600; |
|
|
|
color: #333333; |
|
|
|
line-height: 60rpx; |
|
|
|
margin-bottom: 12rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.num-text { |
|
|
|
height: 45rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #333333; |
|
|
|
line-height: 45rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.get { |
|
|
|
width: 400rpx; |
|
|
|
height: 80rpx; |
|
|
|
background: #3E50E8; |
|
|
|
border-radius: 8rpx; |
|
|
|
text-align: center; |
|
|
|
line-height: 80rpx; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
.get{ |
|
|
|
width: 400rpx; |
|
|
|
height: 80rpx; |
|
|
|
background: #3E50E8; |
|
|
|
border-radius: 8rpx; |
|
|
|
text-align: center; |
|
|
|
line-height: 80rpx; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.update { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
@@ -1235,17 +1280,17 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.endworking { |
|
|
|
margin-top: 20rpx; |
|
|
|
padding: 15rpx 30rpx; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.sixty { |
|
|
|
background-color: #FDFCDA; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.fifteen { |
|
|
|
background-color: #F9C8C8; |
|
|
|
color: #ff0000; |
|
|
|