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

@@ -7,7 +7,8 @@ export const quickPromptItems = [
export const assistantCapabilities = [
{
title: '费用申请助手',
key: 'expense-application',
title: '费用申请',
primary: '智能识别规划',
secondary: '快速创建申请',
icon: 'mdi mdi-file-document-plus-outline',
@@ -15,15 +16,17 @@ export const assistantCapabilities = [
prompt: '帮我新建一笔费用申请,并检查需要补充哪些信息。'
},
{
title: '报销助手',
primary: '票据 OCR 归票',
secondary: '自动价格分摊',
key: 'quick-reimbursement',
title: '快速报销',
primary: '智能报销流程',
secondary: '财务流程简化',
icon: 'mdi mdi-wallet-outline',
tone: 'blue',
prompt: '帮我整理票据并生成一笔可提交的报销单。'
},
{
title: '预算控制助手',
key: 'budget-planning',
title: '预算编制',
primary: '预算查询分析',
secondary: '超标预警提醒',
icon: 'mdi mdi-chart-pie',
@@ -31,7 +34,8 @@ export const assistantCapabilities = [
prompt: '帮我查询本月预算使用情况,并提醒可能超标的费用。'
},
{
title: '审批问答助手',
key: 'quick-approval',
title: '快速审批',
primary: '审批凭证说明',
secondary: '进度实时查询',
icon: 'mdi mdi-clipboard-check-outline',
@@ -39,15 +43,17 @@ export const assistantCapabilities = [
prompt: '帮我查询报销审批进度,并说明当前卡在哪个节点。'
},
{
title: '差旅助手',
primary: '行程预订建议',
secondary: '标准合规校验',
icon: 'mdi mdi-airplane',
key: 'finance-analysis',
title: '财务分析',
primary: '费用结构洞察',
secondary: '趋势对比分析',
icon: 'mdi mdi-chart-line',
tone: 'cyan',
prompt: '帮我检查差旅安排是否符合公司差旅标准。'
prompt: '帮我分析近期费用结构与支出趋势,并给出优化建议。'
},
{
title: '制度知识助手',
key: 'company-policy',
title: '公司制度',
primary: '制度检索解读',
secondary: '政策实时更新',
icon: 'mdi mdi-book-open-page-variant-outline',
@@ -258,3 +264,103 @@ export const usageProfileMetrics = [
tone: 'emerald'
}
]
export const expenseProfileTags = [
{
code: 'ai-heavy-user',
label: 'AI 重度用户',
displayLabel: 'AI 协作活跃',
tone: 'behavior',
score: 86,
reason: '近 30 天 AI 使用 86 次,覆盖报销助手、制度问答和票据整理。'
},
{
code: 'fast-submitter',
label: '极速提单人',
displayLabel: '提单效率高',
tone: 'positive',
score: 82,
reason: '平均提单耗时 12 分钟,明显低于常规人工录入节奏。'
},
{
code: 'clean-precheck',
label: '预审稳定',
displayLabel: '预审通过稳定',
tone: 'positive',
score: 92,
reason: '智能预审通过率 92%,近期补材压力较低。'
},
{
code: 'review-wait',
label: '审核等待偏长',
displayLabel: '审核响应需关注',
tone: 'risk',
score: 64,
reason: '平均审核时长 18.6 小时,仍有压缩空间。'
},
{
code: 'active-operator',
label: '高频操作人',
displayLabel: '操作频率高',
tone: 'behavior',
score: 78,
reason: '近 30 天在申请、查询、补材、AI 问答之间切换频繁。'
}
]
export const expenseProfileRadarDimensions = [
{ code: 'ai_collaboration', label: 'AI 协作', score: 86 },
{ code: 'submit_efficiency', label: '提单效率', score: 82 },
{ code: 'precheck_quality', label: '预审质量', score: 92 },
{ code: 'review_response', label: '审核响应', score: 64 },
{ code: 'material_completeness', label: '材料完整', score: 76 },
{ code: 'expense_rhythm', label: '费用节奏', score: 68 }
]
export const expenseProfileOperations = [
{
id: 'OP-0528-01',
time: '今天 09:42',
action: '上传票据并触发智能识别',
target: '北京市市场调研差旅费',
channel: '报销助手',
status: '识别完成',
tone: 'success'
},
{
id: 'OP-0528-02',
time: '今天 09:51',
action: '发起 AI 预审',
target: 'BX-202605-0031',
channel: '智能预审',
status: '通过',
tone: 'success'
},
{
id: 'OP-0527-03',
time: '昨天 17:18',
action: '查询审批进度',
target: '5月市场活动费用申请',
channel: '个人工作台',
status: '审批中',
tone: 'warning'
},
{
id: 'OP-0527-04',
time: '昨天 14:06',
action: '补充业务事由',
target: '办公用品采购报销单',
channel: '单据详情',
status: '已保存',
tone: 'info'
},
{
id: 'OP-0526-05',
time: '05-26 11:33',
action: '制度问答检索',
target: '差旅住宿标准',
channel: '制度问答',
status: '已回复',
tone: 'muted'
}
]