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; /// /// /// [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; /// /// /// /// /// /// /// public L7Controller(IJisProductReceiptNoteAppService jisProductReceiptNoteAppService , IProductRecycleNoteAppService productRecycleNoteAppService , IInventoryTransferNoteAppService inventoryTransferNoteAppService , ICustomerReturnNoteAppService customerReturnNoteAppService) { _jisProductReceiptNoteAppService = jisProductReceiptNoteAppService; _productRecycleNoteAppService = productRecycleNoteAppService; _inventoryTransferNoteAppService = inventoryTransferNoteAppService; _customerReturnNoteAppService = customerReturnNoteAppService; } /// /// L7完工收获记录 /// /// /// [HttpPost("create-product-receipt-note-with-l7")] public virtual async Task CreateProductReceiptNoteWithL7Async(JisProductReceiptNoteEditInput input) { return await _jisProductReceiptNoteAppService.CreateAsync(input).ConfigureAwait(false); } /// /// L7成品回收记录 /// /// /// [HttpPost("create-product-recycle-note-with-l7")] public virtual async Task CreateProductRecycleNoteWithL7Async(ProductRecycleNoteEditInput input) { return await _productRecycleNoteAppService.CreateWithL7Async(input).ConfigureAwait(false); } /// /// L7库存转移记录 /// /// /// [HttpPost("create-inventory-transfer-note-with-l7")] public virtual async Task CreateInventoryTransferNoteWithL7Async(InventoryTransferNoteEditInput input) { return await _inventoryTransferNoteAppService.CreateWithL7Async(input).ConfigureAwait(false); } ///// ///// L7发货记录 ///// ///// ///// //[HttpPost("create-deliver-note-with-l7")] //public virtual async Task CreateDeliverNoteWithL7Async(DeliverNoteCreateInput input) //{ // return await _deliverNoteAppService.CreateWithL7Async(input); //} /// /// L7客户退货记录 /// /// /// [HttpPost("create-customer-return-note-with-l7")] public virtual async Task CreateCustomerReturnNoteWithL7Async(CustomerReturnNoteEditInput input) { return await _customerReturnNoteAppService.CreateWithL7Async(input).ConfigureAwait(false); } }