|
@ -206,19 +206,24 @@ public class CountJobAppService |
|
|
} |
|
|
} |
|
|
protected async Task<BalanceDTO> CheckPackingCodeAsync(CountJobImportInput importInput, List<ValidationResult> validationRresult, string locationCode) |
|
|
protected async Task<BalanceDTO> CheckPackingCodeAsync(CountJobImportInput importInput, List<ValidationResult> validationRresult, string locationCode) |
|
|
{ |
|
|
{ |
|
|
var item = await _balanceAppService.GetByPackingCodeAsync(importInput.PackingCode).ConfigureAwait(false); |
|
|
if (!string.IsNullOrEmpty(importInput.PackingCode)) |
|
|
if (item != null) |
|
|
|
|
|
{ |
|
|
{ |
|
|
if (item.LocationCode != locationCode) |
|
|
var item = await _balanceAppService.GetByPackingCodeAsync(importInput.PackingCode).ConfigureAwait(false); |
|
|
|
|
|
if (item != null) |
|
|
{ |
|
|
{ |
|
|
validationRresult.Add(new ValidationResult($"箱码已经在库位{item.LocationCode}存在不能盘点", new[] { "箱码" })); |
|
|
if (item.LocationCode != locationCode) |
|
|
} |
|
|
{ |
|
|
if(item.Lot!= importInput.Lot) |
|
|
validationRresult.Add(new ValidationResult($"箱码已经在库位{item.LocationCode}存在不能盘点", new[] { "箱码" })); |
|
|
{ |
|
|
} |
|
|
validationRresult.Add(new ValidationResult($"批次与库存中批次{item.Lot}不匹配不能盘点", new[] { "批次" })); |
|
|
if (item.Lot != importInput.Lot) |
|
|
|
|
|
{ |
|
|
|
|
|
validationRresult.Add(new ValidationResult($"批次与库存中批次{item.Lot}不匹配不能盘点", new[] { "批次" })); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
return item; |
|
|
} |
|
|
} |
|
|
return item; |
|
|
|
|
|
|
|
|
return null; |
|
|
} |
|
|
} |
|
|
protected void CheckJobNumberAsync(CountJobImportInput importInput, List<ValidationResult> validationRresult,string jobNumber) |
|
|
protected void CheckJobNumberAsync(CountJobImportInput importInput, List<ValidationResult> validationRresult,string jobNumber) |
|
|
{ |
|
|
{ |
|
|