From 56538e602b927c232ac5b991ef84175edd2ce3ce Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期五, 24 四月 2026 14:20:20 +0800
Subject: [PATCH] feat(WMS/WCS): 增加机器人历史信息记录 fix(WMS/WCS): 修复前端bug

---
 Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
index de418eb..a89ec4e 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
@@ -67,8 +67,8 @@
                 <div v-if="selectedLocation.details && selectedLocation.details.length > 0" class="detail-table">
                     <h4>搴撳瓨鏄庣粏</h4>
                     <el-table :data="selectedLocation.details" border size="small" max-height="400">
-                        <el-table-column prop="materielName" label="鐗╂枡鍚嶇О" min-width="140" show-overflow-tooltip />
-                        <el-table-column prop="serialNumber" label="鐢佃姱鏉$爜" min-width="160" show-overflow-tooltip />
+                        <el-table-column prop="materielName" label="鐗╂枡鍚嶇О" min-width="90" show-overflow-tooltip />
+                        <el-table-column prop="serialNumber" label="鐢佃姱鏉$爜" min-width="180" show-overflow-tooltip />
                         <el-table-column prop="inboundOrderRowNo" label="閫氶亾鍙�" min-width="100" show-overflow-tooltip />
                     </el-table>
                 </div>
@@ -217,6 +217,10 @@
 }
 
 function hasCargo(location) {
+    // 濡傛灉LocationStatus=100锛屽嵆浣挎病鏈夊簱瀛樹俊鎭篃鏄剧ず璐т綅
+    if (location.locationStatus === 100) {
+        return true
+    }
     return Number(location.stockQuantity || 0) > 0 || ((location.details && location.details.length > 0) || false)
 }
 
@@ -773,9 +777,9 @@
         selectedLocation.value = null
 
         // 娓呯┖绛涢�夋潯浠�
-        filterStockStatus.value = null
-        filterMaterielCode.value = null
-        filterBatchNo.value = null
+         filterStockStatus.value = null
+         filterMaterielCode.value = null
+         filterBatchNo.value = null
         const res = await proxy.http.get(`/api/StockInfo/Get3DLayout?warehouseId=${warehouseId}`)
         if (res.status && res.data) {
             const data = res.data
@@ -1157,13 +1161,13 @@
     selectedLocation.value = null
 
     // 娓呯┖鎵�鏈夌瓫閫夋潯浠�
-    filterStockStatus.value = null
-    filterMaterielCode.value = null
-    filterBatchNo.value = null
+    // filterStockStatus.value = null
+    // filterMaterielCode.value = null
+    // filterBatchNo.value = null
 
-    // 娓呯┖绛涢�夐�夐」鍒楄〃
-    materielCodeList.value = []
-    batchNoList.value = []
+    // // 娓呯┖绛涢�夐�夐」鍒楄〃
+    // materielCodeList.value = []
+    // batchNoList.value = []
 
     // 鍔犺浇鏂颁粨搴撴暟鎹�
     await loadWarehouseData(warehouseId)
@@ -1371,7 +1375,7 @@
 }
 
 .detail-content {
-    padding: 20px;
+    padding: 10px;
 }
 
 .detail-table {

--
Gitblit v1.9.3