Showing
1 changed file
with
4 additions
and
9 deletions
| @@ -424,10 +424,6 @@ export default { | @@ -424,10 +424,6 @@ export default { | ||
| 424 | delete d.code | 424 | delete d.code |
| 425 | // 清空明细行的 id 和 itemId | 425 | // 清空明细行的 id 和 itemId |
| 426 | const lineList = Array.isArray(d.quotationLineList) ? d.quotationLineList : (Array.isArray(d.salesmanQuotationLineList) ? d.salesmanQuotationLineList : []) | 426 | const lineList = Array.isArray(d.quotationLineList) ? d.quotationLineList : (Array.isArray(d.salesmanQuotationLineList) ? d.salesmanQuotationLineList : []) |
| 427 | - lineList.forEach(it => { | ||
| 428 | - delete it.id | ||
| 429 | - delete it.itemId | ||
| 430 | - }) | ||
| 431 | const materialFields = this.materialConditionConfigs.map(mc => mc.field) | 427 | const materialFields = this.materialConditionConfigs.map(mc => mc.field) |
| 432 | materialFields.forEach(f => { | 428 | materialFields.forEach(f => { |
| 433 | const v = d[f] | 429 | const v = d[f] |
| @@ -585,13 +581,12 @@ export default { | @@ -585,13 +581,12 @@ export default { | ||
| 585 | } | 581 | } |
| 586 | const lines = (this.productLineList || []).map(it => { | 582 | const lines = (this.productLineList || []).map(it => { |
| 587 | const c = clean(it) | 583 | const c = clean(it) |
| 588 | - delete c.id | ||
| 589 | - delete c.itemId | ||
| 590 | - return c | 584 | + return c |
| 591 | }) | 585 | }) |
| 592 | const materialFields = this.materialConditionConfigs.map(mc => mc.field) | 586 | const materialFields = this.materialConditionConfigs.map(mc => mc.field) |
| 593 | - const formCopy = { ...this.form } | ||
| 594 | - delete formCopy.id | 587 | + const formCopy = { ...this.form, id: this.sourceId } |
| 588 | + delete formCopy.approvalStatus | ||
| 589 | + delete formCopy.status; | ||
| 595 | materialFields.forEach(f => { | 590 | materialFields.forEach(f => { |
| 596 | const arr = formCopy[f] | 591 | const arr = formCopy[f] |
| 597 | formCopy[f] = Array.isArray(arr) ? arr.join(',') : (arr || '') | 592 | formCopy[f] = Array.isArray(arr) ? arr.join(',') : (arr || '') |