diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index e04c312..427388c 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -1227,6 +1227,7 @@ const CommonModel = baseProps => { const CommonModelComponent = props => { const { tabConfig = [], level, modelStyle } = props; + const { sMachineId, iTeamType } = props.app.userinfo; const getComponent = (config, index = 0) => { const { sName, @@ -1392,6 +1393,16 @@ const CommonModelComponent = props => { .map((config, index) => { const { sName, sTabName } = config; let disabled = false; + // 特殊处理:只有 "包装班组额外补时" tab 才需要判断机器ID + if (sTabName === "包装班组额外补时") { + // 只有机器ID在允许列表中,才继续渲染该tab;否则返回null不渲染 + if(!['127101011171144935887930', + '17183488470003431845359008405500', + '17230208040004197201717623462000', + '17230286770009406024350045520000'].includes(sMachineId)){ + return ''; + } + } if (sTabName === "拼接列表" && sName === "slaveWypj3") { // 特殊处理:拼接详情可保存时,拼接列表tab不可点击