feat: 优化差旅报销预审流程与个人工作台 UI 体系

- 完善 user_agent_application 申请差旅报销预审槽位与消息组装
- 增强预算助理报告与风险建议卡片交互
- 重构登录页视觉样式与移动端响应式适配
- 优化个人工作台、文档中心、政策中心、员工管理等页面布局
- 拆分 travelRequestDetailPreReviewModel 为 advice/submit 模型
- 补充报销草稿、风险复核、Item Sync 与模板执行器测试覆盖
This commit is contained in:
caoxiaozhu
2026-06-02 14:01:51 +08:00
parent 92444e7eae
commit ca691f3ee0
107 changed files with 5663 additions and 1542 deletions

View File

@@ -317,41 +317,75 @@
}
@media (max-width: 760px) {
:global(.assistant-el-overlay .el-overlay-dialog) {
height: 100dvh;
max-height: 100dvh;
padding: 0;
}
:global(.assistant-el-dialog.el-dialog.is-fullscreen) {
border-radius: 0;
padding: 0;
}
.assistant-overlay {
--assistant-viewport-inset: 10px;
--assistant-viewport-inset: 0;
}
:global(.assistant-el-overlay) {
--assistant-viewport-inset: 10px;
--assistant-viewport-inset: 0;
}
.assistant-modal,
.assistant-modal-stage {
border-radius: 4px;
width: 100%;
height: 100%;
min-height: 0;
max-height: 100%;
border-radius: 0;
}
.assistant-modal-stage {
height: 100dvh;
max-height: 100dvh;
border: 0;
box-shadow: none;
background: #f6f9fc;
}
.assistant-header {
padding: 18px 18px 16px;
align-items: flex-start;
flex-direction: column;
min-height: 58px;
padding: calc(10px + env(safe-area-inset-top, 0px)) 138px 10px 12px;
align-items: center;
flex-direction: row;
border-bottom: 1px solid #e5edf5;
}
.assistant-header-actions {
top: 18px;
right: 18px;
gap: 10px;
top: calc(9px + env(safe-area-inset-top, 0px));
right: 10px;
gap: 6px;
width: auto;
justify-content: space-between;
justify-content: flex-end;
}
.assistant-toggle-btn,
.session-trash-btn,
.assistant-close-btn,
.close-btn {
width: 40px;
height: 40px;
width: 38px;
height: 38px;
border-radius: 4px;
font-size: 15px;
}
.assistant-title {
font-size: 16px;
line-height: 1.25;
}
.assistant-subtitle {
display: none;
}
.flow-step-card header {
@@ -359,16 +393,87 @@
}
.assistant-layout {
padding: 14px;
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0;
padding: 0;
overflow: hidden;
}
.dialog-panel {
border: 0;
border-radius: 0;
box-shadow: none;
}
.insight-panel-shell {
position: absolute;
inset: 0;
z-index: 70;
width: 100%;
max-height: none;
margin-left: 0;
transform: translateX(100%);
pointer-events: none;
transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.assistant-layout.has-insight .insight-panel-shell {
transform: translateX(0);
pointer-events: auto;
}
.insight-panel-shell.collapsed {
width: 100%;
transform: translateX(100%);
}
.insight-panel {
border-radius: 0;
}
.composer-row {
display: grid;
grid-template-columns: minmax(0, 1fr) var(--composer-control-size, 40px);
align-items: end;
gap: 8px;
--composer-control-size: 40px;
}
.composer-leading-actions {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
width: 100%;
}
.composer-leading-actions .composer-side-btn,
.composer-leading-actions .tool-btn {
width: 100%;
}
.composer-date-anchor,
.travel-calculator-anchor {
min-width: 0;
}
.composer-row .composer-shell {
min-width: 0;
}
.composer-shell-body {
align-items: flex-start;
padding: 6px 10px;
}
.composer-shell textarea {
min-height: 32px;
flex-basis: 100%;
min-height: 40px;
max-height: 104px;
padding: 8px 2px;
line-height: 20px;
}
.travel-calculator-form {
@@ -376,20 +481,87 @@
}
.dialog-toolbar {
padding: 16px 16px 12px;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 8px;
padding: 8px 10px;
overflow: visible;
}
.dialog-toolbar-label {
min-width: 0;
}
.shortcut-chip-wrap {
width: 100%;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
overflow: visible;
}
.shortcut-chip {
width: 100%;
min-width: 0;
justify-content: center;
}
.shortcut-chip span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.message-list {
padding: 16px;
padding: 12px 10px;
gap: 10px;
}
.message-avatar {
width: 32px;
height: 32px;
}
.message-bubble {
max-width: 100%;
padding: 10px 12px;
}
.message-suggested-actions {
grid-template-columns: 1fr;
}
.composer {
padding: 0 16px 16px;
gap: 8px;
padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid #e5edf5;
background: #fff;
}
.composer-files-panel {
max-height: 30dvh;
overflow-y: auto;
padding: 10px;
}
.composer-date-popover,
.travel-calculator-popover {
position: fixed;
left: 10px;
right: 10px;
bottom: calc(150px + env(safe-area-inset-bottom, 0px));
width: auto;
max-height: min(58dvh, 420px);
overflow-y: auto;
}
.composer-date-fields-range {
grid-template-columns: 1fr;
}
.composer-date-range-sep {
display: none;
}
.composer-files-head,