Merge pull request #1621 from Safelite/feature/CSR-1871
Feature/csr 1871
This commit is contained in:
commit
1eb6d96639
4 changed files with 16 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ const storeMutations = {
|
||||||
WORK_ORDER_NUMBER: "updateWorkOrderNumber",
|
WORK_ORDER_NUMBER: "updateWorkOrderNumber",
|
||||||
Customer_Portal_Login_Token: "updateCustomerPortalLoginToken",
|
Customer_Portal_Login_Token: "updateCustomerPortalLoginToken",
|
||||||
LOCK_TOKEN: "updateLockToken",
|
LOCK_TOKEN: "updateLockToken",
|
||||||
|
UPDATE_SETTLED_TENDER_AMOUNT: "updateSettledTenderAmount",
|
||||||
|
|
||||||
// EVENT BUS MUTATIONS
|
// EVENT BUS MUTATIONS
|
||||||
ADD_EVENT_TO_BUS: "addEventToBus",
|
ADD_EVENT_TO_BUS: "addEventToBus",
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,7 @@ async function saveSessionHelper(
|
||||||
workOrderNumber: savedSessionInfo.data.workOrderNumber,
|
workOrderNumber: savedSessionInfo.data.workOrderNumber,
|
||||||
customerPortalLoginToken: savedSessionInfo.data.customerPortalLoginToken,
|
customerPortalLoginToken: savedSessionInfo.data.customerPortalLoginToken,
|
||||||
lockToken: savedSessionInfo.data.lockToken,
|
lockToken: savedSessionInfo.data.lockToken,
|
||||||
|
settledTenderAmount: savedSessionInfo.data.settledTenderAmount,
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<cart
|
<cart
|
||||||
|
v-if="ShowCart"
|
||||||
:damage="damageInfo"
|
:damage="damageInfo"
|
||||||
:availableVaps="vaps"
|
:availableVaps="vaps"
|
||||||
:allowItemRemoval="false"
|
:allowItemRemoval="false"
|
||||||
|
|
@ -138,6 +139,13 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
ShowCart() {
|
||||||
|
if (this.isPia && store.getters.submittedOrder.settledTenderAmount == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
},
|
||||||
ScheduleConfirmationText() {
|
ScheduleConfirmationText() {
|
||||||
return this.getCmsContent("ScheduleConfirmationWidget", "BodyText");
|
return this.getCmsContent("ScheduleConfirmationWidget", "BodyText");
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,7 @@ const getDefaultState = () => {
|
||||||
workOrderNumber: null,
|
workOrderNumber: null,
|
||||||
customerPortalLoginToken: null,
|
customerPortalLoginToken: null,
|
||||||
lockToken: null,
|
lockToken: null,
|
||||||
|
settledTenderAmount: 0,
|
||||||
},
|
},
|
||||||
applicationUser: {
|
applicationUser: {
|
||||||
eventBus: [],
|
eventBus: [],
|
||||||
|
|
@ -257,6 +258,9 @@ export const mutations = {
|
||||||
updateLockToken(state, lockToken) {
|
updateLockToken(state, lockToken) {
|
||||||
state.order.lockToken = lockToken;
|
state.order.lockToken = lockToken;
|
||||||
},
|
},
|
||||||
|
updateSettledTenderAmount(state, settledTenderAmount) {
|
||||||
|
state.order.settledTenderAmount = settledTenderAmount;
|
||||||
|
},
|
||||||
updateCCToken(state, ccToken) {
|
updateCCToken(state, ccToken) {
|
||||||
state.order.payment.ccToken.subscriptionId = ccToken.subscriptionId;
|
state.order.payment.ccToken.subscriptionId = ccToken.subscriptionId;
|
||||||
state.order.payment.ccToken.expMonth = ccToken.expMonth;
|
state.order.payment.ccToken.expMonth = ccToken.expMonth;
|
||||||
|
|
@ -1041,6 +1045,7 @@ export const actions = {
|
||||||
workOrderNumber,
|
workOrderNumber,
|
||||||
customerPortalLoginToken,
|
customerPortalLoginToken,
|
||||||
lockToken,
|
lockToken,
|
||||||
|
settledTenderAmount,
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
context.commit(storeMutations.UPDATE_REFERRAL_NUMBER, referralNumber);
|
context.commit(storeMutations.UPDATE_REFERRAL_NUMBER, referralNumber);
|
||||||
|
|
@ -1054,6 +1059,7 @@ export const actions = {
|
||||||
context.commit(storeMutations.WORK_ORDER_NUMBER, workOrderNumber);
|
context.commit(storeMutations.WORK_ORDER_NUMBER, workOrderNumber);
|
||||||
context.commit(storeMutations.LOCK_TOKEN, lockToken);
|
context.commit(storeMutations.LOCK_TOKEN, lockToken);
|
||||||
context.commit(storeMutations.Customer_Portal_Login_Token, customerPortalLoginToken);
|
context.commit(storeMutations.Customer_Portal_Login_Token, customerPortalLoginToken);
|
||||||
|
context.commit(storeMutations.UPDATE_SETTLED_TENDER_AMOUNT, settledTenderAmount);
|
||||||
},
|
},
|
||||||
|
|
||||||
logPageView(
|
logPageView(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue