feat: 重构首页布局并添加新功能模块

- 重构首页布局,移除旧图表组件,添加流程表格和迷你日历
- 新增常用应用组件,支持收藏和管理常用功能
- 新增流程表格组件,展示我的流程和待办任务
- 新增迷你日历组件,支持不同类型日期标记
- 优化统计卡片组件,拆分客户和供应商统计
- 调整部分表格列名显示更准确
This commit is contained in:
砂糖
2025-10-31 13:14:10 +08:00
parent cd040e57ea
commit c657dad4d3
7 changed files with 806 additions and 37 deletions

View File

@@ -81,13 +81,21 @@ export default {
duration: 3200
},
{
type: 'customerSupplierCount',
title: '客户和供应商',
type: 'customerCount',
title: '客户',
icon: 'people',
iconClass: 'icon-customer',
value: 0,
duration: 3600
},
{
type: 'supplierCount',
title: '供应商',
icon: 'peoples',
iconClass: 'icon-supplier',
value: 0,
duration: 3600
},
{
type: 'equipmentCount',
title: '设备数量',
@@ -134,8 +142,10 @@ export default {
item.value = materialCoilRes.total
} else if (item.type === 'orderCount') {
item.value = orderRes.total
} else if (item.type === 'customerSupplierCount') {
item.value = customerRes.total + supplierRes.total
} else if (item.type === 'customerCount') {
item.value = customerRes.total
} else if (item.type === 'supplierCount') {
item.value = supplierRes.total
} else if (item.type === 'equipmentCount') {
item.value = equipmentRes.total
}
@@ -189,6 +199,10 @@ export default {
.icon-equipment {
background: #722ed1;
}
.icon-supplier {
background: #ffed65;
}
}
.icon-material {
@@ -211,6 +225,10 @@ export default {
color: #722ed1;
}
.icon-supplier {
color: #ffed65;
}
.card-panel-icon-wrapper {
float: left;
margin: 14px 0 0 14px;