feat: 持久化资料包导出记录与列表摘要

This commit is contained in:
2026-06-04 02:41:49 +08:00
parent 0e49466746
commit ab3d520642
9 changed files with 250 additions and 8 deletions

View File

@@ -67,11 +67,13 @@
<th>文件数</th>
<th>页数</th>
<th>状态</th>
<th>最近导出</th>
<th>章节点概览</th>
</tr>
</thead>
<tbody>
{% for batch in batches %}
{% for row in batch_rows %}
{% with batch=row.batch latest_export=row.latest_export %}
<tr>
<td class="nowrap">{{ batch.batch_id }}</td>
<td>{{ batch.product_name|default:"未识别产品名称" }}</td>
@@ -89,6 +91,14 @@
{{ batch.get_import_status_display_text }}
</span>
</td>
<td class="cell-min-220">
{% if latest_export %}
<div>{{ latest_export.file_name }}</div>
<div class="muted">{{ latest_export.export_mode }} / {{ latest_export.template_version|default:"-" }}</div>
{% else %}
<span class="muted">暂无导出记录</span>
{% endif %}
</td>
<td class="cell-min-280">
{% if batch.chapter_summary %}
{% for chapter in batch.chapter_summary %}
@@ -99,9 +109,10 @@
{% endif %}
</td>
</tr>
{% endwith %}
{% empty %}
<tr>
<td colspan="7">暂无资料包,请先导入申报资料。</td>
<td colspan="8">暂无资料包,请先导入申报资料。</td>
</tr>
{% endfor %}
</tbody>