| | |
| | |
|
| | | 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>
|
| | | /// 极卷库出入库申请
|
| | |
| | | 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}的库存信息");
|