diff --git a/app/components/catalog/CatalogConfigurator.vue b/app/components/catalog/CatalogConfigurator.vue
index ef4de30..6f9abbe 100644
--- a/app/components/catalog/CatalogConfigurator.vue
+++ b/app/components/catalog/CatalogConfigurator.vue
@@ -308,6 +308,14 @@ function formatOptionLabel(field: ParamFieldKey, value: ParamValue) {
return String(value);
}
+function selectedFieldValue(group: ProductGroup, field: ParamFieldKey) {
+ const value = getGroupState(group)[field];
+ if (value === null) {
+ return '—';
+ }
+ return formatOptionLabel(field, value);
+}
+
function incrementProduct(product: ProductNode) {
if (getQuantity(product.id) === 0) {
addProduct({
@@ -376,17 +384,48 @@ function decrementSelected(group: ProductGroup) {
:key="group.key"
class="surface-card rounded-3xl p-4 md:p-5"
>
-
-
-
{{ group.typeLabel }}
- {{ group.products.length }} вариантов
-
-
+
+
{{ group.typeLabel }}
+ {{ group.products.length }} вариантов
-
+
+
+
Совпадающих вариантов: {{ matchingCount(group) }}
-
-
@@ -489,6 +493,22 @@ function decrementSelected(group: ProductGroup) {
+
+