Merge pull request #1939 from Safelite/feature/CSR-1981
Feature/csr 1981
This commit is contained in:
commit
17980066d6
1 changed files with 16 additions and 1 deletions
|
|
@ -61,7 +61,7 @@
|
||||||
ref="alertMobileFeeFree"
|
ref="alertMobileFeeFree"
|
||||||
class="my-5"
|
class="my-5"
|
||||||
cmsWidgetName="AlertMobileFeeFreeWidget"
|
cmsWidgetName="AlertMobileFeeFreeWidget"
|
||||||
v-if="isServiceableMobile && !isInsurance"
|
v-if="showMobileFreeAlert"
|
||||||
alertClass="alert-success" />
|
alertClass="alert-success" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -314,6 +314,21 @@ export default {
|
||||||
return false;
|
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() {
|
isServiceableInshop() {
|
||||||
if (this.isRecalibrationServiceableInshop !== null) {
|
if (this.isRecalibrationServiceableInshop !== null) {
|
||||||
return this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
|
return this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue