temp chkin

This commit is contained in:
Leah Schumann 2023-03-08 10:11:48 -05:00
parent 732672c105
commit 04efdfcd0f
3 changed files with 25 additions and 13 deletions

View file

@ -130,7 +130,6 @@ export default {
modalFooterText() { modalFooterText() {
return this.getCmsContent(this.modalWidgetName, "FooterText"); return this.getCmsContent(this.modalWidgetName, "FooterText");
}, },
addressModel: { addressModel: {
get: function () { get: function () {
return this.modelValue.addressQuestions; return this.modelValue.addressQuestions;

View file

@ -13,9 +13,10 @@
modalWidgetName="ServiceZipModalWidget" /> modalWidgetName="ServiceZipModalWidget" />
<serviceTypeQuestion <serviceTypeQuestion
v-model="selectedServiceType" v-model="selectedServiceType"
ref="serviceType" ref="serviceTypeQuestion"
groupName="ServiceTypeQuestion" groupName="ServiceTypeQuestion"
cmsWidgetName="ServiceTypeQuestionWidget"/> cmsWidgetName="ServiceTypeQuestionWidget"
validationRules="option-required" />
<mobileLocationModalQuestions <mobileLocationModalQuestions
v-if="selectedServiceType === 'Mobile'" v-if="selectedServiceType === 'Mobile'"
v-model="mobileLocationQuestions" v-model="mobileLocationQuestions"
@ -29,7 +30,6 @@
@back-clicked="backButtonAction" @back-clicked="backButtonAction"
@ForwardClicked="forwardButtonAction" /> @ForwardClicked="forwardButtonAction" />
</div> </div>
</div> </div>
</Form> </Form>
</template> </template>
@ -43,9 +43,7 @@ import funnelHeader from "@/fmg-components/funnel-header/funnel-header";
import funnelFooter from "@/fmg-components/funnel-footer/funnel-footer"; import funnelFooter from "@/fmg-components/funnel-footer/funnel-footer";
import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header"; import funnelSubHeader from "@/fmg-components/funnel-sub-header/funnel-sub-header";
import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue"; import loadingModal from "@/fmg-components/loading-modal/loading-modal.vue";
import { Form, defineRule } from "vee-validate"; import { Form } from "vee-validate";
import { required, regex } from "@/helpers/validation-rules";
import { errorMessages } from "@/constants/error-messages";
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper"; import { settleAllPromises } from "@/helpers/layout-helper";
@ -66,7 +64,7 @@ export default {
isZipServiceableMobile: null, isZipServiceableMobile: null,
isZipServiceableInShop: null, isZipServiceableInShop: null,
mobileFeePart: null, mobileFeePart: null,
selectedServiceType: null selectedServiceType: null,
}; };
}, },
async beforeRouteEnter(to, from, next) { async beforeRouteEnter(to, from, next) {
@ -113,6 +111,8 @@ export default {
this.state = newValue.state; this.state = newValue.state;
this.zipCode = newValue.zipCode; this.zipCode = newValue.zipCode;
this.isServiceable = newValue.isServiceable; this.isServiceable = newValue.isServiceable;
console.log(this);
}, },
}, },
mobileLocationQuestions: { mobileLocationQuestions: {
@ -176,6 +176,10 @@ export default {
}); });
}, },
resetMobileLocation(updatedServiceZipCode) { resetMobileLocation(updatedServiceZipCode) {
if (!this.$refs.mobileLocationModalQuestions) {
return;
}
this.streetAddress = ""; this.streetAddress = "";
this.apartmentNumberOrBusinessName = ""; this.apartmentNumberOrBusinessName = "";
this.city = ""; this.city = "";

View file

@ -17,6 +17,8 @@
<script> <script>
import buttonQuestion from "@/digital-components/button-question/button-question"; import buttonQuestion from "@/digital-components/button-question/button-question";
import { useForm, useIsFormTouched, useIsFormDirty, useIsFormValid } from "vee-validate";
export default { export default {
name: "service-type-question", name: "service-type-question",
props: { props: {
@ -29,7 +31,14 @@ export default {
isGlassServiceableMobile: Boolean, isGlassServiceableMobile: Boolean,
isGlassServiceableInShop: Boolean, isGlassServiceableInShop: Boolean,
isRecalibrationServiceableInShop: Boolean, isRecalibrationServiceableInShop: Boolean,
isRecalibrationServiceableMobile: Boolean isRecalibrationServiceableMobile: Boolean,
},
setup() {
const form = useForm();
return {
form
};
}, },
computed: { computed: {
questionText() { questionText() {