From a647de5665411f706beddc5e0ff7b3a3daaca4fc Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 24 一月 2026 11:11:57 +0800
Subject: [PATCH] 前端页面优化和大屏

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs |   50 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 47 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
index e33f81b..12d71dd 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs"
@@ -60,6 +60,7 @@
         private readonly ILocationInfoService _locationInfoService;
         private readonly IWarehouseService _warehouseService;
         private readonly IRoadWayinfoService _roadWayinfoService;
+        private readonly ITask_HtyService _task_HtyService;
         private Timer _timer;
         public IRepository<Dt_Task> Repository => BaseDal;
 
@@ -74,7 +75,7 @@
         public List<int> TaskOutboundTypes => typeof(TaskTypeEnum).GetEnumIndexList();
 
         public TaskService(ILogger<TaskService> logger, IRepository<Dt_Task> BaseDal, IMapper mapper, IUnitOfWorkManage unitOfWorkManage, IStockInfoService stockInfoService, ILocationInfoService locationInfoService,
-            IWarehouseService warehouseService, IRoadWayinfoService roadWayinfoService) : base(BaseDal)
+            IWarehouseService warehouseService, IRoadWayinfoService roadWayinfoService, ITask_HtyService task_HtyService) : base(BaseDal)
         {
             _logger = logger;
             _mapper = mapper;
@@ -82,8 +83,8 @@
             _stockInfoService = stockInfoService;
             _locationInfoService = locationInfoService;
             _warehouseService = warehouseService;
-            _roadWayinfoService=roadWayinfoService;
-
+            _roadWayinfoService = roadWayinfoService;
+            _task_HtyService = task_HtyService;
         }
         public string MES_InReporttask = WIDESEA_Core.Helper.AppSettings.Configuration["MES_InReporttask"]; //鍏ュ簱鍙嶉淇℃伅
         public string MES_OutReporttask = WIDESEA_Core.Helper.AppSettings.Configuration["MES_OutReporttask"];   //鍑哄簱鍙嶉淇℃伅
@@ -705,5 +706,48 @@
             if (taskcount == 0) return false;
             return true;
         }
+
+        //浠撳簱瀹归噺鐘舵��
+        public WebResponseContent GetWarehouseCapacity()
+        {
+            return _locationInfoService.GetWarehouseCapacity();
+        }
+
+        //鍑哄叆搴撶被鍨嬪垎甯�
+        public WebResponseContent GetInOutTypeStats()
+        {
+            return _task_HtyService.GetInOutTypeStats();
+        }
+        //娴侀噺鎯呭喌缁熻
+
+        public WebResponseContent GetTodayTrafficStats()
+        {
+            return _task_HtyService.GetTodayInOutStats();
+        }
+        //褰撳墠杩涜鐨勪换鍔�
+        public WebResponseContent GetCurrentTasks()
+        {
+            // 鏌ヨ鎵�浠ヨ繑鍥濼askNum锛孴askType锛孋reateDate锛孴askStatus锛�
+            var tasks = BaseDal.QueryData()
+                        .Select(t => new
+                        {
+                            WarehouseId = t.Roadway == "1" || t.Roadway == "2" ? 1 : 2,
+                            PalletType = t.PalletType,
+                            TaskNum = t.TaskId,
+                            TaskType = t.TaskType,
+                            CreateDate = t.CreateDate,
+                            TaskStatus = t.TaskStatus
+                        })
+                        .ToList();
+            return WebResponseContent.Instance.OK("鎴愬姛", tasks);
+        }
+        //鎬讳綋杩涘害
+        public WebResponseContent GetWarehouseOperationStatistics()
+        {
+            /// <summary>
+            /// 鍘熸枡浠擄紝鎬诲嚭鍏ュ簱浠诲姟鏁伴噺锛屼粖鏃ュ叆搴擄紝浠婃棩鍑哄簱锛屼粖鏃ュ緟瀹屾垚锛屼粖鏃ュ紓甯镐换鍔★紝鎴愬搧浠擄紝鎬诲嚭鍏ュ簱鏁伴噺锛屼粖鏃ュ叆搴擄紝浠婃棩鍑哄簱锛屼粖鏃ュ緟瀹屾垚
+            /// </summary>
+            return _task_HtyService.GetWarehouseOperationStatistics();
+        }
     }
 }

--
Gitblit v1.9.3