257 lines
7.8 KiB
Vue
257 lines
7.8 KiB
Vue
<template>
|
|
<view class="boos">
|
|
<!-- 店铺交易数据 -->
|
|
<view class="statistical">
|
|
<!-- <view class="item">
|
|
<view class="number">{{wordData.top.barter_total || 0}}</view>
|
|
<view class="text">总易货额</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="number">{{wordData.top.trading_day || 0}}</view>
|
|
<view class="text">今日交易额</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="number">{{wordData.top.eb_in || 0}}</view>
|
|
<view class="text">E货额度收入</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="number">{{wordData.top.cash_in || 0}}</view>
|
|
<view class="text">现金收入</view>
|
|
</view> -->
|
|
</view>
|
|
<!-- 店铺概况 -->
|
|
<view class="general">
|
|
<view class="general-box">
|
|
<view class="general-item" @click="$Router.push({name: 'Visitors'})">
|
|
<view class="number">{{wordData.middle.visitors || 0}}</view>
|
|
<view class="text">访客统计</view>
|
|
</view>
|
|
<view class="general-item" @click="$Router.push({name: 'Customer'})">
|
|
<view class="number">{{wordData.middle.clinch || 0}}</view>
|
|
<view class="text">成交客户</view>
|
|
</view>
|
|
<view class="general-item">
|
|
<view class="number">{{wordData.top.barter_total || 0}}</view>
|
|
<view class="text">总交易额</view>
|
|
</view>
|
|
<view class="general-item" @click="$Router.push({name: 'GoodsMag'})">
|
|
<view class="number">{{wordData.middle.sale || 0}}</view>
|
|
<view class="text">在售权证</view>
|
|
</view>
|
|
<view class="general-item">
|
|
<view class="number">{{wordData.middle.hold || 0}}</view>
|
|
<view class="text">退货单处理</view>
|
|
</view>
|
|
<view class="general-item">
|
|
<view class="number">{{wordData.middle.transfer || 0}}</view>
|
|
<view class="text">发货单处理</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 店铺订单管理 -->
|
|
<!-- <view class="tool-flex order">
|
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'deliver'}})">
|
|
<view class="number" v-if="wordData.order.not_shipped > 0">{{wordData.order.not_shipped}}</view>
|
|
<image class="icon" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
|
|
<view class="title">待发货</view>
|
|
</view>
|
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'shipped'}})">
|
|
<view class="number" v-if="wordData.order.already_shipped > 0">{{wordData.order.already_shipped}}</view>
|
|
<image class="icon" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
|
|
<view class="title">已发货</view>
|
|
</view>
|
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'sign'}})">
|
|
<view class="number" v-if="wordData.order.not_pick > 0">{{wordData.order.not_pick}}</view>
|
|
<image class="icon" src="@/static/icons/order_icon_03.png" mode="aspectFill"></image>
|
|
<view class="title">待提货</view>
|
|
</view>
|
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'take'}})">
|
|
<view class="number" v-if="wordData.order.already_pick > 0">{{wordData.order.already_pick}}</view>
|
|
<image class="icon" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
|
|
<view class="title">已提货</view>
|
|
</view>
|
|
<view class="order-item" @click="$Router.push({name: 'Sales'})">
|
|
<view class="number" v-if="wordData.order.after_sale > 0">{{wordData.order.after_sale}}</view>
|
|
<image class="icon" src="@/static/icons/order_icon_04.png" mode="aspectFill"></image>
|
|
<view class="title">退换货</view>
|
|
</view>
|
|
</view> -->
|
|
<!-- 店铺工具 -->
|
|
<view class="tool-flex store">
|
|
<view class="store-item" @click="$Router.push({name: 'Verification'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_00.png" mode="aspectFill"></image>
|
|
<view class="title">扫码验证</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'GoodsMag'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_01.png" mode="aspectFill"></image>
|
|
<view class="title">商品权证</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'CouponsMag'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_02.png" mode="aspectFill"></image>
|
|
<view class="title">优惠券管理</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'Collection'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_03.png" mode="aspectFill"></image>
|
|
<view class="title">收款管理</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'Basics'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_04.png" mode="aspectFill"></image>
|
|
<view class="title">基础信息</view>
|
|
</view>
|
|
<view class="store-item">
|
|
<image class="icon" src="@/static/icons/tool_icon_06.png" mode="aspectFill"></image>
|
|
<view class="title">营销推广码</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'shopLists'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_07.png" mode="aspectFill"></image>
|
|
<view class="title">部门/门店</view>
|
|
</view>
|
|
<view class="store-item" @click="$Router.push({name: 'Employees'})">
|
|
<image class="icon" src="@/static/icons/tool_icon_08.png" mode="aspectFill"></image>
|
|
<view class="title">员工管理</view>
|
|
</view>
|
|
</view>
|
|
<!-- 企业数据统计 -->
|
|
<view class="tool-flex">
|
|
<l-f2 ref="chart"></l-f2>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import F2 from '@/uni_modules/lime-f2/components/l-f2/f2.min.js'
|
|
export default {
|
|
name:"store-boss",
|
|
props:{
|
|
// 工作台信息
|
|
wordData:{
|
|
type: Object,
|
|
default: () => {
|
|
return {
|
|
top : {},
|
|
middle : {},
|
|
order : {},
|
|
data: [{
|
|
date: '2017-06-05',
|
|
value: 116
|
|
}, {
|
|
date: '2017-06-06',
|
|
value: 129
|
|
}, {
|
|
date: '2017-06-07',
|
|
value: 135
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.boos{
|
|
// 店铺统计
|
|
.statistical{
|
|
display: flex;
|
|
background: $text-price;
|
|
padding: $padding ($padding/2) $padding*5;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
.item{
|
|
width: calc(25% - #{$padding});
|
|
text-align: center;
|
|
color: white;
|
|
margin: 0 $margin / 2;
|
|
.number{
|
|
font-weight: bold;
|
|
font-size: $title-size;
|
|
}
|
|
.text{
|
|
font-size: $title-size-sm;
|
|
}
|
|
}
|
|
}
|
|
// 店铺概况
|
|
.general{
|
|
margin: -$margin*5 $margin 0 $margin;
|
|
.general-box{
|
|
background-color: white;
|
|
border-radius: $radius/2;
|
|
display: flex;
|
|
padding: $padding $padding/2;
|
|
flex-wrap: wrap;
|
|
.general-item{
|
|
width: 33.33%;
|
|
text-align: center;
|
|
padding: $padding/2;
|
|
box-sizing: border-box;
|
|
.number{
|
|
font-weight: bold;
|
|
font-size: $title-size;
|
|
line-height: 50rpx;
|
|
}
|
|
.text{
|
|
font-size: $title-size-sm;
|
|
color: $text-gray;
|
|
line-height: 40rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 店铺工具
|
|
.tool-flex{
|
|
background: white;
|
|
border-radius: $radius/2;
|
|
padding: $padding/2;
|
|
margin: $margin;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.store-item{
|
|
padding: $padding/2;
|
|
text-align: center;
|
|
width: 25%;
|
|
box-sizing: border-box;
|
|
.icon{
|
|
width: 68rpx;
|
|
height: 68rpx;
|
|
vertical-align: top;
|
|
}
|
|
.title{
|
|
font-size: $title-size-sm;
|
|
color: $text-gray;
|
|
padding-top: $padding/3;
|
|
}
|
|
}
|
|
.order-item{
|
|
position: relative;
|
|
padding: $padding/2;
|
|
text-align: center;
|
|
width: 20%;
|
|
box-sizing: border-box;
|
|
.icon{
|
|
width: 58rpx;
|
|
height: 58rpx;
|
|
vertical-align: top;
|
|
}
|
|
.title{
|
|
font-size: $title-size-sm;
|
|
color: $text-gray;
|
|
}
|
|
.number{
|
|
position: absolute;
|
|
top: 10rpx;
|
|
left: calc( 50% + 10rpx );
|
|
font-size: $title-size-sm;
|
|
background: $text-price;
|
|
color: white;
|
|
height: 30rpx;
|
|
line-height: 30rpx;
|
|
border-radius: 15rpx;
|
|
min-width: 30rpx;
|
|
z-index: 9;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|