yanjinhui
9 天以前 4babfcfde8b26c755850e0066f1c07fac38e96a2
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_ISquareCabinServices;
using WIDESEA_Model.Models;
using static WIDESEA_DTO.SquareCabin.OrderDto;
 
namespace WIDESEA_WMSServer.Controllers
{
    [Route("api/DeliveryOrder")]
    [ApiController]
    public class DeliveryOrderController : ApiBaseController<IDeliveryOrderServices, Dt_DeliveryOrder>
    {
        public DeliveryOrderController(IDeliveryOrderServices service) : base(service)
        {
        }
        /// <summary>
        /// 完成出库单
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("FinishOutOrder"),AllowAnonymous]
        public WebResponseContent FinishOutOrder(int key)
        {
            return Service.FinishOutOrder(key);
        }
 
        /// <summary>
        /// 创建盘点任务
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("CreateCheckOrder")]
        public WebResponseContent CreateCheckOrder([FromBody] int[] keys)
        {
            return Service.CreateCheckOrder(keys);
        }
 
 
        /// 查询盘点单信息
        /// </summary>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetCheckOrders")]
        public WebResponseContent GetCheckOrders([FromBody] SaveModel saveModel)
        {
            return Service.GetCheckOrders(saveModel);
        }
 
 
 
        /// 查询出库单信息
        /// </summary>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetDeliveryOrders")]
        public WebResponseContent GetDeliveryOrders([FromBody] SaveModel saveModel)
        {
            return Service.GetDeliveryOrders(saveModel);
        }
 
        /// 查询出库/盘点单详情
        /// </summary>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetDeliveryOrderDetail")]
        public WebResponseContent GetDeliveryOrderDetail(int pageNo, string orderNo, bool isPick)
        {
            return Service.GetDeliveryOrderDetail(pageNo, orderNo, isPick);
        }
        /// <summary>
        /// 完成盘点任务
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("CheckFinish")]
        public WebResponseContent CheckFinish([FromBody] SaveModel saveModel)
        {
            return Service.CheckFinish(saveModel);
        }
        /// <summary>
        /// 完成出库任务
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("OutFinish")]
        public WebResponseContent OutFinish([FromBody] SaveModel saveModel)
        {
            return Service.OutFinish(saveModel);
        }
        /// <summary>
        /// 查找未完成盘点/出库任务
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, HttpGet, Route("GetCheckOutTasks")]
        public WebResponseContent GetCheckOutTasks([FromBody] SaveModel saveModel)
        {
            return Service.GetCheckOutTasks(saveModel);
        }
 
        /// <summary>
        /// 盘点出库接口
        /// </summary>
        /// <param name="externalOrderNo"></param>
        /// <returns></returns>
        [HttpPost, Route("InventoryGood"), AllowAnonymous]
        public WebResponseContent InventoryGood(string batchNo, string goodsNo)
        {
            return Service.InventoryGood(batchNo, goodsNo);
        }
 
        /// <summary>
        /// 出库测试
        /// </summary>
        /// <param name="outorder"></param>
        /// <returns></returns>
        [HttpPost, Route("CreateOutboundOrder"), AllowAnonymous]
        public WebResponseContent CreateOutboundOrder([FromBody]UpstramOutOrderInfo outorder)
        {
            return Service.CreateOutboundOrder(outorder);
        }
 
    }
}