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,
|
zipCode: null,
|
||||||
firstName: null,
|
firstName: null,
|
||||||
lastName: null
|
lastName: null
|
||||||
}
|
},
|
||||||
|
isBigTruck: null
|
||||||
},
|
},
|
||||||
damage: {
|
damage: {
|
||||||
isRepair: null,
|
isRepair: null,
|
||||||
|
|
@ -1017,11 +1018,13 @@ export const useMainStore = defineStore({
|
||||||
const windshieldPartWithRecal = partsWithRecal?.length > 0 ? partsWithRecal[0] : null;
|
const windshieldPartWithRecal = partsWithRecal?.length > 0 ? partsWithRecal[0] : null;
|
||||||
const safeliteOnly = true;
|
const safeliteOnly = true;
|
||||||
const shopRadiusInMiles = 100;
|
const shopRadiusInMiles = 100;
|
||||||
|
const isHeavyTruck = this.order.vehicle.isHeavyTruck;
|
||||||
|
|
||||||
let url = `${endpoints.GetProviders.url}/${serviceZipCode}/${damageType}/${shopRadiusInMiles}/${parentAccountNumber}/${safeliteOnly}/${carId}`;
|
let url = `${endpoints.GetProviders.url}/${serviceZipCode}/${damageType}/${shopRadiusInMiles}/${parentAccountNumber}/${safeliteOnly}/${carId}`;
|
||||||
if (windshieldPartWithRecal) {
|
if (windshieldPartWithRecal) {
|
||||||
url += `/${windshieldPartWithRecal.partNumber}`;
|
url += `/${windshieldPartWithRecal.partNumber}`;
|
||||||
}
|
}
|
||||||
|
url += `/${isHeavyTruck}`;
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.GetProviders.method,
|
method: endpoints.GetProviders.method,
|
||||||
endpoint: url
|
endpoint: url
|
||||||
|
|
@ -1984,6 +1987,7 @@ export const useMainStore = defineStore({
|
||||||
this.order.vehicle.imageUrl = vehicle.imageUrl;
|
this.order.vehicle.imageUrl = vehicle.imageUrl;
|
||||||
this.order.vehicle.imageVifNumber = vehicle.imageVifNumber;
|
this.order.vehicle.imageVifNumber = vehicle.imageVifNumber;
|
||||||
this.order.vehicle.imageColor = vehicle.imageVifColor;
|
this.order.vehicle.imageColor = vehicle.imageVifColor;
|
||||||
|
this.order.vehicle.isBigTruck = vehicle.isBigTruck;
|
||||||
|
|
||||||
if (vehicle.canSafeliteService !== undefined && !vehicle.canSafeliteService) {
|
if (vehicle.canSafeliteService !== undefined && !vehicle.canSafeliteService) {
|
||||||
this.setBailout(bailoutMessage.HeavyTruckVehicle(vehicle.carId));
|
this.setBailout(bailoutMessage.HeavyTruckVehicle(vehicle.carId));
|
||||||
|
|
@ -2114,6 +2118,7 @@ export const useMainStore = defineStore({
|
||||||
this.order.vehicle.registration.zipCode = null;
|
this.order.vehicle.registration.zipCode = null;
|
||||||
this.order.vehicle.registration.firstName = null;
|
this.order.vehicle.registration.firstName = null;
|
||||||
this.order.vehicle.registration.lastName = null;
|
this.order.vehicle.registration.lastName = null;
|
||||||
|
this.order.vehicle.isBigTruck = null;
|
||||||
|
|
||||||
if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) {
|
if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) {
|
||||||
this.resetBailout();
|
this.resetBailout();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue