diff --git a/src/views/VinDetails.vue b/src/views/VinDetails.vue index 8f7546d..bff26f1 100644 --- a/src/views/VinDetails.vue +++ b/src/views/VinDetails.vue @@ -11,6 +11,10 @@ +
+ + +
@@ -37,6 +41,7 @@ export default { data () { return { inputVin: null, + inputOrder: null, output: null } }, @@ -44,17 +49,21 @@ export default { if (!this.inputVin && this.$route.query.vin) { this.inputVin = this.$route.query.vin } - if (this.inputVin) { + if (!this.inputOrder && this.$route.query.order) { + this.inputOrder = this.$route.query.order + } + if (this.inputVin && this.inputOrder) { this.fetchVIN() } }, methods: { fetchVIN () { - if (this.inputVin) { + if (this.inputVin && this.inputOrder) { axios({ url: 'https://shop.ford.com/aemservices/shop/vot/api/customerorder/', method: 'GET', params: { + orderNumber: this.inputOrder.toUpperCase(), partAttributes: 'BP2.*', vin: this.inputVin.toUpperCase() }