From c339fdcd9b11f5e8ebb2c880c80afe3b63e65a5a Mon Sep 17 00:00:00 2001 From: liubiren Date: Mon, 1 Dec 2025 18:44:58 +0800 Subject: [PATCH] =?UTF-8?q?251201=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 普康健康自动化/main.py | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/普康健康自动化/main.py b/普康健康自动化/main.py index edceb61..02fa533 100644 --- a/普康健康自动化/main.py +++ b/普康健康自动化/main.py @@ -1146,29 +1146,18 @@ if __name__ == "__main__": # 加载赔案档案模版 template = environment.get_template("template.html") - # 遍历工作目录中赔案目录 + # 遍历工作目录中赔案目录,根据赔案创建赔案档案 for case_path in [ case_path for case_path in directory_path.iterdir() if case_path.is_dir() ]: - # 初始化赔案档案 + # 初始化赔案档案(简化版本) dossier = { - "影像件层": [], - "赔案层": { - "赔案编号": ( - case_number := case_path.stem - ), # 假设赔案已签收,系统已生成赔案编号并根据签收时填报保单编号可知保险总公司、保险分公司和投保公司 - "签收保单编号": "3291120243205000000002", - "保险总公司": "中银保险有限公司", - "保险分公司": None, # 实验阶段保险分公司、投保公司和申请时间为NONE - "投保公司": None, - "申请时间": None, - "申请人信息": {}, - "受益人信息": {}, - "被保人信息": {}, # 实验阶段被保人信息为空字典 - "其它信息": {}, + "报案层": { + "保险分公司": "中银保险有限公司广东分公司", + "赔案号": (case_number := case_path.stem), # 设定:赔案目录名称为赔案号 }, - "费项层": [], + "影像件层": [], } # 遍历赔案目录中影像件地址