feat: show parcel dimensions in results

This commit is contained in:
2026-10-03 20:11:07 +08:00
parent f25df94f63
commit 6ded8385fa
2 changed files with 11 additions and 2 deletions
+8 -2
View File
@@ -300,9 +300,9 @@ class App:
result_frame = LabelFrame(self.root, text="提交结果", padx=10, pady=5)
result_frame.pack(fill="both", expand=True, padx=10, pady=5)
columns = ("单号", "处理状态", "重量", "产品", "客户", "运输类型", "寄达地区划代码", "寄件人姓名", "寄件地址")
columns = ("单号", "处理状态", "重量", "长", "宽", "高", "产品", "客户", "运输类型", "寄达地区划代码", "寄件人姓名", "寄件地址")
self.result_tree = ttk.Treeview(result_frame, columns=columns, show="headings", height=8)
col_widths = [140, 80, 60, 100, 100, 70, 100, 80, 140]
col_widths = [140, 80, 60, 50, 50, 50, 100, 100, 70, 100, 80, 140]
for col, width in zip(columns, col_widths):
self.result_tree.heading(col, text=col)
self.result_tree.column(col, width=width, anchor="center", stretch=False)
@@ -470,6 +470,9 @@ class App:
result.get("单号", ""),
result.get("status", ""),
result.get("重量", ""),
result.get("长", ""),
result.get("宽", ""),
result.get("高", ""),
result.get("产品", ""),
result.get("客户", ""),
result.get("运输类型", ""),
@@ -1125,6 +1128,9 @@ class App:
result.get("单号", ""),
result.get("status", ""),
result.get("重量", ""),
result.get("长", ""),
result.get("宽", ""),
result.get("高", ""),
result.get("产品", ""),
result.get("客户", ""),
result.get("运输类型", ""),