From 4cfeced9bc8985cdd89fdb540e6fe984f8469481 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期四, 21 十一月 2024 11:02:40 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
index 98d6a34..fa6b4e8 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs"
@@ -425,7 +425,16 @@
                             {
                                 Dt_LocationInfo newLocation;
                                 //鏌ヨ蛋璐т綅锛岃繘琛岀敓鎴愮Щ搴撲换鍔� 
-                                newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo); //鎷垮埌浜嗙Щ搴撳悗鐨勮揣浣�
+                                int Locationtype = 9;   //榛樿涓�9
+                                if (dt_StockInfo.MaterialType == (int)InventoryMaterialType.鎴愬搧)
+                                {
+                                    Locationtype = 11;
+                                }
+                                else if (dt_StockInfo.MaterialType == (int)InventoryMaterialType.鍘熸潗鏂�)
+                                {
+                                    Locationtype = 10;
+                                }
+                                newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo,Locationtype); //鎷垮埌浜嗙Щ搴撳悗鐨勮揣浣�
                                 if (newLocation != null)
                                 {
                                     Dt_Task dt_Task = new()
@@ -636,6 +645,7 @@
                 return content = WebResponseContent.Instance.Error($"鏈壘鍒板嚭搴撶殑搴撳瓨淇℃伅");
             }
         }
+
         /// <summary>
         /// 鎵嬪姩鐢熸垚鍑哄簱浠诲姟
         /// </summary>

--
Gitblit v1.9.3