+
+
+
+
+
VIN Lookup Placeholder Page
+
+
+
+
+
+
+
diff --git a/src/router/router-constants/fmgPage-values.js b/src/router/router-constants/fmgPage-values.js
index 770c1f7b6..b648ae047 100644
--- a/src/router/router-constants/fmgPage-values.js
+++ b/src/router/router-constants/fmgPage-values.js
@@ -4,9 +4,10 @@ const fmgPageValues = {
VEHICLE_MODEL: "vehicle-model",
VEHICLE_STYLE: "vehicle-style",
VEHICLE_DAMAGE: "vehicle-damage",
+ VIN_LOOKUP: "vin-lookup",
VEHICLE_PARTS: "vehicle-parts",
PART_QUESTIONS: "part-questions",
REVEAL : "reveal",
};
-export { fmgPageValues };
\ No newline at end of file
+export { fmgPageValues };
diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js
index c9dc7ba4d..584796a61 100644
--- a/src/router/router-constants/routing-table.js
+++ b/src/router/router-constants/routing-table.js
@@ -84,6 +84,32 @@ const routingTable = [
},
],
},
+ {
+ fmgPageValue: fmgPageValues.REVEAL,
+ maps: [
+ {
+ scenario: navigationScenarios.CLICKED_BACK,
+ destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
+ },
+ {
+ scenario: navigationScenarios.SELECTED_PARTS,
+ destinationFmgPageValue: fmgPageValues.VIN_LOOKUP,
+ },
+ ],
+ },
+ {
+ fmgPageValue: fmgPageValues.VIN_LOOKUP,
+ maps: [
+ {
+ scenario: navigationScenarios.CLICKED_BACK,
+ destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
+ },
+ {
+ scenario: navigationScenarios.VIN_LOOKUP,
+ destinationFmgPageValue: fmgPageValues.PART_QUESTIONS,
+ },
+ ],
+ },
];
export { routingTable };
diff --git a/src/store/index.js b/src/store/index.js
index a00f550be..53e977114 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -19,6 +19,21 @@ export const state = {
imageUrl: null,
imageVifNumber: null,
imageColor: null,
+ registration: {
+ licensePlate: null,
+ address: null,
+ city: null,
+ state: null,
+ zipCode: null,
+ firstName: null,
+ lastName: null,
+ },
+ },
+ serviceLocation: {
+ zip: null,
+ },
+ customer: {
+ emailAddress: null,
},
damage: {
isRepair: null,
@@ -81,6 +96,33 @@ export const mutations = {
updatePageData(state, pageData){
state.applicationUser.pageData[pageData.page] = pageData.data;
},
+ updateRegistrationAddress(state, registrationAddress){
+ state.order.vehicle.registration.address = registrationAddress;
+ },
+ updateRegistrationCity(state, registrationCity){
+ state.order.vehicle.registration.city = registrationCity;
+ },
+ updateRegistrationState(state, registrationState){
+ state.order.vehicle.registration.state = registrationState;
+ },
+ updateRegistrationZipCode(state, registrationZipCode){
+ state.order.vehicle.registration.zipCode = registrationZipCode;
+ },
+ updateRegistrationFirstName(state, registrationFirstName){
+ state.order.vehicle.registration.firstName = registrationFirstName;
+ },
+ updateRegistrationLastName(state, registrationLastName){
+ state.order.vehicle.registration.lastName = registrationLastName;
+ },
+ updateRegistrationLicensePlate(state, registrationLicensePlate){
+ state.order.vehicle.registration.licensePlate = registrationLicensePlate;
+ },
+ updateServiceLocationZip(state, serviceLocationZip){
+ state.order.vehicle.serviceLocation.zip = serviceLocationZip;
+ },
+ updateCustomerEmailAddress(state, customerEmailAddress){
+ state.order.vehicle.customer.emailAddress = customerEmailAddress;
+ },
// EVENT BUS MUTATIONS
addEventToBus(state, event) {
@@ -115,7 +157,13 @@ export const mutations = {
state.order.damage.glassToReplace = null;
},
resetRegistrationState(state) {
-
+ state.order.vehicle.registration.licensePlate = null;
+ state.order.vehicle.registration.address = null;
+ state.order.vehicle.registration.city = null;
+ state.order.vehicle.registration.state = null;
+ state.order.vehicle.registration.zipCode = null;
+ state.order.vehicle.registration.firstName = null;
+ state.order.vehicle.registration.lastName = null;
},
resetPartsState(state) {
state.order.lineItems.glassParts = null;
@@ -288,4 +336,4 @@ export default createStore({
mutations,
getters,
actions,
-});
\ No newline at end of file
+});
diff --git a/src/styles/common-styles.scss b/src/styles/common-styles.scss
index 561b05b76..8425a3021 100644
--- a/src/styles/common-styles.scss
+++ b/src/styles/common-styles.scss
@@ -35,4 +35,3 @@ body {
overflow: hidden;
}
}
-// Hide horizontal scrollbar