重构 expense_claims 服务模块结构并优化差旅票据审核逻辑, 增强用户代理服务的票据类型识别,前端报销创建页面拆分为 附件模型和会话模型模块,重构提交编排器和草稿关联确认流 程,更新知识库索引,补充单元测试。
82 lines
3.5 KiB
JSON
82 lines
3.5 KiB
JSON
{
|
||
"file_name": "酒店2.jpg",
|
||
"storage_key": "5544b2a0-a6f5-4ef8-b5b6-c1ac1b03772f/07085673-a7df-4622-abb7-12f6552c780d/酒店2.jpg",
|
||
"media_type": "image/jpeg",
|
||
"size_bytes": 156877,
|
||
"uploaded_at": "2026-05-21T14:19:49.450265+00:00",
|
||
"previewable": true,
|
||
"preview_kind": "image",
|
||
"preview_storage_key": "5544b2a0-a6f5-4ef8-b5b6-c1ac1b03772f/07085673-a7df-4622-abb7-12f6552c780d/酒店2.preview.jpg",
|
||
"preview_media_type": "image/jpeg",
|
||
"preview_file_name": "酒店2.preview.jpg",
|
||
"analysis": {
|
||
"severity": "pass",
|
||
"label": "AI提示符合条件",
|
||
"headline": "AI提示:附件符合基础校验条件",
|
||
"summary": "已识别到票据类型和关键字段,且符合当前费用场景的附件要求。",
|
||
"points": [
|
||
"票据类型:已识别为酒店住宿票据。",
|
||
"附件类型要求:当前费用项目为住宿票,已识别为酒店住宿票据。",
|
||
"金额字段:已识别到与当前明细接近的金额 2400.00 元。"
|
||
],
|
||
"suggestion": "建议继续核对报销分类、费用说明和业务场景是否一致。"
|
||
},
|
||
"document_info": {
|
||
"document_type": "hotel_invoice",
|
||
"document_type_label": "酒店住宿票据",
|
||
"scene_code": "hotel",
|
||
"scene_label": "住宿票据",
|
||
"fields": [
|
||
{
|
||
"key": "amount",
|
||
"label": "金额",
|
||
"value": "2400元"
|
||
},
|
||
{
|
||
"key": "date",
|
||
"label": "日期",
|
||
"value": "2026-02-23"
|
||
},
|
||
{
|
||
"key": "merchant_name",
|
||
"label": "商户",
|
||
"value": "上海喜来登酒店"
|
||
},
|
||
{
|
||
"key": "invoice_number",
|
||
"label": "票据号码",
|
||
"value": "SH-SAMPLE-20260223-003"
|
||
}
|
||
]
|
||
},
|
||
"requirement_check": {
|
||
"matches": true,
|
||
"current_expense_type": "hotel_ticket",
|
||
"current_expense_type_label": "住宿票",
|
||
"allowed_scene_labels": [],
|
||
"allowed_document_type_labels": [],
|
||
"recognized_scene_code": "hotel",
|
||
"recognized_scene_label": "住宿票据",
|
||
"recognized_document_type": "hotel_invoice",
|
||
"recognized_document_type_label": "酒店住宿票据",
|
||
"mismatch_severity": "high",
|
||
"rule_code": "rule.expense.scene_submission_standard",
|
||
"rule_name": "报销场景提交与附件标准",
|
||
"message": "当前费用项目为住宿票,已识别为酒店住宿票据。"
|
||
},
|
||
"ocr_status": "recognized",
|
||
"ocr_error": "",
|
||
"ocr_text": "上海喜来登酒店(样例)\n住宿消费明细单\n单号:SH-SAMPLE-20260223-003\n出单期:2026年2月23\n宾客姓名:\n曹笑竹\n房间类型:豪华床房\n入住日期:\n2026年2月20日\n住晚数: 3晚\n离店期: 2026年223日\n付款式: 现/信卡/其他\n日期\n项目\n计费说明\n单价\n数量\n金额\n2026年2月20日\n至\n住宿费\n豪华大床房\n¥800/晚\n3\n¥2400\n2026年2月22日\n额写:贰仟肆佰元整\n合计:¥2400\n温馨提示:如您对以上账单有任何疑问,请在离店后7天内与酒店联系,感谢您的理解与支持。\n酒店联系式:上海喜来登酒店\n地址:上海市浦东新区银城中路88号 电话:021-12345678\n样例票据|仅供系统测试|无效凭证",
|
||
"ocr_summary": "上海喜来登酒店(样例);住宿消费明细单;单号:SH-SAMPLE-20260223-003",
|
||
"ocr_avg_score": 0.9784442763775587,
|
||
"ocr_line_count": 32,
|
||
"ocr_classification_source": "rule",
|
||
"ocr_classification_confidence": 0.84,
|
||
"ocr_classification_evidence": [
|
||
"住宿",
|
||
"入住",
|
||
"离店",
|
||
"酒店"
|
||
],
|
||
"ocr_warnings": []
|
||
} |