From 823351f76dc5dcd192d3db88c4070be682e3501f Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 25 Apr 2024 10:55:48 -0300 Subject: [PATCH 1/4] Item botanical --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Item/Card/CreateGenusForm.vue | 50 ++++++++++ src/pages/Item/Card/CreateSpecieForm.vue | 50 ++++++++++ src/pages/Item/Card/ItemBotanical.vue | 111 +++++++++++++++++++++++ src/router/modules/item.js | 11 ++- 6 files changed, 223 insertions(+), 1 deletion(-) create mode 100644 src/pages/Item/Card/CreateGenusForm.vue create mode 100644 src/pages/Item/Card/CreateSpecieForm.vue create mode 100644 src/pages/Item/Card/ItemBotanical.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index ff57bf968..6ccb1a177 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1122,6 +1122,7 @@ item: fixedPrice: Fixed prices wasteBreakdown: Waste breakdown itemCreate: New item + botanical: Botanical descriptor: item: Item buyer: Buyer diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f9278a9b0..4bcf01400 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1121,6 +1121,7 @@ item: fixedPrice: Precios fijados wasteBreakdown: Deglose de mermas itemCreate: Nuevo artículo + botanical: Botánico descriptor: item: Artículo buyer: Comprador diff --git a/src/pages/Item/Card/CreateGenusForm.vue b/src/pages/Item/Card/CreateGenusForm.vue new file mode 100644 index 000000000..637a1137e --- /dev/null +++ b/src/pages/Item/Card/CreateGenusForm.vue @@ -0,0 +1,50 @@ + + + + + +es: + New genus: Nuevo genus + Latin genus name: Nombre del genus en latín + diff --git a/src/pages/Item/Card/CreateSpecieForm.vue b/src/pages/Item/Card/CreateSpecieForm.vue new file mode 100644 index 000000000..2731820ba --- /dev/null +++ b/src/pages/Item/Card/CreateSpecieForm.vue @@ -0,0 +1,50 @@ + + + + + +es: + New species: Nueva especie + Latin species name: Nombre de la especie en latín + diff --git a/src/pages/Item/Card/ItemBotanical.vue b/src/pages/Item/Card/ItemBotanical.vue new file mode 100644 index 000000000..0a28b05b8 --- /dev/null +++ b/src/pages/Item/Card/ItemBotanical.vue @@ -0,0 +1,111 @@ + + + + +es: + Genus: Genus + Species: Especies + diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 2a8e87194..c787d05f2 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -11,7 +11,7 @@ export default { redirect: { name: 'ItemMain' }, menus: { main: ['ItemList', 'WasteBreakdown', 'ItemFixedPrice'], - card: ['ItemBasicData'], + card: ['ItemBasicData', 'ItemBotanical'], }, children: [ { @@ -103,6 +103,15 @@ export default { }, component: () => import('src/pages/Item/Card/ItemBasicData.vue'), }, + { + path: 'botanical', + name: 'ItemBotanical', + meta: { + title: 'botanical', + icon: 'vn:botanical', + }, + component: () => import('src/pages/Item/Card/ItemBotanical.vue'), + }, ], }, ], From 7f4155cde9a535662033e379052ae42d9d7eb914 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 26 Apr 2024 08:54:26 +0200 Subject: [PATCH 2/4] fix: replace VnSelectFilter by VnSelect --- src/components/ItemsFilterPanel.vue | 10 +++++----- src/pages/Item/ItemFixedPrice.vue | 10 +++++----- src/pages/Item/ItemFixedPriceFilter.vue | 6 +++--- src/pages/Item/ItemRequestFilter.vue | 12 ++++++------ 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue index f7f07a5b0..94adfe0ff 100644 --- a/src/components/ItemsFilterPanel.vue +++ b/src/components/ItemsFilterPanel.vue @@ -5,7 +5,7 @@ import { useI18n } from 'vue-i18n'; import VnInput from 'components/common/VnInput.vue'; import FetchData from 'components/FetchData.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; -import VnSelectFilter from 'components/common/VnSelectFilter.vue'; +import VnSelect from 'components/common/VnSelect.vue'; import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue'; import axios from 'axios'; @@ -207,7 +207,7 @@ const removeTag = (index, params, search) => { - { - + @@ -246,7 +246,7 @@ const removeTag = (index, params, search) => { class="q-mt-md filter-value" > - { /> - [ name: 'warehouse', ...defaultColumnAttrs, columnFilter: { - component: VnSelectFilter, + component: VnSelect, type: 'select', filterValue: null, event: getColumnInputEvents, @@ -434,7 +434,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); - + - + @@ -261,7 +261,7 @@ const decrement = (paramsObj, key) => { - Date: Fri, 26 Apr 2024 09:02:51 +0200 Subject: [PATCH 3/4] fix: minor changes --- src/i18n/locale/en.yml | 2 ++ src/pages/Item/Card/ItemBotanical.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index a07e35f30..68f1b3db3 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1126,6 +1126,8 @@ item: wasteBreakdown: Waste breakdown itemCreate: New item log: Log + tax: Tax + barcode: Barcode botanical: Botanical descriptor: item: Item diff --git a/src/pages/Item/Card/ItemBotanical.vue b/src/pages/Item/Card/ItemBotanical.vue index 0a28b05b8..0dd1d1a19 100644 --- a/src/pages/Item/Card/ItemBotanical.vue +++ b/src/pages/Item/Card/ItemBotanical.vue @@ -107,5 +107,5 @@ onMounted(async () => { es: Genus: Genus - Species: Especies + Species: Especie From 36e99e2c6cc267c146dff230184ea9c62d5c8658 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 26 Apr 2024 09:28:32 +0200 Subject: [PATCH 4/4] fix: bug when save --- src/pages/Item/Card/ItemBotanical.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/pages/Item/Card/ItemBotanical.vue b/src/pages/Item/Card/ItemBotanical.vue index 0dd1d1a19..15492de9f 100644 --- a/src/pages/Item/Card/ItemBotanical.vue +++ b/src/pages/Item/Card/ItemBotanical.vue @@ -1,5 +1,5 @@