From 1fb9e7c3c74342ad5696f409f70e4065613d9f34 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Mon, 2 Feb 2026 14:01:47 +0800 Subject: [PATCH] 生产执行给表格第一行品检 和糊盒赋值 --- src/mes/productionExec/productionExecMain/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+), 0 deletions(-) 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 (