From 2f55272df77a8a0fe949d2f8588eb635b36f469c Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 29 Apr 2024 11:23:50 +0200 Subject: [PATCH] fix: WorkerDescriptor --- src/i18n/locale/en.yml | 14 +------- src/i18n/locale/es.yml | 17 ---------- src/pages/Item/ItemTypeCreate.vue | 8 ++--- src/pages/ItemType/Card/ItemTypeBasicData.vue | 18 +++++------ .../ItemType/Card/ItemTypeDescriptor.vue | 17 ++++++---- src/pages/ItemType/Card/ItemTypeSummary.vue | 32 +++++++++---------- src/pages/ItemType/locale/en.yml | 12 +++++++ src/pages/ItemType/locale/es.yml | 17 ++++++++++ 8 files changed, 69 insertions(+), 66 deletions(-) create mode 100644 src/pages/ItemType/locale/en.yml create mode 100644 src/pages/ItemType/locale/es.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 482c0dc7d..2b71195d1 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1221,23 +1221,11 @@ item: minSalesQuantity: 'Cantidad mínima de venta' genus: 'Genus' specie: 'Specie' -itemType: +item/itemType: pageTitles: itemType: Item type basicData: Basic data summary: Summary - shared: - code: Code - name: Name - worker: Worker - category: Category - temperature: Temperature - summary: - id: id - life: Life - promo: Promo - itemPackingType: Item packing type - isUnconventionalSize: Is unconventional size components: topbar: {} itemsFilterPanel: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index fc96adbf8..d1823b387 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1225,23 +1225,6 @@ item/itemType: itemType: Familia basicData: Datos básicos summary: Resumen - shared: - code: Código - name: Nombre - worker: Trabajador - category: Reino - temperature: Temperatura - summary: - id: id - code: Código - name: Nombre - worker: Trabajador - category: Reino - temperature: Temperatura - life: Vida - promo: Promoción - itemPackingType: Tipo de embalaje - isUnconventionalSize: Es de tamaño poco convencional components: topbar: {} itemsFilterPanel: diff --git a/src/pages/Item/ItemTypeCreate.vue b/src/pages/Item/ItemTypeCreate.vue index 3540fc5af..af3dc34ea 100644 --- a/src/pages/Item/ItemTypeCreate.vue +++ b/src/pages/Item/ItemTypeCreate.vue @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import FetchData from 'components/FetchData.vue'; -import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; +import VnSelect from 'src/components/common/VnSelect.vue'; import FormModel from 'components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; @@ -58,7 +58,7 @@ const redirectToItemTypeBasicData = (_, { id }) => { - { option-label="firstName" hide-selected /> - { /> - diff --git a/src/pages/ItemType/Card/ItemTypeSummary.vue b/src/pages/ItemType/Card/ItemTypeSummary.vue index 393675a30..62d1c74ab 100644 --- a/src/pages/ItemType/Card/ItemTypeSummary.vue +++ b/src/pages/ItemType/Card/ItemTypeSummary.vue @@ -2,6 +2,7 @@ import { ref, computed, onUpdated } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; +import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import CardSummary from 'components/ui/CardSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; @@ -71,30 +72,29 @@ async function setItemTypeData(data) { {{ t('globals.summary.basicData') }} - - - + + + + + + + - - - - + + diff --git a/src/pages/ItemType/locale/en.yml b/src/pages/ItemType/locale/en.yml new file mode 100644 index 000000000..7889418ea --- /dev/null +++ b/src/pages/ItemType/locale/en.yml @@ -0,0 +1,12 @@ +shared: + code: Code + name: Name + worker: Worker + category: Category + temperature: Temperature +summary: + id: id + life: Life + promo: Promo + itemPackingType: Item packing type + isUnconventionalSize: Is unconventional size diff --git a/src/pages/ItemType/locale/es.yml b/src/pages/ItemType/locale/es.yml new file mode 100644 index 000000000..9a94dceb6 --- /dev/null +++ b/src/pages/ItemType/locale/es.yml @@ -0,0 +1,17 @@ +shared: + code: Código + name: Nombre + worker: Trabajador + category: Reino + temperature: Temperatura +summary: + id: id + code: Código + name: Nombre + worker: Trabajador + category: Reino + temperature: Temperatura + life: Vida + promo: Promoción + itemPackingType: Tipo de embalaje + isUnconventionalSize: Es de tamaño poco convencional