feat: show parcel dimensions in results
This commit is contained in:
@@ -549,6 +549,9 @@ class PickupEngine:
|
||||
result["寄达地"] = form_data.get("receiverArriveOrgName", "")
|
||||
result["单号"] = row.get("单号", "").strip()
|
||||
result["重量"] = form_data.get("realWeight", "")
|
||||
result["长"] = form_data.get("length", "")
|
||||
result["宽"] = form_data.get("width", "")
|
||||
result["高"] = form_data.get("height", "")
|
||||
result["产品"] = self._product_choice.get("productName", "") if self._product_choice else ""
|
||||
result["客户"] = self._customer_choice.get("customerName", "") if self._customer_choice else ""
|
||||
result["寄达地区划代码"] = form_data.get("receiverDistrictNo", "")
|
||||
|
||||
@@ -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("运输类型", ""),
|
||||
|
||||
Reference in New Issue
Block a user