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