fix(regulatory-info-package): 使用干净字段模板生成材料包

This commit is contained in:
2026-06-10 20:23:06 +08:00
parent b728703e67
commit cf4f4456c4
12 changed files with 367 additions and 24 deletions

View File

@@ -39,7 +39,12 @@ def _generate_one(
actual_format = actual_path.suffix.lower().lstrip(".")
highlight_count = missing_count = llm_only_count = 0
else:
highlight_count, missing_count, llm_only_count = write_docx_from_template(template_path, output_path, merged_fields)
highlight_count, missing_count, llm_only_count = write_docx_from_template(
template_path,
output_path,
merged_fields,
template_code=spec.code,
)
actual_path = output_path
actual_format = "docx"
status = "success"