Moved alert to above service type question
This commit is contained in:
parent
09a0328afa
commit
328a1d422a
1 changed files with 17 additions and 15 deletions
|
|
@ -12,17 +12,17 @@
|
||||||
@set-mobile-fee-part="setMobileFeePart"
|
@set-mobile-fee-part="setMobileFeePart"
|
||||||
linkWidgetName="ServiceZipLinkWidget"
|
linkWidgetName="ServiceZipLinkWidget"
|
||||||
modalWidgetName="ServiceZipModalWidget" />
|
modalWidgetName="ServiceZipModalWidget" />
|
||||||
|
<alert
|
||||||
|
class="my-4"
|
||||||
|
cmsWidgetName="AlertMilitaryBaseZipWidget"
|
||||||
|
v-if="zipContainsMilitaryBase"
|
||||||
|
alertClass="alert-warning" />
|
||||||
<serviceTypeQuestion
|
<serviceTypeQuestion
|
||||||
v-model="selectedServiceType"
|
v-model="selectedServiceType"
|
||||||
ref="serviceTypeQuestion"
|
ref="serviceTypeQuestion"
|
||||||
groupName="ServiceTypeQuestion"
|
groupName="ServiceTypeQuestion"
|
||||||
cmsWidgetName="ServiceTypeQuestionWidget"
|
cmsWidgetName="ServiceTypeQuestionWidget"
|
||||||
validationRules="option-required" />
|
validationRules="option-required" />
|
||||||
<alert
|
|
||||||
class="my-4"
|
|
||||||
cmsWidgetName="AlertMilitaryBaseZipWidget"
|
|
||||||
v-if="zipContainsMilitaryBase"
|
|
||||||
alertClass="alert-warning" />
|
|
||||||
<mobileLocationModalQuestions
|
<mobileLocationModalQuestions
|
||||||
v-if="selectedServiceType === 'Mobile'"
|
v-if="selectedServiceType === 'Mobile'"
|
||||||
v-model="mobileLocationQuestions"
|
v-model="mobileLocationQuestions"
|
||||||
|
|
@ -87,6 +87,7 @@ export default {
|
||||||
const serviceType = store.getters.damage.isRepair ? "Repair" : "Replace";
|
const serviceType = store.getters.damage.isRepair ? "Repair" : "Replace";
|
||||||
const parentAccountNumber = store.getters.payment.parentAccountNumber;
|
const parentAccountNumber = store.getters.payment.parentAccountNumber;
|
||||||
const billToAccountNumber = 1;
|
const billToAccountNumber = 1;
|
||||||
|
const getZipCodeData = baseMixin.methods.getZipCodeData(serviceZipCode);
|
||||||
|
|
||||||
const mobileFeePartPromise = getPricedMobileFeePart(
|
const mobileFeePartPromise = getPricedMobileFeePart(
|
||||||
serviceZipCode,
|
serviceZipCode,
|
||||||
|
|
@ -107,7 +108,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
resultKey: "zipCodeData",
|
resultKey: "zipCodeData",
|
||||||
promise: baseMixin.methods.getZipCodeData(serviceZipCode),
|
promise: getZipCodeData,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -117,8 +118,6 @@ export default {
|
||||||
next((vm) => {
|
next((vm) => {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
vm.setData(resultMap.mobileFeePart);
|
vm.setData(resultMap.mobileFeePart);
|
||||||
vm.zipContainsMilitaryBase = resultMap.zipCodeData.containsMilitaryBase;
|
|
||||||
vm.zipCode = serviceZipCode;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -167,17 +166,20 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
arePagePrerequisitesValid() {
|
||||||
return true;
|
return (
|
||||||
// return (
|
store.getters.lineItems.supportingItems !== null &&
|
||||||
// store.getters.lineItems.supportingItems !== null &&
|
store.getters.order.serviceLocation.zipCode !== null &&
|
||||||
// store.getters.order.serviceLocation.zipCode !== null &&
|
store.getters.payment.isInsurance !== null
|
||||||
// store.getters.payment.isInsurance !== null
|
);
|
||||||
// );
|
|
||||||
},
|
},
|
||||||
setData(mobileFeePart) {
|
setData(zipCodeData, mobileFeePart) {
|
||||||
if (mobileFeePart) {
|
if (mobileFeePart) {
|
||||||
this.mobileFeePart = mobileFeePart;
|
this.mobileFeePart = mobileFeePart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (zipCodeData) {
|
||||||
|
this.zipContainsMilitaryBase = zipCodeData.containsMilitaryBase;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getServiceAddressFromStore() {
|
getServiceAddressFromStore() {
|
||||||
return store.getters.order.serviceLocation.address;
|
return store.getters.order.serviceLocation.address;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue