Showing
2 changed files
with
6 additions
and
0 deletions
| ... | ... | @@ -108,11 +108,13 @@ export default { |
| 108 | 108 | const res = await showContract(this.id) |
| 109 | 109 | const data = res && res.data ? res.data : {} |
| 110 | 110 | this.detail = { |
| 111 | + contractId: data.contractId || '', | |
| 111 | 112 | contractCode: data.contractCode || '', |
| 112 | 113 | customerName: data.customerName || '', |
| 113 | 114 | deptName: data.deptName || '', |
| 114 | 115 | workshopName: data.workshopName || '', |
| 115 | 116 | orderType: data.orderType || '', |
| 117 | + contractTypeCode: data.contractType || '', | |
| 116 | 118 | contractType: data.contractType === 'DRAFT_DIST_AGMT' ? '经销订单' : '外贸订单', |
| 117 | 119 | orderDate: (data.orderDate || '').slice(0, 10), |
| 118 | 120 | applicationCount: data.applicationCount || '', |
| ... | ... | @@ -139,6 +141,7 @@ export default { |
| 139 | 141 | if (res.confirm) { |
| 140 | 142 | specLockDelayApplication({ |
| 141 | 143 | ...this.detail, |
| 144 | + contractType: this.detail.contractTypeCode || '', | |
| 142 | 145 | specLockDate: date, |
| 143 | 146 | delayReason: reason |
| 144 | 147 | }).then(res => { | ... | ... |
| ... | ... | @@ -108,11 +108,13 @@ export default { |
| 108 | 108 | const res = await showContract(this.id) |
| 109 | 109 | const data = res && res.data ? res.data : {} |
| 110 | 110 | this.detail = { |
| 111 | + contractId: data.contractId || '', | |
| 111 | 112 | contractCode: data.contractCode || '', |
| 112 | 113 | customerName: data.customerName || '', |
| 113 | 114 | deptName: data.deptName || '', |
| 114 | 115 | workshopName: data.workshopName || '', |
| 115 | 116 | orderType: data.orderType || '', |
| 117 | + contractTypeCode: data.contractType || '', | |
| 116 | 118 | contractType: data.contractType === 'DRAFT_DIST_AGMT' ? '经销订单' : '外贸订单', |
| 117 | 119 | orderDate: (data.orderDate || '').slice(0, 10), |
| 118 | 120 | applicationCount: data.applicationCount || '', |
| ... | ... | @@ -139,6 +141,7 @@ export default { |
| 139 | 141 | if (res.confirm) { |
| 140 | 142 | specLockDelayApplication({ |
| 141 | 143 | ...this.detail, |
| 144 | + contractType: this.detail.contractTypeCode || '', | |
| 142 | 145 | specLockDate: date, |
| 143 | 146 | delayReason: reason |
| 144 | 147 | }).then(res => { | ... | ... |