From c621ccb5a6e35552a25bc203575554c852d9f8d2 Mon Sep 17 00:00:00 2001 From: jcasado Date: Tue, 23 Apr 2024 13:19:21 +0200 Subject: [PATCH 01/34] refs #7113 fix test --- test/cypress/support/commands.js | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index f075d500f..13103950c 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -38,6 +38,15 @@ Cypress.Commands.add('login', (user) => { }, }).then((response) => { window.localStorage.setItem('token', response.body.token); + cy.request({ + method: 'GET', + url: '/api/VnUsers/ShareToken', + headers: { + Authorization: window.localStorage.getItem('token'), + }, + }).then(({ body }) => { + window.localStorage.setItem('tokenMultimedia', body.multimediaToken.id); + }); }); }); @@ -52,16 +61,18 @@ Cypress.Commands.add('getValue', (selector) => { } // Si es un QSelect if ($el.find('.q-select__dropdown-icon').length) { - return cy.get( - selector + - '> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input' - ).invoke('val') + return cy + .get( + selector + + '> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input' + ) + .invoke('val'); } // Si es un QSelect if ($el.find('span').length) { - return cy.get( - selector + ' span' - ).then(($span) => { return $span[0].innerText }) + return cy.get(selector + ' span').then(($span) => { + return $span[0].innerText; + }); } // Puedes añadir un log o lanzar un error si el elemento no es reconocido cy.log('Elemento no soportado'); @@ -132,13 +143,13 @@ Cypress.Commands.add('validateRow', (rowSelector, expectedValues) => { cy.get(rowSelector).within(() => { for (const [index, value] of expectedValues.entries()) { cy.log('CHECKING ', index, value); - if(value === undefined) continue + if (value === undefined) continue; if (typeof value == 'boolean') { const prefix = value ? '' : 'not.'; cy.getValue(`:nth-child(${index + 1})`).should(`${prefix}be.checked`); continue; } - cy.getValue(`:nth-child(${index + 1})`).should('equal', value) + cy.getValue(`:nth-child(${index + 1})`).should('equal', value); } }); }); From 934db329733c81741074a22cdb39ea37446350d6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 24 Apr 2024 10:31:33 -0300 Subject: [PATCH 02/34] WIP --- src/components/CrudModel.vue | 1 + src/css/app.scss | 5 + src/pages/Item/Card/ItemTags.vue | 176 ++++++++++++++++++++++++++++++- src/router/modules/item.js | 4 +- 4 files changed, 183 insertions(+), 3 deletions(-) diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index fb3ac10c3..deec0e4fe 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -81,6 +81,7 @@ defineExpose({ hasChanges, saveChanges, getChanges, + formData, }); async function fetch(data) { diff --git a/src/css/app.scss b/src/css/app.scss index 25b484649..9037802ad 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -119,6 +119,11 @@ select:-webkit-autofill { font-variation-settings: 'FILL' 1; } +.fill-icon-on-hover:hover { + font-variation-settings: 'FILL' 1; + cursor: pointer; +} + .vn-table-separation-row { height: 16px !important; background-color: var(--vn-section-color) !important; diff --git a/src/pages/Item/Card/ItemTags.vue b/src/pages/Item/Card/ItemTags.vue index 95f4380e4..bf18c682c 100644 --- a/src/pages/Item/Card/ItemTags.vue +++ b/src/pages/Item/Card/ItemTags.vue @@ -1 +1,175 @@ - + + + + + +es: + Remove tag: Quitar etiqueta + Add tag: Añadir etiqueta + Tag: Etiqueta + Value: Valor + Relevancy: Relevancia + diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 70d49c56c..1b582d8e4 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'ItemMain' }, menus: { main: ['ItemList', 'WasteBreakdown', 'ItemTypeList'], - card: ['ItemBasicData'], + card: ['ItemBasicData', 'ItemTags'], }, children: [ { @@ -98,7 +98,7 @@ export default { path: 'tags', name: 'ItemTags', meta: { - title: 'Tags', + title: 'tags', icon: 'vn:tags', }, component: () => import('src/pages/Item/Card/ItemTags.vue'), From 42591d078119e6a1051669a104c977f7c6b4abc2 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 25 Apr 2024 14:27:56 +0200 Subject: [PATCH 03/34] feat #7271 router --- src/router/modules/index.js | 2 + src/router/modules/zone.js | 139 +++++++++++++++++++++++++++++++ src/router/routes.js | 2 + src/stores/useNavigationStore.js | 1 + 4 files changed, 144 insertions(+) create mode 100644 src/router/modules/zone.js diff --git a/src/router/modules/index.js b/src/router/modules/index.js index 302ba7fe0..2fe40038f 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -15,6 +15,7 @@ import Department from './department'; import Entry from './entry'; import roadmap from './roadmap'; import Parking from './parking'; +import Zone from './zone'; export default [ Item, @@ -34,4 +35,5 @@ export default [ Entry, roadmap, Parking, + Zone, ]; diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js new file mode 100644 index 000000000..be11ced11 --- /dev/null +++ b/src/router/modules/zone.js @@ -0,0 +1,139 @@ +import { RouterView } from 'vue-router'; + +export default { + path: '/zone', + name: 'Zone', + meta: { + title: 'zones', + icon: 'vn:zone', + moduleName: 'Zone', + }, + component: RouterView, + redirect: { name: 'ZoneMain' }, + menus: { + main: ['ZoneList', 'ZoneDeliveryList', 'ZoneUpcomingList'], + card: [], + }, + children: [ + { + path: '/zone', + name: 'ZoneMain', + component: () => import('src/pages/Zone/ZoneMain.vue'), + redirect: { name: 'ZoneList' }, + children: [ + { + path: 'list', + name: 'ZoneList', + meta: { + title: 'zonesList', + icon: 'vn:zone', + }, + component: () => import('src/pages/Zone/ZoneList.vue'), + }, + { + path: 'create', + name: 'ZoneCreate', + meta: { + title: 'zoneCreate', + icon: 'create', + }, + component: () => import('src/pages/Zone/ZoneCreate.vue'), + }, + { + path: ':id/edit', + name: 'ZoneEdit', + meta: { + title: 'zoneEdit', + icon: 'edit', + }, + component: () => import('src/pages/Zone/ZoneCreate.vue'), + }, + { + path: 'counter', + name: 'ZoneCounter', + meta: { + title: 'zoneCounter', + icon: 'add_circle', + }, + component: () => import('src/pages/Zone/ZoneCounter.vue'), + }, + ], + }, + { + path: '/zone/delivery', + name: 'ZoneDeliveryMain', + component: () => import('src/pages/Zone/ZoneMain.vue'), + redirect: { name: 'ZoneDeliveryList' }, + children: [ + { + path: 'list', + name: 'ZoneDeliveryList', + meta: { + title: 'deliveryList', + icon: 'today', + }, + component: () => + import('src/pages/Zone/Delivery/ZoneDeliveryList.vue'), + }, + { + path: 'create', + name: 'ZoneDeliveryCreate', + meta: { + title: 'deliveryCreate', + icon: 'create', + }, + component: () => + import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'), + }, + { + path: ':id/edit', + name: 'ZoneDeliveryEdit', + meta: { + title: 'deliveryEdit', + icon: 'edit', + }, + component: () => + import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'), + }, + ], + }, + { + path: '/zone/upcoming', + name: 'ZoneUpcomingMain', + component: () => import('src/pages/Zone/ZoneMain.vue'), + redirect: { name: 'ZoneUpcomingList' }, + children: [ + { + path: 'list', + name: 'ZoneUpcomingList', + meta: { + title: 'upcomingList', + icon: 'today', + }, + component: () => + import('src/pages/Zone/Upcoming/ZoneUpcomingList.vue'), + }, + { + path: 'create', + name: 'ZoneUpcomingCreate', + meta: { + title: 'upcomingCreate', + icon: 'create', + }, + component: () => + import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'), + }, + { + path: ':id/edit', + name: 'ZoneUpcomingEdit', + meta: { + title: 'upcomingEdit', + icon: 'edit', + }, + component: () => + import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'), + }, + ], + }, + ], +}; diff --git a/src/router/routes.js b/src/router/routes.js index 51e726a62..14bf6665f 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -15,6 +15,7 @@ import order from 'src/router/modules/order'; import entry from 'src/router/modules/entry'; import roadmap from 'src/router/modules/roadmap'; import parking from 'src/router/modules/parking'; +import zone from 'src/router/modules/zone'; const routes = [ { @@ -71,6 +72,7 @@ const routes = [ roadmap, entry, parking, + zone, { path: '/:catchAll(.*)*', name: 'NotFound', diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index f075301f6..ee1e04e9b 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -21,6 +21,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { 'ticket', 'worker', 'wagon', + 'zone', ]; const pinnedModules = ref([]); const role = useRole(); From b4e3157887e6ace9072ba5f686b9d26046bf2360 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 25 Apr 2024 14:28:06 +0200 Subject: [PATCH 04/34] feat #7271 i18n --- src/i18n/locale/en.yml | 6 ++++++ src/i18n/locale/es.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index ff57bf968..aa65ce08c 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1165,6 +1165,12 @@ item: type: Type intrastat: Intrastat origin: Origin +zone: + pageTitles: + zones: Zone + zonesList: Zones + deliveryList: Delivery days + upcomingList: Upcoming deliveries components: topbar: {} itemsFilterPanel: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f9278a9b0..da421432d 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -287,7 +287,7 @@ customer: hasSepaVnl: Recibido B2B VNL entry: pageTitles: - entries: Entradas + entries: Entrasdadas list: Listado summary: Resumen basicData: Datos básicos @@ -1164,6 +1164,12 @@ item: type: Tipo intrastat: Intrastat origin: Origen +zone: + pageTitles: + zones: Zona + zonesList: Zonas + deliveryList: Días de entrega + upcomingList: Próximos repartos components: topbar: {} itemsFilterPanel: From b1871c33fd0ad1eb86f7ca6985af6ec41a770709 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 25 Apr 2024 14:30:16 +0200 Subject: [PATCH 05/34] feat #7271 Zone Components boilerplate --- src/pages/Zone/Card/ZoneCard.vue | 6 + .../Zone/Delivery/ZoneDeliveryCreate.vue | 432 ++++++++++++++++++ src/pages/Zone/Delivery/ZoneDeliveryList.vue | 81 ++++ .../Zone/Upcoming/ZoneUpcomingCreate.vue | 432 ++++++++++++++++++ src/pages/Zone/Upcoming/ZoneUpcomingList.vue | 81 ++++ src/pages/Zone/ZoneCreate.vue | 184 ++++++++ src/pages/Zone/ZoneList.vue | 97 ++++ src/pages/Zone/ZoneMain.vue | 17 + 8 files changed, 1330 insertions(+) create mode 100644 src/pages/Zone/Card/ZoneCard.vue create mode 100644 src/pages/Zone/Delivery/ZoneDeliveryCreate.vue create mode 100644 src/pages/Zone/Delivery/ZoneDeliveryList.vue create mode 100644 src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue create mode 100644 src/pages/Zone/Upcoming/ZoneUpcomingList.vue create mode 100644 src/pages/Zone/ZoneCreate.vue create mode 100644 src/pages/Zone/ZoneList.vue create mode 100644 src/pages/Zone/ZoneMain.vue diff --git a/src/pages/Zone/Card/ZoneCard.vue b/src/pages/Zone/Card/ZoneCard.vue new file mode 100644 index 000000000..948636c55 --- /dev/null +++ b/src/pages/Zone/Card/ZoneCard.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Zone/Delivery/ZoneDeliveryCreate.vue b/src/pages/Zone/Delivery/ZoneDeliveryCreate.vue new file mode 100644 index 000000000..a48eaf278 --- /dev/null +++ b/src/pages/Zone/Delivery/ZoneDeliveryCreate.vue @@ -0,0 +1,432 @@ + + + + + diff --git a/src/pages/Zone/Delivery/ZoneDeliveryList.vue b/src/pages/Zone/Delivery/ZoneDeliveryList.vue new file mode 100644 index 000000000..c7a3cbcdb --- /dev/null +++ b/src/pages/Zone/Delivery/ZoneDeliveryList.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue b/src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue new file mode 100644 index 000000000..6bc04c428 --- /dev/null +++ b/src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue @@ -0,0 +1,432 @@ + + + + + diff --git a/src/pages/Zone/Upcoming/ZoneUpcomingList.vue b/src/pages/Zone/Upcoming/ZoneUpcomingList.vue new file mode 100644 index 000000000..5c417df8f --- /dev/null +++ b/src/pages/Zone/Upcoming/ZoneUpcomingList.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/pages/Zone/ZoneCreate.vue b/src/pages/Zone/ZoneCreate.vue new file mode 100644 index 000000000..8c0ba8c17 --- /dev/null +++ b/src/pages/Zone/ZoneCreate.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/pages/Zone/ZoneList.vue b/src/pages/Zone/ZoneList.vue new file mode 100644 index 000000000..00502e1f7 --- /dev/null +++ b/src/pages/Zone/ZoneList.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/pages/Zone/ZoneMain.vue b/src/pages/Zone/ZoneMain.vue new file mode 100644 index 000000000..66ce78f23 --- /dev/null +++ b/src/pages/Zone/ZoneMain.vue @@ -0,0 +1,17 @@ + + + From f14d6310514c949c81de6ac07083dd686e37e87b Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 25 Apr 2024 14:32:42 +0200 Subject: [PATCH 06/34] feat #7271 ZoneDescriptor --- src/pages/Zone/Card/ZoneDescriptor.vue | 127 ++++++++++++++++++ .../Zone/Card/ZoneDescriptorMenuItems.vue | 108 +++++++++++++++ src/pages/Zone/Card/ZoneDescriptorProxy.vue | 16 +++ 3 files changed, 251 insertions(+) create mode 100644 src/pages/Zone/Card/ZoneDescriptor.vue create mode 100644 src/pages/Zone/Card/ZoneDescriptorMenuItems.vue create mode 100644 src/pages/Zone/Card/ZoneDescriptorProxy.vue diff --git a/src/pages/Zone/Card/ZoneDescriptor.vue b/src/pages/Zone/Card/ZoneDescriptor.vue new file mode 100644 index 000000000..665cb6f0e --- /dev/null +++ b/src/pages/Zone/Card/ZoneDescriptor.vue @@ -0,0 +1,127 @@ + + + + + +es: + Go to module index: Ir al índice del módulo + The travel will be deleted: El envío será eliminado + Do you want to delete this travel?: ¿Quieres eliminar este envío? + All travels with current agency: Todos los envíos con la agencia actual + diff --git a/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue new file mode 100644 index 000000000..920d83dfe --- /dev/null +++ b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue @@ -0,0 +1,108 @@ + + + + + +es: + The travel will be deleted: El envío será eliminado + Do you want to delete this travel?: ¿Quieres eliminar este envío? + diff --git a/src/pages/Zone/Card/ZoneDescriptorProxy.vue b/src/pages/Zone/Card/ZoneDescriptorProxy.vue new file mode 100644 index 000000000..15c5fb0e5 --- /dev/null +++ b/src/pages/Zone/Card/ZoneDescriptorProxy.vue @@ -0,0 +1,16 @@ + + + From ac219bfbb79d748b9f19d51d816d457af235368e Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 30 Apr 2024 16:15:48 -0300 Subject: [PATCH 07/34] Item shelvings --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Item/Card/ItemShelving.vue | 275 +++++++++++++++++++++++++++ src/pages/Item/locale/en.yml | 14 ++ src/pages/Item/locale/es.yml | 14 ++ src/router/modules/item.js | 10 + 6 files changed, 315 insertions(+) create mode 100644 src/pages/Item/Card/ItemShelving.vue create mode 100644 src/pages/Item/locale/en.yml create mode 100644 src/pages/Item/locale/es.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index abe59fe18..1000fd308 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1135,6 +1135,7 @@ item: tax: Tax barcode: Barcode botanical: Botanical + shelving: Shelving descriptor: item: Item buyer: Buyer diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 06aa057e3..2727b9113 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1134,6 +1134,7 @@ item: botanical: 'Botánico' barcode: 'Código de barras' log: Historial + shelving: Carros descriptor: item: Artículo buyer: Comprador diff --git a/src/pages/Item/Card/ItemShelving.vue b/src/pages/Item/Card/ItemShelving.vue new file mode 100644 index 000000000..573c4be0c --- /dev/null +++ b/src/pages/Item/Card/ItemShelving.vue @@ -0,0 +1,275 @@ + + + diff --git a/src/pages/Item/locale/en.yml b/src/pages/Item/locale/en.yml new file mode 100644 index 000000000..19bbd7f06 --- /dev/null +++ b/src/pages/Item/locale/en.yml @@ -0,0 +1,14 @@ +shelvings: + created: Created + item: Item + concept: Concept + parking: Parking + shelving: Shelving + label: Label + packing: Packing + total: Total + totalLabels: Total labels + removeLines: Remove selected lines + shelvingsRemoved: ItemShelvings removed + removeConfirmTitle: Selected lines will be deleted + removeConfirmSubtitle: Are you sure you want to continue? diff --git a/src/pages/Item/locale/es.yml b/src/pages/Item/locale/es.yml new file mode 100644 index 000000000..6f99bb4be --- /dev/null +++ b/src/pages/Item/locale/es.yml @@ -0,0 +1,14 @@ +shelvings: + created: Creado + item: Artículo + concept: Concepto + parking: Parking + shelving: Matrícula + label: Etiqueta + packing: Packing + total: Total + totalLabels: Total etiquetas + removeLines: Eliminar líneas seleccionadas + shelvingsRemoved: Carros eliminados + removeConfirmTitle: Las líneas seleccionadas serán eliminadas + removeConfirmSubtitle: ¿Seguro que quieres continuar? diff --git a/src/router/modules/item.js b/src/router/modules/item.js index bc1e72a94..59bd07d20 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -20,6 +20,7 @@ export default { 'ItemTax', 'ItemBotanical', 'ItemBarcode', + 'ItemShelving', ], }, children: [ @@ -157,6 +158,15 @@ export default { }, component: () => import('src/pages/Item/Card/ItemBotanical.vue'), }, + { + path: 'shelving', + name: 'ItemShelving', + meta: { + title: 'shelving', + icon: 'vn:inventory', + }, + component: () => import('src/pages/Item/Card/ItemShelving.vue'), + }, ], }, ], From 554b9e814b9af83e65c091cf1d0a30c61d6ead3e Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 2 May 2024 09:08:03 -0300 Subject: [PATCH 08/34] WIP --- src/components/FilterItemForm.vue | 11 +- src/pages/Entry/Card/EntryBuysImport.vue | 1 + src/pages/Item/Card/CreateIntrastatForm.vue | 52 +++++ src/pages/Item/Card/ItemBasicData.vue | 240 +++++++++++++++++++- src/pages/Item/locale/en.yml | 17 ++ src/pages/Item/locale/es.yml | 17 ++ 6 files changed, 334 insertions(+), 4 deletions(-) create mode 100644 src/pages/Item/Card/CreateIntrastatForm.vue diff --git a/src/components/FilterItemForm.vue b/src/components/FilterItemForm.vue index e031999e2..00659f8fd 100644 --- a/src/components/FilterItemForm.vue +++ b/src/components/FilterItemForm.vue @@ -1,7 +1,6 @@ + + diff --git a/src/pages/Item/Card/ItemBasicData.vue b/src/pages/Item/Card/ItemBasicData.vue index 334cf049d..dc6868fba 100644 --- a/src/pages/Item/Card/ItemBasicData.vue +++ b/src/pages/Item/Card/ItemBasicData.vue @@ -1 +1,239 @@ - + + diff --git a/src/pages/Item/locale/en.yml b/src/pages/Item/locale/en.yml index ec3b134e8..410ed5edc 100644 --- a/src/pages/Item/locale/en.yml +++ b/src/pages/Item/locale/en.yml @@ -11,3 +11,20 @@ itemDiary: showBefore: Show what's before the inventory since: Since warehouse: Warehouse +basicData: + type: Type + reference: Reference + relevancy: Relevancy + stems: Stems + multiplier: Multiplier + generic: Generic + intrastat: Intrastat + expense: Expense + weightByPiece: Weight/Piece + boxUnits: Units/Box + recycledPlastic: Recycled plastic + nonRecycledPlastic: Non recycled plastic +createIntrastatForm: + title: New intrastat + identifier: Identifier + description: Description diff --git a/src/pages/Item/locale/es.yml b/src/pages/Item/locale/es.yml index 4f76313fa..6540c36c8 100644 --- a/src/pages/Item/locale/es.yml +++ b/src/pages/Item/locale/es.yml @@ -11,3 +11,20 @@ itemDiary: showBefore: Mostrar lo anterior al inventario since: Desde warehouse: Almacén +basicData: + type: Tipo + reference: Referencia + relevancy: Relevancia + stems: Tallos + multiplier: Multiplicador + generic: Genérico + intrastat: Intrastat + expense: Gasto + weightByPiece: Peso (gramos)/tallo + boxUnits: Unidades/caja + recycledPlastic: Plástico reciclado + nonRecycledPlastic: Plástico no reciclado +createIntrastatForm: + title: Nuevo intrastat + identifier: Identificador + description: Descripción From cb0d7214650b02e1ab5a7af4e348e037a03b8e84 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 2 May 2024 14:40:56 +0200 Subject: [PATCH 09/34] feat: zoneSummary --- src/pages/Zone/Card/ZoneSummary.vue | 94 +++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/pages/Zone/Card/ZoneSummary.vue diff --git a/src/pages/Zone/Card/ZoneSummary.vue b/src/pages/Zone/Card/ZoneSummary.vue new file mode 100644 index 000000000..00df03cb0 --- /dev/null +++ b/src/pages/Zone/Card/ZoneSummary.vue @@ -0,0 +1,94 @@ + + + From d68934a5269ff18f69ef8398e32914228bccab22 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 2 May 2024 11:51:04 -0300 Subject: [PATCH 10/34] Item basic data --- src/pages/Item/Card/ItemBasicData.vue | 66 ++++++++++++--------------- src/pages/Item/locale/en.yml | 7 +++ src/pages/Item/locale/es.yml | 7 +++ 3 files changed, 44 insertions(+), 36 deletions(-) diff --git a/src/pages/Item/Card/ItemBasicData.vue b/src/pages/Item/Card/ItemBasicData.vue index dc6868fba..7e8fa1d92 100644 --- a/src/pages/Item/Card/ItemBasicData.vue +++ b/src/pages/Item/Card/ItemBasicData.vue @@ -192,48 +192,42 @@ const onIntrastatCreated = (response, formData) => { type="number" /> - - + + + + diff --git a/src/pages/Item/locale/en.yml b/src/pages/Item/locale/en.yml index 410ed5edc..35d65b2da 100644 --- a/src/pages/Item/locale/en.yml +++ b/src/pages/Item/locale/en.yml @@ -24,6 +24,13 @@ basicData: boxUnits: Units/Box recycledPlastic: Recycled plastic nonRecycledPlastic: Non recycled plastic + description: Description + isActive: Active + hasKgPrice: Price in kg + isFragile: Fragile + isFragileTooltip: Is shown at website, app that this item cannot travel (wreath, palms, ...) + isPhotoRequested: Do photo + isPhotoRequestedTooltip: This item does need a photo createIntrastatForm: title: New intrastat identifier: Identifier diff --git a/src/pages/Item/locale/es.yml b/src/pages/Item/locale/es.yml index 6540c36c8..498520c26 100644 --- a/src/pages/Item/locale/es.yml +++ b/src/pages/Item/locale/es.yml @@ -24,6 +24,13 @@ basicData: boxUnits: Unidades/caja recycledPlastic: Plástico reciclado nonRecycledPlastic: Plástico no reciclado + description: Descripción + isActive: Activo + hasKgPrice: Precio en kg + isFragile: Frágil + isFragileTooltip: Se muestra en la web app, que este artículo no puede viajar (coronas, palmas, ...) + isPhotoRequested: Hacer foto + isPhotoRequestedTooltip: Este artículo necesita una foto createIntrastatForm: title: Nuevo intrastat identifier: Identificador From 1a5f2fbea2a7c821ca7d9e70fa5224f6a82dc22f Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 3 May 2024 12:30:53 +0200 Subject: [PATCH 11/34] feat: refs #7271 advanced structure --- src/i18n/locale/en.yml | 4 + src/i18n/locale/es.yml | 6 +- src/pages/Zone/Card/ZoneBasicData.vue | 103 +++++++++++++++++++ src/pages/Zone/Card/ZoneCalendar.vue | 0 src/pages/Zone/Card/ZoneLocations.vue | 0 src/pages/Zone/Card/ZoneLog.vue | 6 ++ src/pages/Zone/Card/ZoneSummary.vue | 3 + src/pages/Zone/Card/ZoneWarehouses.vue | 59 +++++++++++ src/pages/Zone/Delivery/ZoneDeliveryList.vue | 3 +- src/pages/Zone/Upcoming/ZoneUpcomingList.vue | 3 +- src/pages/Zone/ZoneCreate.vue | 8 +- src/pages/Zone/ZoneDeliveryDays.vue | 0 src/pages/Zone/ZoneFilterPanel.vue | 55 ++++++++++ src/pages/Zone/ZoneList.vue | 67 +++++++----- src/pages/Zone/ZoneUpcoming.vue | 53 ++++++++++ src/pages/Zone/locale/en.yml | 19 ++++ src/pages/Zone/locale/es.yml | 19 ++++ 17 files changed, 376 insertions(+), 32 deletions(-) create mode 100644 src/pages/Zone/Card/ZoneBasicData.vue create mode 100644 src/pages/Zone/Card/ZoneCalendar.vue create mode 100644 src/pages/Zone/Card/ZoneLocations.vue create mode 100644 src/pages/Zone/Card/ZoneLog.vue create mode 100644 src/pages/Zone/Card/ZoneSummary.vue create mode 100644 src/pages/Zone/Card/ZoneWarehouses.vue create mode 100644 src/pages/Zone/ZoneDeliveryDays.vue create mode 100644 src/pages/Zone/ZoneFilterPanel.vue create mode 100644 src/pages/Zone/ZoneUpcoming.vue create mode 100644 src/pages/Zone/locale/en.yml create mode 100644 src/pages/Zone/locale/es.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index aa65ce08c..a580f2553 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -90,6 +90,10 @@ globals: basicData: Basic data log: Logs parkingList: Parkings list + zones: Zones + zonesList: Zones + deliveryList: Delivery days + upcomingList: Upcoming deliveries created: Created worker: Worker now: Now diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index da421432d..ef7ebf22b 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -90,6 +90,10 @@ globals: basicData: Datos básicos log: Historial parkingList: Listado de parkings + zones: Zonas + zonesList: Zonas + deliveryList: Días de entrega + upcomingList: Próximos repartos created: Fecha creación worker: Trabajador now: Ahora @@ -287,7 +291,7 @@ customer: hasSepaVnl: Recibido B2B VNL entry: pageTitles: - entries: Entrasdadas + entries: Entradas list: Listado summary: Resumen basicData: Datos básicos diff --git a/src/pages/Zone/Card/ZoneBasicData.vue b/src/pages/Zone/Card/ZoneBasicData.vue new file mode 100644 index 000000000..5d57b920e --- /dev/null +++ b/src/pages/Zone/Card/ZoneBasicData.vue @@ -0,0 +1,103 @@ + + + + + +es: + Name: Nombre + Agency: Agencia + Max m³: Medida máxima + Maximum m³: M³ maximo + Traveling days: Dias de viaje + Closing: Cierre + Price: Precio + Bonus: Bonificación + Inflation: Inflación + Volumetric: Volumétrico + diff --git a/src/pages/Zone/Card/ZoneCalendar.vue b/src/pages/Zone/Card/ZoneCalendar.vue new file mode 100644 index 000000000..e69de29bb diff --git a/src/pages/Zone/Card/ZoneLocations.vue b/src/pages/Zone/Card/ZoneLocations.vue new file mode 100644 index 000000000..e69de29bb diff --git a/src/pages/Zone/Card/ZoneLog.vue b/src/pages/Zone/Card/ZoneLog.vue new file mode 100644 index 000000000..373d210b5 --- /dev/null +++ b/src/pages/Zone/Card/ZoneLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Zone/Card/ZoneSummary.vue b/src/pages/Zone/Card/ZoneSummary.vue new file mode 100644 index 000000000..63090b5d4 --- /dev/null +++ b/src/pages/Zone/Card/ZoneSummary.vue @@ -0,0 +1,3 @@ + diff --git a/src/pages/Zone/Card/ZoneWarehouses.vue b/src/pages/Zone/Card/ZoneWarehouses.vue new file mode 100644 index 000000000..67a81ba4d --- /dev/null +++ b/src/pages/Zone/Card/ZoneWarehouses.vue @@ -0,0 +1,59 @@ + + + + + + es: + Remove row: Eliminar fila + diff --git a/src/pages/Zone/Delivery/ZoneDeliveryList.vue b/src/pages/Zone/Delivery/ZoneDeliveryList.vue index c7a3cbcdb..695388a9b 100644 --- a/src/pages/Zone/Delivery/ZoneDeliveryList.vue +++ b/src/pages/Zone/Delivery/ZoneDeliveryList.vue @@ -6,7 +6,6 @@ import { useArrayData } from 'src/composables/useArrayData'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import CardList from 'components/ui/CardList.vue'; -import VnLv from 'components/ui/VnLv.vue'; const quasar = useQuasar(); const arrayData = useArrayData('ZoneDeliveryList'); @@ -45,7 +44,7 @@ async function remove(row) {
diff --git a/src/pages/Zone/Upcoming/ZoneUpcomingList.vue b/src/pages/Zone/Upcoming/ZoneUpcomingList.vue index 5c417df8f..2d3016f25 100644 --- a/src/pages/Zone/Upcoming/ZoneUpcomingList.vue +++ b/src/pages/Zone/Upcoming/ZoneUpcomingList.vue @@ -6,7 +6,6 @@ import { useArrayData } from 'src/composables/useArrayData'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import CardList from 'components/ui/CardList.vue'; -import VnLv from 'components/ui/VnLv.vue'; const quasar = useQuasar(); const arrayData = useArrayData('ZoneUpcomingList'); @@ -45,7 +44,7 @@ async function remove(row) {
diff --git a/src/pages/Zone/ZoneCreate.vue b/src/pages/Zone/ZoneCreate.vue index 8c0ba8c17..93ea9589b 100644 --- a/src/pages/Zone/ZoneCreate.vue +++ b/src/pages/Zone/ZoneCreate.vue @@ -96,7 +96,7 @@ function filterType(val, update) {
@@ -116,7 +116,7 @@ function filterType(val, update) { +import { ref } from 'vue'; +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'; + +const { t } = useI18n(); +const props = defineProps({ + dataKey: { + type: String, + required: true, + }, + exprBuilder: { + type: Function, + default: null, + }, +}); +const agencies = ref([]); + + + diff --git a/src/pages/Zone/ZoneList.vue b/src/pages/Zone/ZoneList.vue index 00502e1f7..2140c5e14 100644 --- a/src/pages/Zone/ZoneList.vue +++ b/src/pages/Zone/ZoneList.vue @@ -7,21 +7,15 @@ import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; import CardList from 'components/ui/CardList.vue'; import VnLv from 'components/ui/VnLv.vue'; +import FetchData from 'src/components/FetchData.vue'; +import { useSummaryDialog } from 'src/composables/useSummaryDialog'; const quasar = useQuasar(); const arrayData = useArrayData('ZoneList'); const store = arrayData.store; const router = useRouter(); const { t } = useI18n(); - -const filter = { - include: { - relation: 'type', - scope: { - fields: 'name', - }, - }, -}; +const { viewSummary } = useSummaryDialog(); function navigate(id) { router.push({ path: `/zone/${id}/edit` }); @@ -44,18 +38,25 @@ async function remove(row) { // } } + +function extractHour(dateTime) { + const date = new Date(dateTime); + const hours = date.getHours().toString().padStart(2, '0'); + const minutes = date.getMinutes().toString().padStart(2, '0'); + return `${hours}:${minutes}`; +}