diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue index f745e8443..365f8a6e7 100644 --- a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue +++ b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue @@ -26,13 +26,12 @@ export default ({ }, computed: { answersFromCms(){ - //console.log(JSON.parse(JSON.stringify(this.getCmsContent(this.cmsWidgetName, 'Answers')))); return this.getCmsContent(this.cmsWidgetName, 'Answers'); }, selectedValues: { get: function() { // Convert to CMS answer name from bool - var cmsAnswerValue = this.modelValue ? insuranceAnswer : cashAnswer; + const cmsAnswerValue = this.modelValue ? insuranceAnswer : cashAnswer; return cmsAnswerValue; }, set: function(newValue) { diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index b7fa93080..67ccc22cf 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -20,7 +20,7 @@ @@ -149,12 +149,11 @@ export default { // Call the "next" function to complete the transition to this page. next((vm) => { vm.setCmsContent(cmsContent); - vm.isInsurance = vm.getDefaultIsInsuranceValue(); + vm.isInsuranceSelected = vm.getDefaultisInsuranceSelectedValue(); }); }, data(){ return { - cashOrInsuranceThreshhold: 600, pricingRequestResult: null, isInsurance: null, } @@ -163,22 +162,16 @@ export default { arePagePrerequisitesValid() { return store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0); }, - getDefaultIsInsuranceValue() { - var defaultIsInsuranceValue = this.$store.getters.order.payment.isInsurance; - if(defaultIsInsuranceValue != null) { - return defaultIsInsuranceValue; + getDefaultisInsuranceSelectedValue() { + var defaultisInsuranceSelectedValue = this.$store.getters.order.payment.isInsurance; + if(defaultisInsuranceSelectedValue != null) { + return defaultisInsuranceSelectedValue; } else { - return this.economyPackagePrice > this.cashOrInsuranceThreshhold; + return this.economyPackagePrice > 600; } } }, computed: { - years() { - return ["2011", "2012"]; - }, - answersFromCms() { - return ["Pay on my own", "Pay with insurance"]; - }, economyPackagePrice() { //TODO build out the pricing logic CSR-504 return 0; diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index 6f81b0003..fcc656b33 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -30,7 +30,7 @@
{ if (p.partNumber === partNumber) { - this.glassParts[g.glassLocation + "-" + g.glassName] = { + this.selectedGlassParts[g.glassLocation + "-" + g.glassName] = { [g.glassLocation]: [partNumber], }; }