Commit 8cea58095ddd74406b6cb893adbda807b70c3b02

Authored by chenxt
1 parent 95c48678

调机状态根据websocket中的数据

src/mes/productionExec/productionExecMain/index.js
@@ -559,7 +559,10 @@ const ProductionExecContentByType = props => { @@ -559,7 +559,10 @@ const ProductionExecContentByType = props => {
559 !deviceTargetInfoData[0]?.sStatus 559 !deviceTargetInfoData[0]?.sStatus
560 ) 560 )
561 return; 561 return;
562 - const sStatusNameValue = deviceTargetInfoData[0]?.dAdjustOrRun === 0 562 + const { globalData } = props?.app
  563 + const {currentWorkOrderInfo} = globalData || {}
  564 + const { dAdjustOrRun } = currentWorkOrderInfo || {}
  565 + const sStatusNameValue = dAdjustOrRun === 0
563 ? 0 566 ? 0
564 : 1; 567 : 1;
565 568