wangxinhui
2025-06-25 e1dd1dc9ba7135e3d64a65587d6c1be2c3e18c5a
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_CheckService/CheckOrderResultService.cs
@@ -235,12 +235,6 @@
                        Note = checkResult.Note,
                        SampleCount = checkResult.SampleCount,
                    };
                    if (Math.Round(checkResult.Quantity,2) == Math.Round(stockInfoDetails.Sum(x=>x.StockQuantity),2))
                    {
                        DelStockDetails = stockInfo.Details;
                    }
                    else
                    {
                        foreach (var item in stockInfo.Details)
                        {
                            if (checkResult.Quantity == 0)
@@ -260,8 +254,6 @@
                                DelStockDetails.Add(item);
                            }
                        }
                    }
                }
                if (IsAccept == InspectAcceptEnum.Accept.ObjToInt())
                {
@@ -299,6 +291,10 @@
                //娓呴櫎搴撳瓨鏁伴噺
                if (stockInfoDetails.Count>0)
                {
                    stockInfoDetails.ForEach(x =>
                    {
                        x.Status = StockStatusEmun.閫佹搴撳瓨瀹屾垚.ObjToInt();
                    });
                    _stockRepository.StockInfoDetailRepository.UpdateData(stockInfoDetails);
                }
                if (initialStockDetails.Count>0)
@@ -306,6 +302,7 @@
                    initialStockDetails.ForEach(x =>
                    {
                        x.OutboundQuantity = 0;
                        x.Status = StockStatusEmun.閫佹搴撳瓨瀹屾垚.ObjToInt();
                    });
                    _stockRepository.StockInfoDetailRepository.UpdateData(initialStockDetails);
                }
@@ -317,6 +314,11 @@
                {
                    _stockRepository.StockInfoRepository.DeleteAndMoveIntoHty(stockInfo, App.User.UserId == 0 ? OperateTypeEnum.鑷姩瀹屾垚 : OperateTypeEnum.浜哄伐瀹屾垚);
                }
                else
                {
                    stockInfo.StockStatus = StockStatusEmun.閫佹搴撳瓨瀹屾垚.ObjToInt();
                    _stockRepository.StockInfoRepository.UpdateData(stockInfo);
                }
                //ERP涓婃姤
                WebResponseContent responseContent = _checkOrderService.FeedbackInspectResult(checkOrder, checkOrderResult != null ? new List<Dt_CheckOrderResult> { checkOrderResult } : new List<Dt_CheckOrderResult>());
                if (!responseContent.Status)