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.
51 lines
1.4 KiB
51 lines
1.4 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/injection-request")]
|
|
|
|
public class InjectionRequestController : AbpController
|
|
{
|
|
private readonly IInjectionRequestAppService _injectionRequestAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="InjectionRequestAppService"></param>
|
|
public InjectionRequestController(IInjectionRequestAppService InjectionRequestAppService)
|
|
{
|
|
_injectionRequestAppService = InjectionRequestAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 注塑叫料申请
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("")]
|
|
public virtual async Task CreateAsync(InjectionRequestEditInput input)
|
|
{
|
|
_ = await _injectionRequestAppService.CreateAsync(input).ConfigureAwait(false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据number获取注塑叫料申请详情
|
|
/// </summary>
|
|
/// <param name="number"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("{number}")]
|
|
|
|
public virtual async Task<ActionResult<InjectionRequestDTO>> GetAsync(string number)
|
|
{
|
|
var result = await _injectionRequestAppService.GetByNumberAsync(number).ConfigureAwait(false);
|
|
return Ok(result);
|
|
}
|
|
|
|
}
|
|
|