| | |
| | | } |
| | | }, |
| | | { |
| | | name: "ä»» å¡ é æ° ä¸ å", |
| | | icon: '', |
| | | class: '', |
| | | type: 'success', |
| | | value: 'ResendTask', |
| | | onClick: function () { |
| | | } |
| | | }, |
| | | { |
| | | name: "ä»»å¡åæ¶", |
| | | icon: '', |
| | | class: '', |
| | |
| | | this.$refs.gridBody.open(row); |
| | | } |
| | | },); |
| | | |
| | | |
| | | let ResendTaskBtn = this.buttons.find(x => x.value == 'ResendTask'); |
| | | if (ResendTaskBtn) { |
| | | ResendTaskBtn.onClick = function () { |
| | | this.$confirm("æ¯å¦ç¡®è®¤éæ°ä¸åä»»å¡", "éæ°ä¸åä»»å¡è¦å", { |
| | | confirmButtonText: "ç¡®å®", |
| | | cancelButtonText: "åæ¶", |
| | | type: "warning", |
| | | center: true, |
| | | }).then(() => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | if (rows.length > 1) return this.$error("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | var param = rows[0].taskNum; |
| | | this.http |
| | | .post("api/Task/ResendTask?taskNum=" + param, "") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('ä»»å¡éæ°ä¸å'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | |
| | | WebResponseContent TaskCompleted(int taskNum); |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡éæ°ä¸å |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns></returns> |
| | | WebResponseContent ResendTask(int taskNum); |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è®¾å¤ç¼å·ãä»»å¡ç±»ååç»(å¯é)æç
§ä¼å
级以åå建æ¶é´æåºæ¥è¯¢ä»»å¡æ± æ°å¢çä»»å¡ |
| | | /// </summary> |
| | | /// <param name="deviceNo">设å¤ç¼å·</param> |
| | |
| | | return Service.ReceiveWMSTask(taskDTOs); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡éæ°ä¸å |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpPost,HttpGet,Route("ResendTask"),AllowAnonymous] |
| | | public WebResponseContent ResendTask(int taskNum) |
| | | { |
| | | return Service.ResendTask(taskNum); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("RequestAssignLocation"), AllowAnonymous] |
| | | public string? RequestAssignLocation(int taskNum, string roadwayNo) |
| | | { |
| | |
| | | { |
| | | return Service.RecWMSTaskCompleted(taskNum); |
| | | } |
| | | |
| | | |
| | | [HttpPost, HttpGet, Route("YLPurchasePush"), AllowAnonymous] |
| | | public WebResponseContent YLPurchasePush(string code) |
| | | { |
| | |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using System.Diagnostics.CodeAnalysis; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_DTO.Agv; |
| | | using WIDESEAWCS_Common; |
| | | using WIDESEAWCS_Common.APIEnum; |
| | |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡éæ°ä¸å |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent ResendTask(int taskNum) |
| | | { |
| | | try |
| | | { |
| | | Dt_Task task = BaseDal.QueryFirst(x => x.TaskNum == taskNum); |
| | | if (task != null) |
| | | { |
| | | if (task.TaskState == (int)TaskStatusEnum.SC_Executing) |
| | | { |
| | | task.TaskState = TaskStatusEnum.SC_Execute.ObjToInt(); |
| | | } |
| | | else if(task.TaskState == (int)TaskStatusEnum.AGV_Executing) |
| | | { |
| | | task.TaskState = TaskStatusEnum.AGV_Execute.ObjToInt(); |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error($"æ¤ä»»å¡ { taskNum } ææ¶ä¸è½éæ°ä¸åä»»å¡"); |
| | | } |
| | | BaseDal.UpdateData(task); |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error($"æªæ¾å°ä»»å¡æ¶æ¯"); |
| | | } |
| | | return WebResponseContent.Instance.OK("ä»»å¡éæ°ä¸åæå"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¶WMSä»»å¡ä¿¡æ¯ |
| | | /// </summary> |