|
|
@ -916,9 +916,21 @@ public class KittingIssueJobAppService |
|
|
|
{ |
|
|
|
var detailDto = new KittingIssueJobDetailDTO(); |
|
|
|
if (!string.IsNullOrEmpty(detail.TransferLibFromLocationCode)) |
|
|
|
{ |
|
|
|
var fromloc = new LocationDTO(); |
|
|
|
if (detail.TransferLibFromLocationCode == detail.RecommendFromLocationCode && |
|
|
|
detail.TransferLibToLocationCode == detail.RecommendToLocationCode) |
|
|
|
{ |
|
|
|
//库移的最终目标 挪到 推荐的目标
|
|
|
|
fromloc = await _locationAppService.GetByCodeAsync(detail.RecommendFromLocationCode).ConfigureAwait(false); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//库移的最终目标 挪到 推荐的目标
|
|
|
|
var fromloc = await _locationAppService.GetByCodeAsync(detail.TransferLibToLocationCode).ConfigureAwait(false); |
|
|
|
fromloc = await _locationAppService.GetByCodeAsync(detail.TransferLibToLocationCode).ConfigureAwait(false); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var toloc = await _locationAppService.GetByCodeAsync(detail.RecommendToLocationCode).ConfigureAwait(false); |
|
|
|
|
|
|
|
detailDto.InjectFrom(detail); |
|
|
@ -966,12 +978,13 @@ public class KittingIssueJobAppService |
|
|
|
detailDto.HandledFromLot = detail.RecommendToLot; |
|
|
|
detailDto.HandledFromPackingCode = detail.RecommendToPackingCode; |
|
|
|
} |
|
|
|
|
|
|
|
await ExecuteDetailExtAsync(entity.Id, entity.Details.First().Id, detailDto).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
return ReturnMessage("-1", ex.Message); |
|
|
|
return ReturnMessage("-1", e.Message); |
|
|
|
} |
|
|
|
return ReturnMessage("0", "OK"); |
|
|
|
} |
|
|
|