feat: 新增预算费控模型与报销审批流引擎
后端新增预算费控服务和报销单审批流模块,引入申请人费用画像 算法,优化知识库 RAG 运行时和同步逻辑,完善报销单工作流常 量和明细同步,更新差旅报销规则电子表格,前端新增预算分析 组件和数字员工模型,完善审批对话框和洞察面板交互,优化侧 边栏和顶栏样式,补充单元测试。
This commit is contained in:
@@ -506,6 +506,29 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:global(.rail-tooltip-popper) {
|
||||
max-width: 180px;
|
||||
padding: 7px 10px !important;
|
||||
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22) !important;
|
||||
border-radius: 4px !important;
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
color: #1f2937 !important;
|
||||
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
:global(.rail-tooltip-popper.el-popper.is-light) {
|
||||
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22) !important;
|
||||
}
|
||||
|
||||
:global(.rail-tooltip-popper .el-popper__arrow::before) {
|
||||
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22) !important;
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
}
|
||||
|
||||
@keyframes railUserMenuIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
|
||||
@@ -270,6 +270,12 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.detail-alert-pill.neutral {
|
||||
border-color: #d7e0ea;
|
||||
background: #f8fafc;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.detail-alert-pill.success {
|
||||
border-color: var(--success-line);
|
||||
background: var(--success-soft);
|
||||
|
||||
@@ -508,3 +508,17 @@
|
||||
max-height: min(34dvh, 360px);
|
||||
}
|
||||
}
|
||||
|
||||
.review-insight-title-copy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.review-insight-title-copy .title-icon {
|
||||
font-size: 20px;
|
||||
color: var(--theme-primary, #3a7ca5);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
210
web/src/assets/styles/detail-page-corners.css
Normal file
210
web/src/assets/styles/detail-page-corners.css
Normal file
@@ -0,0 +1,210 @@
|
||||
:root {
|
||||
--enterprise-detail-radius: 4px;
|
||||
}
|
||||
|
||||
.approval-page.approval-page .approval-detail :is(
|
||||
.detail-hero,
|
||||
.progress-card,
|
||||
.detail-card,
|
||||
.detail-side-card,
|
||||
.detail-note,
|
||||
.detail-note-editor textarea,
|
||||
.detail-expense-table,
|
||||
.detail-attachment,
|
||||
.risk-list,
|
||||
.application-detail-fact,
|
||||
.application-budget-analysis__state,
|
||||
.application-budget-analysis__metrics article,
|
||||
.application-budget-analysis__summary,
|
||||
.application-budget-analysis__lists > div,
|
||||
.application-leader-opinion,
|
||||
.application-leader-opinion-event,
|
||||
.draft-blocking-note,
|
||||
.draft-blocking-issue,
|
||||
.expense-file-chip,
|
||||
.expense-editor-panel,
|
||||
.expense-editor-grid input,
|
||||
.expense-editor-grid select,
|
||||
.expense-total-under-table,
|
||||
.attachment-insight-pane,
|
||||
.attachment-source-pane,
|
||||
.attachment-preview-card,
|
||||
.attachment-preview-nav,
|
||||
.attachment-preview-close,
|
||||
.attachment-preview-alert,
|
||||
.attachment-preview-action,
|
||||
.attachment-preview-empty,
|
||||
.attachment-risk-card,
|
||||
.attachment-insight-section,
|
||||
.risk-summary-card,
|
||||
.risk-detail-card,
|
||||
.risk-advice-card,
|
||||
.risk-advice-meta > div,
|
||||
.risk-override-card,
|
||||
.risk-override-nav-btn,
|
||||
.system-row-lock,
|
||||
.system-attachment-note,
|
||||
.submit-confirm-summary,
|
||||
.smart-entry-btn,
|
||||
.icon-action,
|
||||
.inline-action
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.approval-page.approval-page .ai-entry-modal :is(
|
||||
.detail-modal,
|
||||
.modal-card,
|
||||
.close-btn,
|
||||
.ai-chat-card,
|
||||
.ai-preview-card,
|
||||
.ai-chat-content,
|
||||
.ai-composer,
|
||||
.ai-composer-surface,
|
||||
.ai-tool-btn,
|
||||
.ai-upload-btn,
|
||||
.ai-send-btn,
|
||||
.preview-field,
|
||||
.preview-empty,
|
||||
.ai-preview-secondary,
|
||||
.ai-preview-primary,
|
||||
.modal-action
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.approval-page.approval-page :is(
|
||||
.approval-opinion-field textarea,
|
||||
.return-reason-option,
|
||||
.return-reason-section textarea
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.log-detail-page.log-detail-page :is(
|
||||
.detail-state,
|
||||
.detail-state button,
|
||||
.detail-hero,
|
||||
.refresh-btn,
|
||||
.detail-card,
|
||||
.info-grid > div,
|
||||
.feedback-grid > div,
|
||||
.trace-step,
|
||||
.code-block,
|
||||
.inline-empty,
|
||||
.detail-actions button,
|
||||
.knowledge-ingest-panel,
|
||||
.ingest-run-info,
|
||||
.info-item,
|
||||
.run-info-card,
|
||||
.run-stat-card,
|
||||
.graph-search,
|
||||
.graph-toolbar button,
|
||||
.graph-theater,
|
||||
.graph-stage,
|
||||
.graph-toolbar,
|
||||
.graph-inspector,
|
||||
.node-facts > div,
|
||||
.node-meta,
|
||||
.node-detail-panel,
|
||||
.detail-section,
|
||||
.evidence-document,
|
||||
.evidence-chunk,
|
||||
.evidence-empty,
|
||||
.node-evidence-card,
|
||||
.relation-detail-list button,
|
||||
.detail-empty
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.skill-detail.skill-detail :is(
|
||||
.detail-hero,
|
||||
.detail-inline-state,
|
||||
.detail-loading-state,
|
||||
.review-note-block,
|
||||
.hero-stat,
|
||||
.detail-card,
|
||||
.side-card,
|
||||
.field input,
|
||||
.field textarea,
|
||||
.prompt-block textarea,
|
||||
.json-editor,
|
||||
.markdown-editor,
|
||||
.spreadsheet-editor-shell,
|
||||
.spreadsheet-workbench,
|
||||
.spreadsheet-change-center,
|
||||
.version-pair-card,
|
||||
.change-center-item,
|
||||
.change-record-preview,
|
||||
.spreadsheet-meta-strip span,
|
||||
.json-risk-editor-shell,
|
||||
.json-risk-generation-failure,
|
||||
.json-risk-meta-item,
|
||||
.json-risk-description-text,
|
||||
.json-risk-description-source,
|
||||
.json-risk-flow-card,
|
||||
.diagram-zoom-controls,
|
||||
.rule-spreadsheet-stage,
|
||||
.compare-panel,
|
||||
.compare-summary-grid article,
|
||||
.compare-sheet-list article,
|
||||
.change-detail-meta article,
|
||||
.compare-sheet-list span,
|
||||
.compare-table-wrap,
|
||||
.subtle-banner,
|
||||
.preview-mode-note,
|
||||
.prompt-block,
|
||||
.contract-panel,
|
||||
.version-row,
|
||||
.version-modal-summary div,
|
||||
.version-modal-note,
|
||||
.review-submit-test-state,
|
||||
.risk-rule-action-confirm,
|
||||
.risk-rule-action-note,
|
||||
.risk-rule-action-note textarea,
|
||||
.review-submit-form input:not([type='checkbox']),
|
||||
.review-submit-form select,
|
||||
.review-submit-form textarea,
|
||||
.review-submit-hint,
|
||||
.publish-summary,
|
||||
.empty-side-note,
|
||||
.back-action,
|
||||
.minor-action,
|
||||
.major-action,
|
||||
.mini-btn,
|
||||
.risk-level-menu,
|
||||
.risk-level-option
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.skill-detail.skill-detail .rule-drawer-backdrop :is(
|
||||
.rule-drawer,
|
||||
.rule-drawer-state,
|
||||
.change-detail-meta article,
|
||||
.compare-panel,
|
||||
.compare-sheet-list span,
|
||||
.compare-table-wrap
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
|
||||
.employee-center.employee-center .employee-detail :is(
|
||||
.detail-hero,
|
||||
.hero-profile,
|
||||
.hero-tag,
|
||||
.hero-stat,
|
||||
.detail-card,
|
||||
.side-card,
|
||||
.history-row,
|
||||
.field input,
|
||||
.field textarea,
|
||||
.role-option,
|
||||
.sync-card,
|
||||
.permission-pill,
|
||||
.detail-actions button,
|
||||
.detail-action-group
|
||||
) {
|
||||
border-radius: var(--enterprise-detail-radius);
|
||||
}
|
||||
@@ -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