Showing
1 changed file
with
2 additions
and
3 deletions
| ... | ... | @@ -433,8 +433,7 @@ export default { |
| 433 | 433 | if (e === 'auditDetail1') return this.onAuditDetail(this.detail.id || '', 'FORMAL_CONTRACT') |
| 434 | 434 | if (e === 'auditDetail2') return this.onAuditDetail(this.detail.parentId || '', 'FORMAL_CONTRACT') |
| 435 | 435 | if (e === 'auditDetail3') return this.onAuditDetail(this.detail.id || '', 'STANDARD_CONTRACT') |
| 436 | - if (e === 'copy') return this.onCopy(btn && btn.params) | |
| 437 | - | |
| 436 | + if (e === 'copy') return this.onCopy(this.detail) | |
| 438 | 437 | }, |
| 439 | 438 | onAudit(id, type) { |
| 440 | 439 | const CACHE_KEY = 'sourceBusinessId' |
| ... | ... | @@ -445,7 +444,7 @@ export default { |
| 445 | 444 | }, |
| 446 | 445 | onCopy(params) { |
| 447 | 446 | uni.navigateTo({ |
| 448 | - url: '/pages/contract_stock/add?id=' + encodeURIComponent(params.id) || '' | |
| 447 | + url: '/pages/contract_stock/add?copyId=' + encodeURIComponent(params.id) || '' | |
| 449 | 448 | }) |
| 450 | 449 | }, |
| 451 | 450 | onAuditDetail(id, type) { | ... | ... |