dengjunjie
2025-06-17 fd073a00f6813eada92b08f1884b115295ac1177
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/views/Home.vue
@@ -14,11 +14,37 @@
              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>货位状态:{{ getStatusText(col.locationStatus) }}</div> -->
                <div>物料名称: {{ col.materielName }}</div>
                <!-- <div>物料编号: {{ col.materielCode }}</div> -->
                <div>数量:{{ col.quantity }}托</div>
                <!-- <div>托盘号:{{ col.palletCode }}</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 +109,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 +204,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: "正常",
        0: "正常",
        1: "只入",
        2: "只出",
        3: "禁用",
      };
      return enableMap[status] || "未知";
@@ -221,7 +254,7 @@
        _this.scList = _this.slectData[0].tunnel;
        _this.layers = _this.slectData[0].layers;
      });
      this.GetViewData();
    this.GetViewData();
  },
  components: { ElButton },
};