formatting
This commit is contained in:
parent
823e45f054
commit
22cc5a7be5
1 changed files with 16 additions and 16 deletions
|
|
@ -63,7 +63,7 @@ export default {
|
|||
internalModel: this.copyModel(this.modelValue),
|
||||
displayInvalidZipAlert: false,
|
||||
modalName: "MobileLocationModalWidget",
|
||||
mobileFee: "",
|
||||
mobileFee: "",
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
|
@ -78,11 +78,11 @@ export default {
|
|||
zipCode: "",
|
||||
},
|
||||
isVehicleProtected: null,
|
||||
serviceZipCode: ""
|
||||
}),
|
||||
serviceZipCode: "",
|
||||
}),
|
||||
},
|
||||
isZipServiceableMobile: Boolean,
|
||||
isZipServiceableInShop: Boolean,
|
||||
isZipServiceableInShop: Boolean,
|
||||
linkWidgetName: String,
|
||||
modalWidgetName: String,
|
||||
alertNonServiceableZipWidgetName: String,
|
||||
|
|
@ -91,7 +91,7 @@ export default {
|
|||
mounted() {
|
||||
this.getMobileFee().then((result) => {
|
||||
this.mobileFee = result;
|
||||
});
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
mobileLocationLinkPromptText() {
|
||||
|
|
@ -140,7 +140,7 @@ export default {
|
|||
zipCode: modelToCopy.addressQuestions.zipCode,
|
||||
},
|
||||
isVehicleProtected: modelToCopy.isVehicleProtected,
|
||||
serviceZipCode: modelToCopy.serviceZipCode
|
||||
serviceZipCode: modelToCopy.serviceZipCode,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -156,9 +156,9 @@ export default {
|
|||
if (!this.internalModel.serviceZipCode) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
const zipCodeData = await this.getZipCodeData(this.internalModel.serviceZipCode);
|
||||
|
||||
|
||||
// Get the Mobile Fee Part
|
||||
const mobileFeePart = await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.GET_MOBILE_FEE_PART,
|
||||
|
|
@ -169,11 +169,11 @@ export default {
|
|||
// Get the Mobile Fee Part Price
|
||||
const pricingResults = await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.PRICE_ORDER_ITEMS,
|
||||
{
|
||||
availableLineItems: [mobileFeePart.data],
|
||||
{
|
||||
availableLineItems: [mobileFeePart.data],
|
||||
serviceZipCode: zipCodeData.zipCode,
|
||||
zipCodeCtu: zipCodeData.zipCodeCtu
|
||||
},
|
||||
zipCodeCtu: zipCodeData.zipCodeCtu,
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
|
|
@ -220,14 +220,14 @@ export default {
|
|||
this.displayInvalidZipAlert = true;
|
||||
} else {
|
||||
// Update the page level model
|
||||
this.internalModel.serviceZipCode = this.internalModel.addressQuestions.zipCode;
|
||||
this.internalModel.serviceZipCode = this.internalModel.addressQuestions.zipCode;
|
||||
this.$emit("update:modelValue", this.internalModel);
|
||||
|
||||
|
||||
// Emit the update service zip code information to the parent to update the service zipcode details
|
||||
this.$emit("updated-zip-code", {
|
||||
zipCode: this.internalModel.addressQuestions.zipCode,
|
||||
state: zipCodeData.state,
|
||||
isServiceable: zipCodeData.isServiceable
|
||||
isServiceable: zipCodeData.isServiceable,
|
||||
});
|
||||
|
||||
this.closeModal();
|
||||
|
|
@ -241,7 +241,7 @@ export default {
|
|||
"modelValue.serviceZipCode": {
|
||||
async handler(newValue) {
|
||||
this.mobileFee = await this.getMobileFee(newValue);
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue