feat: 工作台概览优化 - 人力成本展示、解聘记录完善、数据准确性修复

- 解聘列表显示所有状态记录(含已撤销/已完成)
- 月度解聘人数排除CANCELLED和DRAFT状态
- 工作台新增当月人力成本和年度累计成本卡片
- 年度累计成本包含当前月未归档数据
- 企业总成本公式加入加班费
- 统计卡片月加班费改为工资条数量,避免与动态区重复
- 本月工作动态与风险分布改为左右两列布局
- 人力成本区域优化:2列网格+突出总成本
This commit is contained in:
selfrelease
2026-07-25 23:11:38 +08:00
parent f74b2808a3
commit 9cb0d1f63b
4 changed files with 127 additions and 9 deletions
+1 -1
View File
@@ -743,7 +743,7 @@ export async function getDrafts(orgId: string, status?: string) {
if (status) {
where.status = status
} else {
where.status = { in: ['DRAFT', 'PENDING_APPROVAL', 'APPROVED', 'REJECTED'] }
where.status = { in: ['DRAFT', 'PENDING_APPROVAL', 'APPROVED', 'REJECTED', 'EXECUTING', 'COMPLETED', 'CANCELLED'] }
}
const records = await prisma.terminationRecord.findMany({