From 6b4e3935dceb3a4b158c0005468a5c803df509be Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期一, 24 十一月 2025 10:14:13 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_AllocateService/AllocateService.cs |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_AllocateService/AllocateService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_AllocateService/AllocateService.cs"
index 7d707ca..b720756 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_AllocateService/AllocateService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_AllocateService/AllocateService.cs"
@@ -1,4 +1,5 @@
-锘縰sing Microsoft.Extensions.Logging;
+锘縰sing MailKit.Search;
+using Microsoft.Extensions.Logging;
 using SqlSugar;
 using SqlSugar.Extensions;
 using System;
@@ -88,8 +89,17 @@
                         var inboundOrders = ConvertToInboundOrders(allocateOrder);
                         await _inboundService.InbounOrderService.ReceiveInboundOrder(inboundOrders, 1);
                     }
-                    else if (businessType == BusinessTypeEnum.澶栭儴浠撳簱璋冩櫤浠�)
+                    else if (businessType == BusinessTypeEnum.澶栭儴浠撳簱璋冩櫤浠� || businessType == BusinessTypeEnum.鏅轰粨璋冩櫤浠�)
                     {
+                        if (businessType == BusinessTypeEnum.澶栭儴浠撳簱璋冩櫤浠�)
+                        {
+                            allocateOrder.OrderType = InOrderTypeEnum.Allocat.ObjToInt();
+                        }
+                        else if (businessType == BusinessTypeEnum.鏅轰粨璋冩櫤浠�)
+                        {
+                            allocateOrder.OrderType = InOrderTypeEnum.InternalAllocat.ObjToInt();
+                        }
+
                         var outboundOrders = ConvertToOutboundOrders(allocateOrder);
                         await _outboundService.OutboundOrderService.ReceiveOutboundOrder(outboundOrders, 1);
                     }
@@ -178,7 +188,7 @@
                 _unitOfWorkManage.BeginTran();
                 foreach (var item in deletePurchaseOrderDetails)
                 {
-                   // _allocateOrderDetailRepository.DeleteAndMoveIntoHty(item, OperateTypeEnum.鑷姩鍒犻櫎);
+                    // _allocateOrderDetailRepository.DeleteAndMoveIntoHty(item, OperateTypeEnum.鑷姩鍒犻櫎);
                     _allocateOrderDetailRepository.DeleteData(item);
                 }
 
@@ -241,7 +251,7 @@
                    InboundOrderNo=allocateOrder.OrderNo,
                    UpperOrderNo=allocateOrder.UpperOrderNo,
                    SupplierId=allocateOrder.SupplierId,
-                   OrderType=InOrderTypeEnum.Allocat.ObjToInt(),
+                   OrderType= allocateOrder.OrderType ,
                    OrderStatus=allocateOrder.OrderStatus,
                    CreateType=allocateOrder.CreateType,
                    BusinessType=allocateOrder.BusinessType,

--
Gitblit v1.9.3