修改了pdf导出界面

This commit is contained in:
2026-01-12 17:08:09 +08:00
parent dea365977e
commit 4e9b5f5bd0
5 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -25,7 +25,7 @@
<tr class="{% if forloop.parentloop.counter|divisibleby:2 %}bg-gray-100{% else %}bg-white{% endif %}"> <tr class="{% if forloop.parentloop.counter|divisibleby:2 %}bg-gray-100{% else %}bg-white{% endif %}">
{% if forloop.first %} {% if forloop.first %}
<td class="px-6 py-4 whitespace-no-wrap text-left border-b border-gray-200" rowspan="{{ branches|length }}"> <td class="px-6 py-4 whitespace-no-wrap text-left border-b border-gray-200" rowspan="{{ branches|length }}">
{{ province }}{{ branches|length }} {{ province }}
</td> </td>
{% endif %} {% endif %}
<td class="px-6 py-4 whitespace-no-wrap text-left border-b border-gray-200"> <td class="px-6 py-4 whitespace-no-wrap text-left border-b border-gray-200">

View File

@@ -13,7 +13,7 @@ from django.http import HttpResponse
import openpyxl import openpyxl
from reportlab.lib import colors from reportlab.lib import colors
from reportlab.lib.pagesizes import letter from reportlab.lib.pagesizes import letter
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph, Spacer
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
import os import os