From 1e12c140c041c0cb52306a0db9ff0ba18354d0d8 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 03 四月 2025 18:01:52 +0800
Subject: [PATCH] 优化WMS前端首页,货位查询column数据库关键字处理

---
 项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue |   49 +++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 39 insertions(+), 10 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
index bcc2fa7..b5ab51e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/Home.vue"
@@ -14,11 +14,33 @@
               v-for="col in row.cols"
               :key="col.column"
               effect="dark"
-              :content="getTooltipContent(col)"
               placement="top"
               :show-after="200"
               :hide-after="0"
-              ><div
+            >
+              <template #content v-if="col.locationStatus == 99">
+                <div>绌烘墭鐩�</div>
+              </template>
+              <template #content v-else-if="col.locationStatus == 0">
+                <div>绌鸿揣浣�</div>
+              </template>
+              <template #content v-else>
+                <div>
+                  璐т綅鍚嶇О锛歿{
+                    col.row + "鎺�" + col.column + "鍒�" + col.layer + "灞�"
+                  }}
+                </div>
+                <div>璐т綅鐘舵�侊細{{ getStatusText(col.locationStatus) }}</div>
+                <div>鐗╂枡鍚嶇О锛� {{ col.materielName }}</div>
+                <div>鐗╂枡缂栧彿锛� {{ col.materielCode }}</div>
+                <div>鎵瑰彿锛歿{ col.orderNo }}</div>
+                <div>鏌滃彿锛歿{ col.batchNo }}</div>
+                <div>鏁伴噺锛歿{ col.quantity }}</div>
+                <div>鎵樼洏鍙凤細{{ col.palletCode }}</div>
+                <div>鍏ュ簱鏃堕棿锛歿{ col.inDate }}</div>
+                <div>鍚敤鐘舵�侊細{{ getEnableStatusText(col.enalbeStatus) }}</div>
+              </template>
+              <div
                 class="item"
                 :style="{ 'background-color': GetBgColor(col) }"
               >
@@ -83,6 +105,9 @@
         >
 
         <div style="margin-top: 80px">
+          <div style="color: red">搴撲綅鎺掑簭璇存槑锛氭帓-鍒�-灞�</div>
+          <div style="color: red">1+2鎺掍负闀胯揣浣�,3鎺掍负鐭揣浣�</div>
+          <div style="color: red">1涓牸瀛�=12涓揣浣嶆渶澶氬彲鏀�12鎵�</div>
           <div>璇存槑</div>
           <div v-for="item in infoMsg" :key="item.bgcolor">
             <div class="infoMsg" :style="{ 'background-color': item.bgcolor }">
@@ -175,19 +200,23 @@
     },
     getStatusText(status) {
       const statusMap = {
-        0: "绌鸿揣浣�",
+        0: "绌洪棽",
+        1: "鎸囧畾鍏ュ簱",
         2: "鏈夎揣",
-        3: "鏈夎揣",
-        4: "鎵ц涓�",
-        6: "鎵ц涓�",
-        7: "鎵ц涓�",
-        99: "绌烘墭",
+        3: "婊¤揣",
+        4: "鍏ュ簱涓�",
+        5: "鎸囧畾鍑哄簱",
+        6: "鍑哄簱涓�",
+        7: "绉诲簱涓�",
+        99: "绌烘墭鐩�",
       };
       return statusMap[status] || "鏈煡鐘舵��";
     },
     getEnableStatusText(status) {
       const enableMap = {
-        1: "姝e父",
+        0: "姝e父",
+        1: "鍙叆",
+        2: "鍙嚭",
         3: "绂佺敤",
       };
       return enableMap[status] || "鏈煡";
@@ -221,7 +250,7 @@
         _this.scList = _this.slectData[0].tunnel;
         _this.layers = _this.slectData[0].layers;
       });
-      this.GetViewData();
+    this.GetViewData();
   },
   components: { ElButton },
 };

--
Gitblit v1.9.3