Commit 0f65c6c87584a29f510a48392f587caaf16bd2a4

Authored by Min
1 parent 036bd080

1.劲嘉---班组报工,只有特定机台展示"包装班组额外补时"页签

src/mes/common/commonModelComponent/index.js
@@ -1227,6 +1227,7 @@ const CommonModel = baseProps => { @@ -1227,6 +1227,7 @@ const CommonModel = baseProps => {
1227 1227
1228 const CommonModelComponent = props => { 1228 const CommonModelComponent = props => {
1229 const { tabConfig = [], level, modelStyle } = props; 1229 const { tabConfig = [], level, modelStyle } = props;
  1230 + const { sMachineId, iTeamType } = props.app.userinfo;
1230 const getComponent = (config, index = 0) => { 1231 const getComponent = (config, index = 0) => {
1231 const { 1232 const {
1232 sName, 1233 sName,
@@ -1392,6 +1393,16 @@ const CommonModelComponent = props => { @@ -1392,6 +1393,16 @@ const CommonModelComponent = props => {
1392 .map((config, index) => { 1393 .map((config, index) => {
1393 const { sName, sTabName } = config; 1394 const { sName, sTabName } = config;
1394 let disabled = false; 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 if (sTabName === "拼接列表" && sName === "slaveWypj3") { 1407 if (sTabName === "拼接列表" && sName === "slaveWypj3") {
1397 // 特殊处理:拼接详情可保存时,拼接列表tab不可点击 1408 // 特殊处理:拼接详情可保存时,拼接列表tab不可点击