SSR-1159 Update Load Session Phone Numbers
This commit is contained in:
parent
9ca2c7b240
commit
686d011ed9
1 changed files with 54 additions and 17 deletions
|
|
@ -1378,7 +1378,8 @@ export const useMainStore = defineStore({
|
|||
order.contactInfo.lastName = data?.customer?.lastName;
|
||||
order.contactInfo.emailAddress = data?.customer?.emailAddress;
|
||||
order.contactInfo.homePhone = data?.customer?.homePhone;
|
||||
order.contactInfo.servicephone = data?.customer?.homePhone;
|
||||
order.contactInfo.servicephone = data?.customer?.servicePhone;
|
||||
order.contactInfo.alternativePhone = data?.customer?.alternativePhone;
|
||||
order.contactInfo.requestTextUpdates = data?.customer?.isSmsOptIn;
|
||||
|
||||
order.payment.insuranceCoverage.isVerified = data?.payment?.insuranceCoverage?.isVerified;
|
||||
|
|
@ -1660,6 +1661,53 @@ export const useMainStore = defineStore({
|
|||
this.order.vehicle.vin = vin;
|
||||
},
|
||||
|
||||
resetOrder() {
|
||||
this.order.referralNumber = null;
|
||||
this.order.referralSequenceNumber = null;
|
||||
this.order.referralDate = null;
|
||||
this.order.referralSequenceNumber = null;
|
||||
this.order.workOrderNumber = null;
|
||||
this.order.eon = null;
|
||||
this.order.originalDeductible = null;
|
||||
this.order.currentDeductible = null;
|
||||
this.order.loadedFromDupeCheck = null;
|
||||
this.order.loadedSessionClearedPreviousData = null;
|
||||
this.order.availableVaps = null;
|
||||
this.order.carrierPhoneNumber = null;
|
||||
this.order.customerPortalLoginToken = null;
|
||||
},
|
||||
|
||||
resetPolicy() {
|
||||
this.order.policy.policyNumber = null;
|
||||
this.order.policy.dateOfLoss = null;
|
||||
this.order.policy.damageCause = null;
|
||||
this.order.policy.damageCity = null;
|
||||
this.order.policy.damageState = null;
|
||||
this.order.policy.isITAC = false;
|
||||
},
|
||||
|
||||
resetCustomer() {
|
||||
this.order.customer.emailAddress = null;
|
||||
this.order.customer.firstName = null;
|
||||
this.order.customer.lastName = null;
|
||||
this.order.customer.address.city = null;
|
||||
this.order.customer.address.state = null;
|
||||
this.order.customer.address.zipCode = null;
|
||||
this.order.customer.address.streetAddress = null;
|
||||
this.order.customer.address.streetAddress2 = null;
|
||||
},
|
||||
|
||||
resetContactInfo() {
|
||||
this.order.contactInfo.firstName = null;
|
||||
this.order.contactInfo.lastName = null;
|
||||
this.order.contactInfo.emailAddress = null;
|
||||
this.order.contactInfo.homePhone = null;
|
||||
this.order.contactInfo.alternativePhone = null;
|
||||
this.order.contactInfo.servicePhone = null;
|
||||
this.order.contactInfo.requestTextUpdates = false;
|
||||
this.order.contactInfo.notesForTechnician = '';
|
||||
},
|
||||
|
||||
resetVehicleState() {
|
||||
this.order.vehicle.policyVehicleId = null;
|
||||
this.order.vehicle.year = null;
|
||||
|
|
@ -2322,24 +2370,13 @@ export const useMainStore = defineStore({
|
|||
},
|
||||
|
||||
resetPageFields() {
|
||||
this.order.policy.policyNumber = null;
|
||||
this.order.policy.dateOfLoss = null;
|
||||
this.order.policy.damageCause = null;
|
||||
this.order.policy.damageCity = null;
|
||||
this.order.policy.damageState = null;
|
||||
this.order.policy.isITAC = false;
|
||||
this.order.customer.emailAddress = null;
|
||||
this.order.customer.firstName = null;
|
||||
this.order.customer.lastName = null;
|
||||
this.order.customer.address.city = null;
|
||||
this.order.customer.address.state = null;
|
||||
this.order.customer.address.zipCode = null;
|
||||
this.order.customer.address.streetAddress = null;
|
||||
this.order.customer.address.streetAddress2 = null;
|
||||
this.order.loadedFromDupeCheck = null;
|
||||
this.order.loadedSessionClearedPreviousData = null;
|
||||
this.resetOrder();
|
||||
this.resetCustomer();
|
||||
this.resetPolicy();
|
||||
this.resetContactInfo();
|
||||
this.resetVehicleState();
|
||||
this.resetDamageState();
|
||||
this.resetGlassPartsState();
|
||||
this.resetInsurance();
|
||||
this.resetBailout();
|
||||
this.resetSubmittedOrder();
|
||||
|
|
|
|||
Loading…
Reference in a new issue