CSR-1112 with fix for serviceability call
This commit is contained in:
parent
36f6040589
commit
7d6973107c
2 changed files with 23 additions and 26 deletions
|
|
@ -193,25 +193,25 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// shopProviders: {
|
shopProviders: {
|
||||||
// async handler(newValue) {
|
async handler(newValue) {
|
||||||
// this.resetAnswers();
|
//this.resetAnswers();
|
||||||
|
|
||||||
// await this.$nextTick();
|
await this.$nextTick();
|
||||||
|
|
||||||
// if (this.selectedAppointmentType) {
|
if (this.selectedAppointmentType) {
|
||||||
// const selectedShopIndex = newValue.findIndex(
|
const selectedShopIndex = newValue.findIndex(
|
||||||
// (provider) => provider.providerNumber == this.modelValue?.providerNumber
|
(provider) => provider.providerNumber == this.modelValue
|
||||||
// );
|
);
|
||||||
|
|
||||||
// if (selectedShopIndex >= 3) {
|
if (selectedShopIndex >= 3) {
|
||||||
// await this.getNextShopsFromList(selectedShopIndex + 1);
|
await this.getNextShopsFromList(selectedShopIndex + 1);
|
||||||
// } else {
|
} else {
|
||||||
// await this.getNextShopsFromList();
|
await this.getNextShopsFromList();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// },
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
alert,
|
alert,
|
||||||
|
|
|
||||||
|
|
@ -970,24 +970,21 @@ export const actions = {
|
||||||
partNumber: lineItem.partNumber,
|
partNumber: lineItem.partNumber,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
const lineItemsToSend = buildQueryStringParameterFromArrayOfComplexObjects(
|
const lineItems = buildQueryStringParameterFromArrayOfComplexObjects(
|
||||||
lineItemsWithOnlyPartNumbers,
|
lineItemsWithOnlyPartNumbers,
|
||||||
"lineItems"
|
"lineItems"
|
||||||
);
|
);
|
||||||
|
|
||||||
const vehicle = context.getters.vehicle;
|
const vehicle = context.getters.vehicle;
|
||||||
const carId = vehicle.carId;
|
const carId = vehicle.carId;
|
||||||
const damage = context.getters.damage;
|
const damage = context.getters.damage;
|
||||||
const glassArray = damage.glassToReplace;
|
const glassArray = convertGlassPieceNamingForApi(damage.glassToReplace);
|
||||||
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
|
||||||
|
const glassPieces = buildQueryStringParameterFromArrayOfComplexObjects(glassArray, "glassPieces")
|
||||||
|
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.GetServiceabilityDetails.method,
|
method: endpoints.GetServiceabilityDetails.method,
|
||||||
endpoint: endpoints.GetServiceabilityDetails.url,
|
endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&carId=${carId}&${lineItems}&${glassPieces}`,
|
||||||
payload: {
|
|
||||||
zip: serviceZipCode,
|
|
||||||
lineItems: lineItemsToSend,
|
|
||||||
carId: carId,
|
|
||||||
glassPieces: glassArrayForPayload,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue