|
|
@ -10,6 +10,7 @@ using Volo.Abp; |
|
|
|
using Volo.Abp.Application.Dtos; |
|
|
|
using Win_in.Sfs.Basedata.Application.Contracts; |
|
|
|
using Win_in.Sfs.Basedata.Domain.Shared; |
|
|
|
using Win_in.Sfs.Basedata.SplitPackings.Commons; |
|
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
@ -38,6 +39,10 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase |
|
|
|
private readonly IInspectJobAppService _inspectJobAppService; //质检
|
|
|
|
private readonly IIssueJobAppService _issueJobAppService; //发料
|
|
|
|
|
|
|
|
private readonly IExpectOutAppService _expectOutAppService; //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TransferNoteAppService( |
|
|
@ -49,7 +54,8 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase |
|
|
|
IPurchaseReceiptJobAppService purchaseReceiptJobAppService, |
|
|
|
IPurchaseReceiptRequestAppService purchaseReceiptRequestAppService, |
|
|
|
IInspectJobAppService inspectJobAppService, |
|
|
|
IIssueJobAppService issueJobAppService) : base(repository) |
|
|
|
IIssueJobAppService issueJobAppService, |
|
|
|
IExpectOutAppService expectOutAppService) : base(repository) |
|
|
|
{ |
|
|
|
_transferNoteManager = transferNoteManager; |
|
|
|
_balanceAppService = balanceAppService; |
|
|
@ -59,6 +65,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase |
|
|
|
_purchaseReceiptRequestAppService = purchaseReceiptRequestAppService; |
|
|
|
_inspectJobAppService = inspectJobAppService; |
|
|
|
_issueJobAppService = issueJobAppService; |
|
|
|
_expectOutAppService = expectOutAppService; |
|
|
|
} |
|
|
|
|
|
|
|
#region 东阳使用
|
|
|
@ -438,6 +445,13 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase |
|
|
|
[HttpPost("split-packing-inspect")] |
|
|
|
public async Task<TransferNoteDTO> SplitPacking_InspectAsync(TransferNoteEditInput transferNoteEditInput, [FromQuery] SplitPacking_UpdateJobDetailInput updateJobDetailInput) |
|
|
|
{ |
|
|
|
SplitPacking_UpdateDetailInput newInput = new SplitPacking_UpdateDetailInput(); |
|
|
|
newInput.Number = updateJobDetailInput.Number; |
|
|
|
newInput.FromPackingCode = updateJobDetailInput.FromPackingCode; |
|
|
|
newInput.FromQty = updateJobDetailInput.FromQty; |
|
|
|
newInput.ToPackingCode = updateJobDetailInput.ToPackingCode; |
|
|
|
newInput.ToQty = updateJobDetailInput.ToQty; |
|
|
|
var expectOutRet = await _expectOutAppService.SaveDetail_SplitPackingAsync(newInput).ConfigureAwait(false); |
|
|
|
var jobRet = await _inspectJobAppService.SaveDetail_SplitPackingAsync(updateJobDetailInput).ConfigureAwait(false); |
|
|
|
var ret = await SplitPackingAsync(transferNoteEditInput).ConfigureAwait(false); //库存操作
|
|
|
|
return ret; |
|
|
@ -452,6 +466,13 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase |
|
|
|
[HttpPost("split-packing-issue")] |
|
|
|
public async Task<TransferNoteDTO> SplitPacking_IssueAsync(TransferNoteEditInput transferNoteEditInput, [FromQuery] SplitPacking_UpdateJobDetailInput updateJobDetailInput) |
|
|
|
{ |
|
|
|
SplitPacking_UpdateDetailInput newInput = new SplitPacking_UpdateDetailInput(); |
|
|
|
newInput.Number = updateJobDetailInput.Number; |
|
|
|
newInput.FromPackingCode = updateJobDetailInput.FromPackingCode; |
|
|
|
newInput.FromQty = updateJobDetailInput.FromQty; |
|
|
|
newInput.ToPackingCode = updateJobDetailInput.ToPackingCode; |
|
|
|
newInput.ToQty = updateJobDetailInput.ToQty; |
|
|
|
var expectOutRet = await _expectOutAppService.SaveDetail_SplitPackingAsync(newInput).ConfigureAwait(false); |
|
|
|
var jobRet = await _issueJobAppService.SaveDetail_SplitPackingAsync(updateJobDetailInput).ConfigureAwait(false); |
|
|
|
var ret = await SplitPackingAsync(transferNoteEditInput).ConfigureAwait(false); //库存操作
|
|
|
|
return ret; |
|
|
|