CSR-1137 | First deploy to dev
This commit is contained in:
parent
1f539e9d79
commit
07609b9dde
2 changed files with 18 additions and 23 deletions
|
|
@ -138,17 +138,6 @@ export default {
|
||||||
initialViewRowsToShow: 5,
|
initialViewRowsToShow: 5,
|
||||||
customSelectableDatesCallback: getAvailableDates,
|
customSelectableDatesCallback: getAvailableDates,
|
||||||
|
|
||||||
// Price EARLY BIRD pre-emptively to allow for asynchronous call to pricing
|
|
||||||
// const pricingPromise = baseMixin.methods.dispatchStoreAction(
|
|
||||||
// storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
|
|
||||||
// {
|
|
||||||
// availableLineItems: [
|
|
||||||
// {partNumber: "EARLY BIRD"}
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// false
|
|
||||||
// );
|
|
||||||
|
|
||||||
/* vvvvv SAVE THESE FOR TESTING PURPOSES FOR NOW vvvvv
|
/* vvvvv SAVE THESE FOR TESTING PURPOSES FOR NOW vvvvv
|
||||||
|
|
||||||
// todayOverrideDateString: "2023-04-29T03:00:00", // show partial
|
// todayOverrideDateString: "2023-04-29T03:00:00", // show partial
|
||||||
|
|
@ -166,6 +155,17 @@ export default {
|
||||||
*/
|
*/
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Price EARLY BIRD pre-emptively to allow for asynchronous call to pricing
|
||||||
|
const pricingPromise = baseMixin.methods.dispatchStoreAction(
|
||||||
|
storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
|
||||||
|
{
|
||||||
|
availableLineItems: [
|
||||||
|
{partNumber: "EARLY BIRD"}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
const earlyBirdPromise = baseMixin.methods.dispatchStoreAction(
|
const earlyBirdPromise = baseMixin.methods.dispatchStoreAction(
|
||||||
storeActions.GET_MOBILE_EARLY_BIRD_FEE
|
storeActions.GET_MOBILE_EARLY_BIRD_FEE
|
||||||
);
|
);
|
||||||
|
|
@ -189,10 +189,10 @@ export default {
|
||||||
resultKey: "earlyBird",
|
resultKey: "earlyBird",
|
||||||
promise: earlyBirdPromise,
|
promise: earlyBirdPromise,
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// resultKey: "pricingResults",
|
resultKey: "pricingResults",
|
||||||
// promise: pricingPromise,
|
promise: pricingPromise,
|
||||||
// },
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
|
@ -202,14 +202,10 @@ export default {
|
||||||
vm.setCmsContent(resultMap.cmsContent);
|
vm.setCmsContent(resultMap.cmsContent);
|
||||||
vm.setData(resultMap.alertReasons);
|
vm.setData(resultMap.alertReasons);
|
||||||
vm.$refs.datePicker.initializeComponent(resultMap.datePickerInitialData);
|
vm.$refs.datePicker.initializeComponent(resultMap.datePickerInitialData);
|
||||||
vm.mobileEarlyBirdFee = resultMap.earlyBird;
|
|
||||||
vm.mobileEarlyBirdFee.laborAmount = 15;
|
|
||||||
vm.mobileEarlyBirdFee.sellingPrice = 0;
|
|
||||||
vm.mobileEarlyBirdFee.kitPrice = 0;
|
|
||||||
vm.selectableDatesData = resultMap.datePickerInitialData.initialShopTimeSlotsResponse;
|
vm.selectableDatesData = resultMap.datePickerInitialData.initialShopTimeSlotsResponse;
|
||||||
// if (resultMap.earlyBird) {
|
if (resultMap.earlyBird) {
|
||||||
// vm.mobileEarlyBirdFee = resultMap.pricingResults;
|
vm.mobileEarlyBirdFee = resultMap.pricingResults[0];
|
||||||
// }
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setCmsContent(cmsContent) {
|
setCmsContent(cmsContent) {
|
||||||
console.log(cmsContent);
|
|
||||||
this.$root.cmsContentByWidget = cmsContent;
|
this.$root.cmsContentByWidget = cmsContent;
|
||||||
},
|
},
|
||||||
getCmsContent(widgetName, fieldName) {
|
getCmsContent(widgetName, fieldName) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue