|
|
|
|
@ -63,15 +63,14 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="data-content">
|
|
|
|
|
<view v-for="(item,index) in dataList" :key="index" class="data-item"
|
|
|
|
|
:style="index%2==0?'padding-left:20rpx;':'padding-right:104rpx;'">
|
|
|
|
|
<view v-for="(value,key,index) in dataList" :key="index" class="data-item"
|
|
|
|
|
:style="(key === 'todayServe' || key === 'todayHour') ? 'padding-left:20rpx;' : 'padding-right:104rpx;'">
|
|
|
|
|
<view class="data-title">
|
|
|
|
|
{{item.title}}
|
|
|
|
|
{{value.title}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="data-value">
|
|
|
|
|
<view class="number">{{item.value}}</view>
|
|
|
|
|
<view class="unit" v-if="item.type === 0">位</view>
|
|
|
|
|
<view class="unit" v-else>小时</view>
|
|
|
|
|
<view class="number">{{value.value}}</view>
|
|
|
|
|
<view class="unit">{{value.unit}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -85,7 +84,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statistics-value">
|
|
|
|
|
<view class="number">1</view>
|
|
|
|
|
<view class="number">{{status.ing}}</view>
|
|
|
|
|
<view class="unit">位</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -97,7 +96,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statistics-value">
|
|
|
|
|
<view class="number">36</view>
|
|
|
|
|
<view class="number">{{status.wait}}</view>
|
|
|
|
|
<view class="unit">位</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -109,7 +108,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statistics-value">
|
|
|
|
|
<view class="number">366</view>
|
|
|
|
|
<view class="number">{{status.end}}</view>
|
|
|
|
|
<view class="unit">位</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -146,7 +145,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view v-else class="no-data">
|
|
|
|
|
<u-empty></u-empty>
|
|
|
|
|
<u-empty mode="list" text="暂无提醒"></u-empty>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -163,23 +162,33 @@
|
|
|
|
|
fontSize: "28rpx",
|
|
|
|
|
fontWeight: "500"
|
|
|
|
|
},
|
|
|
|
|
dataList: [{
|
|
|
|
|
title: "今日服务数量",
|
|
|
|
|
value: 6,
|
|
|
|
|
type: 0
|
|
|
|
|
}, {
|
|
|
|
|
title: "本月服务数量",
|
|
|
|
|
value: 36,
|
|
|
|
|
type: 0
|
|
|
|
|
}, {
|
|
|
|
|
title: "今日服务工时",
|
|
|
|
|
value: 6,
|
|
|
|
|
type: 1
|
|
|
|
|
}, {
|
|
|
|
|
title: "本月服务工时",
|
|
|
|
|
value: 136,
|
|
|
|
|
type: 1
|
|
|
|
|
}],
|
|
|
|
|
dataList: {
|
|
|
|
|
todayServe: {
|
|
|
|
|
title: "今日服务数量",
|
|
|
|
|
value: 0,
|
|
|
|
|
unit: "位"
|
|
|
|
|
},
|
|
|
|
|
monthServe: {
|
|
|
|
|
title: "本月服务数量",
|
|
|
|
|
value: 0,
|
|
|
|
|
unit: "位"
|
|
|
|
|
},
|
|
|
|
|
todayHour: {
|
|
|
|
|
title: "今日服务工时",
|
|
|
|
|
value: 0,
|
|
|
|
|
unit: "小时"
|
|
|
|
|
},
|
|
|
|
|
monthHour: {
|
|
|
|
|
title: "本月服务工时",
|
|
|
|
|
value: 0,
|
|
|
|
|
unit: "小时"
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
status: {
|
|
|
|
|
wait: 0,
|
|
|
|
|
ing: 0,
|
|
|
|
|
end: 0,
|
|
|
|
|
},
|
|
|
|
|
infoList: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -197,7 +206,14 @@
|
|
|
|
|
|
|
|
|
|
async getStatistic() {
|
|
|
|
|
let res = await this.$u.api.statistic()
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.dataList.monthHour.value = res.month_hour_total
|
|
|
|
|
this.dataList.monthServe.value = res.month_serve_total
|
|
|
|
|
this.dataList.todayHour.value = res.today_hour_total
|
|
|
|
|
this.dataList.todayServe.value = res.today_serve_total
|
|
|
|
|
|
|
|
|
|
this.status.wait = res.wait
|
|
|
|
|
this.status.ing = res.ing
|
|
|
|
|
this.status.end = res.end
|
|
|
|
|
},
|
|
|
|
|
async getRemind() {
|
|
|
|
|
let res = await this.$u.api.noticeList()
|
|
|
|
|
|