From 7ba83e4f391f8638b71fada2bb81efe40a3fc898 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 7 Jan 2026 10:09:54 +0800 Subject: [PATCH] 1.复制的时候,不复制sPartProductId --- src/components/Common/CommonBillEvent.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Common/CommonBillEvent.js b/src/components/Common/CommonBillEvent.js index a926e9a..16d5563 100644 --- a/src/components/Common/CommonBillEvent.js +++ b/src/components/Common/CommonBillEvent.js @@ -3472,7 +3472,8 @@ export default (ChildComponent) => { tableDataRow.key = tableDataRow.sId; tableDataRow.sPartsName = `${tableData[tableDataIndex].sPartsName}new`; tableDataRow.sCombinedMemo = originalNode.sCombinedMemo; - + tableDataRow.sPartProductId = ''; + tableDataRow.sPartProductName = ''; // 处理层级关系 - 修改这里 if (originalNode.sControlParentId) { @@ -3683,6 +3684,7 @@ export default (ChildComponent) => { this.handleTableWorkCopyAll(name, isWait, isTree); return; } + const { [`${name}Data`]: tableData, [`${name}SelectedRowKeys`]: tableSelectedRowKeys, } = this.props; @@ -3709,6 +3711,8 @@ export default (ChildComponent) => { tableDataRow.sId = commonUtils.createSid(); tableDataRow.handleType = 'add'; tableDataRow.key = tableDataRow.sId; + tableDataRow.sPartProductId = ''; + console.log('111', tableDataRow); const iOrderArr = []; tableData.forEach((item) => { const iOrder = commonUtils.isNotEmptyNumber(item.iOrder) ? item.iOrder : 0; /* 获取tableData中iOrder最大值 */ -- libgit2 0.22.2