|
|
@@ -7,7 +7,8 @@ |
|
|
|
<view class="Switching2 u-line-1">项目:{{buildingname}}</view> |
|
|
|
<view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view> |
|
|
|
</view> |
|
|
|
<view class="title" style="margin-top: 30rpx; display: flex; justify-content: space-between;" v-if="permissions.myisshebei"> |
|
|
|
<view class="title" style="margin-top: 30rpx; display: flex; justify-content: space-between;" |
|
|
|
v-if="permissions.myisshebei"> |
|
|
|
<view class="gongpai"> |
|
|
|
我的工牌:{{imeiCode||'未绑定'}} |
|
|
|
</view> |
|
|
@@ -65,7 +66,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|
<view class="title" v-if="permissions.shebeinum">待处理</view> |
|
|
|
<view class="shebenbox" v-if="permissions.shebeinum" > |
|
|
|
<view class="shebenche" @click="indexStatus(0)"> |
|
|
@@ -82,11 +83,13 @@ |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- 设备总览 --> |
|
|
|
<!-- 设备总览 --> |
|
|
|
<view class="contbox" v-if="permissions.shebeinum"> |
|
|
|
<view class="title"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" /> |
|
|
|
设备总览</view> |
|
|
|
<view class="title"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" /> |
|
|
|
设备总览 |
|
|
|
</view> |
|
|
|
<view class="shebenbox"> |
|
|
|
<view class="shebenche" @click="tapjumpequipment(0)"> |
|
|
|
<view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view> |
|
|
@@ -109,11 +112,15 @@ |
|
|
|
</view> |
|
|
|
<!-- 今日工作 --> |
|
|
|
<view class="contbox" v-if="permissions.shishinum"> |
|
|
|
<view class="title" ><image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />今日工作</view> |
|
|
|
<view class="title"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" />今日工作 |
|
|
|
</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> |
|
|
|
<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> |
|
|
@@ -133,7 +140,8 @@ |
|
|
|
</view> |
|
|
|
<view class="timebox" style="margin-bottom:0;"> |
|
|
|
<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="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')"> |
|
|
@@ -142,7 +150,8 @@ |
|
|
|
</view> |
|
|
|
<view class="real"> |
|
|
|
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;"> |
|
|
|
{{realtimeobj.prohibitedCustomer || 0}}</view> |
|
|
|
{{realtimeobj.prohibitedCustomer || 0}} |
|
|
|
</view> |
|
|
|
<view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realtext">违禁预警</view> |
|
|
|
</view> |
|
|
|
<view class="real"> |
|
|
@@ -154,19 +163,21 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 近30天 --> |
|
|
|
<view class="contbox" v-if="permissions.jileinum"> |
|
|
|
<view class="contbox" v-if="permissions.jileinum"> |
|
|
|
<view class="title"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" /> |
|
|
|
<view style="width: 70%;" @click="taptimeisshow"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" /> |
|
|
|
<view style="width: 70%;" @click="taptimeisshow"> |
|
|
|
<!-- 概览 --> |
|
|
|
{{choiceIndex}}累计<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="timeshow">统计时间:2022.05.20-2022.05.27</view> --> |
|
|
|
<view class="real-timebox" > |
|
|
|
<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 class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text |
|
|
|
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text> |
|
|
|
<!-- <image class="qushi-icon" src="/static/images/qushi-up.png" mode="" /> --> |
|
|
|
</view> |
|
|
|
<view class="realtext">平均执行率</view> |
|
|
@@ -182,7 +193,8 @@ |
|
|
|
</view> |
|
|
|
<view class="timebox" style="margin-bottom:0;"> |
|
|
|
<view class="real" @click="tapjumpreception('3')"> |
|
|
|
<view class="realnum">{{Thisweekobj.avgDuration || 0}}<text style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view> |
|
|
|
<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"> |
|
|
@@ -201,86 +213,105 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 常用功能 --> |
|
|
|
<view class="contbox" > |
|
|
|
<view class="title" v-if="permissions.commonly2||permissions.commonly3||permissions.commonly10"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />接待管理</view> |
|
|
|
<view class="commonly-box"> |
|
|
|
<view class="commonly" @click="Piabodata('接待记录')" v-if="permissions.commonly2"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/4649b5bd19124afca0f1a809f93bfd73.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">接待记录</view> |
|
|
|
<view class="contbox"> |
|
|
|
<view class="title" v-if="permissions.commonly2||permissions.commonly3||permissions.commonly10"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" />接待管理 |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Piabodata('违禁记录')" v-if="permissions.commonly3"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/b1dd1da2a969465bbbf41818320b8487.png" mode=""></image> |
|
|
|
<view class="commonly-box"> |
|
|
|
<view class="commonly" @click="Piabodata('接待记录')" v-if="permissions.commonly2"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/4649b5bd19124afca0f1a809f93bfd73.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">接待记录</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">违禁记录</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="toUserinsightinto()" v-if="permissions.commonly10"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/c2c2e1af3d5f41d180ec55a04a5d4f26.png" mode=""></image> |
|
|
|
<view class="commonly" @click="Piabodata('违禁记录')" v-if="permissions.commonly3"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/b1dd1da2a969465bbbf41818320b8487.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">违禁记录</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">客户画像</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="title" v-if="permissions.commonly4||permissions.commonly8||permissions.commonly7||permissions.commonly9"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />数据分析</view> |
|
|
|
<view class="commonly-box"> |
|
|
|
<view class="commonly" @click="Piabodata('销讲分析')" v-if="permissions.commonly4"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/1f01dfa38203493b88d9668a506fdff3.png" mode=""></image> |
|
|
|
<view class="commonly" @click="toUserinsightinto()" v-if="permissions.commonly10"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/c2c2e1af3d5f41d180ec55a04a5d4f26.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">客户画像</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">销讲分析</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="toTrendAnalysis()" v-if="permissions.commonly8"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/df070b1a2d5e48359c7de5654e4f7a17.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">销讲趋势</view> |
|
|
|
<view class="title" |
|
|
|
v-if="permissions.commonly4||permissions.commonly8||permissions.commonly7||permissions.commonly9"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" />数据分析 |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Piabodata('顾问排名')" v-if="permissions.commonly7"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/f5a6b2d6032348a1b256cfd7083be436.png" mode=""></image> |
|
|
|
<view class="commonly-box"> |
|
|
|
<view class="commonly" @click="Piabodata('销讲分析')" v-if="permissions.commonly4"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/1f01dfa38203493b88d9668a506fdff3.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">销讲分析</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">顾问排名</view> |
|
|
|
<view class="commonly" @click="toTrendAnalysis()" v-if="permissions.commonly8"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/df070b1a2d5e48359c7de5654e4f7a17.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">销讲趋势</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="toStaffAnalysis()" v-if="permissions.commonly9"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/c2d3801540cf4880a68cce0e04eb59b0.png" mode=""></image> |
|
|
|
<view class="commonly" @click="Piabodata('顾问排名')" v-if="permissions.commonly7"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/f5a6b2d6032348a1b256cfd7083be436.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">顾问排名</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">员工分析</view> |
|
|
|
<view class="commonly" @click="toStaffAnalysis()" v-if="permissions.commonly9"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/c2d3801540cf4880a68cce0e04eb59b0.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">员工分析</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="title" v-if="permissions.commonly11||permissions.commonly12||permissions.commonly5||permissions.commonly6"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" mode="" />团队管理</view> |
|
|
|
</view> |
|
|
|
<view class="title" |
|
|
|
v-if="permissions.commonly11||permissions.commonly12||permissions.commonly5||permissions.commonly6"> |
|
|
|
<image class="title-icon" src="https://static.quhouse.com/bc2ec951ad9a47e5bf58f2829926e143.png" |
|
|
|
mode="" />团队管理 |
|
|
|
</view> |
|
|
|
<view class="commonly-box"> |
|
|
|
<view class="commonly" @click="Theteamcompared()" v-if="permissions.commonly11"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/4f5a3a61c06a4508a806eb290ef678e6.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">团队对比</view> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/4f5a3a61c06a4508a806eb290ef678e6.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Groupcontrast()" v-if="permissions.commonly12"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/759c2e3240e54213827196559ce38fa4.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">集团对比</view> |
|
|
|
<view class="commonly-text">团队对比</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Groupcontrast()" v-if="permissions.commonly12"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/759c2e3240e54213827196559ce38fa4.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Piabodata('设备管理')" v-if="permissions.commonly5"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/e617133ecbbd46498e30719444fc02e8.png" mode=""></image> |
|
|
|
<view class="commonly-text">集团对比</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">设备管理</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Piabodata('值班顾问')" v-if="permissions.commonly6"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" src="https://static.quhouse.com/196fcbc7f6aa456cb9dff22cd3753445.png" mode=""></image> |
|
|
|
<view class="commonly" @click="Piabodata('设备管理')" v-if="permissions.commonly5"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/e617133ecbbd46498e30719444fc02e8.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">设备管理</view> |
|
|
|
</view> |
|
|
|
<view class="commonly" @click="Piabodata('值班顾问')" v-if="permissions.commonly6"> |
|
|
|
<view class="commonly-img"> |
|
|
|
<image class="commonly-img1" |
|
|
|
src="https://static.quhouse.com/196fcbc7f6aa456cb9dff22cd3753445.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">值班顾问</view> |
|
|
|
</view> |
|
|
|
<view class="commonly-text">值班顾问</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 项目切换 --> |
|
|
|
<view v-if="Showhiddenunits"> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist" |
|
|
@@ -288,13 +319,16 @@ |
|
|
|
</view> |
|
|
|
<u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar> |
|
|
|
<u-popup v-model="timeshow" mode="bottom"> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 2 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(2,'近7天')">近7天</view> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 6 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(6,'近30天')">近30天</view> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 7 ? '#2B6EFF' : '#333333' }" @click="tabtimetap(7,'自定义')">自定义</view> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 2 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(2,'近7天')">近7天</view> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 6 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(6,'近30天')">近30天</view> |
|
|
|
<view class="timeview" :style="{ color: zhixingcenterindex == 7 ? '#2B6EFF' : '#333333' }" |
|
|
|
@click="tabtimetap(7,'自定义')">自定义</view> |
|
|
|
</u-popup> |
|
|
|
<!-- 底部导航栏 --> |
|
|
|
<!-- <u-tabbar :mid-button="false" activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 加载组件 --> |
|
|
|
<u-loadings v-model="LOADING"></u-loadings> |
|
|
|
</view> |
|
|
@@ -321,23 +355,23 @@ |
|
|
|
Whetheroffline: false, //是否离线 |
|
|
|
signalDevice: 0, //信号 |
|
|
|
signalDevicetext: "", |
|
|
|
imeiCode:'',//设备号 |
|
|
|
openFlag:'',//接待是否 |
|
|
|
choiceIndex:'近7天', |
|
|
|
imeiCode: '', //设备号 |
|
|
|
openFlag: '', //接待是否 |
|
|
|
choiceIndex: '近7天', |
|
|
|
audioStatus: false, |
|
|
|
equipmentisshow: false, |
|
|
|
timeshow:false, |
|
|
|
timeshow: false, |
|
|
|
equipmentobj: { |
|
|
|
totalNum: '', |
|
|
|
onlineNum: '', |
|
|
|
activeNum: '', |
|
|
|
lowPowerNum: '', |
|
|
|
}, |
|
|
|
operation:{ |
|
|
|
receptionCount:'', |
|
|
|
accountCount:'', |
|
|
|
forbiddenCount:'', |
|
|
|
lowPowerNum:'' |
|
|
|
operation: { |
|
|
|
receptionCount: '', |
|
|
|
accountCount: '', |
|
|
|
forbiddenCount: '', |
|
|
|
lowPowerNum: '' |
|
|
|
}, |
|
|
|
Menulist: [], |
|
|
|
realtimeobj: { |
|
|
@@ -390,7 +424,7 @@ |
|
|
|
this.LOADING = true |
|
|
|
this.sendLog() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
this.getMenu() |
|
|
|
|
|
|
@@ -430,7 +464,7 @@ |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
}, 3000) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onShow() { |
|
|
|
this.getMenu() |
|
|
|
|
|
|
@@ -440,7 +474,7 @@ |
|
|
|
} else { |
|
|
|
this.methodsisshow = true; |
|
|
|
} |
|
|
|
if (this.userInfo.zkProperties&&this.userInfo.zkProperties.length == 1) { |
|
|
|
if (this.userInfo.zkProperties && this.userInfo.zkProperties.length == 1) { |
|
|
|
this.buildingID = uni.getStorageSync('buildingID').id; |
|
|
|
this.buildingname = uni.getStorageSync('buildingID').name; |
|
|
|
this.buildingishow = false; |
|
|
@@ -449,7 +483,7 @@ |
|
|
|
this.buildingishow = true; |
|
|
|
this.buildingname = uni.getStorageSync('buildingID').name; |
|
|
|
this.buildingID = uni.getStorageSync('buildingID').id; |
|
|
|
if(this.userInfo.zkProperties&&this.userInfo.zkProperties.length){ |
|
|
|
if (this.userInfo.zkProperties && this.userInfo.zkProperties.length) { |
|
|
|
this.userInfo.zkProperties.forEach(item => { |
|
|
|
item.label = item.propertyName; |
|
|
|
item.value = item.id |
|
|
@@ -469,26 +503,51 @@ |
|
|
|
} |
|
|
|
this.initworkThisWeek() |
|
|
|
this.initrealTimeStatistics() |
|
|
|
this.updateInit() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
indexStatus(i){ |
|
|
|
|
|
|
|
updateInit() { |
|
|
|
this.$u.get(config.service.notReadNum, { |
|
|
|
id: uni.getStorageSync('weapp_session_userInfo_data').accountId, |
|
|
|
projectId: uni.getStorageSync('buildingID').id |
|
|
|
}).then(res => { |
|
|
|
console.log(res) |
|
|
|
if (res > 0) { |
|
|
|
uni.setTabBarBadge({ //显示数字 |
|
|
|
index: 4, //tabbar下标 |
|
|
|
text: `${res}`//数字 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.removeTabBarBadge({ |
|
|
|
index: 4 |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(e => { |
|
|
|
uni.removeTabBarBadge({ |
|
|
|
index: 4 |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
indexStatus(i) { |
|
|
|
if (this.permissions.commonly5 == true) { |
|
|
|
if(i==0){ |
|
|
|
if (i == 0) { |
|
|
|
uni.switchTab({ |
|
|
|
url:"/pages/index/customer" |
|
|
|
url: "/pages/index/customer" |
|
|
|
}) |
|
|
|
}else if(i==1){ |
|
|
|
} else if (i == 1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&markAdvisor=0' |
|
|
|
}); |
|
|
|
}else if(i==3){ |
|
|
|
} else if (i == 3) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh' |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
sendLog(){ |
|
|
|
sendLog() { |
|
|
|
uni.request({ |
|
|
|
url: config.service.addLog, |
|
|
|
method: "POST", |
|
|
@@ -498,7 +557,7 @@ |
|
|
|
}, |
|
|
|
data: { |
|
|
|
houseId: this.buildingID, |
|
|
|
serviceId:"test" |
|
|
|
serviceId: "test" |
|
|
|
}, |
|
|
|
success: (data) => { |
|
|
|
console.log(data) |
|
|
@@ -506,19 +565,19 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
//时间选择 |
|
|
|
tabtimetap(index,str){ |
|
|
|
this.timeshow=false; |
|
|
|
tabtimetap(index, str) { |
|
|
|
this.timeshow = false; |
|
|
|
if (index == 7) { |
|
|
|
this.totalTimeShow = true; |
|
|
|
} else { |
|
|
|
console.log(str) |
|
|
|
this.choiceIndex=str |
|
|
|
this.choiceIndex = str |
|
|
|
this.zhixingcenterindex = index; |
|
|
|
this.initworkThisWeek() |
|
|
|
} |
|
|
|
}, |
|
|
|
taptimeisshow(){ |
|
|
|
this.timeshow=true; |
|
|
|
taptimeisshow() { |
|
|
|
this.timeshow = true; |
|
|
|
}, |
|
|
|
//获取权限 |
|
|
|
getMenu() { |
|
|
@@ -542,12 +601,12 @@ |
|
|
|
this.permissions.commonly5 = newmenulist.sbgl; |
|
|
|
this.permissions.commonly6 = newmenulist.zbgw; |
|
|
|
this.permissions.commonly7 = newmenulist.gwpm; |
|
|
|
|
|
|
|
this.permissions.commonly8=newmenulist.lpdb; |
|
|
|
this.permissions.commonly9=newmenulist.xjqs; |
|
|
|
this.permissions.commonly10=newmenulist.tddb; |
|
|
|
this.permissions.commonly11=newmenulist.gwnl; |
|
|
|
this.permissions.commonly12=newmenulist.yhhx; |
|
|
|
|
|
|
|
this.permissions.commonly8 = newmenulist.lpdb; |
|
|
|
this.permissions.commonly9 = newmenulist.xjqs; |
|
|
|
this.permissions.commonly10 = newmenulist.tddb; |
|
|
|
this.permissions.commonly11 = newmenulist.gwnl; |
|
|
|
this.permissions.commonly12 = newmenulist.yhhx; |
|
|
|
|
|
|
|
this.permissions.myisshebei = newmenulist.wdsb; |
|
|
|
this.permissions.shebeinum = newmenulist.sbtj; |
|
|
@@ -561,7 +620,7 @@ |
|
|
|
totalTimeChange(e) { |
|
|
|
this.statDateStart = e.startDate; |
|
|
|
this.statDateEnd = e.endDate; |
|
|
|
this.choiceIndex= `${e.startDate.replace(/\-/g, '.')}-${e.endDate.replace(/\-/g, '.')}` |
|
|
|
this.choiceIndex = `${e.startDate.replace(/\-/g, '.')}-${e.endDate.replace(/\-/g, '.')}` |
|
|
|
this.zhixingcenterindex = 7; |
|
|
|
this.initworkThisWeek() |
|
|
|
}, |
|
|
@@ -667,17 +726,17 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 待处理 |
|
|
|
waitForOperation (){ |
|
|
|
this.$u.post('/cusLvStatistics/waitForOperation ',{ |
|
|
|
houseId:this.buildingID |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
// console.log(res,'带接待') |
|
|
|
this.operation.receptionCount=res.receptionCount |
|
|
|
this.operation.accountCount=res.accountCount |
|
|
|
this.operation.forbiddenCount=res.forbiddenCount |
|
|
|
this.operation.lowPowerNum=res.lowPowerNum |
|
|
|
}) |
|
|
|
waitForOperation() { |
|
|
|
this.$u.post('/cusLvStatistics/waitForOperation ', { |
|
|
|
houseId: this.buildingID |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
// console.log(res,'带接待') |
|
|
|
this.operation.receptionCount = res.receptionCount |
|
|
|
this.operation.accountCount = res.accountCount |
|
|
|
this.operation.forbiddenCount = res.forbiddenCount |
|
|
|
this.operation.lowPowerNum = res.lowPowerNum |
|
|
|
}) |
|
|
|
}, |
|
|
|
//我的工牌 |
|
|
|
iniodianloang() { |
|
|
@@ -696,8 +755,8 @@ |
|
|
|
if (data.data.data == null) { |
|
|
|
return |
|
|
|
} else { |
|
|
|
this.imeiCode=data.data.data.imei |
|
|
|
this.openFlag=data.data.data.recCmd |
|
|
|
this.imeiCode = data.data.data.imei |
|
|
|
this.openFlag = data.data.data.recCmd |
|
|
|
if (data.data.data > 100) { |
|
|
|
this.percentage = 100; |
|
|
|
} else { |
|
|
@@ -729,7 +788,7 @@ |
|
|
|
piskbuilding() { |
|
|
|
// this.Showhiddenunits = true; |
|
|
|
uni.navigateTo({ |
|
|
|
url:"../mine/selectBuilding" |
|
|
|
url: "../mine/selectBuilding" |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 项目选择确认 |
|
|
@@ -768,15 +827,18 @@ |
|
|
|
} else { |
|
|
|
if (this.zhixingcenterindex == 2) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=2' + '&violatedStatus=1' |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=2' + |
|
|
|
'&violatedStatus=1' |
|
|
|
}); |
|
|
|
} else if (this.zhixingcenterindex == 6) {//近30天 |
|
|
|
} else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=3' + '&violatedStatus=1' |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=3' + |
|
|
|
'&violatedStatus=1' |
|
|
|
}); |
|
|
|
} else {// 自定义时间段 |
|
|
|
} else { // 自定义时间段 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=4&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd + '&violatedStatus=1' |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh&activeTotal=4&staTime=' + this |
|
|
|
.statDateStart + '&endtime=' + this.statDateEnd + '&violatedStatus=1' |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@@ -796,31 +858,33 @@ |
|
|
|
url: '/pages/index/customer' |
|
|
|
}); |
|
|
|
} else if (i == 3) { |
|
|
|
if (this.zhixingcenterindex == 2) {// 近7天 |
|
|
|
if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0' |
|
|
|
}); |
|
|
|
} else if (this.zhixingcenterindex == 6) {//近30天 |
|
|
|
} else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0' |
|
|
|
}); |
|
|
|
} else {// 自定义时间段 |
|
|
|
} else { // 自定义时间段 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
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天 |
|
|
|
if (this.zhixingcenterindex == 2) { // 近7天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=2' |
|
|
|
}); |
|
|
|
} else if (this.zhixingcenterindex == 6) {//近30天 |
|
|
|
} else if (this.zhixingcenterindex == 6) { //近30天 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=3' |
|
|
|
}); |
|
|
|
} else {// 自定义时间段 |
|
|
|
} else { // 自定义时间段 |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this |
|
|
|
.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
}); |
|
|
|
} |
|
|
|
} else if (i == 6) { |
|
|
@@ -838,7 +902,8 @@ |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' + |
|
|
|
this.statDateStart + '&endtime=' + this.statDateEnd |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
@@ -917,7 +982,7 @@ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/center/prohibited/index?refresh=refresh' |
|
|
|
}); |
|
|
|
}else if (item == '日报') { |
|
|
|
} else if (item == '日报') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/mine/daily/dailyList?refresh=refresh' |
|
|
|
}); |
|
|
@@ -968,6 +1033,7 @@ |
|
|
|
.Switching1 { |
|
|
|
width: 44rpx; |
|
|
|
height: 44rpx; |
|
|
|
|
|
|
|
.Switching1-img { |
|
|
|
width: 44rpx; |
|
|
|
height: 44rpx; |
|
|
@@ -976,7 +1042,7 @@ |
|
|
|
|
|
|
|
.Switching2 { |
|
|
|
margin: 0 12rpx; |
|
|
|
flex:1; |
|
|
|
flex: 1; |
|
|
|
height: 44rpx; |
|
|
|
font-size: 32rpx; |
|
|
|
font-family: PingFangSC-Medium, PingFang SC; |
|
|
@@ -996,9 +1062,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.gongpai{ |
|
|
|
.gongpai { |
|
|
|
margin-bottom: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.Workcard { |
|
|
|
width: 100%; |
|
|
|
background: #FFFFFF; |
|
|
@@ -1024,6 +1091,7 @@ |
|
|
|
background-size: 100% 100%; |
|
|
|
padding: 8rpx; |
|
|
|
transform: rotate(-90deg); |
|
|
|
|
|
|
|
.bar { |
|
|
|
background-color: #43CD80; |
|
|
|
height: 100%; |
|
|
@@ -1064,12 +1132,13 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.contbox{ |
|
|
|
.contbox { |
|
|
|
width: 690rpx; |
|
|
|
background: #FFFFFF; |
|
|
|
border-radius: 12rpx; |
|
|
|
padding: 24rpx 0 30rpx; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
.title { |
|
|
|
height: 42rpx; |
|
|
|
font-size: 30rpx; |
|
|
@@ -1080,29 +1149,33 @@ |
|
|
|
margin-bottom: 24rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
.title-icon{ |
|
|
|
|
|
|
|
.title-icon { |
|
|
|
width: 12rpx; |
|
|
|
height: 20rpx; |
|
|
|
margin-right: 18rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.timeshow{ |
|
|
|
|
|
|
|
.timeshow { |
|
|
|
height: 40rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
font-family: PingFangSC-Regular, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #666666; |
|
|
|
line-height: 40rpx; |
|
|
|
margin: -18rpx 0 24rpx 35rpx ; |
|
|
|
margin: -18rpx 0 24rpx 35rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.shebenbox { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
|
|
|
|
.shebenche { |
|
|
|
width: 25%; |
|
|
|
height: 100%; |
|
|
|
|
|
|
|
.shebenchenum { |
|
|
|
width: 100%; |
|
|
|
text-align: center; |
|
|
@@ -1127,13 +1200,16 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//今日工作 |
|
|
|
.real-timebox { |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
.timebox { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
.real { |
|
|
|
flex: 1; |
|
|
|
height: 100%; |
|
|
@@ -1147,7 +1223,8 @@ |
|
|
|
font-weight: bold; |
|
|
|
color: #333333; |
|
|
|
line-height: 50rpx; |
|
|
|
.qushi-icon{ |
|
|
|
|
|
|
|
.qushi-icon { |
|
|
|
width: 28rpx; |
|
|
|
height: 14rpx; |
|
|
|
margin-left: 2rpx; |
|
|
@@ -1183,6 +1260,7 @@ |
|
|
|
width: 100%; |
|
|
|
height: 80rpx; |
|
|
|
text-align: center; |
|
|
|
|
|
|
|
.commonly-img1 { |
|
|
|
width: 80rpx; |
|
|
|
height: 80rpx; |
|
|
@@ -1202,7 +1280,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.timeview{ |
|
|
|
|
|
|
|
.timeview { |
|
|
|
height: 90rpx; |
|
|
|
line-height: 90rpx; |
|
|
|
width: 100%; |
|
|
|