feat: 报销预审会话状态管理与工作台交互增强

- 新增差旅报销会话状态管理与对话模型重构
- 增强风险观测服务与运行时聊天上下文作用域
- 优化工作台图标资源、助理意图识别与摘要工具
- 完善报销创建视图样式与差旅详情页标准调整交互
- 补充风险观测、运行时聊天与报销端点测试覆盖
This commit is contained in:
caoxiaozhu
2026-06-04 11:03:29 +08:00
parent 87da5df91b
commit 1cbf3fee44
60 changed files with 4156 additions and 393 deletions

View File

@@ -472,20 +472,24 @@
.notification-popover {
position: absolute;
top: calc(100% + 8px);
top: calc(100% + 12px);
right: 0;
z-index: 60;
width: clamp(340px, 34vw, 420px);
width: 380px;
max-width: calc(100vw - 24px);
max-height: min(520px, calc(100vh - 96px));
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
display: flex;
flex-direction: column;
gap: 0;
overflow: hidden;
border: 1px solid #d7e0ea;
border-radius: 4px;
background: #fff;
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 12px;
background: #ffffff;
box-shadow:
0 16px 36px rgba(0, 0, 0, 0.08),
0 4px 12px rgba(0, 0, 0, 0.03),
0 0 1px rgba(0, 0, 0, 0.1);
overscroll-behavior-y: contain;
}
.notification-popover::before {
@@ -665,9 +669,11 @@
max-height: min(336px, calc(100vh - 226px));
overflow-x: hidden;
overflow-y: auto;
padding: 6px 0;
padding: 4px 0 12px;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 #f8fafc;
overscroll-behavior-y: contain;
scrollbar-gutter: stable;
}
.notification-list::-webkit-scrollbar {
@@ -687,13 +693,13 @@
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 16px;
align-items: center;
gap: 9px;
min-height: 0;
padding: 10px 14px;
gap: 12px;
min-height: 68px;
padding: 12px 16px;
border: 0;
border-left: 3px solid transparent;
border-radius: 0;
background: transparent;
background: #ffffff;
flex-shrink: 0;
text-align: left;
transition:
background 180ms var(--ease),
@@ -705,16 +711,27 @@
}
.notification-row.unread {
border-left-color: var(--theme-primary-active);
background: linear-gradient(90deg, var(--theme-primary-light-9) 0%, #fff 42%);
background: #f8fafc;
position: relative;
}
.notification-row.unread::before {
content: '';
position: absolute;
left: 0;
top: 16px;
bottom: 16px;
width: 3px;
border-radius: 0 4px 4px 0;
background: var(--theme-primary-active);
}
.notification-row:hover {
background: #f8fafc;
background: #f1f5f9;
}
.notification-row.unread:hover {
background: linear-gradient(90deg, var(--theme-primary-light-8) 0%, #f8fafc 48%);
background: #f1f5f9;
}
.notification-type-icon {
@@ -722,11 +739,12 @@
height: 34px;
display: grid;
place-items: center;
border: 1px solid var(--theme-primary-light-6);
border-radius: 4px;
background: #fff;
border: 1px solid rgba(0,0,0,0.04);
border-radius: 8px;
background: #ffffff;
color: var(--theme-primary-active);
font-size: 18px;
font-size: 16px;
box-shadow: 0 1.5px 4px rgba(0,0,0,0.03);
}
.notification-type-icon.danger {
@@ -755,28 +773,29 @@
.notification-copy {
min-width: 0;
display: grid;
display: flex;
flex-direction: column;
gap: 4px;
}
.notification-copy strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-top: 1px;
padding-bottom: 1px;
}
.notification-title-line {
min-width: 0;
display: flex;
align-items: center;
gap: 6px;
gap: 8px;
}
.notification-copy strong {
min-width: 0;
color: #0f172a;
font-size: 13px;
font-weight: 800;
font-size: 13.5px;
font-weight: 750;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.notification-title-line b {
@@ -796,22 +815,24 @@
}
.notification-copy small {
display: -webkit-box;
overflow: hidden;
color: #475569;
color: #64748b;
font-size: 12px;
line-height: 1.4;
white-space: normal;
-webkit-box-orient: vertical;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 2px;
}
.notification-meta {
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-end;
gap: 8px;
margin-top: 2px;
}
.notification-meta em,
@@ -827,7 +848,7 @@
}
.notification-meta em {
flex: 1 1 auto;
display: none;
}
.notification-meta time {