From 93f657b783a7fc558290e696befb3f0bbffdf2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Fri, 3 Jan 2025 09:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntegrationPackingNoteAppService.cs | 17 +++++++++-------- .../TransferNotes/TransferNoteAppService.cs | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs index 128825d74..2fa8df011 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/OperationPacking/IntegrationPackingNotes/IntegrationPackingNoteAppService.cs @@ -67,7 +67,7 @@ public class IntegrationPackingNoteAppService : public override async Task CreateAsync(IntegrationPackingNoteEditInput input) { var transferLogEditInputs = new List(); - var outDtos=await _expectOutAppService.GetListByPackingCodeAsync(input.PackingCode).ConfigureAwait(false); + var outDtos = await _expectOutAppService.GetListByPackingCodeAsync(input.PackingCode).ConfigureAwait(false); if (outDtos.Any()) { throw new UserFriendlyException($"此物料已经被【任务编号:{outDtos.First().JobNumber}】占用"); @@ -80,7 +80,8 @@ public class IntegrationPackingNoteAppService : var splitPackingRecDto = splitPackingRecDtos.First(); var inventoryLabelWithoutCodeCreateInput = new InventoryLabelWithoutCodeCreateInput { - Qty = detailInput.Qty, ItemCode = detailInput.ItemCode, + Qty = detailInput.Qty, + ItemCode = detailInput.ItemCode, SupplierCode = detailInput.SupplierCode, Lot = detailInput.Lot, Uom = detailInput.Uom, @@ -114,7 +115,7 @@ public class IntegrationPackingNoteAppService : SupplierSimpleName = detailInput.SupplierSimpleName, Team = string.Empty, }; - var inventoryLabelDto=await _inventoryLabelAppService.GenerateAndCreateAsync(inventoryLabelWithoutCodeCreateInput).ConfigureAwait(false); + var inventoryLabelDto = await _inventoryLabelAppService.GenerateAndCreateAsync(inventoryLabelWithoutCodeCreateInput).ConfigureAwait(false); var splitPackingRecEditInputs = new List() { new SplitPackingRecEditInput() @@ -162,14 +163,14 @@ public class IntegrationPackingNoteAppService : await _splitPackingRecAppService.BatchInsertAsync(splitPackingRecEditInputs).ConfigureAwait(false); //创建标签 - var dto= await base.CreateAsync(input).ConfigureAwait(false); + var dto = await base.CreateAsync(input).ConfigureAwait(false); //库存移动 - var transferLogEditInput=await BuildTransferLogsAsync(dto, detailInput, splitPackingRecEditInputs.First()).ConfigureAwait(false); + var transferLogEditInput = await BuildTransferLogsAsync(dto, detailInput, splitPackingRecEditInputs.First()).ConfigureAwait(false); transferLogEditInputs.Add(transferLogEditInput); } - - await _transferLogAppService.AddManyAsync(transferLogEditInputs).ConfigureAwait(false); + throw new UserFriendlyException("123123"); + // await _transferLogAppService.AddManyAsync(transferLogEditInputs).ConfigureAwait(false); } /// @@ -231,6 +232,6 @@ public class IntegrationPackingNoteAppService : private async Task CreateLabelAsync() { - var batchInsert=await _splitPackingRecAppService.BatchInsertAsync().ConfigureAwait(false); + //var batchInsert=await _splitPackingRecAppService.BatchInsertAsync().ConfigureAwait(false); } } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs index b37115ca0..4b69e0b91 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs @@ -715,7 +715,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase { errors.Add($"结束点{detail.EndPosition}库位没查到"); } - var productionline=await _productionLineAppService.GetByCodeAsync(tolocation.Code).ConfigureAwait(false); + var productionline=await _productionLineAppService.GetByLocationCodeAsync(tolocation.Code).ConfigureAwait(false); if (productionline == null) { errors.Add($"结束点{detail.EndPosition}库位不在生产线中!");