diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 80aea66..9b26b55 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -12460,7 +12460,7 @@ const useGetTableBtnOprSetting = props => { // props.onMesTableLineDel && props.onMesTableLineDel(params); const btnsConfig = gdsconfigformslave.find( - item => item.sControlName?.toLowerCase().includes("enventofftwork") + item => item.sControlName?.toLowerCase().includes("enventmanualofftwork") ) || {}; props.parentProps.onExecInstructSet({ btnConfig: { diff --git a/src/mes/common/siderInfoComponent/index.js b/src/mes/common/siderInfoComponent/index.js index 5eec1b5..d2ef03b 100644 --- a/src/mes/common/siderInfoComponent/index.js +++ b/src/mes/common/siderInfoComponent/index.js @@ -633,110 +633,115 @@ const DeviceTargetInfoComponent = () => { }; }; const equipmentTargetInformation = commonFunc.showLocalMessage(props, 'equipmentTargetInformation', '设备及目标信息'); + const { workOrderInfoData = [] } = props; + const sColumnConfig = JSON.parse(workOrderInfoData[0]?.sColumnConfig || '[]'); + const [first] = sColumnConfig + const otherList = sColumnConfig.slice(1).filter(item => item.bVisible === 1); + const sNamesInArr2 = new Set(otherList.map(item => item.sName)); // 或 item.sname + const result = showConfig.filter(item => sNamesInArr2.has(item.sName)); // 或 item.sname return ( +
-
- - {equipmentTargetInformation} -
- {showConfig.map((config, index) => { - - - // if (index > 4) return ""; - // bPushDiff - const { bPushDiff = false } = props?.app?.userinfo - const className = cx({ - mesShowType: true, - odd: index % 2 === 0 - }); - const showTypeProps = handleGetShowTypeProps(config); - if ( - ['dPieceDefectAQty', 'dPieceDefectBQty'].includes(config?.sName) && - !bPushDiff - ) { - return null; // 不满足条件,不渲染 - } - // 'dTotalAdjust', 'dSpeed' - if (config?.sName?.endsWith("Qty")) { - return ( -
-
- +
+ + {first.showName} +
+ {result.map((config, index) => { + // if (index > 4) return ""; + // bPushDiff + const { bPushDiff = false } = props?.app?.userinfo + const className = cx({ + mesShowType: true, + odd: index % 2 === 0 + }); + const showTypeProps = handleGetShowTypeProps(config); + // if ( + // ['dPieceDefectAQty', 'dPieceDefectBQty'].includes(config?.sName) && + // !bPushDiff + // ) { + // return null; // 不满足条件,不渲染 + // } + // 'dTotalAdjust', 'dSpeed' + if (config?.sName?.endsWith("Qty")) { + return ( +
+
+ +
+ + + {config.showName}: + + +
+ +
+ +
- - - {config.showName}: - - -
- -
- -
-
- ); - } else if (false && config.showName === "更新时间") { - return ( -
- - - {config.showName}: - - -
- -
- -
-
- ); - } else if (config.showName === "设备状态") { - return ( -
- -
- + ); + } else if (false && config.showName === "更新时间") { + return ( +
+ + + {config.showName}: + + +
+ +
+ +
-
- ); - } else { - return ( -
- -
- ); - } - })} -
+ ); + } else if (config.showName === "设备状态") { + return ( +
+ +
+ +
+
+ ); + } else { + return ( +
+ +
+ ); + } + })} +
); };