|
@@ -0,0 +1,171 @@
|
|
|
+<template>
|
|
|
+ <div class="statistics-panel">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card total">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-document"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ totalOrders }}</div>
|
|
|
+ <div class="label">本月总单</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card installed">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-check"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ installedOrders }}</div>
|
|
|
+ <div class="label">本月已安装订单</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card installing">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-loading"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ installingOrders }}</div>
|
|
|
+ <div class="label">正在安装订单</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card unassigned">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-warning-outline"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ unassignedOrders }}</div>
|
|
|
+ <div class="label">未接单</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card total-plan">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-s-data"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ totalPlanQuantity }}</div>
|
|
|
+ <div class="label">订单总量</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card completed">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-circle-check"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ completedQuantity }}</div>
|
|
|
+ <div class="label">已完成量</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ <div class="stat-card uncompleted">
|
|
|
+ <div class="icon-wrapper">
|
|
|
+ <i class="el-icon-circle-close"></i>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <div class="value">{{ uncompletedQuantity }}</div>
|
|
|
+ <div class="label">未完成量</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'StatisticsPanel',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ totalOrders: 20,
|
|
|
+ installedOrders: 5,
|
|
|
+ installingOrders: 8,
|
|
|
+ unassignedOrders: 7,
|
|
|
+ totalPlanQuantity: 10000,
|
|
|
+ completedQuantity: 5000,
|
|
|
+ uncompletedQuantity: 5000
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.statistics-panel {
|
|
|
+ margin-bottom: 20px;
|
|
|
+
|
|
|
+ .stat-card {
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding: 20px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
|
|
|
+
|
|
|
+ .icon-wrapper {
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin-right: 12px;
|
|
|
+
|
|
|
+ i {
|
|
|
+ font-size: 24px;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ .value {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: bold;
|
|
|
+ line-height: 1.5;
|
|
|
+ }
|
|
|
+
|
|
|
+ .label {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #909399;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.total .icon-wrapper {
|
|
|
+ background-color: #409EFF;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.installed .icon-wrapper {
|
|
|
+ background-color: #67C23A;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.installing .icon-wrapper {
|
|
|
+ background-color: #E6A23C;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.unassigned .icon-wrapper {
|
|
|
+ background-color: #F56C6C;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.total-plan .icon-wrapper {
|
|
|
+ background-color: #909399;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.completed .icon-wrapper {
|
|
|
+ background-color: #67C23A;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.uncompleted .icon-wrapper {
|
|
|
+ background-color: #F56C6C;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|