CSR-1981 show mobile fee free alert if it is 0
CSR-1981 show mobile fee free alert if it is 0
This commit is contained in:
parent
a599658c59
commit
7ff88162d7
1 changed files with 13 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,17 @@ 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;
|
||||||
|
|
@ -400,6 +411,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mobileFeePart) {
|
if (mobileFeePart) {
|
||||||
|
console.log(JSON.stringify(mobileFeePart));
|
||||||
this.mobileFeePart = mobileFeePart;
|
this.mobileFeePart = mobileFeePart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue