From 595b44f79c7580b3d95c63194b1df4f00600f926 Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 18 四月 2026 15:08:14 +0800
Subject: [PATCH] Revert "fix(WMS): 修复货位状态变动记录"

---
 Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue |   48 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 37 insertions(+), 11 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
index 6337909..de418eb 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/stock/stockChat.vue
@@ -1,12 +1,8 @@
 <template>
     <div class="stock-chat-container">
         <el-tabs v-model="activeWarehouse" @tab-change="onWarehouseChange">
-            <el-tab-pane
-                v-for="wh in warehouseList"
-                :key="wh.warehouseId || wh.id"
-                :label="wh.warehouseName"
-                :name="wh.warehouseId || wh.id"
-            />
+            <el-tab-pane v-for="wh in warehouseList" :key="wh.warehouseId || wh.id" :label="wh.warehouseName"
+                :name="wh.warehouseId || wh.id" />
         </el-tabs>
 
         <div class="toolbar">
@@ -57,11 +53,15 @@
             <div v-if="selectedLocation" class="detail-content">
                 <el-descriptions :column="2" border>
                     <el-descriptions-item label="璐т綅缂栧彿">{{ selectedLocation.locationCode }}</el-descriptions-item>
-                    <el-descriptions-item label="璐т綅鐘舵��">{{ getLocationStatusText(selectedLocation.locationStatus) }}</el-descriptions-item>
+                    <el-descriptions-item label="璐т綅鐘舵��">{{ getLocationStatusText(selectedLocation.locationStatus)
+                        }}</el-descriptions-item>
                     <el-descriptions-item label="鎵樼洏缂栧彿">{{ selectedLocation.palletCode || '鏃�' }}</el-descriptions-item>
-                    <el-descriptions-item label="搴撳瓨鐘舵��">{{ getStockStatusText(selectedLocation.stockStatus) }}</el-descriptions-item>
-                    <el-descriptions-item label="鎬诲簱瀛�">{{ selectedLocation.stockQuantity }}{{ selectedLocation.unit || '' }}</el-descriptions-item>
-                    <el-descriptions-item label="鍑哄簱鏃ユ湡">{{ selectedLocation.outboundDate }}{{ selectedLocation.unit || '' }}</el-descriptions-item>
+                    <el-descriptions-item label="搴撳瓨鐘舵��">{{ getStockStatusText(selectedLocation.stockStatus)
+                        }}</el-descriptions-item>
+                    <el-descriptions-item label="鎬诲簱瀛�">{{ selectedLocation.stockQuantity }}{{ selectedLocation.unit || ''
+                        }}</el-descriptions-item>
+                    <el-descriptions-item label="鍑哄簱鏃ユ湡">{{ selectedLocation.outboundDate }}{{ selectedLocation.unit || ''
+                        }}</el-descriptions-item>
                 </el-descriptions>
 
                 <div v-if="selectedLocation.details && selectedLocation.details.length > 0" class="detail-table">
@@ -766,6 +766,16 @@
 
 async function loadWarehouseData(warehouseId) {
     try {
+        // 娓呴櫎楂樹寒妗�
+        if (selectionOutline) {
+            selectionOutline.visible = false
+        }
+        selectedLocation.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
@@ -1139,9 +1149,25 @@
 }
 
 async function onWarehouseChange(warehouseId) {
+    // 娓呴櫎閫変腑鐨勯珮浜
+    if (selectionOutline) {
+        selectionOutline.visible = false
+    }
+    // 娓呴櫎閫変腑鐨勮揣浣嶆暟鎹�
+    selectedLocation.value = null
+
+    // 娓呯┖鎵�鏈夌瓫閫夋潯浠�
+    filterStockStatus.value = null
+    filterMaterielCode.value = null
+    filterBatchNo.value = null
+
+    // 娓呯┖绛涢�夐�夐」鍒楄〃
+    materielCodeList.value = []
+    batchNoList.value = []
+
+    // 鍔犺浇鏂颁粨搴撴暟鎹�
     await loadWarehouseData(warehouseId)
 }
-
 function onWindowResize() {
     if (!canvasContainer.value || !camera || !renderer) {
         return

--
Gitblit v1.9.3