Group quote results by calculation
Some checks failed
Build Docker Image / build (push) Failing after 4m9s

This commit is contained in:
Ruslan Bakiev
2026-02-06 18:44:00 +07:00
parent 87133ed37a
commit 1287ae9db7
3 changed files with 83 additions and 21 deletions

View File

@@ -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)