From 8cea58095ddd74406b6cb893adbda807b70c3b02 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 9 Jan 2026 09:17:18 +0800 Subject: [PATCH] 调机状态根据websocket中的数据 --- src/mes/productionExec/productionExecMain/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js index d04d3c9..0488966 100644 --- a/src/mes/productionExec/productionExecMain/index.js +++ b/src/mes/productionExec/productionExecMain/index.js @@ -559,7 +559,10 @@ const ProductionExecContentByType = props => { !deviceTargetInfoData[0]?.sStatus ) return; - const sStatusNameValue = deviceTargetInfoData[0]?.dAdjustOrRun === 0 + const { globalData } = props?.app + const {currentWorkOrderInfo} = globalData || {} + const { dAdjustOrRun } = currentWorkOrderInfo || {} + const sStatusNameValue = dAdjustOrRun === 0 ? 0 : 1; -- libgit2 0.22.2