From 90a0c4e0ab42a3574cfb6f9fd3b031dac9e7fb0d Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 13 三月 2025 18:04:58 +0800
Subject: [PATCH] 空托出入库

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
index 84caa30..0a2d4fa 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
@@ -132,6 +132,8 @@
                             CurrentAddress = stockInfo.LocationCode,
                             Grade = 0,
                             PalletCode = stockInfo.PalletCode,
+                            TargetIsPickPlace = false,
+                            SourceIsPickPlace = locationInfo.Row == 1 ? false : stockInfo.SerialNumber == locationInfo.MaxQty,
                             NextAddress = "1008",
                             Roadway = locationInfo.RoadwayNo,
                             SourceAddress = stockInfo.LocationCode,
@@ -161,7 +163,7 @@
             {
                 var locationInfo1 = _basicService.LocationInfoService.Repository.QueryFirst(x => x.Row == 2 && x.Column == locationInfo.Column && x.Layer == locationInfo.Layer);
                 stockInfos = _stockService.StockInfoService.Repository.QueryData(x => locationInfo1.LocationCode == x.LocationCode).OrderByDescending(x => x.SerialNumber).ToList();
-                if (stockInfos == null|| stockInfos.Count < 1)
+                if (stockInfos == null || stockInfos.Count < 1)
                 {
                     return (dt_Tasks, locationInfos, stockInfos);
                 }
@@ -178,7 +180,7 @@
                     {
                         CurrentAddress = item.LocationCode,
                         SourceIsPickPlace = item.SerialNumber == 12,
-                        TargetIsPickPlace = i == 12,
+                        TargetIsPickPlace = i == 12 ? locationInfo2.Row != 1 : false,
                         Grade = 0,
                         PalletCode = item.PalletCode,
                         NextAddress = locationInfo2.LocationCode,

--
Gitblit v1.9.3