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

@@ -1,5 +1,5 @@
<template>
<Card padding="md" interactive @click="$emit('select')">
<Card padding="md" interactive :class="groupClass" @click="$emit('select')">
<!-- Header: Supplier + Price -->
<div class="flex items-start justify-between gap-4">
<div class="flex flex-col gap-1">
@@ -68,8 +68,10 @@ const props = withDefaults(defineProps<{
stages?: RouteStage[]
totalTimeSeconds?: number | null
kycProfileUuid?: string | null
grouped?: boolean
}>(), {
stages: () => []
stages: () => [],
grouped: false
})
defineEmits<{
@@ -208,6 +210,11 @@ const totalDurationDays = computed(() => {
const durationDisplay = computed(() => formatDurationDays(totalDurationDays.value))
const groupClass = computed(() => {
if (!props.grouped) return ''
return 'rounded-none shadow-none hover:shadow-none'
})
const routeRows = computed(() =>
(props.stages || [])
.filter(stage => stage?.distanceKm != null)