add order details body
This commit is contained in:
parent
9262b61b81
commit
b6d4c76833
1 changed files with 25 additions and 7 deletions
|
|
@ -58,7 +58,15 @@
|
|||
:customText="orderDetailsTitle"
|
||||
:marginTopSizeOverride="4"
|
||||
class="order-details" />
|
||||
<deductibleBox ref="deductibleBox" :value="deductibleBoxValue" />
|
||||
<textBlock
|
||||
id="tpaSubmitOrderDetailsBody"
|
||||
ref="tpaSubmitOrderDetailsBody"
|
||||
:customText="orderDetailsBody"
|
||||
:marginTopSizeOverride="4"
|
||||
class="mb-4 small text-color--darker-gray" />
|
||||
<deductibleBox
|
||||
ref="deductibleBox"
|
||||
:value="deductibleBoxValue" />
|
||||
</div>
|
||||
<siteFooter
|
||||
ref="siteFooter"
|
||||
|
|
@ -84,7 +92,8 @@ import { doesCopyContainRouterLink,
|
|||
fetchCmsContentForPage,
|
||||
splitCopyOnCMSPlaceHolder,
|
||||
getRouterLinkRouteFromCopy,
|
||||
getRouterLinkDisplayTextFromCopy } from '@/helpers/cms-content-helper';
|
||||
getRouterLinkDisplayTextFromCopy,
|
||||
processIfStatements } from '@/helpers/cms-content-helper';
|
||||
import settleAllPromises from '@/helpers/layout-helper';
|
||||
import { Form } from 'vee-validate';
|
||||
import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
||||
|
|
@ -158,7 +167,11 @@ export default {
|
|||
return this.toDisplayPhoneNumber(useMainStore().order.serviceLocation.provider.phoneNumber);
|
||||
},
|
||||
orderDetailsTitle() {
|
||||
return this.getCmsContent(this.widget.orderDetails, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
||||
return this.getCmsContent(this.widget.orderDetails, widgetFields.CONTENT_GROUP_WIDGET.HEADER_TEXT);
|
||||
},
|
||||
orderDetailsBody() {
|
||||
const orderDetailsBodyText = this.getCmsContent(this.widget.orderDetails, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT);
|
||||
return this.processIfStatements(orderDetailsBodyText, 'custom', this.getCustomValueFromString);
|
||||
},
|
||||
isVerified() {
|
||||
return useMainStore().order.payment.insuranceCoverage.isVerified;
|
||||
|
|
@ -187,12 +200,12 @@ export default {
|
|||
carrierPhoneNumber() {
|
||||
return '800-000-0000';
|
||||
},
|
||||
carrierDisplayURL() {
|
||||
return this.mainStore.issConfig.clientName.replace(/\s/g, '');
|
||||
carrierName() {
|
||||
return this.mainStore.issConfig.clientName;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierDisplayURL}.com`);
|
||||
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
|
||||
},
|
||||
methods:
|
||||
{
|
||||
|
|
@ -210,6 +223,10 @@ export default {
|
|||
},
|
||||
getCustomValueFromString(str) {
|
||||
switch (str) {
|
||||
case 'deductibleAboveZero':
|
||||
return this.isVerified && this.currentDeductible !== 0;
|
||||
case 'zeroDeductible':
|
||||
return this.isVerified && this.currentDeductible === 0;
|
||||
case 'verifyingCoverage':
|
||||
return !this.isVerified;
|
||||
default:
|
||||
|
|
@ -225,7 +242,8 @@ export default {
|
|||
splitCopyOnCMSPlaceHolder,
|
||||
doesCopyContainRouterLink,
|
||||
getRouterLinkRouteFromCopy,
|
||||
getRouterLinkDisplayTextFromCopy
|
||||
getRouterLinkDisplayTextFromCopy,
|
||||
processIfStatements
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue