From 823351f76dc5dcd192d3db88c4070be682e3501f Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 25 Apr 2024 10:55:48 -0300 Subject: [PATCH] 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'), + }, ], }, ],