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/InventoryOutboundOrder")]
    [ApiController]
    public class InventoryOutboundOrderController : ApiBaseController<IDt_InventoryOutboundOrderService, Dt_InventoryOutboundOrder>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public InventoryOutboundOrderController(IDt_InventoryOutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
 
        /// <summary>
        /// 获取出库单据信息
        /// </summary>
        /// <param name="outboundOrderGetDTO"></param>
        /// <returns></returns>
        [HttpPost, AllowAnonymous, Route("GetInventoryOutboundOrder")]
        public WebResponseContent GetInventoryOutboundOrder([FromBody] OutboundOrderGetDTO outboundOrderGetDTO)
        {
            return Service.GetInventoryOutboundOrder(outboundOrderGetDTO);
        }
 
        [HttpPost, HttpGet, AllowAnonymous, Route("GetInventoryOutboundOrderDetail")]
        public WebResponseContent GetInventoryOutboundOrderDetail([FromBody] OutboundOrderGetDTO outboundOrderGetDTO)
        {
            return Service.GetInventoryOutboundOrderDetail(outboundOrderGetDTO);
        }
        /// <summary>
        /// 根据请求出库任务
        /// </summary>
        /// <param name="requestOut"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GenerateInventoryOutboundTask"), AllowAnonymous]
        public Task<WebResponseContent> GenerateInventoryOutboundTask(GenerateOutTaskDto requestOut)
        {
            return Service.GenerateInventoryOutboundTask(requestOut);
        }
    }
}