Commit 2387ce333ca8573f72cfcc6de2b3ead577a1e9b8

Authored by chenxt
1 parent 04914a91

调机开始按钮隐藏

src/mes/common/commonOperationBarComponent/index.js
... ... @@ -840,7 +840,7 @@ const useCommonOperationBarComponentEvent = props => {
840 840 style.color = "#000";
841 841 defaultProps.style = style;
842 842 }
843   - if (config.btnBgColor) {
  843 + if (config.sControlName.includes('setUpStart') && config.showName === '调机结束') {
844 844 const { style = {} } = defaultProps;
845 845 style.backgroundColor = config.btnBgColor;
846 846 style.borderColor = config.btnBgColor;
... ...
src/mes/productionExec/productionExecMain/index.js
... ... @@ -559,9 +559,11 @@ const ProductionExecContentByType = props => {
559 559 !deviceTargetInfoData[0]?.sStatus
560 560 )
561 561 return;
562   - const { globalData } = props?.app
  562 + const { globalData, userinfo } = props?.app
563 563 const { currentWorkOrderInfo } = globalData || {}
564 564 const { dAdjustOrRun } = currentWorkOrderInfo || {}
  565 + const { bAdjust } = userinfo || {}
  566 + if (bAdjust === 0) return
565 567 // const sStatusNameValue = dAdjustOrRun === 0
566 568 // ? 0
567 569 // : 1;
... ...