feat: 新增员工行为画像算法与费用风险标签体系

后端新增员工行为画像算法模块,支持标签规则引擎和评分计算,
完善员工模型、银行信息、序列化和导入逻辑,优化报销审批流
和工作流常量,增强 Hermes 同步和知识同步能力,前端新增费
用画像详情弹窗、雷达图和风险卡片组件,完善登录页和工作台
样式,优化文档中心和归档中心交互,补充单元测试。
This commit is contained in:
caoxiaozhu
2026-05-28 12:09:49 +08:00
parent 04cd6d0f81
commit 8a4a777be7
96 changed files with 9835 additions and 704 deletions

View File

@@ -485,6 +485,13 @@
</div>
</article>
<EmployeeProfileRiskCard
v-if="showEmployeeRiskProfile"
:profile="employeeRiskProfile"
:loading="employeeRiskProfileLoading"
:error="employeeRiskProfileError"
/>
</section>
</div>
</div>
@@ -504,7 +511,7 @@
{{ submitBusy ? '提交中' : '提交审批' }}
</button>
</div>
<div v-else-if="canReturnRequest || canApproveRequest || canDeleteRequest" class="approval-action-group" aria-label="单据管理操作">
<div v-else-if="canReturnRequest || canApproveRequest || canPayRequest || canDeleteRequest" class="approval-action-group" aria-label="单据管理操作">
<button
v-if="canReturnRequest"
class="return-action"
@@ -525,6 +532,16 @@
<i class="mdi mdi-check-circle-outline"></i>
{{ approveBusy ? approveBusyLabel : approveActionLabel }}
</button>
<button
v-if="canPayRequest"
class="approve-action"
type="button"
:disabled="actionBusy"
@click="handlePayRequest"
>
<i class="mdi mdi-cash-check"></i>
{{ payBusy ? '付款中' : '确认付款' }}
</button>
<button
v-if="canDeleteRequest"
class="reject-action"
@@ -774,6 +791,22 @@
@confirm="confirmApproveRequest"
/>
<ConfirmDialog
:open="payConfirmDialogOpen"
badge="付款确认"
badge-tone="warning"
:title="`确认 ${request.id} 已付款吗?`"
description="确认后该报销单会进入已付款状态,并汇总到归档视图。"
cancel-text="返回核对"
confirm-text="确认已付款"
busy-text="付款中..."
confirm-tone="primary"
confirm-icon="mdi mdi-cash-check"
:busy="payBusy"
@close="closePayConfirmDialog"
@confirm="confirmPayRequest"
/>
<TravelRequestReturnDialog
:open="returnDialogOpen"
:title="`确认退回 ${request.id} 吗?`"