Browse Source

公司日报周报

branch0222
douzhuo 1 year ago
parent
commit
dedf0b5cb4
1 changed files with 83 additions and 45 deletions
  1. +83
    -45
      pages/reportExcel/dayReport.vue

+ 83
- 45
pages/reportExcel/dayReport.vue View File

@@ -98,26 +98,51 @@
<text v-if="!weekObj.orgCode">销讲维度执行前三:</text>
<text v-else>项目平均执行率排名:</text>
</view>
<view class="ranking">
<block v-for="(rank, rankIndex) in carryOutTop" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
<template v-if="!weekObj.orgCode">
<view class="ranking">
<block v-for="(rank, rankIndex) in carryOutTop" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
</view>
<view class="lside">
{{ rank.title || '--' }}
</view>
<view class="rside">
({{ rank.value || 0 }}%)
</view>
</view>
<view class="lside">
{{ rank.title || '--' }}
</block>
<template v-if="carryOutTop.length == 0">
<view class="empty">
暂无数据
</view>
<view class="rside">
({{ rank.value || 0 }}%)
</template>
</view>
</template>
<template v-else>
<!-- consultant -->
<view class="ranking">
<block v-for="(rank, rankIndex) in consultant" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
</view>
<view class="lside">
{{ rank.title || '--' }}
</view>
<view class="rside">
({{ rank.value || 0 }}%)
</view>
</view>
</view>
</block>
<template v-if="carryOutTop.length == 0">
<view class="empty">
暂无数据
</view>
</template>
</view>
</block>
<template v-if="consultant.length == 0">
<view class="empty">
暂无数据
</view>
</template>
</view>
</template>
</view>
</view>

@@ -130,26 +155,50 @@
<text v-if="!weekObj.orgCode">销讲维度执行弱项前三:</text>
<text v-else>项目平均接访时长排名:</text>
</view>
<view class="ranking">
<block v-for="(rank, rankIndex) in carryOutLast" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
<template v-if="!weekObj.orgCode">
<view class="ranking">
<block v-for="(rank, rankIndex) in carryOutLast" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
</view>
<view class="lside">
{{ rank.title || '--' }}
</view>
<view class="rside">
({{ rank.value || 0 }}%)
</view>
</view>
<view class="lside">
{{ rank.title || '--' }}
</block>
<template v-if="carryOutLast.length == 0">
<view class="empty">
暂无数据
</view>
<view class="rside">
({{ rank.value || 0 }}%)
</template>
</view>
</template>
<template v-else>
<view class="ranking">
<block v-for="(rank, rankIndex) in recording" :key="rankIndex">
<view class="ranking-item">
<view class="serial">
{{ rankIndex+1 }}
</view>
<view class="lside">
{{ rank.title || '--' }}
</view>
<view class="rside">
({{ rank.value/60 || 0 }}m)
</view>
</view>
</view>
</block>
<template v-if="carryOutLast.length == 0">
<view class="empty">
暂无数据
</view>
</template>
</view>
</block>
<template v-if="recording.length == 0">
<view class="empty">
暂无数据
</view>
</template>
</view>
</template>
</view>
</view>

@@ -463,17 +512,6 @@
})
}

if (this.consultant.length > 0) {
str += `
6、置业顾问平均执行率排名:`
this.consultant.map((item, index) => {
str += `
top${index+1}.${item.title || '--'}${item.value||'0'}%`
})
}


if (this.lowest.length > 0) {
str += `


Loading…
Cancel
Save