master
xy 3 years ago
parent ee87bbd078
commit f0430c820a

@ -21,6 +21,8 @@
</el-date-picker> </el-date-picker>
<el-button size="small" type="primary" @click="getSchedule" style="margin-left: 10px;">查询</el-button> <el-button size="small" type="primary" @click="getSchedule" style="margin-left: 10px;">查询</el-button>
<el-button size="small" type="primary" @click="lists = lists.reverse()" style="margin-left: 10px;" icon="el-icon-sort">倒序</el-button>
</div> </div>
<div class="select">{{select.month}} {{ areaFormatter(select.area_id) }} {{ typeFormatter(select.product_type_id) }}</div> <div class="select">{{select.month}} {{ areaFormatter(select.area_id) }} {{ typeFormatter(select.product_type_id) }}</div>
@ -49,6 +51,7 @@
<div class="schedule-content"> <div class="schedule-content">
<div <div
class="schedule-content__wrap"
style="overflow:auto;height: 100%"> style="overflow:auto;height: 100%">
<div style="height: 40px"></div> <div style="height: 40px"></div>
<template v-for="item in lists"> <template v-for="item in lists">
@ -57,9 +60,9 @@
<div class="schedule-content-item__date--left">{{item.date}} {{item.week}}</div> <div class="schedule-content-item__date--left">{{item.date}} {{item.week}}</div>
<div class="schedule-content-item__date--right"> <div class="schedule-content-item__date--right">
<span>总上门人次</span> <span>总上门人次</span>
<span>{{item.has_total}}</span> <span style="font-weight: 600">{{item.has_total}}</span>
<span style="margin-left: 10px">待上门人次</span> <span style="margin-left: 10px">待上门人次</span>
<span>{{item.wait_total === 0 ? '✔' : item.wait_total}}</span> <span style="font-weight: 600">{{item.wait_total === 0 ? '✔' : item.wait_total}}</span>
</div> </div>
</div> </div>
@ -95,6 +98,8 @@
</template> </template>
</div> </div>
</div> </div>
<el-backtop target=".schedule-content__wrap"></el-backtop>
</div> </div>
</template> </template>
@ -141,7 +146,7 @@ export default {
async getSchedule(){ async getSchedule(){
let res = await scheduleHome(this.select) let res = await scheduleHome(this.select)
this.lists = res.list.reverse() this.lists = res.list
this.totals = { this.totals = {
left:{ left:{
'上门需求':res.statistics?.need_order_total ?? 0, '上门需求':res.statistics?.need_order_total ?? 0,

Loading…
Cancel
Save