Update OfferResultCard: add location, mini map, fix price format
All checks were successful
Build Docker Image / build (push) Successful in 4m30s

- Remove distance from right side (shown in stepper)
- Change price format to symbol + formatted number (e.g. $1,200/тонна)
- Add locationName prop for displaying offer location
- Add LocationMiniMap component for showing point on map
- Update hub page and CalcResultContent to pass coordinates
This commit is contained in:
Ruslan Bakiev
2026-01-15 00:07:21 +07:00
parent de95dbd059
commit f03554893b
4 changed files with 155 additions and 15 deletions

View File

@@ -21,11 +21,13 @@
v-for="option in productRouteOptions"
:key="option.sourceUuid"
:source-name="option.sourceName || 'Склад'"
:location-name="getOfferData(option.sourceUuid)?.locationName"
:product-name="productName"
:price-per-unit="getOfferData(option.sourceUuid)?.pricePerUnit"
:currency="getOfferData(option.sourceUuid)?.currency"
:unit="getOfferData(option.sourceUuid)?.unit"
:total-distance="option.distanceKm || 0"
:latitude="option.sourceLat"
:longitude="option.sourceLon"
:stages="getRouteStages(option)"
/>
</div>