From aa63e0401cea4e367c9d9fd620d996a688c0a01f Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 21 五月 2025 15:18:51 +0800
Subject: [PATCH] 添加PDA人工入库功能
---
项目代码/WMS/WIDESEA_WMSClient/src/views/Home.vue | 53 +++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 43 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..cbf4d15 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,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: "姝e父",
+ 0: "姝e父",
+ 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 },
};
--
Gitblit v1.9.3