| | |
| | |
|
| | | public string AGV_OutTaskComplete = WIDESEA_Core.Helper.AppSettings.Configuration["AGV_OutTaskComplete"];
|
| | | public string WCS_ReceiveTask = WIDESEA_Core.Helper.AppSettings.Configuration["WCS_ReceiveTask"];
|
| | | public string WCS_CancelTask = WIDESEA_Core.Helper.AppSettings.Configuration["WCS_CancelTask"]; |
| | |
|
| | | /// <summary>
|
| | | /// 极卷库出入库申请
|
| | |
| | | InboundOrderRowNo = 1,
|
| | | Creater = StockConstants.AGV_USER,
|
| | | CreateDate = DateTime.Now,
|
| | | Remark = $"AGV入库任务创建,任务号:{dto.TaskId}"
|
| | | Remark = $"极卷库AGV入库任务创建,任务号:{dto.TaskId}"
|
| | | };
|
| | |
|
| | | // 创建库存主记录
|
| | |
| | | StockStatus = (int)StockStatusEmun.入库确认,
|
| | | Creater = StockConstants.AGV_USER,
|
| | | CreateDate = DateTime.Now,
|
| | | Remark = $"AGV入库任务创建,任务号:{dto.TaskId}",
|
| | | Remark = $"极卷库AGV入库任务创建,任务号:{dto.TaskId}",
|
| | | Details = new List<Dt_StockInfoDetail> { details }
|
| | | };
|
| | |
|
| | |
| | | private async Task<AGVResponse> CancelAgvInboundTask(Dt_Task task)
|
| | | {
|
| | | AGVResponse response = new AGVResponse();
|
| | |
|
| | | var httpResponse = _httpClientHelper.Post<WebResponseContent>(WCS_ReceiveTask, task.TaskNum.ToString());
|
| | | if (httpResponse == null || httpResponse.Data == null || !httpResponse.Data.Status)
|
| | | return response.Error(httpResponse?.Data?.Message ?? "下发WCS取消失败");
|
| | |
|
| | | task.TaskStatus = (int)TaskInStatusEnum.InCancel;
|
| | |
|
| | | _unitOfWorkManage.BeginTran();
|
| | |
| | | private async Task<AGVResponse> CancelAgvOutboundTaskAsync(Dt_Task task)
|
| | | {
|
| | | AGVResponse response = new AGVResponse();
|
| | | var httpResponse = _httpClientHelper.Post<WebResponseContent>(WCS_ReceiveTask, task.TaskNum.ToString());
|
| | | if (httpResponse == null || httpResponse.Data == null || !httpResponse.Data.Status)
|
| | | return response.Error(httpResponse?.Data?.Message ?? "下发WCS失败");
|
| | |
|
| | | var stockInfo = await _stockInfoService.GetStockInfoAsync(task.PalletCode);
|
| | | if (stockInfo == null)
|
| | | return response.Error($"未找到托盘{task.PalletCode}的库存信息");
|