diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js index 1375ecf..2c167be 100644 --- a/src/mes/productionExec/productionExecMain/index.js +++ b/src/mes/productionExec/productionExecMain/index.js @@ -1074,7 +1074,29 @@ const ProductionExecContent0 = props => { if (!oNavList) return; oNavList.childNodes[index].click(); }; + const { + deviceTargetInfoConfig = {}, + changeExecInfo = {}, + } = props; + const viewRowOld = {...workOrderInfoData[0], ...changeExecInfo,}; + + const newTableProps = { + ...tableProps, + data: tableProps.data.map((item, index) => { + if (index === 0) { + // 只修改第一行 + return { + ...item, + dReportQty: viewRowOld.dReportQty || 0, + dPieceDefectAQty: viewRowOld.dPieceDefectAQty || 0, + dPieceDefectBQty: viewRowOld.dPieceDefectBQty || 0, + }; + } + // 其他行原样返回 + return item; + }) + } return (