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