using System;
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/issue")]
public class IssueNoteController : AbpController
{
private readonly IIssueNoteAppService _issueNoteAppService;
///
///
///
///
public IssueNoteController(IIssueNoteAppService issueNoteAppService)
{
_issueNoteAppService = issueNoteAppService;
}
///
/// 创建发料记录
///
///
[HttpPost("{input}")]
public virtual async Task CreateAsync(IssueNoteEditInput input)
{
await _issueNoteAppService.CreateAsync(input).ConfigureAwait(false);
}
///
/// 确认发料记录
///
///
///
[HttpPost("confirm/{id}")]
public virtual async Task ConfirmAsync(Guid id)
{
return await _issueNoteAppService.ConfirmAsync(id).ConfigureAwait(false);
}
}