diff --git a/src/pages/Order/Card/CatalogFilterValueDialog.vue b/src/pages/Order/Card/CatalogFilterValueDialog.vue
new file mode 100644
index 000000000..120e2fb72
--- /dev/null
+++ b/src/pages/Order/Card/CatalogFilterValueDialog.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+ getSelectedTagValues($event)"
+ />
+
+
+
+
+
+
+
+
+
+en:
+ params:
+ tag: Tag
+es:
+ params:
+ tag: Etiqueta
+
diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue
index 68764c1a5..381a0516a 100644
--- a/src/pages/Order/Card/OrderCatalogFilter.vue
+++ b/src/pages/Order/Card/OrderCatalogFilter.vue
@@ -9,7 +9,7 @@ import VnSelect from 'components/common/VnSelect.vue';
import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue';
import VnInput from 'src/components/common/VnInput.vue';
import getParamWhere from 'src/filters/getParamWhere';
-// import CatalogFilterValueDialog from 'src/pages/Order/Card/CatalogFilterValueDialog.vue';
+import CatalogFilterValueDialog from 'src/pages/Order/Card/CatalogFilterValueDialog.vue';
import { useArrayData } from 'composables/useArrayData';
const props = defineProps({
@@ -128,12 +128,12 @@ async function onSearchByTag(value) {
searchByTag.value = null;
}
-const removeTagGroupParam = (params, search, valIndex = null) => {
- if (!valIndex) {
- params.tagGroups = null;
+const removeTagGroupParam = (search, valIndex) => {
+ if (!valIndex && valIndex !== 0) {
+ currentParams.value.tagGroups = null;
search();
} else {
- params.tagGroups.splice(valIndex, 1);
+ currentParams.value.tagGroups.splice(valIndex, 1);
search();
}
};
@@ -201,7 +201,7 @@ onMounted(() => {
@remove="
customTag.label === 'categoryFk'
? resetCategory(params, searchFn)
- : removeTagGroupParam(params, searchFn, valIndex)
+ : removeTagGroupParam(searchFn, valIndex)
"
>
@@ -221,7 +221,6 @@ onMounted(() => {
- {{ params }}
{
dense
/>
-
+ />