From 0f65c6c87584a29f510a48392f587caaf16bd2a4 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Fri, 26 Dec 2025 17:47:43 +0800 Subject: [PATCH] 1.劲嘉---班组报工,只有特定机台展示"包装班组额外补时"页签 --- src/mes/common/commonModelComponent/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) 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不可点击 -- libgit2 0.22.2