From 07d83d2d583f96ddd7df98bbb202c98f3b073cd4 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期二, 10 三月 2026 13:41:02 +0800
Subject: [PATCH] 添加前端任务状态枚举,以及历史任务页面

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
index cc115e0..949dc5e 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
@@ -5,7 +5,7 @@
 using System.Threading.Tasks;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.Helper;
-using WIDESEAWCS_DTO.TaskInfo;
+using WIDESEAWCS_DTO.WMS;
 
 namespace WIDESEAWCS_TaskInfoService
 {
@@ -17,13 +17,13 @@
             try
             {
                 if (taskDTO.containerCode.IsNullOrEmpty()) throw new Exception("鏂欑鍙蜂笉鑳戒负绌�");
-                if (taskDTO.toAreaCode.IsNullOrEmpty() || taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("缁堢偣鍖哄煙鎴栫粓鐐逛綅缃笉鑳戒负绌�");
-                if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("鏂欑鍙蜂笉鑳戒负绌�");
+                if (taskDTO.toAreaCode.IsNullOrEmpty() && taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("缁堢偣鍖哄煙鎴栫粓鐐逛綅缃笉鑳戒负绌�");
+                //if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("鏂欑绫诲瀷涓嶈兘涓虹┖");
                 if (isfrom) if (taskDTO.fromLocationCode.IsNullOrEmpty()) throw new Exception("璧风偣浣嶇疆涓嶈兘涓虹┖");
             }
             catch (Exception ex)
             {
-                content.Error(ex.Message);
+                throw new Exception(ex.Message);
             }
             return content;
         }

--
Gitblit v1.9.3