diff --git a/src/components/ui/VnToSummary.vue b/src/components/ui/VnToSummary.vue index 1c7d6cf01..305d65e02 100644 --- a/src/components/ui/VnToSummary.vue +++ b/src/components/ui/VnToSummary.vue @@ -1,6 +1,5 @@ + + + + + + + + + + + + + + + + + + + + + +en: + params: + tag: Tag +es: + params: + tag: Etiqueta + diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue index b13e8661d..66a1a132d 100644 --- a/src/pages/Order/Card/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -1,30 +1,58 @@ - + @@ -102,6 +142,7 @@ function extractValueTags(items) { :key="row.id" :item="row" is-catalog + class="fill-icon" /> diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue index 4c018bbb1..8aa88da0d 100644 --- a/src/pages/Order/Card/OrderCatalogFilter.vue +++ b/src/pages/Order/Card/OrderCatalogFilter.vue @@ -1,5 +1,5 @@ - + - - {{ t(selectedCategory?.name || '') }} - - + {{ t(selectedType?.name || '') }} @@ -199,22 +196,33 @@ function addOrder(value, field, params) { - - - - {{ JSON.parse(chip).tagSelection?.name }}: - {{ - (JSON.parse(chip).values || []) - .map((item) => item.value) - .join(' | ') - }} - - + + + + {{ t(selectedCategory?.name || '') }} + + + {{ tag.tagSelection.name }}: + + + {{ + (tag?.values || []) + .map((item) => `"${item.value}"`) + .join(', ') + }} + + @@ -298,91 +306,39 @@ function addOrder(value, field, params) { - - - - - - - (tagOptions = data)" - /> - - + - - - - + :is-clearable="false" + v-model="searchByTag" + @keyup.enter="(val) => onSearchByTag(val, params)" + > + + + + + + + applyTags($event, currentParams, searchFn) + " + /> + + + @@ -417,23 +373,6 @@ function addOrder(value, field, params) { cursor: pointer; } } - -.filter-icon { - font-size: 24px; - color: $primary; - padding: 0 4px; - cursor: pointer; -} - -.filter-input { - flex-shrink: 1; - min-width: 0; -} - -.filter-value { - display: flex; - align-items: center; -}