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.
96 lines
2.1 KiB
96 lines
2.1 KiB
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.Application.Dtos;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
namespace Win_in.Sfs.Wms.Pda.Controllers.Lpns;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}stock/lu")]
|
|
public class LogisticUnitController : AbpController
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public LogisticUnitController()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="packCode"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("")]
|
|
|
|
public virtual async Task<LogisticUnitDto> GetAsync(string packCode)
|
|
{
|
|
await Task.CompletedTask.ConfigureAwait(false);
|
|
var dto = new LogisticUnitDto();
|
|
|
|
//TODO
|
|
|
|
return dto;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="logisticUnitInput"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("convert")]
|
|
public virtual async Task<ListResultDto<LogisticUnitDto>> ConvertAsync([FromBody] LogisticUnitDto logisticUnitInput)
|
|
{
|
|
await Task.CompletedTask.ConfigureAwait(false);
|
|
var list = new List<LogisticUnitDto>();
|
|
|
|
//TODO
|
|
|
|
return new ListResultDto<LogisticUnitDto>(list);
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="logisticUnitInput"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("split")]
|
|
public virtual async Task<LogisticUnitDto> SplitAsync([FromBody] LogisticUnitDto logisticUnitInput)
|
|
{
|
|
await Task.CompletedTask.ConfigureAwait(false);
|
|
var dto = new LogisticUnitDto();
|
|
|
|
//TODO
|
|
|
|
return dto;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="packsInput"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("combine")]
|
|
public virtual async Task<LogisticUnitDto> CombineAsync([FromBody] List<LogisticUnitDto> packsInput)
|
|
{
|
|
await Task.CompletedTask.ConfigureAwait(false);
|
|
var dto = new LogisticUnitDto();
|
|
|
|
//TODO
|
|
|
|
return dto;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class LogisticUnitDto
|
|
{
|
|
|
|
}
|
|
}
|
|
|