From 5d663325953692c634046194bedd39b89ace41f0 Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期五, 10 一月 2025 18:55:01 +0800
Subject: [PATCH] 更新多个文件,优化逻辑和异常处理

---
 Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
index 3ef1f0b..ec08e49 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -112,7 +112,8 @@
         //淇敼棰滆壊
         if (column.field == 'roadwayNo') {
           column.formatter = (row) => {
-            return '<span style="color: #2d8cf0;">' + row.locationInfo.roadwayNo + '</span>'
+            console.log("馃殌 ~ this.columns.forEach ~ row:", row)
+            return '<span style="color: #2d8cf0;">' + row?.locationInfo?.roadwayNo + '</span>'
           }
         }
         //鏍煎紡鍖栨棩鏈�
@@ -130,7 +131,7 @@
           // 瀹氫箟涓�涓牸寮忓寲鍑芥暟锛屾牴鎹� 'locationStatus' 鐨勫�艰繑鍥炵浉搴旂殑鏂囨湰
           column.formatter = (row) => {
             // 浣跨敤 statusMap 瀵硅薄鏉ヨ幏鍙栧搴旂殑鏂囨湰锛屽鏋滄病鏈夊尮閰嶅垯杩斿洖 '鏈煡鐘舵��'
-            return statusMap[row.locationInfo.locationStatus] || '鏈煡鐘舵��';
+            return statusMap[row?.locationInfo?.locationStatus] || '鏈煡鐘舵��';
           }
         }
       })

--
Gitblit v1.9.3