dengjunjie
2025-10-24 101a25491c535c5fd4173e7f002aea57986512f6
н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/DeliveryOrderServices.cs
@@ -110,10 +110,11 @@
                    foreach (var outorder in newOutOrders)
                    {
                        bool skipOrder = false; // æ ‡è®°æ˜¯å¦è·³è¿‡è¯¥å‡ºåº“单
                        // å¦‚果这个出库单类型不等于1,属于出库退货(要入货上游传过来的数量为负数)
                        if (outorder.order_type != "1")
                        if (outorder.order_type == "1") // æ­£å¸¸å‡ºåº“单
                        {
                            CreateOutboundOrder(outorder);//创建出库单、处理库存、添加出库任务
                        }
                        else if (outorder.order_type == "2")//出库退货
                        {
                            // åˆ›å»ºå‡ºåº“退货单 - è¿™é‡Œéœ€è¦æ ¹æ®ä¸šåŠ¡é€»è¾‘å®žçŽ°
                            // æš‚时跳过或实现退货逻辑
@@ -143,9 +144,9 @@
                                BaseDal.Db.InsertNav(dt_CabinOrders).Include(x => x.Details).ExecuteCommand();
                            #endregion
                        }
                        else if (outorder.order_type == "1") // æ­£å¸¸å‡ºåº“单
                        else if (outorder.order_type == "3")//报损出库
                        {
                            CreateOutboundOrder(outorder);//创建出库单、处理库存、添加出库任务
                        }
                    }