diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index e1cc89f42..28223d2bc 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -61,7 +61,7 @@ ref="alertMobileFeeFree" class="my-5" cmsWidgetName="AlertMobileFeeFreeWidget" - v-if="isServiceableMobile && !isInsurance" + v-if="showMobileFreeAlert" alertClass="alert-success" /> @@ -314,6 +314,17 @@ export default { return false; } }, + showMobileFreeAlert() { + var hasMobileFee = true; + if (this.mobileFeePart?.laborAmount == 0 && this.mobileFeePart?.sellingPrice == 0 && this.mobileFeePart.kitPrice == 0) { + hasMobileFee = false; + } + + if (this.isServiceableMobile && !this.isInsurance && !hasMobileFee) { + return true; + } + return false; + }, isServiceableInshop() { if (this.isRecalibrationServiceableInshop !== null) { return this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop; @@ -400,6 +411,7 @@ export default { } if (mobileFeePart) { + console.log(JSON.stringify(mobileFeePart)); this.mobileFeePart = mobileFeePart; }