| | |
| | | { |
| | | return await Service.CompleteAsync(taskNum); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 浠诲姟鍙栨秷 |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("TaskCancel"), AllowAnonymous] |
| | | public WebResponseContent TaskCancel(int taskNum) |
| | | { |
| | | return Service.TaskCancel(taskNum); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 鑾峰彇浠诲姟淇℃伅 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("GetTaskInfo")] |
| | | public WebResponseContent GetTaskInfo() |
| | | { |
| | | return Service.GetTaskInfo(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 璇锋眰鍏ュ簱浠诲姟 |
| | | /// </summary> |
| | |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | | return await Service.RequestOutboundTaskAsync(taskDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 鍑哄簱鑷崇紦瀛樺尯 |
| | | /// </summary> |
| | | /// <param name="request">璇锋眰鏁版嵁</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("OutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> OutBoundTaskAsync(string palletCode) |
| | | { |
| | | return Service.OutBoundTaskAsync(palletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | return await Service.AGVIsNeedRelocationAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public Task<WebResponseContent> ERPAllocate(string palletCode) |
| | | { |
| | | return Service.ERPAllocate(palletCode); |
| | | } |
| | | } |