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