From 6de27c44034d1057dc0d263a32a9aee2378255c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Thu, 11 Dec 2025 15:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=88=E6=9D=BF=E7=82=B9=E4=BD=8D=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/wcsSystem/agvStation.vue | 32 +++++++++++++++- .../wcsSystem/agvStationSpecialAction.vue | 38 +++++++++++++++++-- 2 files changed, 65 insertions(+), 5 deletions(-) diff --git a/src/views/modules/wcsSystem/agvStation.vue b/src/views/modules/wcsSystem/agvStation.vue index 974ab43..53070b1 100644 --- a/src/views/modules/wcsSystem/agvStation.vue +++ b/src/views/modules/wcsSystem/agvStation.vue @@ -64,6 +64,14 @@ {{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }} + + + + {{ getStatusText(scope.row.statusDb) }} + + {{ scope.row[item.columnProp] }} @@ -348,7 +356,7 @@ export default { fixed: "" }, { - columnProp: "status", + columnProp: "statusDb", headerAlign: "center", align: "center", columnLabel: "站点状态", @@ -451,6 +459,28 @@ export default { this.loadOptions() }, methods: { + // 获取站点状态文本 - rqrq + getStatusText(statusDb) { + const statusMap = { + 0: '空闲', + 1: '有货', + 2: '待放货', + 3: '待取货' + } + return statusMap[statusDb] !== undefined ? statusMap[statusDb] : '未知' + }, + + // 获取站点状态标签类型 - rqrq + getStatusType(statusDb) { + const typeMap = { + 0: 'success', // 空闲 - 绿色 + 1: 'warning', // 有货 - 橙色 + 2: 'primary', // 待放货 - 蓝色 + 3: 'danger' // 待取货 - 红色 + } + return typeMap[statusDb] !== undefined ? typeMap[statusDb] : 'info' + }, + // 获取数据列表 - rqrq getDataList() { this.dataListLoading = true diff --git a/src/views/modules/wcsSystem/agvStationSpecialAction.vue b/src/views/modules/wcsSystem/agvStationSpecialAction.vue index e5be111..e1f354f 100644 --- a/src/views/modules/wcsSystem/agvStationSpecialAction.vue +++ b/src/views/modules/wcsSystem/agvStationSpecialAction.vue @@ -48,6 +48,14 @@ {{ scope.row.autoCallBlankPallet === 'Y' ? '是' : '否' }} + + + + {{ getStatusText(scope.row.statusDb) }} + + {{ scope.row[item.columnProp] }} @@ -60,10 +68,10 @@ width="220" label="操作"> @@ -249,7 +257,7 @@ export default { fixed: "" }, { - columnProp: "status", + columnProp: "statusDb", headerAlign: "center", align: "center", columnLabel: "站点状态", @@ -529,6 +537,28 @@ export default { }) }, + // 获取站点状态文本 - rqrq + getStatusText(statusDb) { + const statusMap = { + 0: '空闲', + 1: '有货', + 2: '待放货', + 3: '待取货' + } + return statusMap[statusDb] !== undefined ? statusMap[statusDb] : '未知' + }, + + // 获取站点状态标签类型 - rqrq + getStatusType(statusDb) { + const typeMap = { + 0: 'success', // 空闲 - 绿色 + 1: 'warning', // 有货 - 橙色 + 2: 'primary', // 待放货 - 蓝色 + 3: 'danger' // 待取货 - 红色 + } + return typeMap[statusDb] !== undefined ? typeMap[statusDb] : 'info' + }, + // 保存续盘设置 - rqrq saveAutoCallSetting() { this.saveAutoCallLoading = true