Commit 0f65c6c87584a29f510a48392f587caaf16bd2a4
1 parent
036bd080
1.劲嘉---班组报工,只有特定机台展示"包装班组额外补时"页签
Showing
1 changed file
with
11 additions
and
0 deletions
src/mes/common/commonModelComponent/index.js
| ... | ... | @@ -1227,6 +1227,7 @@ const CommonModel = baseProps => { |
| 1227 | 1227 | |
| 1228 | 1228 | const CommonModelComponent = props => { |
| 1229 | 1229 | const { tabConfig = [], level, modelStyle } = props; |
| 1230 | + const { sMachineId, iTeamType } = props.app.userinfo; | |
| 1230 | 1231 | const getComponent = (config, index = 0) => { |
| 1231 | 1232 | const { |
| 1232 | 1233 | sName, |
| ... | ... | @@ -1392,6 +1393,16 @@ const CommonModelComponent = props => { |
| 1392 | 1393 | .map((config, index) => { |
| 1393 | 1394 | const { sName, sTabName } = config; |
| 1394 | 1395 | let disabled = false; |
| 1396 | + // 特殊处理:只有 "包装班组额外补时" tab 才需要判断机器ID | |
| 1397 | + if (sTabName === "包装班组额外补时") { | |
| 1398 | + // 只有机器ID在允许列表中,才继续渲染该tab;否则返回null不渲染 | |
| 1399 | + if(!['127101011171144935887930', | |
| 1400 | + '17183488470003431845359008405500', | |
| 1401 | + '17230208040004197201717623462000', | |
| 1402 | + '17230286770009406024350045520000'].includes(sMachineId)){ | |
| 1403 | + return ''; | |
| 1404 | + } | |
| 1405 | + } | |
| 1395 | 1406 | |
| 1396 | 1407 | if (sTabName === "拼接列表" && sName === "slaveWypj3") { |
| 1397 | 1408 | // 特殊处理:拼接详情可保存时,拼接列表tab不可点击 | ... | ... |