Browse Source

修改库移回调 和 库移校验预计出

Agv分支2024-11-19
Zheng 4 months ago
parent
commit
3154098553
  1. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs
  2. 11
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs

@ -490,7 +490,7 @@ public class AssembleIssueJobAppService
var jobDto=ObjectMapper.Map<AssembleIssueJob, AssembleIssueJobDTO>(job); var jobDto=ObjectMapper.Map<AssembleIssueJob, AssembleIssueJobDTO>(job);
var isDoingAgv=await DoingAgvAsync(jobDto, transferLibNoteDetail.HandledFromLocationCode, jobDetail.RecommendToLocationCode).ConfigureAwait(false); var isDoingAgv=await DoingAgvAsync(jobDto, transferLibNoteDetail.HandledToLocationCode, jobDetail.RecommendToLocationCode).ConfigureAwait(false);
if (isDoingAgv) if (isDoingAgv)
{ {

11
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs

@ -129,7 +129,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
CheckLocation(toLocationDto, detail); CheckLocation(toLocationDto, detail);
CheckFromLocation(fromLocationDto, detail); CheckFromLocation(fromLocationDto, detail);
await CheckPackingCode(detail.FromPackingCode).ConfigureAwait(false); await CheckPackingCodeAsync(detail.FromPackingCode).ConfigureAwait(false);
if (toLocationDto.Type != fromLocationDto.Type) if (toLocationDto.Type != fromLocationDto.Type)
{ {
throw new UserFriendlyException($"来源库位与目标库位类型不一致"); throw new UserFriendlyException($"来源库位与目标库位类型不一致");
@ -403,7 +403,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
{ {
if (!string.IsNullOrEmpty(detail.FromPackingCode)) if (!string.IsNullOrEmpty(detail.FromPackingCode))
{ {
await CheckPackingCode(detail.FromPackingCode).ConfigureAwait(false); await CheckPackingCodeAsync(detail.FromPackingCode).ConfigureAwait(false);
} }
} }
entity =await _transferNoteManager.CreateAsync(entity).ConfigureAwait(false); entity =await _transferNoteManager.CreateAsync(entity).ConfigureAwait(false);
@ -431,7 +431,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
{ {
if (!string.IsNullOrEmpty(detail.FromPackingCode)) if (!string.IsNullOrEmpty(detail.FromPackingCode))
{ {
await CheckPackingCode(detail.FromPackingCode).ConfigureAwait(false); await CheckPackingCodeAsync(detail.FromPackingCode).ConfigureAwait(false);
} }
} }
resultEntity.Add(await _transferNoteManager.CreateAsync(entity).ConfigureAwait(false)); resultEntity.Add(await _transferNoteManager.CreateAsync(entity).ConfigureAwait(false));
@ -447,7 +447,9 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
/// <param name="packingCode"></param> /// <param name="packingCode"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="UserFriendlyException"></exception> /// <exception cref="UserFriendlyException"></exception>
private async Task CheckPackingCode(string packingCode) private async Task CheckPackingCodeAsync(string packingCode)
{
if (!string.IsNullOrEmpty(packingCode))
{ {
var packingcode = await _expectOutAppService.GetListByPackingCodeAsync(packingCode).ConfigureAwait(false); var packingcode = await _expectOutAppService.GetListByPackingCodeAsync(packingCode).ConfigureAwait(false);
if (packingcode != null && packingCode.Length > 0) if (packingcode != null && packingCode.Length > 0)
@ -455,6 +457,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
throw new UserFriendlyException($"箱码{packingCode}在预计出中已存在!"); throw new UserFriendlyException($"箱码{packingCode}在预计出中已存在!");
} }
} }
}

Loading…
Cancel
Save