feat: 新增风险图谱算法与系统仪表盘及操作反馈体系

后端新增风险图谱算法模块、风险观察与反馈服务、规则 DSL
校验器和可解释性引擎,完善系统仪表盘和财务仪表盘统计,
优化 agent 运行和编排执行链路,清理旧开发文档,前端新增
系统趋势、负载热力图等多种仪表盘图表组件,完善操作反馈
对话框和工作台日期选择器,优化报销创建和审批详情交互,
补充单元测试覆盖。
This commit is contained in:
caoxiaozhu
2026-05-30 15:46:51 +08:00
parent 4c59941ec6
commit 7989f3a159
314 changed files with 30073 additions and 20626 deletions

View File

@@ -11,26 +11,41 @@
.receipt-folder-detail {
min-height: 0;
overflow: hidden;
padding: 16px 18px;
}
.receipt-folder-list {
display: grid;
grid-template-rows: auto auto minmax(0, 1fr) auto;
padding: 16px 18px;
}
.receipt-detail-head,
.receipt-detail-foot,
.receipt-basic-panel header,
.receipt-preview-panel header,
.receipt-folder-list th:first-child,
.receipt-folder-list td:first-child {
text-align: left;
}
.receipt-folder-list td:first-child .doc-id {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.col-file { width: 22%; }
.col-kind { width: 13%; }
.col-scene { width: 13%; }
.col-money { width: 10%; }
.col-date { width: 12%; }
.col-score { width: 10%; }
.col-status { width: 10%; }
.col-updated { width: 14%; }
.receipt-field-list-head {
display: flex;
align-items: center;
}
.receipt-form-grid input,
.receipt-form-grid textarea,
.receipt-field-row input {
.receipt-key-grid input,
.receipt-edit-field-row input {
width: 100%;
border: 1px solid #d7e0ea;
border-radius: 4px;
@@ -40,31 +55,21 @@
transition: border-color 160ms ease, box-shadow 160ms ease;
}
.receipt-form-grid input,
.receipt-field-row input {
.receipt-key-grid input,
.receipt-edit-field-row input {
height: 36px;
padding: 0 10px;
}
.receipt-form-grid textarea {
resize: vertical;
min-height: 78px;
padding: 9px 10px;
line-height: 1.55;
}
.receipt-form-grid input:focus,
.receipt-form-grid textarea:focus,
.receipt-field-row input:focus {
.receipt-key-grid input:focus,
.receipt-edit-field-row input:focus {
border-color: var(--theme-primary);
box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.14);
outline: none;
}
.apply-btn,
.ghost-btn,
.danger-btn,
.back-btn {
.ghost-btn {
min-height: 36px;
display: inline-flex;
align-items: center;
@@ -76,8 +81,7 @@
white-space: nowrap;
}
.ghost-btn,
.back-btn {
.ghost-btn {
padding: 0 13px;
border: 1px solid #d7e0ea;
background: #fff;
@@ -91,68 +95,67 @@
color: #fff;
}
.danger-btn {
padding: 0 14px;
border: 1px solid #dc2626;
background: #dc2626;
color: #fff;
}
.apply-btn:disabled,
.danger-btn:disabled {
.ghost-btn:disabled {
opacity: .55;
cursor: not-allowed;
}
.receipt-folder-detail {
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
grid-template-rows: minmax(0, 1fr) auto;
gap: 12px;
padding: 0;
}
.receipt-detail-head {
gap: 14px;
padding-bottom: 14px;
border-bottom: 1px solid #dbe4ee;
}
.receipt-detail-head h2 {
margin: 4px 0;
color: #0f172a;
font-size: 20px;
line-height: 1.25;
}
.receipt-detail-head p {
margin: 0;
color: #64748b;
font-size: 13px;
}
.assistant-badge {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 0 8px;
border-radius: 4px;
background: #eef6ff;
color: var(--theme-primary-active);
font-size: 12px;
font-weight: 850;
}
.detail-loading {
.receipt-folder-detail :deep(.detail-scroll) {
min-height: 0;
display: grid;
place-items: center;
align-content: start;
gap: 16px;
padding-right: 4px;
overflow: auto;
}
.receipt-detail-layout {
.receipt-folder-detail :deep(.detail-actions) {
margin-top: 10px;
padding-top: 10px;
}
.receipt-folder-detail :deep(.detail-grid) {
min-height: 0;
display: grid;
grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
gap: 16px;
padding: 16px 0;
overflow: hidden;
align-items: stretch;
overflow: visible;
}
.receipt-folder-detail :deep(.detail-main),
.receipt-folder-detail :deep(.detail-side) {
min-height: 0;
display: grid;
}
.receipt-folder-detail :deep(.enterprise-detail-card .card-head) {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.receipt-folder-detail :deep(.enterprise-detail-card .card-head h3) {
margin: 0;
color: #0f172a;
font-size: 15px;
font-weight: 850;
}
.receipt-folder-detail :deep(.enterprise-detail-card .card-head p) {
margin: 4px 0 0;
color: #64748b;
font-size: 12px;
}
.receipt-basic-panel,
@@ -165,67 +168,122 @@
}
.receipt-basic-panel {
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
display: block;
padding: 14px;
overflow-y: auto;
}
.receipt-basic-panel header,
.receipt-preview-panel header,
.receipt-field-list-head {
justify-content: space-between;
gap: 12px;
}
.receipt-basic-panel header strong,
.receipt-preview-panel header strong,
.receipt-field-list-head strong {
color: #0f172a;
font-size: 15px;
}
.receipt-form-grid {
.receipt-field-list-head small {
color: #64748b;
font-size: 12px;
font-weight: 750;
}
.receipt-key-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
}
.receipt-form-grid label {
.receipt-key-field,
.receipt-edit-field-row label {
display: grid;
gap: 6px;
}
.receipt-form-grid label span {
.receipt-key-field span,
.receipt-edit-field-row label span {
color: #64748b;
font-size: 12px;
font-weight: 750;
}
.field-wide {
grid-column: 1 / -1;
.receipt-other-info {
margin-top: 18px;
}
.receipt-field-list {
margin-top: 18px;
.receipt-other-collapse {
border-top: 1px solid #e5edf5;
border-bottom: 0;
}
.receipt-other-collapse :deep(.el-collapse-item__header) {
min-height: 42px;
height: auto;
border-bottom: 1px solid #e5edf5;
background: #fff;
color: #0f172a;
}
.receipt-other-collapse :deep(.el-collapse-item__wrap) {
border-bottom: 0;
}
.receipt-other-collapse :deep(.el-collapse-item__content) {
padding: 12px 0 0;
}
.receipt-collapse-title {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-right: 10px;
}
.receipt-collapse-title strong {
color: #0f172a;
font-size: 15px;
}
.receipt-collapse-title small {
color: #64748b;
font-size: 12px;
font-weight: 750;
}
.receipt-other-scroll {
max-height: 320px;
display: grid;
gap: 10px;
overflow-y: auto;
padding-right: 4px;
}
.receipt-field-row {
.receipt-edit-field-row {
display: grid;
grid-template-columns: minmax(100px, .6fr) minmax(160px, 1fr) 30px;
gap: 8px;
}
.receipt-field-row button {
display: grid;
place-items: center;
border: 1px solid #d7e0ea;
grid-template-columns: minmax(120px, .72fr) minmax(180px, 1.28fr);
gap: 10px;
padding: 10px;
border: 1px solid #e1e8f0;
border-radius: 4px;
background: #fff;
background: #f8fafc;
}
.receipt-field-empty {
min-height: 64px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px dashed #d7e0ea;
border-radius: 4px;
background: #f8fafc;
color: #64748b;
font-size: 13px;
font-weight: 700;
}
.receipt-preview-panel {
@@ -233,20 +291,6 @@
grid-template-rows: auto minmax(0, 1fr);
}
.receipt-preview-panel header {
padding: 14px;
border-bottom: 1px solid #e5edf5;
}
.preview-source-btn {
border: 0;
background: transparent;
color: var(--theme-primary-active);
font-size: 13px;
font-weight: 750;
text-decoration: none;
}
.receipt-preview-box {
min-height: 0;
display: grid;
@@ -281,13 +325,6 @@
font-size: 34px;
}
.receipt-detail-foot {
justify-content: space-between;
gap: 12px;
padding-top: 14px;
border-top: 1px solid #dbe4ee;
}
.associate-step {
display: grid;
gap: 12px;
@@ -350,7 +387,7 @@
}
@media (max-width: 1120px) {
.receipt-detail-layout {
.receipt-folder-detail :deep(.detail-grid) {
grid-template-columns: 1fr;
overflow-y: auto;
}
@@ -361,12 +398,12 @@
}
@media (max-width: 760px) {
.receipt-folder-list,
.receipt-folder-detail {
.receipt-folder-list {
padding: 12px;
}
.receipt-form-grid {
.receipt-key-grid,
.receipt-edit-field-row {
grid-template-columns: 1fr;
}
}