This commit is contained in:
bmauger 2022-04-06 17:08:25 -04:00
parent 6f74945156
commit 4ccda4ee93
2 changed files with 18 additions and 13 deletions

View file

@ -11,7 +11,7 @@
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" /> <funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" />
<div class="row my-2"> <div class="row my-2">
<div class="col"> <div class="col">
<textboxQuestion ref="VinNumber" v-model="vin" inputId="vin" disableAutoFill validationRules="vin-required|vin-format" /> <textboxQuestion cmsWidgetName="VinNumber" v-model="vin" inputId="vin" disableAutoFill validationRules="vin-required|vin-format" />
</div> </div>
</div> </div>
<div class="row my-2"> <div class="row my-2">
@ -21,7 +21,7 @@
</div> </div>
<div class="row my-2"> <div class="row my-2">
<div class="col"> <div class="col">
<textboxQuestion cmsWidgetName="ServiceZip" v-model="zip" inputId="zip" mask="#####" disableAutoFill validationRules="zip-required" /> <textboxQuestion cmsWidgetName="ServiceZIP" v-model="zip" inputId="zip" mask="#####" disableAutoFill validationRules="zip-required" />
</div> </div>
</div> </div>
<div class="row my-2"> <div class="row my-2">
@ -85,12 +85,8 @@
:alertHeadline="PerfectMatchNewVinAlert.headline" :alertHeadline="PerfectMatchNewVinAlert.headline"
:alertCopy="PerfectMatchNewVinAlert.copy" :alertCopy="PerfectMatchNewVinAlert.copy"
/> />
<div class="row my-2">
<div class="col">
<textboxQuestion v-if="newServiceZipRequired" cmsWidgetName="ServiceZip" v-model="serviceZip" inputId="serviceZip" disableAutoFill validationRules="zip-required" />
</div>
</div>
<funnelFooter <funnelFooter
cmsWidgetName="FunnelFooterWidget"
ref="funnelFooter" ref="funnelFooter"
:isDisabled="!meta.valid" :isDisabled="!meta.valid"
@back-clicked="backButtonAction" @back-clicked="backButtonAction"
@ -144,7 +140,7 @@ export default {
// Call the "next" function to complete the transition to this page. // Call the "next" function to complete the transition to this page.
next((vm) => { next((vm) => {
//vm.setCmsContent(resultMap.cmsContent); vm.setCmsContent(resultMap.cmsContent);
vm.noServiceZipWidget = { vm.noServiceZipWidget = {
headline: resultMap.cmsContent.NoServiceZipWidget.HeadlineText, headline: resultMap.cmsContent.NoServiceZipWidget.HeadlineText,
copy: resultMap.cmsContent.NoServiceZipWidget.BodyText, copy: resultMap.cmsContent.NoServiceZipWidget.BodyText,
@ -157,6 +153,10 @@ export default {
headline: resultMap.cmsContent.MatchedDifferentVehicle.HeadlineText, headline: resultMap.cmsContent.MatchedDifferentVehicle.HeadlineText,
copy: resultMap.cmsContent.MatchedDifferentVehicle.BodyText copy: resultMap.cmsContent.MatchedDifferentVehicle.BodyText
}; };
vm.PerfectMatchNewVinAlert = {
headline: resultMap.cmsContent.PerfectMatchNewVinAlert.HeadlineText,
copy: resultMap.cmsContent.PerfectMatchNewVinAlert.BodyText
};
}); });
}, },
props: { props: {
@ -164,13 +164,18 @@ export default {
}, },
data() { data() {
return { return {
MatchedDifferentVehicle: false,
NoMatchAlertWidget: false,
PerfectMatchNewVinAlert: false,
NoServiceZipWidget: false,
VinFoundWidget: false,
VinFoundReadOnlyWidget: false,
FoundWindshieldAlert: false,
newServiceZipRequired: false, newServiceZipRequired: false,
vinNotValid: false, VinNotFound: false,
vinDoesNotMatchCarId: false, vin: '',
licensePlate: '',
zip: '', zip: '',
email: '', email: '',
serviceZip: '',
}; };
}, },
methods: { methods: {

View file

@ -60,7 +60,7 @@ const routingTable = [
}, },
{ {
scenario: navigationScenarios.SELECTED_DAMAGE_WITH_SINGLE_PART, scenario: navigationScenarios.SELECTED_DAMAGE_WITH_SINGLE_PART,
destinationFmgPageValue: fmgPageValues.REVEAL destinationFmgPageValue: fmgPageValues.VIN_LOOKUP,
}, },
{ {
scenario: navigationScenarios.SELECTED_DAMAGE_WITH_MULTIPLE_PARTS, scenario: navigationScenarios.SELECTED_DAMAGE_WITH_MULTIPLE_PARTS,