fix: 优化报销创建页面样式与洞察面板交互
修复侧边栏和审计视图样式细节,完善差旅报销洞察面板和消息 组件布局,优化报销创建页面会话管理和流程状态持久化,增强 申请预览工具函数和导航图标,补充单元测试。
This commit is contained in:
@@ -92,8 +92,9 @@
|
||||
z-index: 30;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-radius: 999px;
|
||||
@@ -125,7 +126,17 @@
|
||||
|
||||
.rail-collapse-btn .mdi {
|
||||
font-size: 17px;
|
||||
line-height: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.rail-collapse-btn .mdi-chevron-left {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.rail-collapse-btn .mdi-chevron-right {
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
.rail-nav {
|
||||
|
||||
@@ -6,11 +6,14 @@
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
transition:
|
||||
width 360ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.insight-panel-shell.collapsed {
|
||||
width: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.insight-panel {
|
||||
@@ -24,6 +27,20 @@
|
||||
border-radius: 16px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 14px 32px rgba(148, 163, 184, 0.16);
|
||||
opacity: 1;
|
||||
transform: translateX(0) scale(1);
|
||||
transform-origin: right center;
|
||||
transition:
|
||||
opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
will-change: opacity, transform;
|
||||
}
|
||||
|
||||
.insight-panel-shell.collapsed .insight-panel {
|
||||
opacity: 0;
|
||||
transform: translateX(28px) scale(0.985);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.insight-head {
|
||||
@@ -286,28 +303,156 @@
|
||||
|
||||
.review-flow-list {
|
||||
position: relative;
|
||||
gap: 0;
|
||||
padding: 2px 0 0;
|
||||
}
|
||||
|
||||
.flow-step-item {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 28px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
grid-template-columns: 30px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.flow-step-item:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.flow-step-rail {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flow-step-rail::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 28px;
|
||||
bottom: -10px;
|
||||
left: 50%;
|
||||
width: 2px;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 999px;
|
||||
background: #e2e8f0;
|
||||
opacity: 0;
|
||||
transform-origin: top;
|
||||
transition: opacity 0.18s ease, transform 0.32s ease, background 0.18s ease;
|
||||
transform: translateX(-50%) scaleY(0);
|
||||
}
|
||||
|
||||
.flow-step-item:not(:last-child) .flow-step-rail::after {
|
||||
opacity: 1;
|
||||
transform: translateX(-50%) scaleY(1);
|
||||
}
|
||||
|
||||
.flow-step-rail span {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
border: 1px solid #dbe4ee;
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
font-weight: 900;
|
||||
font-variant-numeric: tabular-nums;
|
||||
transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
|
||||
}
|
||||
|
||||
.flow-step-card {
|
||||
padding: 10px;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
padding: 10px 11px;
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
box-shadow: none;
|
||||
transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-rail::after {
|
||||
background: #1e293b;
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-rail span {
|
||||
border-color: #0f172a;
|
||||
background: #0f172a;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-card {
|
||||
border-color: #1e293b;
|
||||
background: #1e293b;
|
||||
box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-card strong {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-tool,
|
||||
.flow-step-item.completed .flow-step-detail,
|
||||
.flow-step-item.completed .flow-step-card time {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.flow-step-item.completed .flow-step-status.completed {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.flow-step-item.running .flow-step-rail span {
|
||||
border-color: #2563eb;
|
||||
background: #2563eb;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
|
||||
}
|
||||
|
||||
.flow-step-item.running .flow-step-card {
|
||||
border-color: rgba(37, 99, 235, 0.38);
|
||||
background: #eff6ff;
|
||||
}
|
||||
|
||||
.flow-step-item.failed .flow-step-rail span {
|
||||
border-color: #dc2626;
|
||||
background: #dc2626;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.flow-step-item.failed .flow-step-card {
|
||||
border-color: rgba(220, 38, 38, 0.34);
|
||||
background: #fef2f2;
|
||||
}
|
||||
|
||||
.flow-step-reveal-enter-active,
|
||||
.flow-step-reveal-leave-active {
|
||||
transition:
|
||||
opacity 0.24s ease,
|
||||
transform 0.28s ease,
|
||||
filter 0.28s ease;
|
||||
}
|
||||
|
||||
.flow-step-reveal-enter-from,
|
||||
.flow-step-reveal-leave-to {
|
||||
opacity: 0;
|
||||
filter: blur(2px);
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
.flow-step-reveal-enter-to,
|
||||
.flow-step-reveal-leave-from {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.flow-step-reveal-move {
|
||||
transition: transform 0.24s ease;
|
||||
}
|
||||
|
||||
.flow-empty-state,
|
||||
|
||||
@@ -118,6 +118,56 @@
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(.markdown-table-wrap) {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin: 10px 0 12px;
|
||||
overflow-x: auto;
|
||||
border: 1px solid #dbe4ee;
|
||||
border-radius: 10px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(table) {
|
||||
width: 100%;
|
||||
min-width: 460px;
|
||||
border: 0;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
background: #ffffff;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(th),
|
||||
.message-answer-markdown :deep(td) {
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(th) {
|
||||
background: #f8fafc;
|
||||
color: #0f172a;
|
||||
font-weight: 760;
|
||||
border-bottom-color: #cbd5e1;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(td) {
|
||||
color: #334155;
|
||||
font-weight: 520;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(tbody tr:nth-child(even) td) {
|
||||
background: #fbfdff;
|
||||
}
|
||||
|
||||
.message-answer-markdown :deep(tbody tr:last-child td) {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.welcome-quick-actions {
|
||||
margin-top: 14px;
|
||||
padding-top: 12px;
|
||||
@@ -202,9 +252,12 @@
|
||||
margin-top: 12px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
grid-auto-rows: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn {
|
||||
height: 100%;
|
||||
min-height: 54px;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr) auto;
|
||||
@@ -244,7 +297,6 @@
|
||||
}
|
||||
|
||||
.message-detail-block,
|
||||
.application-preview-table,
|
||||
.draft-preview {
|
||||
margin-top: 12px;
|
||||
padding: 12px;
|
||||
@@ -263,16 +315,51 @@
|
||||
}
|
||||
|
||||
.application-preview-table {
|
||||
margin-top: 12px;
|
||||
display: grid;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d7e4f2;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
color: #334155;
|
||||
font-size: var(--wb-fs-bubble, 13px);
|
||||
}
|
||||
|
||||
.application-preview-row {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
|
||||
grid-template-columns: 108px minmax(0, 1fr);
|
||||
min-height: 38px;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
border-top: 1px solid #e6edf5;
|
||||
}
|
||||
|
||||
.application-preview-row.editable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.application-preview-row.editable:hover {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.application-preview-row.editable:hover .application-preview-label,
|
||||
.application-preview-row.editable:hover .application-preview-value {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.application-preview-row.editable.missing:hover .application-preview-label {
|
||||
background: color-mix(in srgb, var(--theme-primary-soft, #eaf4fa) 82%, #ffffff);
|
||||
}
|
||||
|
||||
.application-preview-row.editable.missing:hover .application-preview-value {
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.09);
|
||||
}
|
||||
|
||||
.application-preview-row.editable:focus-visible {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
outline: 2px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.45);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.application-preview-row:first-child {
|
||||
@@ -280,9 +367,10 @@
|
||||
}
|
||||
|
||||
.application-preview-row.head {
|
||||
background: #eff6ff;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
min-height: 34px;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
font-size: var(--wb-fs-caption, 12px);
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
@@ -291,37 +379,157 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 8px 10px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.application-preview-label {
|
||||
border-right: 1px solid #e6edf5;
|
||||
background: #fbfdff;
|
||||
color: #64748b;
|
||||
border-right: 1px solid #e2e8f0;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.application-preview-value {
|
||||
position: relative;
|
||||
color: #0f172a;
|
||||
font-weight: 750;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.application-preview-row.highlight .application-preview-label {
|
||||
background: var(--theme-primary-soft, #eaf4fa);
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
}
|
||||
|
||||
.application-preview-row.highlight .application-preview-value {
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08);
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
font-weight: 780;
|
||||
}
|
||||
|
||||
.application-preview-row.missing {
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.035);
|
||||
box-shadow: inset 3px 0 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.42);
|
||||
}
|
||||
|
||||
.application-preview-row.missing .application-preview-label {
|
||||
background: color-mix(in srgb, var(--theme-primary-soft, #eaf4fa) 76%, #ffffff);
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
font-weight: 880;
|
||||
}
|
||||
|
||||
.application-preview-row.missing .application-preview-value {
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.07);
|
||||
color: #0f172a;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.application-preview-text {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.application-preview-input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 32px;
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 8px;
|
||||
height: 30px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.48);
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #0f172a;
|
||||
font: inherit;
|
||||
font-weight: 650;
|
||||
line-height: 1.2;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.12);
|
||||
}
|
||||
|
||||
.application-preview-select {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
flex: 0 0 auto;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
color: #2563eb;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: var(--theme-primary-soft, #eaf4fa);
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn i {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.application-preview-row:hover .application-preview-edit-btn,
|
||||
.application-preview-edit-btn:focus-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.application-preview-edit-btn:hover:not(:disabled),
|
||||
.application-preview-edit-btn:focus-visible {
|
||||
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.35);
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.14);
|
||||
}
|
||||
|
||||
.application-preview-edit-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.42;
|
||||
}
|
||||
|
||||
.application-preview-footer-missing {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px 6px;
|
||||
margin-top: 48px;
|
||||
padding: 2px 0 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #334155;
|
||||
font-size: 13px;
|
||||
font-weight: 780;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.application-preview-missing-prefix,
|
||||
.application-preview-missing-suffix {
|
||||
color: #334155;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.application-preview-missing-list {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.application-preview-missing-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 22px;
|
||||
padding: 0 7px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.1);
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
font-weight: 880;
|
||||
}
|
||||
|
||||
.application-preview-missing-separator {
|
||||
color: var(--theme-primary-active, #255b7d);
|
||||
font-weight: 820;
|
||||
}
|
||||
|
||||
.expense-query-record-list,
|
||||
|
||||
Reference in New Issue
Block a user