huanghongfeng
2025-11-10 234e0265fbed611b20f0903bb69fbf0bd5417c1c
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
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_ITaskInfoService;
using WIDESEA_Model.Models;
using static WIDESEA_ITaskInfoService.ITaskService;
 
namespace WIDESEA_WMSServer.Controllers.TaskInfo
{
    [Route("api/Task")]
    [ApiController]
    public class TaskController : ApiBaseController<ITaskService, Dt_Task>
    {
        public TaskController(ITaskService service) : base(service)
        {
        }
 
        [HttpGet, Route("TaskCompleted"), AllowAnonymous]
        public WebResponseContent TaskCompleted(int taskNum,int HowWorks)
        {
            return Service.TaskCompleted(taskNum, HowWorks);
        }
 
 
 
 
 
        [HttpPost, Route("ManualOutbound"), AllowAnonymous] 
        public WebResponseContent ManualOutbound([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound(saveModel); 
        }
 
 
        [HttpPost, Route("ManualOutbound2"), AllowAnonymous]
        public WebResponseContent ManualOutbound2([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound2(saveModel);
        }
 
        [HttpPost, Route("EmptyOutbound"), AllowAnonymous]
        public WebResponseContent EmptyOutbound([FromBody] SaveModel saveModel)
        {
            return Service.EmptyOutbound(saveModel); 
        }
 
        [HttpPost, Route("ManualOutboundDeleteinventory"), AllowAnonymous] 
        public WebResponseContent ManualOutboundDeleteinventory([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutboundDeleteinventory(saveModel);
        }
        [HttpGet, Route("PalletQueryinventory"), AllowAnonymous]
        public WebResponseContent PalletQueryinventory()
        {
            return Service.PalletQueryinventory(); 
        }
        [HttpPost, Route("RelocationInTaskCompleted"), AllowAnonymous]
        public WebResponseContent RelocationInTaskCompleted([FromBody] Dt_Task task)
        {
            return Service.RelocationInTaskCompleted(task);
        }
 
        
        [HttpGet, Route("Cancelinventory"), AllowAnonymous]
        public WebResponseContent Cancelinventory(int taskNum)
        {
            return Service.Cancelinventory(taskNum);
        }
 
        //入库
        [HttpPost, Route("RequestInboundPDA"), AllowAnonymous]
        public WebResponseContent RequestInboundPDA([FromBody] SaveModel saveModel)
        {
            return Service.RequestInboundPDA(saveModel); 
        }
 
        //库存更改
        [HttpPost, Route("RequestInboundPDA2"), AllowAnonymous]
        public WebResponseContent RequestInboundPDA2([FromBody] SaveModel saveModel)
        {
            return Service.RequestInboundPDA2(saveModel);
        }
 
        //空托入库
        [HttpPost, Route("EmptyInbound"), AllowAnonymous]
        public WebResponseContent EmptyInbound([FromBody] GenerateInv saveModel)
        {
            return Service.EmptyInbound(saveModel); 
        }
 
        [HttpPost, Route("EmptyInboundPDA"), AllowAnonymous]
        public WebResponseContent EmptyInboundPDA([FromBody] SaveModel saveModel)
        {
            return Service.EmptyInboundPDA(saveModel);
        }
 
        //检修回库
        [HttpPost, Route("MaintenanceStorage"), AllowAnonymous]
        public WebResponseContent MaintenanceStorage([FromBody] GenerateInv saveModel)
        {
            return Service.MaintenanceStorage(saveModel);
        }
 
        [HttpPost, Route("Outbound_inventory"), AllowAnonymous]
        public object Outbound_inventory()
        {
            return Service.Outbound_inventory();
        }
 
        /// <summary>
        /// 获取货位状态
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("GetLocationStatu2"), AllowAnonymous]
        public object GetLocationStatu2()
        {
            return Service.GetLocationStatu2();
        }
    }
}