diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue new file mode 100644 index 000000000..c6df0c1e0 --- /dev/null +++ b/src/components/ItemsFilterPanel.vue @@ -0,0 +1,357 @@ + + + + (itemCategories = data)" + /> + (suppliersOptions = data)" + /> + (tagOptions = data)" + /> + + + + {{ t(selectedCategory?.name || '') }} + + + {{ t(selectedType?.name || '') }} + + + {{ t(`components.itemsFilterPanel.${tag.label}`) }}: + {{ formatFn(tag.value) }} + + + + + + + {{ chip.tagName }}: + "{{ chip.value }}" + + + + + + + + + {{ t(category.name) }} + + + + + + { + selectedTypeFk = value; + searchFn(); + } + " + > + + + + {{ opt.name }} + + {{ opt.categoryName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +en: + params: + supplier: Supplier + from: From + to: To + active: Is active + visible: Is visible + floramondo: Is floramondo + salesPersonFk: Buyer + categoryFk: Category + +es: + params: + supplier: Proveedor + from: Desde + to: Hasta + active: Activo + visible: Visible + floramondo: Floramondo + salesPersonFk: Comprador + categoryFk: Categoría + diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index cb56c82bb..837602b4b 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1136,6 +1136,17 @@ item: warehouse: Warehouse components: topbar: {} + itemsFilterPanel: + typeFk: Type + tag: Tag + value: Value + + buyerFk: Buyer + warehouseFk: Almacén + started: Desde + ended: Hasta + mine: Para mi + hasMinPrice: Precio mínimo userPanel: copyToken: Token copied to clipboard settings: Settings diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index dc132a0af..85925b22f 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1133,6 +1133,17 @@ item: warehouse: Almacén components: topbar: {} + itemsFilterPanel: + typeFk: Tipo + tag: Etiqueta + value: Valor + + buyerFk: Comprador + warehouseFk: Warehouse + started: From + ended: To + mine: For me + hasMinPrice: Minimum price userPanel: copyToken: Token copiado al portapapeles settings: Configuración diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 01189db3d..c9811fcd5 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -1,5 +1,5 @@ + + + (itemTypeWorkersOptions = data)" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +