You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

92 lines
3.6 KiB

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
using Win_in.Sfs.Wms.Store.Application.Contracts;
namespace Win_in.Sfs.Wms.Pda.Controllers.Stores;
/// <summary>
///
/// </summary>
[ApiController]
[Route($"{PdaHostConst.ROOT_ROUTE}store/l7")]
public class L7Controller : AbpController
{
private readonly IJisProductReceiptNoteAppService _jisProductReceiptNoteAppService;
private readonly IProductRecycleNoteAppService _productRecycleNoteAppService;
private readonly IInventoryTransferNoteAppService _inventoryTransferNoteAppService;
private readonly ICustomerReturnNoteAppService _customerReturnNoteAppService;
/// <summary>
///
/// </summary>
/// <param name="jisProductReceiptNoteAppService"></param>
/// <param name="productRecycleNoteAppService"></param>
/// <param name="inventoryTransferNoteAppService"></param>
/// <param name="customerReturnNoteAppService"></param>
public L7Controller(IJisProductReceiptNoteAppService jisProductReceiptNoteAppService
, IProductRecycleNoteAppService productRecycleNoteAppService
, IInventoryTransferNoteAppService inventoryTransferNoteAppService
, ICustomerReturnNoteAppService customerReturnNoteAppService)
{
_jisProductReceiptNoteAppService = jisProductReceiptNoteAppService;
_productRecycleNoteAppService = productRecycleNoteAppService;
_inventoryTransferNoteAppService = inventoryTransferNoteAppService;
_customerReturnNoteAppService = customerReturnNoteAppService;
}
/// <summary>
/// L7完工收获记录
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("create-product-receipt-note-with-l7")]
public virtual async Task<JisProductReceiptNoteDTO> CreateProductReceiptNoteWithL7Async(JisProductReceiptNoteEditInput input)
{
return await _jisProductReceiptNoteAppService.CreateAsync(input).ConfigureAwait(false);
}
/// <summary>
/// L7成品回收记录
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("create-product-recycle-note-with-l7")]
public virtual async Task<ProductRecycleNoteDTO> CreateProductRecycleNoteWithL7Async(ProductRecycleNoteEditInput input)
{
return await _productRecycleNoteAppService.CreateWithL7Async(input).ConfigureAwait(false);
}
/// <summary>
/// L7库存转移记录
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("create-inventory-transfer-note-with-l7")]
public virtual async Task<InventoryTransferNoteDTO> CreateInventoryTransferNoteWithL7Async(InventoryTransferNoteEditInput input)
{
return await _inventoryTransferNoteAppService.CreateWithL7Async(input).ConfigureAwait(false);
}
///// <summary>
///// L7发货记录
///// </summary>
///// <param name="input"></param>
///// <returns></returns>
//[HttpPost("create-deliver-note-with-l7")]
//public virtual async Task<DeliverNoteDTO> CreateDeliverNoteWithL7Async(DeliverNoteCreateInput input)
//{
// return await _deliverNoteAppService.CreateWithL7Async(input);
//}
/// <summary>
/// L7客户退货记录
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("create-customer-return-note-with-l7")]
public virtual async Task<CustomerReturnNoteDTO> CreateCustomerReturnNoteWithL7Async(CustomerReturnNoteEditInput input)
{
return await _customerReturnNoteAppService.CreateWithL7Async(input).ConfigureAwait(false);
}
}