From 4b483d9d06bead231b88ca212fd799196668a057 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 28 四月 2026 22:58:27 +0800
Subject: [PATCH] fix(任务服务): 修复出库任务选择逻辑和货位分配问题

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
index 1a731c9..f36e945 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/WCS/TaskService_Inbound.cs
@@ -161,6 +161,7 @@
                         WebResponseContent content = new WebResponseContent();
                         stockInfo.LocationCode = location.LocationCode;
                         stockInfo.LocationId = location.Id;
+                        stockInfo.WarehouseId = task.WarehouseId;
 
                         SetOutboundDateByRoadway(task, stockInfo);
 
@@ -188,7 +189,7 @@
                             EquipmentCode = equipmentCode,
                             ResourceCode = resourceCode,
                             LocalTime = DateTime.Now,
-                            ContainerCode = taskDto.PalletCode
+                            ContainerCode = taskDto.PalletCode,
                         };
                         string requestJson = inboundRequest.ToJson();
                         var palletCode = taskDto.PalletCode;
@@ -206,7 +207,8 @@
                                 return (
                                     result?.Data?.IsSuccess ?? false,
                                     JsonConvert.SerializeObject(result),
-                                    result?.Data?.Msg ?? result?.ErrorMessage ?? "鏈煡閿欒"
+                                    result?.Data?.Msg ?? result?.ErrorMessage ?? "鏈煡閿欒",
+                                    _mesService.BuildConfig(token ?? string.Empty).ToJson()
                                 );
                             });
 

--
Gitblit v1.9.3