fix(flow): 添加内镜未取出时的处理逻辑
- 在多个流程节点的 canHandle 方法中增加检测 isInStorage 状态的判断 - 当内镜未取出时设置预期下一步为提示刷出库卡语音信息 - 阻止流程节点处理,确保流程按正确顺序执行 - 统一改动覆盖消毒、干燥、终末、终末漂洗、机洗、晨洗、漂洗及清洗节点
This commit is contained in:
@@ -35,6 +35,12 @@ class RinseNode extends AbstractProcessNode
|
||||
*/
|
||||
public function canHandle(ProcessContext $context): bool
|
||||
{
|
||||
// 如果内镜未取出
|
||||
if ($context->isInStorage) {
|
||||
$context->expectedNextStep = VoiceMessage::PLEASE_SWIPE_STORAGE_OUT;
|
||||
return false;
|
||||
}
|
||||
|
||||
// 期望当前读卡器为漂洗
|
||||
if (!$this->isMatchReaderType($context)) {
|
||||
// 当前步骤是清洗且读卡器不符:说明清洗完了应该刷漂洗
|
||||
|
||||
Reference in New Issue
Block a user