From f49fa4b5027cfdc27b429985d023e8002abcca2e Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 05 十一月 2025 23:54:12 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
index 848a862..ed18293 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
@@ -245,6 +245,17 @@
                             _stockService.StockInfoService.Repository.AddData(dt_Stock);
                         }
                     }
+                    /*else if(generate.SourceAddress == "R01-002-042-001-01")
+                    {
+                        WebResponseContent webResponse= Queryinventory(generate);
+                        if (!webResponse.Status)
+                        {
+                            return content = WebResponseContent.Instance.Error($"缁勭洏澶辫触锛歿webResponse.Message}");
+                        }
+                    }*/
+
+
+
                     Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.PalletCode == generate.PalletCode && x.StockStatus== (int)StockStatusEmun.缁勭洏鏆傚瓨);
                     if (dt_StockInfo != null)
                     {
@@ -291,6 +302,7 @@
                             else
                             {
                                 newLocation = _basicService.LocationInfoService.GetLocation(newSourceAddress.RoadwayNo, Locationtype);
+                               
                             }
 
 
@@ -602,7 +614,16 @@
                             {
                                 if (dt_StockInfo.StockStatus == (int)StockStatusEmun.缁勭洏鏆傚瓨)
                                 {
-                                    return content = WebResponseContent.Instance.OK(data: 1);
+                                    List<Dt_Task> dt_Tasks= BaseDal.QueryData(x => x.PalletCode.Contains(PalletCodetarget));
+                                    if (dt_Tasks.Count > 0)
+                                    {
+                                        return content = WebResponseContent.Instance.Error($"搴撳瓨宸叉湁璇ユ潯鐮侊紝鏉$爜淇℃伅锛歿generate.PalletCode}");
+                                    }
+                                    else
+                                    {
+                                        return content = WebResponseContent.Instance.OK(data: 1);
+                                    }
+                                    
                                 }
                                 else
                                 {

--
Gitblit v1.9.3