save isBigTruck, add to payload
This commit is contained in:
parent
6bef3840cc
commit
643749dd87
1 changed files with 6 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ export const getDefaultState = () => ({
|
|||
zipCode: null,
|
||||
firstName: null,
|
||||
lastName: null
|
||||
}
|
||||
},
|
||||
isBigTruck: null
|
||||
},
|
||||
damage: {
|
||||
isRepair: null,
|
||||
|
|
@ -1017,11 +1018,13 @@ export const useMainStore = defineStore({
|
|||
const windshieldPartWithRecal = partsWithRecal?.length > 0 ? partsWithRecal[0] : null;
|
||||
const safeliteOnly = true;
|
||||
const shopRadiusInMiles = 100;
|
||||
const isHeavyTruck = this.order.vehicle.isHeavyTruck;
|
||||
|
||||
let url = `${endpoints.GetProviders.url}/${serviceZipCode}/${damageType}/${shopRadiusInMiles}/${parentAccountNumber}/${safeliteOnly}/${carId}`;
|
||||
if (windshieldPartWithRecal) {
|
||||
url += `/${windshieldPartWithRecal.partNumber}`;
|
||||
}
|
||||
url += `/${isHeavyTruck}`;
|
||||
return globalMethods.callHttpClient({
|
||||
method: endpoints.GetProviders.method,
|
||||
endpoint: url
|
||||
|
|
@ -1984,6 +1987,7 @@ export const useMainStore = defineStore({
|
|||
this.order.vehicle.imageUrl = vehicle.imageUrl;
|
||||
this.order.vehicle.imageVifNumber = vehicle.imageVifNumber;
|
||||
this.order.vehicle.imageColor = vehicle.imageVifColor;
|
||||
this.order.vehicle.isBigTruck = vehicle.isBigTruck;
|
||||
|
||||
if (vehicle.canSafeliteService !== undefined && !vehicle.canSafeliteService) {
|
||||
this.setBailout(bailoutMessage.HeavyTruckVehicle(vehicle.carId));
|
||||
|
|
@ -2114,6 +2118,7 @@ export const useMainStore = defineStore({
|
|||
this.order.vehicle.registration.zipCode = null;
|
||||
this.order.vehicle.registration.firstName = null;
|
||||
this.order.vehicle.registration.lastName = null;
|
||||
this.order.vehicle.isBigTruck = null;
|
||||
|
||||
if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) {
|
||||
this.resetBailout();
|
||||
|
|
|
|||
Loading…
Reference in a new issue