fix: stabilize quote flow header and step cards
This commit is contained in:
@@ -28,20 +28,9 @@
|
||||
<div class="w-10 h-1 bg-base-300 rounded-full" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<div>
|
||||
<p class="text-xs font-bold uppercase tracking-wider text-base-content/50">{{ $t('catalog.step', { n: 2 }) }}</p>
|
||||
<h2 class="text-2xl font-black tracking-tight text-base-content">{{ $t('catalog.steps.selectDestination') }}</h2>
|
||||
</div>
|
||||
<span class="badge badge-neutral">{{ hubs.length }}</span>
|
||||
</div>
|
||||
|
||||
<!-- Selected product chip -->
|
||||
<div v-if="productName" class="flex items-center gap-2 mt-2 mb-1">
|
||||
<span class="badge badge-warning gap-1">
|
||||
<Icon name="lucide:package" size="12" />
|
||||
{{ productName }}
|
||||
</span>
|
||||
<div class="mb-1">
|
||||
<p class="text-xs font-bold uppercase tracking-wider text-base-content/50">{{ $t('catalog.step', { n: 2 }) }}</p>
|
||||
<h2 class="text-2xl font-black tracking-tight text-base-content">{{ $t('catalog.steps.selectDestination') }}</h2>
|
||||
</div>
|
||||
|
||||
<!-- Search input -->
|
||||
@@ -105,8 +94,6 @@ const searchQuery = ref('')
|
||||
|
||||
// Get product from query
|
||||
const productUuid = computed(() => route.query.product as string | undefined)
|
||||
const productName = computed(() => route.query.productName as string | undefined)
|
||||
|
||||
// Load hubs (filtered by product if available)
|
||||
const { items: hubs, isLoading, init: initHubs, setProductFilter } = useCatalogHubs()
|
||||
|
||||
|
||||
@@ -30,12 +30,9 @@
|
||||
<div class="w-10 h-1 bg-base-300 rounded-full" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<div>
|
||||
<p class="text-xs font-bold uppercase tracking-wider text-base-content/50">{{ $t('catalog.step', { n: 1 }) }}</p>
|
||||
<h2 class="text-2xl font-black tracking-tight text-base-content">{{ $t('catalog.steps.selectProduct') }}</h2>
|
||||
</div>
|
||||
<span class="badge badge-neutral">{{ products.length }}</span>
|
||||
<div class="mb-1">
|
||||
<p class="text-xs font-bold uppercase tracking-wider text-base-content/50">{{ $t('catalog.step', { n: 1 }) }}</p>
|
||||
<h2 class="text-2xl font-black tracking-tight text-base-content">{{ $t('catalog.steps.selectProduct') }}</h2>
|
||||
</div>
|
||||
|
||||
<!-- Search input -->
|
||||
|
||||
@@ -31,19 +31,6 @@
|
||||
<p class="text-xs font-bold uppercase tracking-wider text-base-content/50">{{ $t('catalog.step', { n: 3 }) }}</p>
|
||||
<h2 class="text-2xl font-black tracking-tight text-base-content mb-4">{{ $t('catalog.steps.setQuantity') }}</h2>
|
||||
|
||||
<!-- Selected product + hub chips -->
|
||||
<div class="flex flex-wrap items-center gap-2 mb-6">
|
||||
<span v-if="productName" class="badge badge-warning gap-1">
|
||||
<Icon name="lucide:package" size="12" />
|
||||
{{ productName }}
|
||||
</span>
|
||||
<Icon name="lucide:arrow-right" size="14" class="text-base-content/30" />
|
||||
<span v-if="hubName" class="badge badge-success gap-1">
|
||||
<Icon name="lucide:warehouse" size="12" />
|
||||
{{ hubName }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Quantity input -->
|
||||
<div class="form-control w-full max-w-xs">
|
||||
<label class="label">
|
||||
@@ -92,7 +79,6 @@ const mapRef = ref(null)
|
||||
const qty = ref('100')
|
||||
|
||||
const productUuid = computed(() => route.query.product as string | undefined)
|
||||
const productName = computed(() => route.query.productName as string | undefined)
|
||||
const hubUuid = computed(() => route.query.hub as string | undefined)
|
||||
const hubName = computed(() => route.query.hubName as string | undefined)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user