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