From baad30699918c536d0b96e36df70b8f352d520e4 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期五, 15 八月 2025 10:15:53 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/locationInfoRow.vue |   73 ++++++++++--------------------------
 1 files changed, 21 insertions(+), 52 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/locationInfoRow.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/locationInfoRow.vue"
index 903bceb..d947527 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/locationInfoRow.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/locationInfoRow.vue"
@@ -9,19 +9,9 @@
       <div class="control-panel">
         <div class="form-group">
           <label>鍖哄煙锛�</label>
-          <el-select
-            size="mini"
-            filterable
-            v-model="Area.areaCode"
-            placeholder="璇烽�夋嫨"
-            class="full-width"
-          >
-            <el-option
-              v-for="item in slectData"
-              :value="item.areaCode"
-              :label="item.areaName"
-              :key="item.areaName"
-            ></el-option>
+          <el-select size="mini" filterable v-model="Area.areaCode" placeholder="璇烽�夋嫨" class="full-width">
+            <el-option v-for="item in slectData" :value="item.areaCode" :label="item.areaName"
+              :key="item.areaName"></el-option>
           </el-select>
         </div>
 
@@ -52,15 +42,8 @@
         <div class="legend-section">
           <h4>璇存槑</h4>
           <div class="legend-grid">
-            <div
-              class="legend-item"
-              v-for="item in infoMsg"
-              :key="item.bgcolor"
-            >
-              <span
-                class="color-box"
-                :style="{ 'background-color': item.bgcolor }"
-              ></span>
+            <div class="legend-item" v-for="item in infoMsg" :key="item.bgcolor">
+              <span class="color-box" :style="{ 'background-color': item.bgcolor }"></span>
               <span class="legend-label">{{ item.msg }}</span>
             </div>
           </div>
@@ -69,42 +52,28 @@
 
       <!-- 璐т綅灞曠ず鍖哄煙 -->
       <div class="location-view">
-        <div
-          class="layer-container"
-          v-for="layer in locationData"
-          :key="layer.index"
-        >
+        <div class="layer-container" v-for="layer in locationData" :key="layer.index">
           <h3 class="layer-title">绗瑊{ layer.index }}灞�</h3>
           <div class="row" v-for="row in layer.rows" :key="row.index">
-            <div
-              class="location-cell"
-              :style="{ 'background-color': GetBgColor(col) }"
-              v-for="col in row.cols"
-              :key="col.index"
-              @mouseenter="showTooltip(col, $event)"
-              @mouseleave="hideTooltip"
-            >
-              {{ row.index }}-{{ col.index }}-{{ layer.index }}
+            <div class="location-cell" :style="{ 'background-color': GetBgColor(col) }" v-for="col in row.cols"
+              :key="col.index" @mouseenter="showTooltip(col, $event)" @mouseleave="hideTooltip">
+              {{ row.index }}-{{ layer.index }}-{{ col.index }}
             </div>
           </div>
         </div>
       </div>
       <!-- 鎮诞鎻愮ず妗� -->
-      <div
-        v-if="showTooltipFlag"
-        class="location-tooltip"
-        :style="{
-          left: tooltipPosition.x + 'px',
-          top: tooltipPosition.y + 'px',
-        }"
-      >
+      <div v-if="showTooltipFlag" class="location-tooltip" :style="{
+        left: tooltipPosition.x + 'px',
+        top: tooltipPosition.y + 'px',
+      }">
         <div v-if="currentLocation">
           <p><strong>璐т綅鍙�:</strong>{{ currentLocation.locationCode }}</p>
-          <p>
+          <!-- <p>
             <strong>璐т綅鎺掑垪灞�:</strong> {{ currentLocation.row }}鎺抺{
               currentLocation.layer
-            }}鍒梴{ currentLocation.index }}灞�
-          </p>
+            }}鍒梴{ currentLocation.layer }}灞�
+          </p> -->
           <p><strong>鐘舵��:</strong> {{ getStatusText(currentLocation) }}</p>
           <p>
             <strong>绂佺敤:</strong>
@@ -218,11 +187,11 @@
 
     getStatusText(location) {
       // if (location.location_lock === 3) return "绂佺敤";
-      if (location.location_state === 0) return "绌鸿揣浣�";
-      if (location.location_state === 1) return "閿佸畾";
-      if (location.location_state === 10) return "鏈夎揣閿佸畾";
-      if (location.location_state === 20) return "绌洪棽閿佸畾";
-      if (location.location_state === 100) return "鏈夎揣";
+      if (location.location_state === '0') return "绌鸿揣浣�";
+      if (location.location_state === '1') return "閿佸畾";
+      if (location.location_state === '3') return "鏈夎揣閿佸畾";
+      if (location.location_state === '4') return "绌洪棽閿佸畾";
+      if (location.location_state === '2') return "鏈夎揣";
       // if (location.location_state > 0 && location.location_state < 100)
       //   return "閿佸畾";
       return "鍏朵粬";

--
Gitblit v1.9.3