Commit 7ba83e4f391f8638b71fada2bb81efe40a3fc898

Authored by Min
1 parent b5b0ca8a

1.复制的时候,不复制sPartProductId

src/components/Common/CommonBillEvent.js
... ... @@ -3472,7 +3472,8 @@ export default (ChildComponent) => {
3472 3472 tableDataRow.key = tableDataRow.sId;
3473 3473 tableDataRow.sPartsName = `${tableData[tableDataIndex].sPartsName}new`;
3474 3474 tableDataRow.sCombinedMemo = originalNode.sCombinedMemo;
3475   -
  3475 + tableDataRow.sPartProductId = '';
  3476 + tableDataRow.sPartProductName = '';
3476 3477  
3477 3478 // 处理层级关系 - 修改这里
3478 3479 if (originalNode.sControlParentId) {
... ... @@ -3683,6 +3684,7 @@ export default (ChildComponent) => {
3683 3684 this.handleTableWorkCopyAll(name, isWait, isTree);
3684 3685 return;
3685 3686 }
  3687 +
3686 3688 const {
3687 3689 [`${name}Data`]: tableData, [`${name}SelectedRowKeys`]: tableSelectedRowKeys,
3688 3690 } = this.props;
... ... @@ -3709,6 +3711,8 @@ export default (ChildComponent) => {
3709 3711 tableDataRow.sId = commonUtils.createSid();
3710 3712 tableDataRow.handleType = 'add';
3711 3713 tableDataRow.key = tableDataRow.sId;
  3714 + tableDataRow.sPartProductId = '';
  3715 + console.log('111', tableDataRow);
3712 3716 const iOrderArr = [];
3713 3717 tableData.forEach((item) => {
3714 3718 const iOrder = commonUtils.isNotEmptyNumber(item.iOrder) ? item.iOrder : 0; /* 获取tableData中iOrder最大值 */
... ...