diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 1cc1c1187..a3ed3ed2c 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -19,6 +19,10 @@ const endpoints = { url: "/vehicle/api/v1/vehicle/Styles", method: "GET", }, + GetVehicle: { + url: "/vehicle/api/v1/vehicle/lookup", + method: "GET", + }, GetPageData: { url: "/content/api/v1/content", method: "GET", diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index db80d3d3f..b06b2f10b 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -5,6 +5,7 @@ const storeActions = { GET_VEHICLE_MAKES: "getVehicleMakes", GET_VEHICLE_MODELS: "getVehicleModels", GET_VEHICLE_STYLES: "getVehicleStyles", + GET_VEHICLE: "getVehicle", GET_EVOX_IMAGE: "getEvoxImage", LOOKUP_VEHICLE_BY_YMMS: "lookupVehicleByYmms", LOOKUP_VEHICLE_BY_VIN: "lookupVehicleByVin", diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue new file mode 100644 index 000000000..ca7d701f6 --- /dev/null +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -0,0 +1,36 @@ + + + diff --git a/src/router/router-constants/fmgPage-values.js b/src/router/router-constants/fmgPage-values.js index 38486e111..9b82cdf7e 100644 --- a/src/router/router-constants/fmgPage-values.js +++ b/src/router/router-constants/fmgPage-values.js @@ -3,6 +3,7 @@ const fmgPageValues = { VEHICLE_MAKE: "vehicle-make", VEHICLE_MODEL: "vehicle-model", VEHICLE_STYLE: "vehicle-style", + VEHICLE_DAMAGE: "vehicle-damage", }; export { fmgPageValues }; diff --git a/src/router/router-constants/navigation-scenarios.js b/src/router/router-constants/navigation-scenarios.js index 48e36996b..51064576c 100644 --- a/src/router/router-constants/navigation-scenarios.js +++ b/src/router/router-constants/navigation-scenarios.js @@ -3,6 +3,7 @@ const navigationScenarios = { SELECTED_MODEL: "SELECTED_MODEL", SELECTED_MAKE: "SELECTED_MAKE", SELECTED_STYLE: "SELECTED_STYLE", + CLICKED_BACK: "CLICKED_BACK", }; diff --git a/src/store/index.js b/src/store/index.js index daf34e38c..275b21f2e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -24,6 +24,7 @@ export default createStore({ vin: null, licensePlate: null, carId: null, + category: null, evoxImageId: null, hasSplitWindshieldOption: null, hasBackglassSliderOption: null, @@ -73,6 +74,10 @@ export default createStore({ updateStyle(state, style) { state.order.vehicle.style = style; }, + updateVehicle(state, data) { + state.carId = data.carId; + state.category = data.category; + } }, getters: { vehicle: state => state.order.vehicle @@ -123,6 +128,13 @@ export default createStore({ payload: {}, }); }, + getVehicle(context, {year, make, model, style}) { + return globalMethods.callHttpClient({ + methods: endpoints.GetVehicle.method, + endpoint: `${endpoints.GetVehicle.url}/${year}/${make}/${model}/${style}`, + payload: {}, + }) + }, // Content API Actions getRouteInfo(context, { pageName }) {