647556386
2025-10-18 d01658c63cd541fe4ea5cec5c4bd7f23b9408cdb
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
54
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IOutboundService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers.Outbound
{
    [Route("api/OutboundOrderDetail")]
    [ApiController]
    public class OutboundOrderDetailController : ApiBaseController<IOutboundOrderDetailService, Dt_OutboundOrderDetail>
    {
        public OutboundOrderDetailController(IOutboundOrderDetailService service) : base(service)
        {
        }
 
        [HttpPost, Route("AutoLockOutboundStock")]
        public WebResponseContent LockOutboundStock(int orderDetailId)
        {
            return Service.LockOutboundStock(orderDetailId);
        }
 
        [HttpPost, Route("LockOutboundStock")]
        public WebResponseContent LockOutboundStock(int id, [FromBody] List<StockSelectViewDTO> stockSelectViews)
        {
            return Service.LockOutboundStock(id, stockSelectViews);
        }
 
        [HttpPost, Route("LockOutboundStocks")]
        public WebResponseContent LockOutboundStocks([FromBody] int[] keys)
        {
            return Service.LockOutboundStock(keys);
        }
 
        [HttpPost, Route("RevokeLockOutboundStock")]
        public WebResponseContent RevokeLockOutboundStock(int id)
        {
            return Service.RevokeLockOutboundStock(id);
        }
        /// <summary>
        /// 出库明细取消回调ERP
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, Route("CancelOutFeedbackERP"), AllowAnonymous]
        public WebResponseContent CancelOutFeedbackERP([FromBody] int[] keys)
        {
            return Service.CancelOutFeedbackERP(keys);
        }
    }
}