using Microsoft.AspNetCore.Mvc; using WIDESEA_BusinessServices; using WIDESEA_Core.BaseController; using WIDESEA_DTO.Order; using WIDESEA_DTO.Stock; using WIDESEA_IBusinessServices; using WIDESEA_IOrderServices; using WIDESEA_Model.Models; using WIDESEA_Model.Models.Basic; using WIDESEA_Model.Models.Order; using WIDESEAWCS_BasicInfoService; namespace WIDESEA_WMSServer.Controllers { [Route("api/AllocateOutboundOrder")] [ApiController] public class AllocateOutboundOrderController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public AllocateOutboundOrderController(IDt_AllocateOutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; } /// /// 获取出库单据信息 /// /// /// [HttpPost, AllowAnonymous, Route("GetAllocateOutboundOrder")] public WebResponseContent GetAllocateOutboundOrder([FromBody] OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetAllocateOutboundOrder(outboundOrderGetDTO); } [HttpPost, HttpGet, AllowAnonymous, Route("GetAllocateOutboundOrderDetail")] public WebResponseContent GetAllocateOutboundOrderDetail([FromBody] OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetAllocateOutboundOrderDetail(outboundOrderGetDTO); } /// /// 根据请求出库任务 /// /// /// [HttpPost, HttpGet, Route("GenerateAllocateOutboundTask"), AllowAnonymous] public Task GenerateAllocateOutboundTask([FromBody] GenerateOutTaskDto requestOut) { return Service.GenerateAllocateOutboundTask(requestOut); } } }