| | |
| | | return WebResponseContent.Instance.Error($"未找到托盘对应的组盘信息"); |
| | | } |
| | | |
| | | //if (!string.IsNullOrEmpty(dt_StockInfo.LocationCode)) |
| | | //{ |
| | | // return WebResponseContent.Instance.Error($"该托盘已绑定货位"); |
| | | //} |
| | | if (!string.IsNullOrEmpty(dt_StockInfo.LocationCode)) |
| | | { |
| | | return WebResponseContent.Instance.Error($"该托盘已绑定货位"); |
| | | } |
| | | |
| | | if (dt_StockInfo.Details == null || dt_StockInfo.Details.Count == 0) |
| | | { |
| | |
| | | return WebResponseContent.Instance.Error($"未找到目标货位信息"); |
| | | } |
| | | |
| | | //if (dt_LocationInfo.LocationStatus == LocationStatusEnum.InStock.ObjToInt()) |
| | | //{ |
| | | // return WebResponseContent.Instance.Error($"货位状态不正确"); |
| | | //} |
| | | if (dt_LocationInfo.LocationStatus == LocationStatusEnum.InStock.ObjToInt()) |
| | | { |
| | | return WebResponseContent.Instance.Error($"货位状态不正确"); |
| | | } |
| | | |
| | | int lastStatus = dt_LocationInfo.LocationStatus; |
| | | dt_LocationInfo.LocationStatus = LocationStatusEnum.InStock.ObjToInt(); |
| | |
| | | houseInboundPassBack.Context.Add("InvOrgId", InvOrgId); |
| | | var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTaskout, houseInboundPassBack, "立库出库数量回传WMS"); |
| | | } |
| | | _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, App.User.UserId == 0 ? OperateType.自动完成 : OperateType.人工完成); |
| | | _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(stockInfo.Details, App.User.UserId == 0 ? OperateType.自动完成 : OperateType.人工完成); |
| | | } |
| | | else if (outboundOrder.OrderType == 240) |
| | | { |
| | |
| | | inventoryAllocate.Context.Add("InvOrgId", InvOrgId); |
| | | var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTaskAllocatein, inventoryAllocate, "调拨出库数量回传WMS"); |
| | | } |
| | | _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, App.User.UserId == 0 ? OperateType.自动完成 : OperateType.人工完成); |
| | | _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(stockInfo.Details, App.User.UserId == 0 ? OperateType.自动完成 : OperateType.人工完成); |
| | | } |
| | | |
| | | |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |