Files
X-Financial/server/rules/risk-rules/risk.application.large_expense_without_preapproval.json

261 lines
6.5 KiB
JSON
Raw Normal View History

{
"schema_version": "2.0",
"rule_code": "risk.application.large_expense_without_preapproval",
"name": "通用大额费用无前置申请",
"description": "非业务招待、非办公用品的通用费用超过 2000 元且缺少关联费用申请。",
"enabled": true,
"requires_attachment": false,
"risk_dimension": "expense_control_demo",
"risk_category": "申请前置",
"ontology_signal": "application_required",
"evaluator": "template_rule",
"template_key": "composite_rule_v1",
"finance_rule_code": "expense.preapproval.policy",
"finance_rule_sheet": "费用申请审批规则",
"basic_rule_code": "expense.preapproval.policy",
"basic_rule_sheet": "费用申请审批规则",
"business_stage": [
"reimbursement"
],
"expense_types": [
"all"
],
"budget_required": true,
"applies_to": {
"domains": [
"expense"
],
"expense_types": [
"all"
],
"business_stages": [
"reimbursement"
]
},
"inputs": {
"fields": [
{
"key": "claim.amount",
"label": "报销金额",
"type": "number",
"source": "claim"
},
{
"key": "claim.expense_type",
"label": "费用类型",
"type": "enum",
"source": "claim"
},
{
"key": "claim.department_name",
"label": "部门",
"type": "text",
"source": "claim"
},
{
"key": "claim.reason",
"label": "事由",
"type": "text",
"source": "claim"
},
{
"key": "item.item_reason",
"label": "明细事由",
"type": "text",
"source": "item"
},
{
"key": "application.id",
"label": "申请单ID",
"type": "text",
"source": "application"
},
{
"key": "application.claim_no",
"label": "申请单号",
"type": "text",
"source": "application"
},
{
"key": "application.status",
"label": "申请状态",
"type": "enum",
"source": "application"
},
{
"key": "application.approved_amount",
"label": "申请审批金额",
"type": "number",
"source": "application"
},
{
"key": "application.expense_type",
"label": "申请费用类型",
"type": "enum",
"source": "application"
},
{
"key": "application.department_name",
"label": "申请部门",
"type": "text",
"source": "application"
}
]
},
"params": {
"template_key": "composite_rule_v1",
"semantic_type": "preapproval_required_amount_threshold",
"field_keys": [
"claim.amount",
"claim.expense_type",
"claim.department_name",
"claim.reason",
"item.item_reason",
"application.id",
"application.claim_no",
"application.status",
"application.approved_amount",
"application.expense_type",
"application.department_name"
],
"conditions": [
{
"id": "amount_exceeds_preapproval_threshold",
"operator": "numeric_compare",
"left_fields": [
"claim.amount"
],
"threshold": 2000,
"compare": "gt"
},
{
"id": "application_present",
"operator": "exists_any",
"fields": [
"application.id",
"application.claim_no"
]
},
{
"id": "not_specific_preapproval_type",
"operator": "not_contains_any",
"fields": [
"claim.expense_type"
],
"keywords": [
"meal",
"entertainment",
"office",
"业务招待",
"招待",
"办公用品",
"办公"
]
}
],
"hit_logic": {
"all": [
"amount_exceeds_preapproval_threshold",
{
"not": "application_present"
},
"not_specific_preapproval_type"
]
},
"formula": "amount > threshold AND NOT hasApplication",
"condition_summary": "非业务招待、非办公用品的通用费用超过 2000 元且未关联费用申请时触发。",
"message_template": "通用大额费用超过 2000 元但未找到关联费用申请,请补充前置申请或审批说明。",
"finance_rule_code": "expense.preapproval.policy",
"finance_rule_sheet": "费用申请审批规则",
"basic_rule_code": "expense.preapproval.policy",
"basic_rule_sheet": "费用申请审批规则",
"business_stage": [
"reimbursement"
],
"expense_types": [
"all"
],
"budget_required": true,
"threshold_amount": 2000,
"rule_ir": {
"facts": [
{
"id": "A",
"label": "报销金额",
"fields": [
"claim.amount"
]
},
{
"id": "B",
"label": "关联申请",
"fields": [
"application.id",
"application.claim_no"
]
}
],
"hit_logic": "A > threshold AND NOT EXISTS(B)"
},
"basic_rule_refs": [
{
"code": "expense.preapproval.policy",
"sheet": "费用申请审批规则",
"name": "公司费用申请审批规则",
"component": "preapproval"
}
]
},
"outcomes": {
"pass": {
"severity": "none",
"action": "continue"
},
"fail": {
"severity": "high",
"action": "manual_review",
"risk_score": 86
}
},
"metadata": {
"owner": "财务制度管理组",
"stability": "platform",
"source_ref": "公司费用申请审批规则",
"created_at": "2026-06-05T00:00:00+08:00",
"created_by": "system",
"risk_score": 86,
"risk_level": "high",
"rule_title": "通用大额费用无前置申请",
"finance_rule_code": "expense.preapproval.policy",
"finance_rule_sheet": "费用申请审批规则",
"basic_rule_code": "expense.preapproval.policy",
"basic_rule_sheet": "费用申请审批规则",
"business_stage": [
"reimbursement"
],
"expense_types": [
"all"
],
"budget_required": true,
"basic_rule_refs": [
{
"code": "expense.preapproval.policy",
"sheet": "费用申请审批规则",
"name": "公司费用申请审批规则",
"component": "preapproval"
}
]
},
"severity": "high",
"risk_score": 86,
"risk_level": "high",
"basic_rule_refs": [
{
"code": "expense.preapproval.policy",
"sheet": "费用申请审批规则",
"name": "公司费用申请审批规则",
"component": "preapproval"
}
]
}