From 90ac374a64e47e2bd97ee9245f4cafb50ad5dbbb Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 17 四月 2026 17:31:02 +0800
Subject: [PATCH] 添加成品出库任务等待移库上报WMS

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
index e978596..606617e 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/HKTaskMethods.cs"
@@ -137,7 +137,7 @@
                 //搴撳唴鍒扮幇杈圭殑鐐瑰埌鐐逛换鍔★紝鏄惁闇�瑕佸垽鏂揣浣嶇姸鎬侊紵
                 if (taskType == (int)TaskTypeEnum.STU0003)
                 {
-                    var reslut = _stationInfo.Repository.QueryFirst(x => x.StationCode == taskDTO.toLocationCode) ?? throw new Exception($"鏈壘鍒扮粓鐐硅揣浣嶃�恵taskDTO.fromLocationCode}銆�");
+                    var reslut = _stationInfo.Repository.QueryFirst(x => x.StationCode == taskDTO.toLocationCode) ?? throw new Exception($"鏈壘鍒扮粓鐐硅揣浣嶃�恵taskDTO.toLocationCode}銆�");
                     if (reslut.StationStatus != (int)LocationStatusEnum.Free)
                     {
                         throw new Exception($"缁堢偣绔欏彴銆恵taskDTO.toLocationCode}銆戠姸鎬佷笉涓虹┖闂诧紒");
@@ -254,10 +254,18 @@
             try
             {
                 var tasktype = (TaskTypeEnum)Enum.GetValues(typeof(TaskTypeEnum)).GetValue(task.TaskType - 1);
-
                 hIKROBOTTaskSubmit.initPriority = task.Grade;
+                if (task.PalletCode== "MR-Q3-600LE-D(M)")
+                {
+                    hIKROBOTTaskSubmit.robotType = "19"; //娴峰悍 杞繍杞�
+                }
+                else if (task.PalletCode == "MR-Q3-600LE-D(M)(YWGP)")
+                {
+                    hIKROBOTTaskSubmit.robotType = "20"; //娴峰悍 绌烘墭鐩樿溅锛屼竴妤煎埌鍏ゼ锛�6妤煎埌涓�妤�
+                }
+                hIKROBOTTaskSubmit.taskType = tasktype.ToString();
+                ExtraDto extraDto = new ExtraDto();
                 hIKROBOTTaskSubmit.robotTaskCode = task.WMSTaskNum;
-                hIKROBOTTaskSubmit.taskType = tasktype.ToString(); ExtraDto extraDto = new ExtraDto();
                 if (task.TaskType != (int)TaskTypeEnum.MOVE && task.TaskType != (int)TaskTypeEnum.Q3RK && task.TaskType != (int)TaskTypeEnum.Q3CK && task.TaskType != (int)TaskTypeEnum.F01)
                 {
                     CarrierInfoDto carrierInfoDto = new CarrierInfoDto()

--
Gitblit v1.9.3