Admin
2 天以前 7a70c16d9fb28646a0f22e9f699746df6c651e8c
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs
@@ -442,28 +442,28 @@
                                    Dt_InboundOrder dt_Inbound = _inboundService.InbounOrderService.Repository.QueryData().Where(x => x.OrderName == targetCodesst[0]).FirstOrDefault();
                                    if (dt_Inbound.Startingcolumn != 0 || dt_Inbound.Terminationcolumn != 0)
                                    {
                                        newLocation = _basicService.LocationInfoService.GetLocation4(locationInfos.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Terminationcolumn);
                                        newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Terminationcolumn);
                                        if (newLocation == null)
                                        {
                                            return WebResponseContent.Instance.Error($"无法获取库位,没找到巷道:{locationInfos.RoadwayNo},列:{dt_Inbound.Startingcolumn}==>{dt_Inbound.Terminationcolumn},的可用货位,,,任务编号:{TaskNum}");
                                            return content.Error($"无法获取库位,没找到巷道:{locationInfos.RoadwayNo},列:{dt_Inbound.Startingcolumn}==>{dt_Inbound.Terminationcolumn},的可用货位,,,任务编号:{TaskNum}");
                                        }
                                    }
                                    else
                                    {
                                        newLocation = _basicService.LocationInfoService.GetLocation3(locationInfos.RoadwayNo, Locationtype);
                                        newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype, 0, 0);
                                        if (newLocation == null)
                                        {
                                            return WebResponseContent.Instance.Error($"无法获取库位,没找到巷道:{locationInfos.RoadwayNo},任务编号:{TaskNum}");
                                            return content.Error($"成品料进行移库,无法获取库位,没找到巷道:{locationInfos.RoadwayNo},任务编号:{TaskNum}");
                                        }
                                    }
                                }
                                else
                                {
                                    newLocation = _basicService.LocationInfoService.GetLocation3(locationInfos.RoadwayNo, Locationtype);
                                    newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype, 0, 0);
                                    if (newLocation == null)
                                    {
                                        return WebResponseContent.Instance.Error($"无法获取库位,没找到巷道:{locationInfos.RoadwayNo},任务编号:{TaskNum}");
                                        return content.Error($"原材料进行移库,无法获取库位,没找到巷道:{locationInfos.RoadwayNo},任务编号:{TaskNum}");
                                    }
                                }
@@ -471,13 +471,13 @@
                                //目标货位查找库位是否有货
                                Dt_StockInfo dt_StockCurren = _stockService.StockInfoService.Repository.QueryData().Where(x => x.LocationCode == newLocation.LocationCode).FirstOrDefault();
                                if (dt_StockCurren != null) return content = WebResponseContent.Instance.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位信息对应已有库存");
                                if (dt_StockCurren != null) return content.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位信息对应已有库存");
                                Dt_Task taskcurren = BaseDal.QueryFirst(x => x.TargetAddress == newLocation.LocationCode);
                                if (taskcurren != null) return content = WebResponseContent.Instance.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位信息已有入库任务");
                                Dt_Task taskcurren = BaseDal.QueryFirst(x => x.TargetAddress == newLocation.LocationCode || x.SourceAddress == newLocation.LocationCode);
                                if (taskcurren != null) return content.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位信息已有入库任务");
                                bool crutaskthy = _taskHtyService.CrueeTaskHty(newLocation.LocationCode);
                                if (crutaskthy) return content = WebResponseContent.Instance.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位在任务历史信息中,有入库或移库信息");
                                if (crutaskthy) return content.Error($"入库失败,托盘条码:{dt_StockInfo.PalletCode},查找出的货位在任务历史信息中,有入库或移库信息");
                                //找的深库区,则判断浅库位是否有