CASH-845 big merge of service-location page into schedule page
This commit is contained in:
parent
1eb0c3e091
commit
751468eb06
3 changed files with 839 additions and 65 deletions
|
|
@ -485,7 +485,7 @@ export default {
|
||||||
const response = config.getSelectableDatesCallback(
|
const response = config.getSelectableDatesCallback(
|
||||||
initialViewStartDate,
|
initialViewStartDate,
|
||||||
initialViewEndDate,
|
initialViewEndDate,
|
||||||
store.getters.order.serviceLocation.provider.providerNumber
|
config.providerNumber
|
||||||
);
|
);
|
||||||
resolve(response);
|
resolve(response);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -33,7 +33,6 @@ export default {
|
||||||
cmsWidgetName: String,
|
cmsWidgetName: String,
|
||||||
isServiceableMobile: Boolean,
|
isServiceableMobile: Boolean,
|
||||||
isServiceableInshop: Boolean,
|
isServiceableInshop: Boolean,
|
||||||
isServiceableDropoff: Boolean,
|
|
||||||
mobileFeeApplies: Boolean,
|
mobileFeeApplies: Boolean,
|
||||||
labelBold: {
|
labelBold: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
@ -52,16 +51,13 @@ export default {
|
||||||
answersToDisplay() {
|
answersToDisplay() {
|
||||||
const shouldShowMobile = this.isServiceableMobile;
|
const shouldShowMobile = this.isServiceableMobile;
|
||||||
const shouldShowInshop = this.isServiceableInshop;
|
const shouldShowInshop = this.isServiceableInshop;
|
||||||
const shouldShowDropoff =
|
|
||||||
this.isServiceableDropoff && !this.$store.getters.damage.isRepair;
|
|
||||||
const zipCode = this.zipCode;
|
const zipCode = this.zipCode;
|
||||||
|
|
||||||
var answers = this.answersFromCms
|
var answers = this.answersFromCms
|
||||||
? this.answersFromCms.filter((answer) => {
|
? this.answersFromCms.filter((answer) => {
|
||||||
return (
|
return (
|
||||||
(answer.Name == AppointmentTypeStrings.IN_SHOP && shouldShowInshop) ||
|
(answer.Name == AppointmentTypeStrings.IN_SHOP && shouldShowInshop) ||
|
||||||
(answer.Name == AppointmentTypeStrings.MOBILE && shouldShowMobile) ||
|
(answer.Name == AppointmentTypeStrings.MOBILE && shouldShowMobile)
|
||||||
(answer.Name == AppointmentTypeStrings.DROP_OFF && shouldShowDropoff)
|
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: [];
|
: [];
|
||||||
|
|
@ -88,7 +84,7 @@ export default {
|
||||||
},
|
},
|
||||||
isInshopOnly() {
|
isInshopOnly() {
|
||||||
return (
|
return (
|
||||||
this.isServiceableInshop && !this.isServiceableMobile && !this.isServiceableDropoff
|
this.isServiceableInshop && !this.isServiceableMobile
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue