Merge branch 'develop' into defect/CSR-1467

This commit is contained in:
Leah Schumann 2023-06-29 09:01:24 -04:00
commit 25ec211a19
8 changed files with 11 additions and 21 deletions

View file

@ -32,6 +32,7 @@ const storeMutations = {
UPDATE_REGISTRATION_LAST_NAME: "updateRegistrationLastName", UPDATE_REGISTRATION_LAST_NAME: "updateRegistrationLastName",
UPDATE_REGISTRATION: "updateRegistration", UPDATE_REGISTRATION: "updateRegistration",
UPDATE_SERVICE_ZIP: "updateServiceZip",
UPDATE_SERVICE_LOCATION: "updateServiceLocation", UPDATE_SERVICE_LOCATION: "updateServiceLocation",
UPDATE_SCHEDULE: "updateSchedule", UPDATE_SCHEDULE: "updateSchedule",

View file

@ -1,5 +1,5 @@
// Components // Components
import addressQuestions from "@/layouts/address-lookup/customer-questions/address-questions/address-questions"; import addressQuestions from "@/fmg-components/address-questions/address-questions";
import alert from "@/ux-components/alert/alert"; import alert from "@/ux-components/alert/alert";
// Supporting Files // Supporting Files

View file

@ -38,7 +38,7 @@
</template> </template>
<script> <script>
import addressQuestions from "@/layouts/address-lookup/customer-questions/address-questions/address-questions"; import addressQuestions from "@/fmg-components/address-questions/address-questions";
import textboxQuestion from "@/digital-components/textbox-question/textbox-question"; import textboxQuestion from "@/digital-components/textbox-question/textbox-question";
import { defineRule } from "vee-validate"; import { defineRule } from "vee-validate";
import { required } from "@/helpers/validation-rules"; import { required } from "@/helpers/validation-rules";

View file

@ -302,16 +302,11 @@ export default {
await this.dispatchStoreAction(storeActions.SAVE_EMAIL, this.email, false); await this.dispatchStoreAction(storeActions.SAVE_EMAIL, this.email, false);
await this.dispatchStoreAction( await this.dispatchStoreAction(
storeActions.SAVE_SERVICE_LOCATION, storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
{ {
address: "",
address2: "",
city: "",
state: resultMap.serviceZipValidationResponse.state, state: resultMap.serviceZipValidationResponse.state,
zipCode: this.serviceZipCode, zipCode: this.serviceZipCode,
zipCodeCtu: resultMap.serviceZipValidationResponse.zipCodeCtu, zipCodeCtu: resultMap.serviceZipValidationResponse.zipCodeCtu,
appointmentType: "",
isVehicleProtected: null,
}, },
false false
); );

View file

@ -64,7 +64,7 @@ import textLink from "@/ux-components/text-link/text-link";
import textBlock from "@/digital-components/text-block/text-block"; import textBlock from "@/digital-components/text-block/text-block";
import modal from "@/digital-components/modal/modal"; import modal from "@/digital-components/modal/modal";
import alert from "@/ux-components/alert/alert"; import alert from "@/ux-components/alert/alert";
import addressQuestions from "@/layouts/address-lookup/customer-questions/address-questions/address-questions"; import addressQuestions from "@/fmg-components/address-questions/address-questions";
import vehicleProtectedQuestion from "@/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question"; import vehicleProtectedQuestion from "@/layouts/service-location/mobile-location-modal-questions/vehicle-protected-question/vehicle-protected-question";
// Helpers // Helpers
@ -85,7 +85,6 @@ export default {
return { return {
internalModel: deepClone(this.modelValue), internalModel: deepClone(this.modelValue),
displayInvalidZipAlert: false, displayInvalidZipAlert: false,
addressQuestionsKey: 0,
isModalOpened: false, isModalOpened: false,
}; };
}, },

View file

@ -324,14 +324,9 @@ export default {
await this.dispatchStoreAction( await this.dispatchStoreAction(
storeActions.SAVE_SERVICE_ZIP_CODE_INFO, storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
{ {
address: "",
address2: "",
city: "",
state: resultMap.zipCodeData.state, state: resultMap.zipCodeData.state,
zipCode: this.serviceZipCode, zipCode: this.serviceZipCode,
zipCodeCtu: resultMap.zipCodeData.zipCodeCtu, zipCodeCtu: resultMap.zipCodeData.zipCodeCtu,
appointmentType: "",
isVehicleProtected: null,
}, },
false false
); );
@ -366,14 +361,9 @@ export default {
await this.dispatchStoreAction( await this.dispatchStoreAction(
storeActions.SAVE_SERVICE_ZIP_CODE_INFO, storeActions.SAVE_SERVICE_ZIP_CODE_INFO,
{ {
address: null,
address2: null,
city: null,
state: zipCodeData.state, state: zipCodeData.state,
zipCode: this.serviceZipCode, zipCode: this.serviceZipCode,
zipCodeCtu: zipCodeData.zipCodeCtu, zipCodeCtu: zipCodeData.zipCodeCtu,
appointmentType: null,
isVehicleProtected: null,
}, },
false false
); );

View file

@ -244,6 +244,11 @@ export const mutations = {
state.order.vehicle.registration.firstName = registrationInfo?.firstName; state.order.vehicle.registration.firstName = registrationInfo?.firstName;
state.order.vehicle.registration.lastName = registrationInfo?.lastName; state.order.vehicle.registration.lastName = registrationInfo?.lastName;
}, },
updateServiceZip(state, serviceZipInfo) {
state.order.serviceLocation.state = serviceZipInfo.state;
state.order.serviceLocation.zipCode = serviceZipInfo.zipCode;
state.order.serviceLocation.zipCodeCtu = serviceZipInfo.zipCodeCtu;
},
updateServiceLocation(state, serviceLocationInfo) { updateServiceLocation(state, serviceLocationInfo) {
state.order.serviceLocation.address = serviceLocationInfo.address; state.order.serviceLocation.address = serviceLocationInfo.address;
state.order.serviceLocation.address2 = serviceLocationInfo.address2; state.order.serviceLocation.address2 = serviceLocationInfo.address2;
@ -1905,7 +1910,7 @@ export const actions = {
context.commit(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS); context.commit(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS);
} }
context.commit(storeMutations.UPDATE_SERVICE_LOCATION, serviceZipCodeInfo); context.commit(storeMutations.UPDATE_SERVICE_ZIP, serviceZipCodeInfo);
}, },
saveServiceLocation(context, serviceLocationInfo) { saveServiceLocation(context, serviceLocationInfo) {