feat: 新增预算费控模型与报销审批流引擎
后端新增预算费控服务和报销单审批流模块,引入申请人费用画像 算法,优化知识库 RAG 运行时和同步逻辑,完善报销单工作流常 量和明细同步,更新差旅报销规则电子表格,前端新增预算分析 组件和数字员工模型,完善审批对话框和洞察面板交互,优化侧 边栏和顶栏样式,补充单元测试。
This commit is contained in:
@@ -420,7 +420,7 @@
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
min-width: 1320px;
|
||||
min-width: 1420px;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
}
|
||||
@@ -429,8 +429,9 @@ table {
|
||||
.col-created { width: 10%; }
|
||||
.col-stay { width: 9%; }
|
||||
.col-doc-type { width: 9%; }
|
||||
.col-scene { width: 10%; }
|
||||
.col-title { width: 18%; }
|
||||
.col-scene { width: 9%; }
|
||||
.col-initiator { width: 8%; }
|
||||
.col-title { width: 16%; }
|
||||
.col-amount { width: 9%; }
|
||||
.col-node { width: 12%; }
|
||||
.col-status { width: 8%; }
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
}
|
||||
|
||||
.console-toolbar {
|
||||
--logs-filter-control-height: 38px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(138px, 0.7fr)) auto;
|
||||
gap: 10px;
|
||||
@@ -103,9 +104,9 @@
|
||||
}
|
||||
|
||||
.field-input {
|
||||
min-height: 38px;
|
||||
min-height: var(--logs-filter-control-height);
|
||||
border: 1px solid #d8e1eb;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -130,10 +131,38 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.console-toolbar :deep(.enterprise-select) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.console-toolbar :deep(.el-select__wrapper) {
|
||||
min-height: var(--logs-filter-control-height);
|
||||
height: var(--logs-filter-control-height);
|
||||
padding: 0 12px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px #d8e1eb inset;
|
||||
}
|
||||
|
||||
.console-toolbar :deep(.el-select__wrapper:hover) {
|
||||
box-shadow: 0 0 0 1px #b8c2d2 inset;
|
||||
}
|
||||
|
||||
.console-toolbar :deep(.el-select__wrapper.is-focused) {
|
||||
box-shadow:
|
||||
0 0 0 1px var(--theme-primary) inset,
|
||||
0 0 0 3px var(--theme-focus-ring);
|
||||
}
|
||||
|
||||
.console-toolbar :deep(.el-select__placeholder),
|
||||
.console-toolbar :deep(.el-select__selected-item) {
|
||||
font-size: 13px;
|
||||
line-height: var(--logs-filter-control-height);
|
||||
}
|
||||
|
||||
.toolbar-btn {
|
||||
min-height: 38px;
|
||||
min-height: var(--logs-filter-control-height);
|
||||
padding: 0 14px;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #d8e1eb;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
.panel-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.panel-title h2,
|
||||
.preview-head h2 {
|
||||
@@ -86,9 +86,17 @@
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.file-search input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.file-search input:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.panel-tools {
|
||||
min-width: min(470px, 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.library-body {
|
||||
min-height: 0;
|
||||
@@ -101,11 +109,11 @@
|
||||
.folder-rail {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
border-right: 1px solid #edf2f7;
|
||||
padding-right: 12px;
|
||||
}
|
||||
border-right: 1px solid #edf2f7;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.folder-tree {
|
||||
min-height: 0;
|
||||
@@ -148,45 +156,38 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.folder-sync-block {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.new-folder-btn {
|
||||
.knowledge-sync-btn {
|
||||
min-height: 36px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
border: 1px solid rgba(var(--theme-primary-rgb), .28);
|
||||
border-radius: 8px;
|
||||
background: var(--theme-primary-light-9);
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.new-folder-btn.fixed {
|
||||
border-color: rgba(148, 163, 184, 0.3);
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.knowledge-sync-btn:not(:disabled) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid #1d4ed8;
|
||||
border-radius: 8px;
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
|
||||
cursor: pointer;
|
||||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.knowledge-sync-btn:not(:disabled):hover {
|
||||
border-color: rgba(var(--theme-primary-rgb), 0.38);
|
||||
background: var(--theme-primary-light-9);
|
||||
color: var(--theme-primary-active);
|
||||
.knowledge-sync-btn:hover:not(:disabled) {
|
||||
border-color: #1e40af;
|
||||
background: #1d4ed8;
|
||||
box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.folder-sync-meta {
|
||||
.knowledge-sync-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
border-color: #cbd5e1;
|
||||
background: #e2e8f0;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.document-area {
|
||||
@@ -1179,6 +1180,12 @@ th {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.panel-tools,
|
||||
.file-search,
|
||||
.knowledge-sync-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.summary-grid,
|
||||
.list-foot {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
@@ -99,7 +99,8 @@
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.field input {
|
||||
.field input,
|
||||
.field :deep(.el-select__wrapper) {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
padding: 0 14px;
|
||||
@@ -116,7 +117,8 @@
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.field input:focus {
|
||||
.field input:focus,
|
||||
.field :deep(.el-select__wrapper.is-focused) {
|
||||
outline: none;
|
||||
border-color: var(--theme-primary);
|
||||
box-shadow: 0 0 0 3px var(--theme-focus-ring);
|
||||
|
||||
Reference in New Issue
Block a user