From c228a2254ec6a31fe32533e2b6323b5e48dfaf06 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期六, 11 一月 2025 17:02:19 +0800 Subject: [PATCH] 日志 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs index 61b142b..88aa8f9 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs @@ -198,8 +198,8 @@ await DeleteStockInfoAsync(stock.Id); await DeleteStockInfoDetailsAsync(stock.StockInfoDetails); await AddStockInfoHtyAsync(stockInfo_Hty); + await UpdateLocationAsync(loc); //璐ㄦ浠诲姟闇�瑕佹寔缁攣瀹氬簱浣� } - await UpdateLocationAsync(loc); await DeleteTaskAsync(task.TaskId); await AddTaskHtyAsync(taskHty); }); @@ -258,7 +258,7 @@ ParameterDesc = parameterInfo.Description, ParameterResult = "OK", //isNG.ToString(), TargetValue = parameterInfo.TargetValue, - LowerLomit = parameterInfo.LowerSpecificationsLimit, + LowerLimit = parameterInfo.LowerSpecificationsLimit, UpperLimit = parameterInfo.UpperSpecificationsLimit, DefectCode = defectCode, UOMCode = parameterInfo.UOMCode, @@ -1377,6 +1377,10 @@ { return content.Error("鏈煡璇㈠埌瀵瑰簲鐨勫簱瀛樹俊鎭�"); } + if (stockInfo.LocationInfo.LocationStatus != (int)LocationEnum.InStock) + { + return content.Error("璇ヨ揣浣嶇姸鎬佷笉绛変簬銆愭湁璐с�戣鏌ョ湅鏄惁宸茬粡鏈変换鍔★紒"); + } var task = await BaseDal.QueryFirstAsync(x => x.PalletCode == palletCode); if (task != null) @@ -1397,9 +1401,12 @@ } else { - if (stockInfo.LocationInfo.RoadwayNo == "JZSC1") + if (stockInfo.LocationInfo.RoadwayNo.Contains("JZSC")) { - task = CreateTask(stockInfo, "002-021-001", taskType); + var targetAddress = "002-021-001"; + if (stockInfo.LocationInfo.RoadwayNo == "JZSC4") + targetAddress = "001-021-001"; + task = CreateTask(stockInfo, targetAddress, taskType); } } //var taskId = await BaseDal.AddDataAsync(task); @@ -2410,7 +2417,7 @@ ParameterDesc = parameterInfo.Description, ParameterResult = "OK", TargetValue = parameterInfo.TargetValue, - LowerLomit = parameterInfo.LowerSpecificationsLimit, + LowerLimit = parameterInfo.LowerSpecificationsLimit, UpperLimit = parameterInfo.UpperSpecificationsLimit, DefectCode = defectCode, } -- Gitblit v1.9.3