feat: 数字员工财务报告体系与定时提醒及看板快照调度

- 新增数字员工财务报告生成、邮件投递与渲染调度器
- 引入员工画像扫描调度与定时提醒任务
- 完善财务看板快照、排行口径与部门人员占比计算
- 优化数字员工工作看板仪表盘与技能目录
- 增强前端总览页图表、工作台摘要与顶部导航栏交互
- 新增差旅申请规划推动提醒与报销创建会话状态管理
- 补充财务报告、看板调度、数字员工工作记录测试覆盖
This commit is contained in:
caoxiaozhu
2026-06-03 09:25:23 +08:00
parent 0c74b4ab4a
commit 15006a05a7
114 changed files with 7356 additions and 650 deletions

View File

@@ -403,6 +403,11 @@
color: var(--theme-primary-active);
}
.notification-wrap {
position: relative;
display: inline-flex;
}
.notification-badge {
position: absolute;
top: 2px;
@@ -423,6 +428,179 @@
box-shadow: 0 5px 10px rgba(239, 68, 68, .22);
}
.notification-popover {
position: absolute;
top: calc(100% + 10px);
right: -8px;
z-index: 60;
width: min(360px, calc(100vw - 32px));
display: grid;
gap: 10px;
padding: 12px;
border: 1px solid #e5edf5;
border-radius: 4px;
background: rgba(255, 255, 255, 0.98);
box-shadow:
0 18px 42px rgba(15, 23, 42, 0.14),
inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.notification-popover::before {
content: "";
position: absolute;
top: -6px;
right: 18px;
width: 10px;
height: 10px;
border-top: 1px solid #e5edf5;
border-left: 1px solid #e5edf5;
background: #fff;
transform: rotate(45deg);
}
.notification-head,
.notification-tabs {
position: relative;
z-index: 1;
display: flex;
align-items: center;
}
.notification-head {
justify-content: space-between;
gap: 10px;
}
.notification-head strong {
color: #0f172a;
font-size: 14px;
font-weight: 850;
}
.notification-head button {
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 4px;
color: #64748b;
}
.notification-head button:hover {
background: #f1f5f9;
color: #0f172a;
}
.notification-tabs {
gap: 6px;
padding: 3px;
border: 1px solid #edf2f7;
border-radius: 4px;
background: #f8fafc;
}
.notification-tabs button {
flex: 1 1 0;
height: 28px;
border-radius: 3px;
color: #64748b;
font-size: 12px;
font-weight: 800;
}
.notification-tabs button.active {
background: #fff;
color: var(--theme-primary-active);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.notification-list {
position: relative;
z-index: 1;
display: grid;
max-height: 320px;
overflow: auto;
}
.notification-row {
display: grid;
grid-template-columns: 8px minmax(0, 1fr) 16px;
align-items: center;
gap: 10px;
padding: 10px 4px;
border-top: 1px solid #edf2f7;
text-align: left;
}
.notification-row:first-child {
border-top: 0;
}
.notification-row:hover {
background: #f8fafc;
}
.notification-dot {
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--theme-primary);
}
.notification-dot.danger { background: #ef4444; }
.notification-dot.warning { background: #f59e0b; }
.notification-dot.success { background: var(--success); }
.notification-dot.info { background: #3b82f6; }
.notification-copy {
min-width: 0;
display: grid;
gap: 2px;
}
.notification-copy strong,
.notification-copy small,
.notification-copy em {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.notification-copy strong {
color: #0f172a;
font-size: 13px;
font-weight: 850;
}
.notification-copy small {
color: #475569;
font-size: 12px;
}
.notification-copy em {
color: #94a3b8;
font-size: 11px;
font-style: normal;
}
.notification-row > .mdi {
color: #94a3b8;
font-size: 16px;
}
.notification-empty {
min-height: 112px;
display: grid;
place-items: center;
gap: 8px;
color: #94a3b8;
font-size: 13px;
}
.notification-empty .mdi {
font-size: 24px;
}
.company-switcher {
max-width: min(220px, 28vw);
height: 38px;
@@ -593,6 +771,61 @@
.title-group {
padding-right: 56px;
}
.topbar.detail-mode {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 8px;
padding: 10px 14px;
}
.topbar.detail-mode .title-group {
min-width: 0;
padding-right: 50px;
}
.topbar.detail-mode .eyebrow {
display: none;
}
.topbar.detail-mode h1 {
font-size: 22px;
line-height: 1.12;
}
.topbar.detail-mode p {
max-width: 100%;
margin-top: 3px;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
font-size: 12px;
line-height: 1.35;
}
.topbar.detail-mode .top-actions,
.topbar.detail-mode .detail-topbar-actions {
width: 100%;
min-width: 0;
justify-content: flex-end;
}
.topbar.detail-mode .detail-alert-strip {
width: auto;
max-width: 100%;
min-width: 0;
justify-content: flex-end;
gap: 6px;
}
.topbar.detail-mode .detail-alert-pill {
min-height: 26px;
max-width: 100%;
padding: 0 9px;
border-radius: 4px;
font-size: 11px;
}
}
@media (max-width: 640px) {
@@ -676,3 +909,22 @@
grid-template-columns: 1fr;
}
}
@media (max-width: 420px) {
.topbar.detail-mode {
gap: 6px;
padding: 8px 12px;
}
.topbar.detail-mode h1 {
font-size: 20px;
}
.topbar.detail-mode p {
font-size: 11.5px;
}
.topbar.detail-mode .detail-alert-pill {
min-height: 24px;
}
}