Commit 9176739cfd40e7f21fe045f5bb2f3ebeb74d49d9

Authored by 严涛
2 parents 9e54eb34 e510b84c

Merge branch 'cjerp-contract-1.0' of http://gitlab.qgutech.com/zhuyuanliang/erp-…

…mobile into cjerp-contract-1.0
... ... @@ -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) {
... ...