| | |
| | | /// </summary> |
| | | /// <param name="saveModel">ä»»å¡å·</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | [HttpGet,HttpPost, Route("CompleteTaskAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> CompleteTaskAsync(int taskNum) |
| | | { |
| | | return await Service.CompleteAsync(taskNum); |
| | |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("TaskCancel"), AllowAnonymous] |
| | | [HttpPost, HttpGet,Route("TaskCancel"), AllowAnonymous] |
| | | public WebResponseContent TaskCancel(int taskNum) |
| | | { |
| | | return Service.TaskCancel(taskNum); |
| | |
| | | /// è·åä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("GetTaskInfo")] |
| | | [HttpPost, HttpGet, Route("GetTaskInfo")] |
| | | public WebResponseContent GetTaskInfo() |
| | | { |
| | | return Service.GetTaskInfo(); |
| | |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestInboundTaskAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestInboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestInboundTaskAsync([FromBody] RequestTaskDto input) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestLocationAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("RequestOutboundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public async Task<Dt_Task> RequestOutboundTaskAsync([FromBody] RequestTaskDto taskDto) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 空æç满çåºåºè¯·æ± |
| | | /// åºåºè³ç¼ååº |
| | | /// </summary> |
| | | /// <param name="request">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("OtherOutBoundTaskAsync")] |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> OtherOutBoundTaskAsync(string palletCode) |
| | | public Task<WebResponseContent> OutBoundTaskAsync(string palletCode) |
| | | { |
| | | return Service.OtherOutBoundTaskAsync(palletCode); |
| | | return Service.OutBoundTaskAsync(palletCode); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, AllowAnonymous, Route("OtherOutBoundTaskAsync")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })] |
| | | public Task<WebResponseContent> OtherOutBoundTaskAsync([FromBody] List<DtStockInfoDetail> details) |
| | | { |
| | | return Service.OtherOutBoundTaskAsync(details); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | return await Service.AGVIsNeedRelocationAsync(taskDto); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("SendERPTaskCompletion")] |
| | | [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })] |
| | | public Task<WebResponseContent> ERPAllocate(string palletCode) |
| | | [HttpPost, AllowAnonymous, Route("GetTaskData")] |
| | | public async Task<WebResponseContent> GetTaskData() |
| | | { |
| | | return Service.ERPAllocate(palletCode); |
| | | return await Service.GetTaskData(); |
| | | } |
| | | } |