From b879053cc8414be35ea60e4c1667039053e3f6e5 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期五, 27 十二月 2024 20:51:26 +0800
Subject: [PATCH] 增加余料回库功能

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
index 86786fe..8134981 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs"
@@ -95,28 +95,31 @@
                     }
                     Dt_Task task = _mapper.Map<Dt_Task>(item);
                     task.Creater = "WMS";
-                    //绌鸿溅鍏ュ簱
-                    if (item.TaskType == (int)TaskInboundTypeEnum.InInventory)
-                    {
-                        task.TaskType= (int)TaskInboundTypeEnum.InInventory;
-                        task.TaskState= (int)TaskInStatusEnum.InNew;
-                       
-                    }
-                    else if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory)
+                    if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory)
                     {
                         task.TaskType=(int)TaskOutboundTypeEnum.OutInventory;
                         task.TaskState=(int)TaskOutStatusEnum.OutNew;
                   
+                    }
+                    else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound)
+                    {
+                        task.TaskType = (int)TaskOutboundTypeEnum.Outbound;
+                        task.TaskState = (int)TaskOutStatusEnum.OutNew;
                     }
                     else if (item.TaskType == (int)TaskInboundTypeEnum.Inbound)
                     {
                         task.TaskType = (int)TaskInboundTypeEnum.Inbound;
                         task.TaskState = (int)TaskInStatusEnum.InNew;
                     }
-                    else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound)
+                    else if (item.TaskType == (int)TaskInboundTypeEnum.InInventory)
                     {
-                        task.TaskType = (int)TaskOutboundTypeEnum.Outbound;
-                        task.TaskState = (int)TaskOutStatusEnum.OutNew;
+                        task.TaskType = (int)TaskInboundTypeEnum.InInventory;
+                        task.TaskState = (int)TaskInStatusEnum.InNew;
+                    }
+                    else if (item.TaskType == (int)TaskInboundTypeEnum.InPick)
+                    {
+                        task.TaskType = (int)TaskInboundTypeEnum.InPick;
+                        task.TaskState = (int)TaskInStatusEnum.InNew;
                     }
                     tasks.Add(task);
                 }

--
Gitblit v1.9.3