From 0b2869539598059704e1d208e2bcb18603b0fe0f Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 01 五月 2026 00:00:30 +0800
Subject: [PATCH] feat(出库时效): 添加出库时效配置功能

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Workflow/RobotSimpleCommandHandler.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Workflow/RobotSimpleCommandHandler.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Workflow/RobotSimpleCommandHandler.cs
index d60d160..eb8c01e 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Workflow/RobotSimpleCommandHandler.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/RobotJob/Workflow/RobotSimpleCommandHandler.cs
@@ -197,7 +197,7 @@
                             // 璋冪敤鎵归噺鎷嗙洏纭鎺ュ彛
                             var sourcePallet = state.CurrentTask.RobotSourceAddressPalletCode;
                             var confirmResult = _taskProcessor.PostSplitPalletConfirmAsync(sourcePallet, state.RobotCrane?.DeviceName);
-                            if (!confirmResult.IsSuccess)
+                            if (!confirmResult.IsSuccess && !confirmResult.Data.Status)
                             {
                                 QuartzLogHelper.LogError(_logger, $"鎵归噺鎷嗙洏纭澶辫触: {confirmResult.ErrorMessage}", state.RobotCrane?.DeviceName ?? "Unknown");
                                 return false;
@@ -221,8 +221,10 @@
                                 QuartzLogHelper.LogInfo(_logger, $"鍙戦�佹秷鎭細銆怗roup,diskFinished銆�", state.RobotCrane.DeviceName);
 
                                 state.CurrentTask = null;
+                                state.CurrentTaskNum = null;
                                 state.RobotTaskTotalNum = 0;
                                 state.CellBarcode = new List<string>();
+                                state.CurrentBatchBarcodes = new List<string>();
                                 state.ChangePalletPhase = 0;
                                 state.CurrentBatchIndex = 1;
                                 state.IsInFakeBatteryMode = false;
@@ -314,7 +316,7 @@
                             // 璋冪敤鎵归噺缁勭洏纭鎺ュ彛
                             var targetPallet = state.CurrentTask.RobotTargetAddressPalletCode;
                             var confirmResult = _taskProcessor.PostGroupPalletConfirmAsync(targetPallet, state.RobotCrane?.DeviceName);
-                            if (!confirmResult.IsSuccess)
+                            if (!confirmResult.IsSuccess && !confirmResult.Data.Status)
                             {
                                 QuartzLogHelper.LogError(_logger, $"鎵归噺缁勭洏纭澶辫触: {confirmResult.ErrorMessage}", state.RobotCrane?.DeviceName ?? "Unknown");
                                 return false;
@@ -335,8 +337,10 @@
                                 }
 
                                 state.CurrentTask = null;
+                                state.CurrentTaskNum = null;
                                 state.RobotTaskTotalNum = 0;
                                 state.CellBarcode = new List<string>();
+                                state.CurrentBatchBarcodes = new List<string>();
 
                                 await _socketClientGateway.SendToClientAsync(state.IPAddress, $"Group,diskFinished");
                                 QuartzLogHelper.LogInfo(_logger, $"鍙戦�佹秷鎭細銆怗roup,diskFinished銆�", state.RobotCrane.DeviceName);
@@ -371,8 +375,10 @@
                             }
 
                             state.CurrentTask = null;
+                            state.CurrentTaskNum = null;
                             state.RobotTaskTotalNum = 0;
                             state.CellBarcode = new List<string>();
+                            state.CurrentBatchBarcodes = new List<string>();
 
                             await _socketClientGateway.SendToClientAsync(state.IPAddress, $"Group,diskFinished");
                             QuartzLogHelper.LogInfo(_logger, $"鍙戦�佹秷鎭細銆怗roup,diskFinished銆�", state.RobotCrane.DeviceName);
@@ -411,8 +417,10 @@
 
                             // 娓呯悊鐘舵�侊紝涓轰笅涓�涓换鍔″仛鍑嗗
                             state.CurrentTask = null;           // 娓呴櫎褰撳墠浠诲姟
+                            state.CurrentTaskNum = null;        // 娓呴櫎褰撳墠浠诲姟缂栧彿
                             state.RobotTaskTotalNum = 0;        // 閲嶇疆浠诲姟璁℃暟
                             state.CellBarcode = new List<string>();  // 娓呯┖鏉$爜鍒楄〃
+                            state.CurrentBatchBarcodes = new List<string>();  // 娓呯┖褰撳墠鎵规鏉$爜
 
                             await _socketClientGateway.SendToClientAsync(state.IPAddress, $"Group,diskFinished");
                             QuartzLogHelper.LogInfo(_logger, $"鍙戦�佹秷鎭細銆怗roup,diskFinished銆�", state.RobotCrane.DeviceName);

--
Gitblit v1.9.3