From 769b20c8c840b4d2bfeeb99b63b242327991a08a Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 01 四月 2026 10:02:35 +0800
Subject: [PATCH] 制造班组显示错误

---
 src/views/salesManagement/salesLedger/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 4e1f8ee..e92a12a 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -551,6 +551,7 @@
 										<th>浜у搧鍚嶇О</th>
 										<th>瑙勬牸鍨嬪彿</th>
 										<th>鍗曚綅</th>
+										<th>UID鐮�</th>
 										<th>鍗曚环</th>
 										<th>闆跺敭鏁伴噺</th>
 										<th>闆跺敭閲戦</th>
@@ -561,6 +562,7 @@
 										<td>{{ product.productCategory || '' }}</td>
 										<td>{{ product.specificationModel || '' }}</td>
 										<td>{{ product.unit || '' }}</td>
+										<td>{{ product.uidNo || '' }}</td>
 										<td>{{ product.taxInclusiveUnitPrice || '0' }}</td>
 										<td>{{ product.quantity || '0' }}</td>
 										<td>{{ product.taxInclusiveTotalPrice || '0' }}</td>
@@ -974,7 +976,7 @@
 		if (node?.id !== null && node?.id !== undefined) return String(node.id);
 		if (node?.nodeType === "batch") return String(node.batchNo ?? node.label ?? "");
 		if (node?.nodeType === "customer") return String(node.customer ?? node.label ?? "");
-		if (node?.nodeType === "model") return String(node.model ?? node.label ?? "");
+		if (node?.nodeType === "model") return String(node.productModelId ?? node.model ?? node.label ?? "");
 		return String(node.productName ?? node.label ?? "");
 	};
 
@@ -1087,6 +1089,7 @@
 	const prevBatchNo = productForm.value.batchNo;
 	const prevCustomer = productForm.value.customer;
 
+	productForm.value.productModelId = modelNode.value;
 	productForm.value.specificationModel = modelNode.model ?? modelNode.label ?? "";
 	// 鏈変簺鎺ュ彛/鏍戞暟鎹噷鍙兘涓嶅寘鍚� unit锛岃繖绉嶆儏鍐典笅涓嶈瑕嗙洊缂栬緫鏃跺凡鍥炴樉鐨勫��
 	const nextUnit = modelNode.unit ?? "";
@@ -1354,8 +1357,9 @@
 		return {
 			// 鍙拌处瀛楁
 			productCategory: p.product || p.productName || "",
+			productModelId: p.productModelId || "",
 			specificationModel: p.specification || "",
-      uidNo: p.uidNo || "",
+			uidNo: p.uidNo || "",
 			unit: p.unit || "",
 			quantity: quantity,
 			taxRate: taxRate,
@@ -1906,6 +1910,7 @@
                   <th>浜у搧鍚嶇О</th>
                   <th>瑙勬牸鍨嬪彿</th>
                   <th>鍗曚綅</th>
+                  <th>UID鐮�</th>
                   <th>鍗曚环</th>
                   <th>闆跺敭鏁伴噺</th>
                   <th>闆跺敭閲戦</th>
@@ -1918,6 +1923,7 @@
                       <td>${product.productCategory || ''}</td>
                       <td>${product.specificationModel || ''}</td>
                       <td>${product.unit || ''}</td>
+                      <td>${product.uidNo || ''}</td>
                       <td>${product.taxInclusiveUnitPrice || '0'}</td>
                       <td>${product.quantity || '0'}</td>
                       <td>${product.taxInclusiveTotalPrice || '0'}</td>

--
Gitblit v1.9.3