From 1f9a89458a66c12c1f7dfbceb2588ada8fbf16f4 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 13 十一月 2025 17:35:36 +0800
Subject: [PATCH] 新增移库页面与WebSocket支持,优化任务逻辑新增移库页面支持移库任务输入与提交。新增 WebSocket 支持(`websocket.js`、`WebSocketSetup.cs`),实现实时通信功能。 在任务状态枚举中新增 AGV 移库任务状`TaskStatusEnum.cs`)- 重构库存数据展示页面(`Home.vue`),新增数据总览与图表展示功能。 - 新增库存数据接口(`StockInfoService.cs`、`StockInfoController.cs`),支持库存统计与展示。 - 优化任务状态管理逻辑,支持 AGV 移库任务(`Dt_TaskService.cs`)。
---
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 21 +++++++--------------
1 files changed, 7 insertions(+), 14 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
index d2293fa..ea0b12c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs"
@@ -25,26 +25,13 @@
return Service.ReceiveWMSTask(taskDTOs);
}
- [HttpPost, Route("ReceiveByWMSTask"), AllowAnonymous]
- public WebResponseContent ReceiveByWMSTask([FromBody] WMSTaskDTO taskDTOs)
- {
- return Service.ReceiveByWMSTask(taskDTOs);
- }
-
- [HttpPost, Route("ReceiveByWMSGWTask"), AllowAnonymous]
- public WebResponseContent ReceiveByWMSGWTask([FromBody] WMSTaskDTO taskDTOs)
- {
- return Service.ReceiveByWMSGWTask(taskDTOs);
- }
-
-
[HttpPost, HttpGet, Route("UpdateTaskExceptionMessage")]
public WebResponseContent UpdateTaskExceptionMessage(int taskNum, string message)
{
return Service.UpdateTaskExceptionMessage(taskNum, message);
}
- [HttpPost, HttpGet, Route("UpdateTaskStatusToNext")]
+ [HttpPost, HttpGet, Route("UpdateTaskStatusToNext") ,AllowAnonymous]
public WebResponseContent UpdateTaskStatusToNext(int taskNum)
{
return Service.UpdateTaskStatusToNext(taskNum);
@@ -61,5 +48,11 @@
{
return Service.RollbackTaskStatusToLast(taskNum);
}
+
+ [HttpPost, HttpGet, Route("SendAgvTask"),AllowAnonymous]
+ public WebResponseContent SendAgvTask(string modelProcessCode, int taskNum)
+ {
+ return Service.SendAgvTask(modelProcessCode, taskNum);
+ }
}
}
--
Gitblit v1.9.3