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最大值 */