feat: 新增员工行为画像算法与费用风险标签体系
后端新增员工行为画像算法模块,支持标签规则引擎和评分计算, 完善员工模型、银行信息、序列化和导入逻辑,优化报销审批流 和工作流常量,增强 Hermes 同步和知识同步能力,前端新增费 用画像详情弹窗、雷达图和风险卡片组件,完善登录页和工作台 样式,优化文档中心和归档中心交互,补充单元测试。
This commit is contained in:
@@ -59,6 +59,9 @@ def test_import_employees_rejects_invalid_row_without_writing() -> None:
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"在职",
|
||||
"user",
|
||||
]
|
||||
@@ -98,6 +101,9 @@ def test_import_employees_updates_existing_employee() -> None:
|
||||
"",
|
||||
"华东财务组",
|
||||
"CC-TEST",
|
||||
"导入户名",
|
||||
"招商银行上海分行",
|
||||
"622588000000000002",
|
||||
"在职",
|
||||
"user",
|
||||
]
|
||||
@@ -112,6 +118,9 @@ def test_import_employees_updates_existing_employee() -> None:
|
||||
assert updated is not None
|
||||
assert updated.name == new_name
|
||||
assert updated.phone == "13900000001"
|
||||
assert updated.bankAccountName == "导入户名"
|
||||
assert updated.bankName == "招商银行上海分行"
|
||||
assert updated.bankAccountNo == "622588000000000002"
|
||||
|
||||
|
||||
def test_import_employees_creates_new_employee() -> None:
|
||||
@@ -136,6 +145,9 @@ def test_import_employees_creates_new_employee() -> None:
|
||||
"E10234",
|
||||
"华东财务组",
|
||||
"CC-9001",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"在职",
|
||||
"user",
|
||||
]
|
||||
@@ -151,3 +163,6 @@ def test_import_employees_creates_new_employee() -> None:
|
||||
).scalar_one()
|
||||
assert imported.name == "导入新员工"
|
||||
assert imported.email == "import.new.user@xfinance.com"
|
||||
assert imported.bank_account_name == "导入新员工"
|
||||
assert imported.bank_name
|
||||
assert imported.bank_account_no
|
||||
|
||||
Reference in New Issue
Block a user