1
huangxiaoqiang
2025-10-24 927ce822017ff8459be84b742d519970ca614096
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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<IDt_AllocateOutboundOrderService, Dt_AllocateOutboundOrder>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public AllocateOutboundOrderController(IDt_AllocateOutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
 
        /// <summary>
        /// 获取出库单据信息
        /// </summary>
        /// <param name="outboundOrderGetDTO"></param>
        /// <returns></returns>
        [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);
        }
        /// <summary>
        /// 根据请求出库任务
        /// </summary>
        /// <param name="requestOut"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GenerateAllocateOutboundTask"), AllowAnonymous]
        public Task<WebResponseContent> GenerateAllocateOutboundTask(GenerateOutTaskDto requestOut)
        {
            return Service.GenerateAllocateOutboundTask(requestOut);
        }
    }
}