Group quote results by calculation
Some checks failed
Build Docker Image / build (push) Failing after 4m9s
Some checks failed
Build Docker Image / build (push) Failing after 4m9s
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
v-else-if="showQuoteResults"
|
||||
:loading="offersLoading"
|
||||
:offers="offers"
|
||||
:calculations="quoteCalculations"
|
||||
@select-offer="onSelectOffer"
|
||||
/>
|
||||
</template>
|
||||
@@ -416,6 +417,14 @@ const relatedPoints = computed(() => {
|
||||
|
||||
// Offers data for quote results
|
||||
const offers = ref<QuoteOffer[]>([])
|
||||
|
||||
const quoteCalculations = computed(() => {
|
||||
if (!offers.value.length) return []
|
||||
return offers.value.map(offer => ({
|
||||
id: offer.uuid,
|
||||
offers: [offer]
|
||||
}))
|
||||
})
|
||||
const offersLoading = ref(false)
|
||||
const showQuoteResults = ref(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user