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

@@ -70,13 +70,8 @@
}
.capability-icon {
border: 1px solid color-mix(in srgb, var(--capability-color) 18%, rgba(255, 255, 255, 0.68));
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
color-mix(in srgb, var(--capability-soft) 72%, transparent);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.72),
inset 0 -1px 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08);
--workbench-list-icon-size: 40px;
--workbench-list-icon-art-size: 23px;
}
.workbench-card {

View File

@@ -61,6 +61,8 @@
grid-template-rows: auto minmax(0, 1fr);
}
/* .expense-stats-panel 的特殊背景已转移至全局的 .workbench-card */
.insight-metric-list,
.insight-profile-list {
min-height: 0;
@@ -102,6 +104,23 @@
rgba(var(--theme-primary-rgb, 58, 124, 165), 0.04);
}
/* 局部改造让费用统计内层的小卡片也变为低透明度透镜形成双层液态玻璃Double Glassmorphism的极品手感 */
.expense-stats-panel .insight-metric-row {
background: rgba(255, 255, 255, 0.05) !important;
border-color: rgba(255, 255, 255, 0.2) !important;
border-left-color: rgba(255, 255, 255, 0.6) !important;
backdrop-filter: blur(8px) saturate(120%);
-webkit-backdrop-filter: blur(8px) saturate(120%);
box-shadow:
0 4px 12px rgba(0, 0, 0, 0.03),
inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.expense-stats-panel .insight-metric-row:hover {
background: rgba(255, 255, 255, 0.2) !important;
border-color: rgba(255, 255, 255, 0.4) !important;
}
.insight-metric-icon,
.insight-profile-icon {
display: inline-flex;

View File

@@ -304,9 +304,10 @@
}
.capability-icon {
--workbench-list-icon-size: 34px;
--workbench-list-icon-art-size: 20px;
width: 34px;
height: 34px;
font-size: 20px;
}
.capability-copy {

View File

@@ -33,6 +33,10 @@
gap: 10px;
overflow: visible;
color: var(--workbench-ink);
/* 恢复极简纯净的页面底层 */
background: transparent;
background-color: var(--workbench-surface-soft);
}
.workbench :where(button, textarea) {
@@ -53,33 +57,33 @@
.workbench :where(button:disabled) { cursor: not-allowed; opacity: 0.7; }
.assistant-hero {
--assistant-bg-position: center right;
--assistant-bg-size: cover;
--assistant-readability-mask:
linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.44) 68%, rgba(255, 255, 255, 0.18) 100%);
--assistant-theme-tint:
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.2) 0%, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.07) 52%, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.16) 100%);
position: relative;
z-index: 2;
min-height: 0;
overflow: hidden;
padding: var(--hero-padding-top) 20px var(--hero-padding-bottom) 52px;
border: 1px solid color-mix(in srgb, var(--workbench-primary) 14%, var(--workbench-line));
border-radius: 4px;
background:
var(--assistant-readability-mask),
var(--assistant-theme-tint),
var(--assistant-bg-image) var(--assistant-bg-position) / var(--assistant-bg-size) no-repeat;
background-color: color-mix(in srgb, var(--workbench-primary-soft) 42%, #ffffff);
background-blend-mode: normal, color, luminosity;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 16px;
background:
linear-gradient(125deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.5) 100%);
background-color: transparent;
backdrop-filter: blur(40px) saturate(200%);
-webkit-backdrop-filter: blur(40px) saturate(200%);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(255, 255, 255, 1);
isolation: isolate;
}
.assistant-hero::after {
content: none;
content: "";
position: absolute;
top: 0;
right: 100px;
bottom: 0;
width: 50%;
min-width: 400px;
background: url("../../images/hero-financial-decor.svg") right center / auto 100% no-repeat;
pointer-events: none;
z-index: 0;
}
.assistant-hero::before {
@@ -140,6 +144,14 @@
backdrop-filter: blur(4px);
}
.assistant-composer:focus-within {
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.85);
box-shadow:
0 0 0 4px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.14),
0 16px 36px rgba(15, 23, 42, 0.06),
inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
.assistant-composer textarea {
width: 100%;
min-width: 0;
@@ -317,19 +329,26 @@
.capability-card {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: 40px minmax(0, 1fr) 10px;
align-items: center;
gap: 14px;
min-height: 0;
padding: 17px 12px 17px 26px;
overflow: hidden;
border: 1px solid var(--workbench-line);
border-left: 3px solid color-mix(in srgb, var(--capability-color) 54%, var(--workbench-line));
border-radius: 4px;
background: var(--workbench-surface);
overflow: visible;
border: 1px solid rgba(255, 255, 255, 0.9);
border-left: 3px solid color-mix(in srgb, var(--capability-color) 80%, rgba(255, 255, 255, 0.9));
border-radius: 12px;
background:
linear-gradient(125deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.5) 100%);
background-color: transparent;
backdrop-filter: blur(40px) saturate(200%);
-webkit-backdrop-filter: blur(40px) saturate(200%);
text-align: left;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
box-shadow:
0 16px 32px rgba(0, 0, 0, 0.04),
inset 0 2px 4px rgba(255, 255, 255, 1);
transition:
border-color 180ms var(--ease),
box-shadow 180ms var(--ease),
@@ -337,21 +356,33 @@
transform 180ms var(--ease);
}
.capability-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background:
linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 60%),
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08), transparent 56%);
pointer-events: none;
z-index: 0;
}
.capability-card > * {
position: relative;
z-index: 1;
}
.capability-card::after {
display: none;
}
.capability-icon {
--workbench-list-icon-size: 40px;
--workbench-list-icon-art-size: 23px;
width: 40px;
height: 40px;
display: grid;
place-items: center;
border-radius: 4px;
border: 1px solid color-mix(in srgb, var(--capability-color) 20%, #ffffff);
background: var(--capability-soft);
color: var(--capability-color);
font-size: 24px;
box-shadow: none;
}
.capability-copy {
@@ -417,7 +448,7 @@
.workbench-content-grid {
display: grid;
grid-template-columns: minmax(560px, 1.45fr) minmax(320px, 0.82fr);
grid-template-columns: minmax(640px, 1.8fr) minmax(260px, 0.55fr);
gap: 14px;
align-items: stretch;
min-height: 0;
@@ -425,14 +456,38 @@
}
.workbench-card {
position: relative;
isolation: isolate;
min-height: 0;
height: 100%;
overflow: hidden;
padding: 12px 14px;
border: 1px solid var(--workbench-line);
border-radius: 4px;
background: var(--workbench-surface);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
background:
linear-gradient(125deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.5) 100%);
background-color: transparent;
backdrop-filter: blur(40px) saturate(200%);
-webkit-backdrop-filter: blur(40px) saturate(200%);
border: 1px solid rgba(255, 255, 255, 0.9);
border-radius: 16px;
box-shadow:
0 16px 32px rgba(0, 0, 0, 0.04),
inset 0 2px 4px rgba(255, 255, 255, 1);
}
.workbench-card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background:
linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 60%),
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08), transparent 56%);
pointer-events: none;
z-index: 1;
}
.workbench-card > * {
position: relative;
z-index: 2;
}
.progress-panel,

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 {

View File

@@ -22,6 +22,18 @@
border-color: rgba(96, 165, 250, 0.3);
}
.message-stack {
min-width: 0;
display: grid;
justify-items: start;
gap: 8px;
}
.message-row.user .message-stack {
order: 1;
justify-items: end;
}
.message-avatar {
width: 38px;
height: 38px;
@@ -52,6 +64,94 @@
box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
}
.steward-intent-bubble {
width: min(100%, 680px);
border: 1px solid #c9ddea;
border-radius: 4px;
background: #eef6fb;
color: #1f3f5b;
box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}
.steward-intent-bubble[open] {
background: #f3f9fd;
}
.steward-intent-bubble summary {
min-height: 38px;
display: flex;
align-items: center;
gap: 8px;
padding: 0 12px;
cursor: pointer;
list-style: none;
}
.steward-intent-bubble summary::-webkit-details-marker {
display: none;
}
.steward-intent-bubble summary > span {
min-width: 0;
display: inline-flex;
align-items: center;
gap: 6px;
color: #234a68;
font-size: 12px;
font-weight: 820;
}
.steward-intent-bubble summary > span i {
color: #3a7ca5;
font-size: 14px;
}
.steward-intent-bubble summary small {
margin-left: auto;
color: #6f8295;
font-size: 12px;
font-weight: 720;
}
.steward-intent-bubble summary > i {
color: #64748b;
transition: transform 180ms ease;
}
.steward-intent-bubble[open] summary > i {
transform: rotate(180deg);
}
.steward-intent-event-list {
margin: 0;
padding: 0 12px 12px 30px;
display: grid;
gap: 7px;
}
.steward-intent-event-list li strong {
display: block;
color: #274b68;
font-size: 12px;
font-weight: 820;
}
.steward-intent-event-list li span {
display: block;
margin-top: 2px;
color: #5c7185;
font-size: 12px;
line-height: 1.55;
}
.steward-intent-empty {
margin: 0;
padding: 0 12px 12px;
color: #64748b;
font-size: 12px;
line-height: 1.55;
}
.message-bubble-application-preview {
max-width: min(100%, 980px);
}