<template>
|
<!-- 员工业绩报表 -->
|
<view class="container" @click="hideFilter">
|
<h-tabs
|
class="tab"
|
:tabData="tabs"
|
@tabClick="tabChange"
|
:config="{
|
color: '#abb1cc',
|
activeColor: '#518EFF',
|
underLineColor: '#518EFF',
|
underLineHeight: 6,
|
fontSize: '28',
|
underLineWidth: 60,
|
}"
|
/>
|
<view v-if="tabIndex==0 || tabIndex==1">
|
<view class="list-item">
|
<view class="list-header">
|
<text>2020年12月24日</text>
|
</view>
|
<view class="list-content">
|
<view class="list-row">
|
<text>订单业绩</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>现金业绩</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>售卡业绩</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>产品业绩</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>划扣业绩</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>本金消耗</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>赠送消耗</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>服务提成</text>
|
<text>¥12,122</text>
|
</view>
|
<view class="list-row">
|
<text>人头数</text>
|
<text>12,122</text>
|
</view>
|
<view class="list-row">
|
<text>项目数</text>
|
<text>12,122</text>
|
</view>
|
<view class="list-row">
|
<text>服务时长</text>
|
<text>12,122</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
<view v-else>
|
<view class="list-item">
|
<view class="list-header">
|
<text class="font-bold">专项数据</text>
|
</view>
|
<view class="list-content-bordered">
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>订单业绩</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>现金业绩</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>售卡业绩</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>产品业绩</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>划扣业绩</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>本金消耗</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>赠送消耗</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>服务提成</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>人头数</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>项目数</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
<view class="list-row-bordered" @click="toAnalyse">
|
<text>服务时长</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="drop-down" v-show="isShowFilter">
|
<view class="drop-down-row" v-for="item in timeList">
|
<text @click="employeeChange(item)">{{item.label}}</text>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue";
|
export default {
|
components: {
|
HTabs
|
},
|
data() {
|
return {
|
tabIndex: 0,
|
tabs:[
|
{
|
state: 1,
|
name: '每日'
|
},
|
{
|
state: 2,
|
name: '每月'
|
},
|
{
|
state: 3,
|
name: '专项'
|
}
|
],
|
isShowFilter:false,
|
timeList: [{
|
label: '张三',
|
value: 3
|
},{
|
label: '李四',
|
value: 2
|
},{
|
label: '王麻子',
|
value: 1
|
}]
|
}
|
},
|
onLoad(options) {
|
|
},
|
onNavigationBarButtonTap(e){
|
if(e.index==0){
|
uni.navigateTo({
|
url:"./hint?type=2"
|
})
|
}
|
if(e.width && e.index==1){
|
this.isShowFilter=!this.isShowFilter
|
}
|
},
|
onHide() {
|
this.hideFilter()
|
},
|
methods:{
|
tabChange(index){
|
this.tabIndex = index;
|
},
|
hideFilter(){
|
this.isShowFilter = false
|
},
|
toAnalyse(){
|
uni.navigateTo({
|
url: './analyse'
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
page{
|
background: #F6F6F8;
|
height: 100%;
|
}
|
.container{
|
min-height: 100%;
|
}
|
.tab{
|
background: #FFFFFF;
|
border-bottom: #EDEAF4;
|
border-bottom-left-radius: 4px;
|
border-bottom-right-radius: 4px;
|
box-shadow:0 6px 6px rgba(237,234,244,0.5);
|
}
|
.list-item{
|
margin: 10px 10px 0;
|
padding: 0 10px;
|
background: #FFFFFF;
|
border: 1px solid #EDEAF4;
|
border-radius: 4px;
|
}
|
.list-header{
|
border-bottom: 1px solid #EDEAF4;
|
padding: 12px 5px;
|
font-size: 14px;
|
}
|
.list-content{
|
padding: 8px 5px;
|
font-size: 13px;
|
color: #333;
|
}
|
.list-row{
|
display: flex;
|
justify-content: space-between;
|
line-height: 30px;
|
}
|
.list-row text:nth-last-of-type(1){
|
color: #666
|
}
|
.list-content-bordered{
|
padding: 0 5px;
|
font-size: 13px;
|
}
|
.list-row-bordered{
|
display: flex;
|
justify-content: space-between;
|
line-height: 40px;
|
border-bottom: 1px solid #EDEAF4;
|
}
|
.list-row-bordered:nth-last-of-type(1){
|
border-bottom: 0;
|
}
|
.list-row-bordered text:nth-last-of-type(1){
|
color: #a5abaf
|
}
|
.drop-down{
|
min-width: 56px;
|
background: #FFFFFF;
|
border: 1px solid #EDEAF4;
|
border-radius: 4px;
|
padding: 0 10px;
|
position: fixed;
|
right: 35px;
|
top: 0;
|
z-index: 99;
|
color: #a5abaf;
|
font-size: 12px;
|
}
|
.drop-down-row{
|
border-bottom: 1px solid #EDEAF4;
|
padding: 5px 0;
|
text-align: center;
|
}
|
.drop-down-row:nth-last-child(1){
|
border: 0;
|
}
|
</style>
|