CSR-416 Cleanup + use serviceZip for vin-lookup, registrationZip as backup
This commit is contained in:
parent
2adc26d365
commit
4478dea248
5 changed files with 3 additions and 17 deletions
|
|
@ -193,7 +193,7 @@ export default {
|
|||
|
||||
if (!vinLookupResponse.data.isStatePermissible) {
|
||||
// State Restrictions forbid lookup by address
|
||||
this.displayVinLookupByHomeAddressNotAwllowedAlert = true;
|
||||
this.displayVinLookupByHomeAddressNotAllowedAlert = true;
|
||||
this.$refs.funnelFooter.removeLoader();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@ export default {
|
|||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||
const yearQuestionInitialDataPromise = yearQuestion.methods.loadInitialData();
|
||||
|
||||
console.log("A")
|
||||
|
||||
// Log experiment exposure
|
||||
const logExperimentExposurePromise = baseMixin.methods.dispatchStoreAction(storeActions.LOG_EXPERIMENT_EXPOSURE,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -151,7 +151,6 @@ import { errorMessages } from "@/constants/error-messages";
|
|||
import { getDamageString, getIsWindshieldOnly, isGlassAvailableForCarId } from "@/helpers/damage-helper";
|
||||
import { required, regex } from "@/helpers/validation-rules";
|
||||
import { Form, defineRule } from "vee-validate";
|
||||
// import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||
import { navigateAfterSaveToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||
|
||||
// DEFINE VALIDATION RULES
|
||||
|
|
@ -176,7 +175,6 @@ defineRule(
|
|||
export default {
|
||||
name: "vin-lookup",
|
||||
async beforeRouteEnter(to, from, next) {
|
||||
console.log("C")
|
||||
// Call APIs
|
||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@ async function navigate(scenario, currentRoute, invalidateOnSave, optionalQuery
|
|||
const currentComponent = currentRoute.matched[0].components;
|
||||
|
||||
if (invalidateOnSave) {
|
||||
console.log("A")
|
||||
resetDependentState(currentComponent);
|
||||
}
|
||||
|
||||
|
|
@ -220,9 +219,6 @@ function navigateToUrl(url, optionalQuery = {}) {
|
|||
/////////////////////////////////////////////////////
|
||||
if (externalUrl.search.indexOf("corid=") != -1)
|
||||
externalUrl.search = externalUrl.search + '&experiments=CollectEmailOnQuote=CollectEmailOnQuote_V1=YesCollectEmail_TEST1=true,RemoveServiceAreaPage=ServAreaRemoval_V7=ServAreaNoRemove_V7_TEST=true,VINeducationV2=VINeducation_V2=NoShowVINmodalV2_CONTROL=true,ServicePackages=ServicePackages_V1=NoShowPackages_CONTROL=true,PhotoUploadRedesign=PhotoUploadRedesign_V1=CurrentPhotoUpload_CONTROL=true,ScheduleDetailsServiceType=ScheduleBeforeServiceType_V1=ServTypeThenSched_CONTROL=true';
|
||||
|
||||
// TODO REMOVE
|
||||
externalUrl.search += ",ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true"
|
||||
///////////// END TEMP CODE /////////////////////////
|
||||
|
||||
window.location.assign(externalUrl);
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@ export const mutations = {
|
|||
state.order.payment.insuranceCoverage.isVerified = isVerified;
|
||||
},
|
||||
updateRegistrationLicensePlate(state, licensePlate){
|
||||
console.log(licensePlate)
|
||||
state.order.vehicle.registration.licensePlate = licensePlate;
|
||||
},
|
||||
updateRegistrationAddress(state, registrationAddress){
|
||||
|
|
@ -216,7 +215,6 @@ export const mutations = {
|
|||
|
||||
// Misc Mutations
|
||||
updateStateWithOrderInformation(state, orderInformation) {
|
||||
console.log(orderInformation)
|
||||
state.order.referralNumber = orderInformation.referralNumber;
|
||||
state.order.referralDate = orderInformation.referralDate;
|
||||
state.order.referralCorrelationId = orderInformation.referralCorrelationId;
|
||||
|
|
@ -238,7 +236,7 @@ export const mutations = {
|
|||
address: orderInformation.vehicle.registration.streetAddress,
|
||||
city: orderInformation.vehicle.registration.city,
|
||||
state: orderInformation.vehicle.registration.state,
|
||||
zipCode: orderInformation.vehicle.registration.zipCode, // TODO CSR-416 make sure customer vs service is different
|
||||
zipCode: orderInformation.vehicle.registration.zipCode,
|
||||
licensePlate: orderInformation.vehicle.registration.licensePlate,
|
||||
}
|
||||
});
|
||||
|
|
@ -252,7 +250,7 @@ export const mutations = {
|
|||
state.order.serviceLocation.address = orderInformation.serviceLocation.streetAddress,
|
||||
state.order.serviceLocation.city = orderInformation.serviceLocation.city,
|
||||
state.order.serviceLocation.state = orderInformation.serviceLocation.state,
|
||||
state.order.serviceLocation.zipCode = orderInformation.serviceLocation.zipCode; // TODO CSR-416 make sure customer vs service is different, add this to service
|
||||
state.order.serviceLocation.zipCode = orderInformation.serviceLocation.zipCode;
|
||||
|
||||
state.order.payment.isInsurance = orderInformation.IsInsuranceOrder;
|
||||
state.order.payment.insuranceCoverage.isVerified = orderInformation?.insuranceInfo.coverageVerified;
|
||||
|
|
@ -261,7 +259,6 @@ export const mutations = {
|
|||
},
|
||||
|
||||
updateServiceLocationWithVehicleRegistration(state) {
|
||||
console.log("Updating B")
|
||||
state.order.serviceLocation.address = state.order.vehicle.registration.address;
|
||||
state.order.serviceLocation.city = state.order.vehicle.registration.city;
|
||||
state.order.serviceLocation.state = state.order.vehicle.registration.state;
|
||||
|
|
@ -447,7 +444,6 @@ export const actions = {
|
|||
context.commit(storeMutations.UPDATE_REFERRAL_CORRELATION_ID, referralCorrelationId);
|
||||
},
|
||||
updateServiceLocationWithVehicleRegistration(context) {
|
||||
console.log("Updating A")
|
||||
context.commit(storeMutations.UPDATE_SERVICE_LOCATION_WITH_VEHICLE_REGISTRATION);
|
||||
},
|
||||
|
||||
|
|
@ -535,8 +531,6 @@ export const actions = {
|
|||
const damage = context.getters.damage;
|
||||
const order = context.state.order;
|
||||
|
||||
console.log(context)
|
||||
|
||||
return globalMethods.callHttpClient({
|
||||
method: endpoints.SaveOrder.method,
|
||||
endpoint: endpoints.SaveOrder.url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue