From a33ce5699e0b54a25a2cf6ea3f9e39baeb140122 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 18 Jun 2024 15:26:48 +0200 Subject: [PATCH 01/49] feat: refs #7030 translation proposal --- src/components/common/VnBreadcrumbs.vue | 1 + src/i18n/locale/en.yml | 322 ++++++++--------------- src/i18n/locale/es.yml | 329 ++++++++---------------- 3 files changed, 228 insertions(+), 424 deletions(-) diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 337507233..75fd6d499 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -37,6 +37,7 @@ function getBreadcrumb(param) { locale: t(`globals.pageTitles.${param.meta.title}`), }; + //TODO modificar para que funcione títulos de página if (screen.gt.sm) { breadcrumb.name = param.name; breadcrumb.title = useCamelCase(param.meta.title); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 5ef3a5472..9bf272d61 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -107,6 +107,119 @@ globals: aliasUsers: Users subRoles: Subroles inheritedRoles: Inherited Roles + customers: Customers + list: List + webPayments: Web Payments + extendedList: Extended list + notifications: Notifications + defaulter: Defaulter + customerCreate: New customer + fiscalData: Fiscal data + billingData: Billing data + consignees: Consignees + notes: Notes + credits: Credits + greuges: Greuges + balance: Balance + recoveries: Recoveries + webAccess: Web access + sms: Sms + creditManagement: Credit management + creditContracts: Credit contracts + creditOpinion: Credit opinion + others: Others + samples: Samples + consumption: Consumption + mandates: Mandates + contacts: Contacts + webPayment: Web payment + fileManagement: File management + unpaid: Unpaid + entries: Entries + buys: Buys + dms: File management + entryCreate: New entry + latestBuys: Latest buys + tickets: Tickets + ticketCreate: New Tickets + boxing: Boxing + sale: Sale + claims: Claims + claimCreate: New claim + lines: Lines + photos: Photos + development: Development + action: Action + invoiceOuts: Invoice out + negativeBases: Negative Bases + globalInvoicing: Global invoicing + invoiceOutCreate: Create invoice out + shelving: Shelving + shelvingList: Shelving List + shelvingCreate: New shelving + invoiceIns: Invoices In + invoiceInCreate: Create invoice in + vat: VAT + dueDay: Due day + intrastat: Intrastat + corrective: Corrective + order: Orders + orderList: List + orderCreate: New order + catalog: Catalog + volume: Volume + workers: Workers + workerCreate: New worker + department: Department + pda: PDA + pbx: Private Branch Exchange + calendar: Calendar + timeControl: Time control + locker: Locker + wagons: Wagons + wagonsList: Wagons List + wagonCreate: Create wagon + wagonEdit: Edit wagon + typesList: Types List + typeCreate: Create type + typeEdit: Edit type + wagonCounter: Trolley counter + roadmap: Roadmap + stops: Stops + routes: Routes + cmrsList: CMRs list + RouteList: List + routeCreate: New route + RouteRoadmap: Roadmaps + RouteRoadmapCreate: Create roadmap + autonomous: Autonomous + suppliers: Suppliers + supplier: Supplier + supplierCreate: New supplier + accounts: Accounts + addresses: Addresses + agencyTerm: Agency agreement + travel: Travels + extraCommunity: Extra community + travelCreate: New travel + history: Log + thermographs: Thermograph + items: Items + diary: Diary + tags: Tags + create: Create + buyRequest: Buy requests + fixedPrice: Fixed prices + wasteBreakdown: Waste breakdown + itemCreate: New item + barcode: Barcodes + tax: Tax + botanical: Botanical + itemTypeCreate: New item type + family: Item Type + lastEntries: Last entries + itemType: Item type + monitors: Monitors created: Created worker: Worker now: Now @@ -149,38 +262,6 @@ dashboard: pageTitles: dashboard: Dashboard customer: - pageTitles: - customers: Customers - list: List - webPayments: Web Payments - extendedList: Extended list - notifications: Notifications - defaulter: Defaulter - customerCreate: New customer - summary: Summary - basicData: Basic data - fiscalData: Fiscal data - billingData: Billing data - consignees: Consignees - notes: Notes - credits: Credits - greuges: Greuges - balance: Balance - recoveries: Recoveries - webAccess: Web access - log: Log - sms: Sms - creditManagement: Credit management - creditContracts: Credit contracts - creditOpinion: Credit opinion - others: Others - samples: Samples - consumption: Consumption - mandates: Mandates - contacts: Contacts - webPayment: Web payment - fileManagement: File management - unpaid: Unpaid list: phone: Phone email: Email @@ -310,17 +391,6 @@ customer: hasCoreVnl: VNL core received hasSepaVnl: VNL B2B received entry: - pageTitles: - entries: Entries - list: List - summary: Summary - basicData: Basic data - buys: Buys - notes: Notes - dms: File management - log: Log - entryCreate: New entry - latestBuys: Latest buys list: newEntry: New entry landed: Landed @@ -432,16 +502,6 @@ entry: packingOut: Package out landing: Landing ticket: - pageTitles: - tickets: Tickets - list: List - ticketCreate: New ticket - summary: Summary - basicData: Basic Data - boxing: Boxing - sms: Sms - notes: Notes - sale: Sale list: nickname: Nickname state: State @@ -516,18 +576,6 @@ ticket: warehouse: Warehouse agency: Agency claim: - pageTitles: - claims: Claims - list: List - claimCreate: New claim - summary: Summary - basicData: Basic Data - lines: Lines - photos: Photos - development: Development - log: Audit logs - notes: Notes - action: Action list: customer: Customer assignedTo: Assigned @@ -591,14 +639,6 @@ claim: noData: 'There are no images/videos, click here or drag and drop the file' dragDrop: Drag and drop it here invoiceOut: - pageTitles: - invoiceOuts: Invoice out - list: List - negativeBases: Negative Bases - globalInvoicing: Global invoicing - invoiceOutCreate: Create invoice out - summary: Summary - basicData: Basic Data list: ref: Reference issued: Issued @@ -666,13 +706,6 @@ invoiceOut: errors: downloadCsvFailed: CSV download failed shelving: - pageTitles: - shelving: Shelving - shelvingList: Shelving List - shelvingCreate: New shelving - summary: Summary - basicData: Basic Data - log: Logs list: parking: Parking priority: Priority @@ -699,17 +732,6 @@ parking: info: You can search by parking code label: Search parking... invoiceIn: - pageTitles: - invoiceIns: Invoices In - list: List - invoiceInCreate: Create invoice in - summary: Summary - basicData: Basic data - vat: VAT - dueDay: Due day - intrastat: Intrastat - corrective: Corrective - log: Logs list: ref: Reference supplier: Supplier @@ -760,15 +782,6 @@ invoiceIn: stems: Stems country: Country order: - pageTitles: - order: Orders - orderList: List - orderCreate: New order - summary: Summary - basicData: Basic Data - catalog: Catalog - volume: Volume - lines: Lines field: salesPersonFk: Sales Person clientFk: Client @@ -827,23 +840,6 @@ department: hasToSendMail: Send check-ins by email departmentRemoved: Department removed worker: - pageTitles: - workers: Workers - list: List - basicData: Basic data - summary: Summary - notifications: Notifications - workerCreate: New worker - department: Department - pda: PDA - notes: Notas - dms: My documentation - pbx: Private Branch Exchange - log: Log - calendar: Calendar - timeControl: Time control - locker: Locker - list: name: Name email: Email @@ -915,15 +911,6 @@ worker: bankEntity: Swift / BIC imageNotFound: Image not found wagon: - pageTitles: - wagons: Wagons - wagonsList: Wagons List - wagonCreate: Create wagon - wagonEdit: Edit wagon - typesList: Types List - typeCreate: Create type - typeEdit: Edit type - wagonCounter: Trolley counter type: name: Name submit: Submit @@ -952,31 +939,7 @@ wagon: minHeightBetweenTrays: 'The minimum height between trays is ' maxWagonHeight: 'The maximum height of the wagon is ' uncompleteTrays: There are incomplete trays -route/roadmap: - pageTitles: - roadmap: Roadmap - summary: Summary - basicData: Basic Data - stops: Stops -roadmap: - pageTitles: - roadmap: Roadmap - summary: Summary - basicData: Basic Data - stops: Stops route: - pageTitles: - routes: Routes - cmrsList: CMRs list - RouteList: List - routeCreate: New route - basicData: Basic Data - summary: Summary - RouteRoadmap: Roadmaps - RouteRoadmapCreate: Create roadmap - tickets: Tickets - log: Log - autonomous: Autonomous cmr: list: results: results @@ -992,22 +955,6 @@ route: viewCmr: View CMR downloadCmrs: Download CMRs supplier: - pageTitles: - suppliers: Suppliers - supplier: Supplier - list: List - supplierCreate: New supplier - summary: Summary - basicData: Basic data - fiscalData: Fiscal data - billingData: Billing data - log: Log - accounts: Accounts - contacts: Contacts - addresses: Addresses - consumption: Consumption - agencyTerm: Agency agreement - dms: File management list: payMethod: Pay method payDeadline: Pay deadline @@ -1099,15 +1046,6 @@ supplier: date: Date reference: Reference travel: - pageTitles: - travel: Travels - list: List - summary: Summary - extraCommunity: Extra community - travelCreate: New travel - basicData: Basic data - history: Log - thermographs: Thermograph summary: confirmed: Confirmed entryId: Entry Id @@ -1154,24 +1092,6 @@ travel: travelFileDescription: 'Travel id { travelId }' file: File item: - pageTitles: - items: Items - list: List - diary: Diary - tags: Tags - create: Create - buyRequest: Buy requests - fixedPrice: Fixed prices - wasteBreakdown: Waste breakdown - itemCreate: New item - barcode: Barcodes - tax: Tax - log: Log - botanical: Botanical - shelving: Shelving - itemTypeCreate: New item type - family: Item Type - lastEntries: Last entries descriptor: item: Item buyer: Buyer @@ -1257,22 +1177,6 @@ item: minSalesQuantity: 'Cantidad mínima de venta' genus: 'Genus' specie: 'Specie' -item/itemType: - pageTitles: - itemType: Item type - basicData: Basic data - summary: Summary -monitor: - pageTitles: - monitors: Monitors - list: List -zone: - pageTitles: - zones: Zones - 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 cfadd57b3..f33cc8543 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -107,6 +107,120 @@ globals: aliasUsers: Usuarios subRoles: Subroles inheritedRoles: Roles heredados + customers: Clientes + customerCreate: Nuevo cliente + list: Listado + webPayments: Pagos Web + extendedList: Listado extendido + notifications: Notificaciones + defaulter: Morosos + createCustomer: Crear cliente + fiscalData: Datos fiscales + billingData: Forma de pago + consignees: Consignatarios + notes: Notas + credits: Créditos + greuges: Greuges + balance: Balance + recoveries: Recobros + webAccess: Acceso web + sms: Sms + creditManagement: Gestión de crédito + creditContracts: Contratos de crédito + creditOpinion: Opinión de crédito + others: Otros + samples: Plantillas + consumption: Consumo + mandates: Mandatos + contacts: Contactos + webPayment: Pago web + fileManagement: Gestión documental + unpaid: Impago + entries: Entradas + buys: Compras + dms: Gestión documental + entryCreate: Nueva entrada + latestBuys: Últimas compras + tickets: Tickets + ticketCreate: Nuevo ticket + boxing: Encajado + sale: Lineas del pedido + claims: Reclamaciones + claimCreate: Crear reclamación + lines: Líneas + development: Trazabilidad + photos: Fotos + action: Acción + invoiceOuts: Fact. emitidas + negativeBases: Bases Negativas + globalInvoicing: Facturación global + invoiceOutCreate: Crear fact. emitida + order: Cesta + orderList: Listado + orderCreate: Nueva orden + catalog: Catálogo + volume: Volumen + shelving: Carros + shelvingList: Listado de carros + shelvingCreate: Nuevo carro + invoiceIns: Fact. recibidas + invoiceInCreate: Crear fact. recibida + vat: IVA + dueDay: Vencimiento + intrastat: Intrastat + corrective: Rectificativa + workers: Trabajadores + workerCreate: Nuevo trabajador + department: Departamentos + pda: PDA + pbx: Centralita + calendar: Calendario + timeControl: Control de horario + locker: Taquilla + wagons: Vagones + wagonsList: Listado vagones + wagonCreate: Crear tipo + wagonEdit: Editar tipo + typesList: Listado tipos + typeCreate: Crear tipo + typeEdit: Editar tipo + wagonCounter: Contador de carros + roadmap: Troncales + stops: Paradas + routes: Rutas + cmrsList: Listado de CMRs + RouteList: Listado + routeCreate: Nueva ruta + RouteRoadmap: Troncales + RouteRoadmapCreate: Crear troncal + autonomous: Autónomos + suppliers: Proveedores + supplier: Proveedor + supplierCreate: Nuevo proveedor + accounts: Cuentas + addresses: Direcciones + agencyTerm: Acuerdo agencia + travel: Envíos + create: Crear + extraCommunity: Extra comunitarios + travelCreate: Nuevo envío + history: Historial + thermographs: Termógrafos + items: Artículos + diary: Histórico + tags: Etiquetas + fixedPrice: Precios fijados + buyRequest: Peticiones de compra + wasteBreakdown: Deglose de mermas + itemCreate: Nuevo artículo + tax: 'IVA' + botanical: 'Botánico' + barcode: 'Código de barras' + itemTypeCreate: Nueva familia + family: Familia + lastEntries: Últimas entradas + itemType: Familia + monitors: Monitores created: Fecha creación worker: Trabajador now: Ahora @@ -147,39 +261,6 @@ dashboard: pageTitles: dashboard: Tablón customer: - pageTitles: - customers: Clientes - customerCreate: Nuevo cliente - list: Listado - webPayments: Pagos Web - extendedList: Listado extendido - notifications: Notificaciones - defaulter: Morosos - createCustomer: Crear cliente - summary: Resumen - basicData: Datos básicos - fiscalData: Datos fiscales - billingData: Forma de pago - consignees: Consignatarios - notes: Notas - credits: Créditos - greuges: Greuges - balance: Balance - recoveries: Recobros - webAccess: Acceso web - log: Historial - sms: Sms - creditManagement: Gestión de crédito - creditContracts: Contratos de crédito - creditOpinion: Opinión de crédito - others: Otros - samples: Plantillas - consumption: Consumo - mandates: Mandatos - contacts: Contactos - webPayment: Pago web - fileManagement: Gestión documental - unpaid: Impago list: phone: Teléfono email: Email @@ -308,17 +389,6 @@ customer: hasCoreVnl: Recibido core VNL hasSepaVnl: Recibido B2B VNL entry: - pageTitles: - entries: Entradas - list: Listado - summary: Resumen - basicData: Datos básicos - buys: Compras - notes: Notas - dms: Gestión documental - log: Historial - entryCreate: Nueva entrada - latestBuys: Últimas compras list: newEntry: Nueva entrada landed: F. entrega @@ -430,16 +500,6 @@ entry: packingOut: Embalaje envíos landing: Llegada ticket: - pageTitles: - tickets: Tickets - list: Listado - ticketCreate: Nuevo ticket - summary: Resumen - basicData: Datos básicos - boxing: Encajado - sms: Sms - notes: Notas - sale: Lineas del pedido list: nickname: Alias state: Estado @@ -514,18 +574,6 @@ ticket: warehouse: Almacén agency: Agencia claim: - pageTitles: - claims: Reclamaciones - list: Listado - claimCreate: Crear reclamación - summary: Resumen - basicData: Datos básicos - lines: Líneas - development: Trazabilidad - photos: Fotos - log: Historial - notes: Notas - action: Acción list: customer: Cliente assignedTo: Asignada a @@ -589,14 +637,6 @@ claim: noData: No hay imágenes/videos haz click aquí o arrastra y suelta el archivo dragDrop: Arrástralo y sueltalo aquí invoiceOut: - pageTitles: - invoiceOuts: Fact. emitidas - list: Listado - negativeBases: Bases Negativas - globalInvoicing: Facturación global - invoiceOutCreate: Crear fact. emitida - summary: Resumen - basicData: Datos básicos list: ref: Referencia issued: Fecha emisión @@ -664,15 +704,6 @@ invoiceOut: errors: downloadCsvFailed: Error al descargar CSV order: - pageTitles: - order: Cesta - orderList: Listado - orderCreate: Nueva orden - summary: Resumen - basicData: Datos básicos - catalog: Catálogo - volume: Volumen - lines: Líneas field: salesPersonFk: Comercial clientFk: Cliente @@ -714,13 +745,6 @@ order: price: Precio amount: Monto shelving: - pageTitles: - shelving: Carros - shelvingList: Listado de carros - shelvingCreate: Nuevo carro - summary: Resumen - basicData: Datos básicos - log: Historial list: parking: Parking priority: Prioridad @@ -746,17 +770,6 @@ parking: info: Puedes buscar por código de parking label: Buscar parking... invoiceIn: - pageTitles: - invoiceIns: Fact. recibidas - list: Listado - invoiceInCreate: Crear fact. recibida - summary: Resumen - basicData: Datos básicos - vat: IVA - dueDay: Vencimiento - intrastat: Intrastat - corrective: Rectificativa - log: Historial list: ref: Referencia supplier: Proveedor @@ -822,22 +835,6 @@ department: hasToSendMail: Enviar fichadas por mail departmentRemoved: Departamento eliminado worker: - pageTitles: - workers: Trabajadores - list: Listado - basicData: Datos básicos - summary: Resumen - notifications: Notificaciones - workerCreate: Nuevo trabajador - department: Departamentos - pda: PDA - notes: Notas - dms: Mi documentación - pbx: Centralita - log: Historial - calendar: Calendario - timeControl: Control de horario - locker: Taquilla list: name: Nombre email: Email @@ -900,15 +897,6 @@ worker: bankEntity: Swift / BIC imageNotFound: No se ha encontrado la imagen wagon: - pageTitles: - wagons: Vagones - wagonsList: Listado vagones - wagonCreate: Crear tipo - wagonEdit: Editar tipo - typesList: Listado tipos - typeCreate: Crear tipo - typeEdit: Editar tipo - wagonCounter: Contador de carros type: name: Nombre submit: Guardar @@ -937,31 +925,7 @@ wagon: minHeightBetweenTrays: 'La distancia mínima entre bandejas es ' maxWagonHeight: 'La altura máxima del vagón es ' uncompleteTrays: Hay bandejas sin completar -route/roadmap: - pageTitles: - roadmap: Troncales - summary: Resumen - basicData: Datos básicos - stops: Paradas -roadmap: - pageTitles: - roadmap: Troncales - summary: Resumen - basicData: Datos básicos - stops: Paradas route: - pageTitles: - routes: Rutas - cmrsList: Listado de CMRs - RouteList: Listado - routeCreate: Nueva ruta - basicData: Datos básicos - summary: Resumen - RouteRoadmap: Troncales - RouteRoadmapCreate: Crear troncal - tickets: Tickets - log: Historial - autonomous: Autónomos cmr: list: results: resultados @@ -977,22 +941,6 @@ route: viewCmr: Ver CMR downloadCmrs: Descargar CMRs supplier: - pageTitles: - suppliers: Proveedores - supplier: Proveedor - list: Listado - supplierCreate: Nuevo proveedor - summary: Resumen - basicData: Datos básicos - fiscalData: Datos fiscales - billingData: Forma de pago - log: Historial - accounts: Cuentas - contacts: Contactos - addresses: Direcciones - consumption: Consumo - agencyTerm: Acuerdo agencia - dms: Gestión documental list: payMethod: Método de pago payDeadline: Plazo de pago @@ -1084,16 +1032,6 @@ supplier: date: Fecha reference: Referencia travel: - pageTitles: - travel: Envíos - list: Listado - create: Crear - summary: Resumen - extraCommunity: Extra comunitarios - travelCreate: Nuevo envío - basicData: Datos básicos - history: Historial - thermographs: Termógrafos summary: confirmed: Confirmado entryId: Id entrada @@ -1140,24 +1078,6 @@ travel: travelFileDescription: 'Id envío { travelId }' file: Fichero item: - pageTitles: - items: Artículos - list: Listado - diary: Histórico - tags: Etiquetas - fixedPrice: Precios fijados - buyRequest: Peticiones de compra - wasteBreakdown: Deglose de mermas - itemCreate: Nuevo artículo - basicData: 'Datos básicos' - tax: 'IVA' - botanical: 'Botánico' - barcode: 'Código de barras' - log: Historial - shelving: Carros - itemTypeCreate: Nueva familia - family: Familia - lastEntries: Últimas entradas descriptor: item: Artículo buyer: Comprador @@ -1243,27 +1163,6 @@ item: achieved: 'Conseguido' concept: 'Concepto' state: 'Estado' -item/itemType: - pageTitles: - itemType: Familia - basicData: Datos básicos - summary: Resumen -zone: - pageTitles: - zones: Zonas - list: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos -role: - pageTitles: - zones: Zonas - list: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos -monitor: - pageTitles: - monitors: Monitores - list: Listado components: topbar: {} itemsFilterPanel: From 42c58296acea1071ed890092b2acade504d50319 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:44:40 +0200 Subject: [PATCH 02/49] refafctor: changed titles errors --- src/components/common/VnBreadcrumbs.vue | 1 - src/i18n/locale/en.yml | 8 +++++--- src/i18n/locale/es.yml | 8 +++++--- src/pages/Claim/Card/ClaimSummary.vue | 2 +- src/pages/InvoiceIn/Card/InvoiceInSummary.vue | 8 ++++---- src/pages/Travel/Card/TravelSummary.vue | 8 ++++---- src/pages/Travel/ExtraCommunity.vue | 2 +- src/pages/Travel/ExtraCommunityFilter.vue | 2 +- src/router/index.js | 7 ++----- src/router/modules/item.js | 9 --------- src/stores/useNavigationStore.js | 4 ++-- 11 files changed, 25 insertions(+), 34 deletions(-) diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 75fd6d499..337507233 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -37,7 +37,6 @@ function getBreadcrumb(param) { locale: t(`globals.pageTitles.${param.meta.title}`), }; - //TODO modificar para que funcione títulos de página if (screen.gt.sm) { breadcrumb.name = param.name; breadcrumb.title = useCamelCase(param.meta.title); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 9bf272d61..3cf929f82 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -100,8 +100,8 @@ globals: modes: Modes zones: Zones zonesList: Zones - deliveryList: Delivery days - upcomingList: Upcoming deliveries + deliveryDays: Delivery days + upcomingDeliveries: Upcoming deliveries role: Role alias: Alias aliasUsers: Users @@ -220,6 +220,8 @@ globals: lastEntries: Last entries itemType: Item type monitors: Monitors + dashboard: Dashboard + users: Users created: Created worker: Worker now: Now @@ -260,7 +262,7 @@ verifyEmail: verifyEmail: Email verification dashboard: pageTitles: - dashboard: Dashboard + customer: list: phone: Phone diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f33cc8543..2b4498ced 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -100,8 +100,8 @@ globals: modes: Modos zones: Zonas zonesList: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos + deliveryDays: Días de entrega + upcomingDeliveries: Próximos repartos role: Role alias: Alias aliasUsers: Usuarios @@ -221,6 +221,8 @@ globals: lastEntries: Últimas entradas itemType: Familia monitors: Monitores + dashboard: Tablón + users: Usuarios created: Fecha creación worker: Trabajador now: Ahora @@ -259,7 +261,7 @@ verifyEmail: verifyEmail: Verificación de correo dashboard: pageTitles: - dashboard: Tablón + customer: list: phone: Teléfono diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 36a26008e..241709bdd 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -223,7 +223,7 @@ async function changeState(value) { `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 91b36f0cf..f0785cff1 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -49,7 +49,7 @@ const entriesTableColumns = computed(() => { showValue: false, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'supplierName', name: 'supplierName', align: 'left', @@ -247,7 +247,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -265,7 +265,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -283,7 +283,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index 607ecb560..eb410a489 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -132,7 +132,7 @@ const columns = computed(() => [ sortable: true, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'cargoSupplierNickname', name: 'cargoSupplierNickname', align: 'left', diff --git a/src/pages/Travel/ExtraCommunityFilter.vue b/src/pages/Travel/ExtraCommunityFilter.vue index 7fe628180..5f9adedfa 100644 --- a/src/pages/Travel/ExtraCommunityFilter.vue +++ b/src/pages/Travel/ExtraCommunityFilter.vue @@ -182,7 +182,7 @@ const decrement = (paramsObj, key) => { 1) { const module = matches[1]; const moduleTitle = module.meta && module.meta.title; - moduleName = toLowerCamel(module.name); if (moduleTitle) { - title = t(`${moduleName}.pageTitles.${moduleTitle}`); + title = t(`globals.pageTitles.${moduleTitle}`); } } @@ -94,7 +91,7 @@ export default route(function (/* { store, ssrContext } */) { if (childPageTitle && matches.length > 2) { if (title != '') title += ': '; - const moduleLocale = `${moduleName}.pageTitles.${childPageTitle}`; + const moduleLocale = `globals.pageTitles.${childPageTitle}`; const pageTitle = te(moduleLocale) ? t(moduleLocale) : t(`globals.pageTitles.${childPageTitle}`); diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 6e8659747..06fe680eb 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -201,15 +201,6 @@ export default { }, component: () => import('src/pages/Item/Card/ItemLog.vue'), }, - { - path: 'botanical', - name: 'ItemBotanical', - meta: { - title: 'botanical', - icon: 'vn:botanical', - }, - component: () => import('src/pages/Item/Card/ItemBotanical.vue'), - }, ], }, ], diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index 4dd5ed2ae..51f266800 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -60,7 +60,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { menuChildren = menuChildren.map(({ name, title, icon }) => ({ name, icon, - title: `${module}.pageTitles.${title}`, + title: `globals.pageTitles.${title}`, })); if (meta && meta.roles && role.hasAny(meta.roles) === false) return; @@ -70,7 +70,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { children: menuChildren, }; if (meta) { - item.title = `${module}.pageTitles.${meta.title}`; + item.title = `globals.pageTitles.${meta.title}`; item.icon = meta.icon; } From 5712b4789a9a5ac07b8d355cf40930d66afbe01a Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:47:14 +0200 Subject: [PATCH 03/49] fix: leftMenu test --- test/vitest/__tests__/components/Leftmenu.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vitest/__tests__/components/Leftmenu.spec.js b/test/vitest/__tests__/components/Leftmenu.spec.js index ea1c51f8d..10d9d66fb 100644 --- a/test/vitest/__tests__/components/Leftmenu.spec.js +++ b/test/vitest/__tests__/components/Leftmenu.spec.js @@ -78,13 +78,13 @@ describe('Leftmenu', () => { { children: null, name: 'CustomerList', - title: 'customer.pageTitles.list', + title: 'globals.pageTitles.list', icon: 'view_list', }, { children: null, name: 'CustomerCreate', - title: 'customer.pageTitles.createCustomer', + title: 'globals.pageTitles.createCustomer', icon: 'vn:addperson', }, ]; From ec6b54cf13c93729d2d337e25159a098417b6de3 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:55:03 +0200 Subject: [PATCH 04/49] refactor: refs #7030 shelving translation --- src/pages/Shelving/Card/ShelvingSummary.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Shelving/Card/ShelvingSummary.vue b/src/pages/Shelving/Card/ShelvingSummary.vue index 168552832..05ff55292 100644 --- a/src/pages/Shelving/Card/ShelvingSummary.vue +++ b/src/pages/Shelving/Card/ShelvingSummary.vue @@ -46,7 +46,7 @@ const filter = { class="header header-link" :to="{ name: 'ShelvingBasicData', params: { id: entityId } }" > - {{ t('shelving.pageTitles.basicData') }} + {{ t('globals.pageTitles.basicData') }} From 0afd7f4ae1e32e35b97a6442ee975e1a30027ce4 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 19 Jun 2024 10:22:20 -0300 Subject: [PATCH 05/49] Ticket tracking --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Ticket/Card/TicketCreateTracking.vue | 73 +++++++++++ src/pages/Ticket/Card/TicketTracking.vue | 121 ++++++++++++++++++ src/pages/Ticket/locale/en.yml | 4 + src/pages/Ticket/locale/es.yml | 4 + src/router/modules/ticket.js | 11 +- 7 files changed, 214 insertions(+), 1 deletion(-) create mode 100644 src/pages/Ticket/Card/TicketCreateTracking.vue create mode 100644 src/pages/Ticket/Card/TicketTracking.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..419c33f8a 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + tracking: Tracking list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..192c17c90 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + tracking: Estados list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCreateTracking.vue b/src/pages/Ticket/Card/TicketCreateTracking.vue new file mode 100644 index 000000000..b340b406a --- /dev/null +++ b/src/pages/Ticket/Card/TicketCreateTracking.vue @@ -0,0 +1,73 @@ + + + + + es: + Create tracking: Crear estado + diff --git a/src/pages/Ticket/Card/TicketTracking.vue b/src/pages/Ticket/Card/TicketTracking.vue new file mode 100644 index 000000000..548bba831 --- /dev/null +++ b/src/pages/Ticket/Card/TicketTracking.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..88f5642cd --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,4 @@ +tracking: + state: State + worker: Worker + created: Created diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..6f68842fb 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,6 @@ +tracking: + state: Estado + worker: Trabajador + created: Fecha creación Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..6f63eb75d 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketTracking'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'tracking', + name: 'TicketTracking', + meta: { + title: 'tracking', + icon: 'vn:eye', + }, + component: () => import('src/pages/Ticket/Card/TicketTracking.vue'), + }, ], }, ], From 17e9d95702e562b5c721b9f66c47c07fda4de482 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 09:02:29 -0300 Subject: [PATCH 06/49] Ticket notes --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketCard.vue | 24 ++++-- src/pages/Ticket/Card/TicketNotes.vue | 102 ++++++++++++++++++++++++++ src/pages/Ticket/locale/en.yml | 8 ++ src/pages/Ticket/locale/es.yml | 8 ++ src/router/modules/ticket.js | 11 ++- 7 files changed, 148 insertions(+), 7 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketNotes.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..996ead262 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + observation: Notes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..8358953eb 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + observation: Notas list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 04363b506..a75cacd6c 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -1,17 +1,29 @@ diff --git a/src/pages/Ticket/Card/TicketNotes.vue b/src/pages/Ticket/Card/TicketNotes.vue new file mode 100644 index 000000000..732395584 --- /dev/null +++ b/src/pages/Ticket/Card/TicketNotes.vue @@ -0,0 +1,102 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..087102a07 --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,8 @@ +card: + search: Search tickets + searchInfo: You can search by ticket id or alias +ticketNotes: + observationType: Observation type + description: Description + removeNote: Remove note + addNote: Add note diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..d596fa217 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,10 @@ +card: + search: Buscar tickets + searchInfo: Buscar tickets por identificador o alias +ticketNotes: + observationType: Tipo de observación + description: Descripción + removeNote: Quitar nota + addNote: Añadir nota Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..a69a92e84 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketNotes'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'observation', + name: 'TicketNotes', + meta: { + title: 'notes', + icon: 'vn:notes', + }, + component: () => import('src/pages/Ticket/Card/TicketNotes.vue'), + }, ], }, ], From 91df35fcaecb88f791402ebbd03be6f27378a6f4 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 11:12:49 -0300 Subject: [PATCH 07/49] Ticket volume --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Ticket/Card/TicketCard.vue | 24 +++- src/pages/Ticket/Card/TicketVolume.vue | 153 +++++++++++++++++++++++++ src/pages/Ticket/locale/en.yml | 11 ++ src/pages/Ticket/locale/es.yml | 11 ++ src/router/modules/ticket.js | 11 +- 7 files changed, 205 insertions(+), 7 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketVolume.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..4edd310ff 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale + volume: Volume list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..ceef27f1a 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido + volume: Volumen list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 04363b506..9b4e05c93 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -1,17 +1,29 @@ diff --git a/src/pages/Ticket/Card/TicketVolume.vue b/src/pages/Ticket/Card/TicketVolume.vue new file mode 100644 index 000000000..93da31e53 --- /dev/null +++ b/src/pages/Ticket/Card/TicketVolume.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..6955fd0dd --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,11 @@ +card: + search: Search tickets + searchInfo: You can search by ticket id or alias +volume: + item: Item + description: Description + packingType: Packing Type + quantity: Quantity + volumeQuantity: m³ per quantity + type: Type + volume: Volume diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..e4bce2480 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,13 @@ +card: + search: Buscar tickets + searchInfo: Buscar tickets por identificador o alias +volume: + item: Artículo + description: Descripción + packingType: Encajado + quantity: Cantidad + volumeQuantity: m³ por cantidad + type: Tipo + volume: Volumen Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..1202115fa 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketVolume', 'TicketVolume'], }, children: [ { @@ -93,6 +93,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, + { + path: 'volume', + name: 'TicketVolume', + meta: { + title: 'volume', + icon: 'vn:volume', + }, + component: () => import('src/pages/Ticket/Card/TicketVolume.vue'), + }, ], }, ], From fb12d4ddc085b7f0de5a13c78bbb9ddfd586a88d Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 24 Jun 2024 17:24:36 -0300 Subject: [PATCH 08/49] WIP --- src/i18n/locale/en.yml | 5 +++++ src/i18n/locale/es.yml | 5 +++++ src/pages/Ticket/Card/TicketService.vue | 1 + src/pages/Ticket/locale/en.yml | 8 ++++++++ src/pages/Ticket/locale/es.yml | 8 ++++++++ src/router/modules/ticket.js | 25 +++++++++++++++++++++++++ 6 files changed, 52 insertions(+) create mode 100644 src/pages/Ticket/Card/TicketService.vue create mode 100644 src/pages/Ticket/locale/en.yml diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b3a85eefa..347543092 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,6 +443,11 @@ ticket: sms: Sms notes: Notes sale: Sale +<<<<<<< Updated upstream +======= + dms: File management + services: Service +>>>>>>> Stashed changes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d03ee9d5c..3151d72bf 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,6 +441,11 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido +<<<<<<< Updated upstream +======= + dms: Gestión documental + service: Servicios +>>>>>>> Stashed changes list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue new file mode 100644 index 000000000..25e345de0 --- /dev/null +++ b/src/pages/Ticket/Card/TicketService.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml new file mode 100644 index 000000000..b8c21600d --- /dev/null +++ b/src/pages/Ticket/locale/en.yml @@ -0,0 +1,8 @@ +service: + pay: Pay + description: Description + quantity: Quantity + price: Price + removeService: Remove service + newService: New service type + addService: Add service diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 5348b29b9..a8ef0347b 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -1,2 +1,10 @@ +service: + pay: Abonar + description: Descripción + quantity: Cantidad + price: Precio + removeService: Quitar servicio + newService: Nuevo tipo de servicio + addService: Añadir servicio Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 6cb7291dc..cbcc4b762 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,7 +12,11 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], +<<<<<<< Updated upstream card: ['TicketBoxing', 'TicketSms', 'TicketSale'], +======= + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketDms', 'TicketService'], +>>>>>>> Stashed changes }, children: [ { @@ -93,6 +97,27 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, +<<<<<<< Updated upstream +======= + { + path: 'dms', + name: 'TicketDms', + meta: { + title: 'dms', + icon: 'cloud_upload', + }, + component: () => import('src/pages/Ticket/Card/TicketDms.vue'), + }, + { + path: 'service', + name: 'TicketService', + meta: { + title: 'service', + icon: 'cloud_upload', + }, + component: () => import('src/pages/Ticket/Card/TicketService.vue'), + }, +>>>>>>> Stashed changes ], }, ], From 8e538fb4638f705656d7544a3d2578373cffa3b5 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 08:27:25 -0300 Subject: [PATCH 09/49] WIP --- src/i18n/locale/en.yml | 4 - src/i18n/locale/es.yml | 4 - .../Ticket/Card/TicketCreateServiceType.vue | 49 +++++++ src/pages/Ticket/Card/TicketService.vue | 138 +++++++++++++++++- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + src/router/modules/ticket.js | 19 +-- 7 files changed, 190 insertions(+), 26 deletions(-) create mode 100644 src/pages/Ticket/Card/TicketCreateServiceType.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 347543092..5e7b3621b 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -443,11 +443,7 @@ ticket: sms: Sms notes: Notes sale: Sale -<<<<<<< Updated upstream -======= - dms: File management services: Service ->>>>>>> Stashed changes list: nickname: Nickname state: State diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 3151d72bf..fd3dad952 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -441,11 +441,7 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido -<<<<<<< Updated upstream -======= - dms: Gestión documental service: Servicios ->>>>>>> Stashed changes list: nickname: Alias state: Estado diff --git a/src/pages/Ticket/Card/TicketCreateServiceType.vue b/src/pages/Ticket/Card/TicketCreateServiceType.vue new file mode 100644 index 000000000..d392ec206 --- /dev/null +++ b/src/pages/Ticket/Card/TicketCreateServiceType.vue @@ -0,0 +1,49 @@ + + + + + +es: + New service type: Nuevo tipo de servicio + diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index 25e345de0..af2a5c664 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -1 +1,137 @@ - + + + diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index b8c21600d..ff928c492 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -6,3 +6,4 @@ service: removeService: Remove service newService: New service type addService: Add service + quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index a8ef0347b..f1326e502 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -6,5 +6,6 @@ service: removeService: Quitar servicio newService: Nuevo tipo de servicio addService: Añadir servicio + quantityInfo: Para crear sevicios con cantidades negativas marcar servicio en el ticket origen y apretar el boton abonar. Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index cbcc4b762..eadaa1cab 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -12,11 +12,7 @@ export default { redirect: { name: 'TicketMain' }, menus: { main: ['TicketList'], -<<<<<<< Updated upstream - card: ['TicketBoxing', 'TicketSms', 'TicketSale'], -======= - card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketDms', 'TicketService'], ->>>>>>> Stashed changes + card: ['TicketBoxing', 'TicketSms', 'TicketSale', 'TicketService'], }, children: [ { @@ -97,17 +93,7 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, -<<<<<<< Updated upstream -======= - { - path: 'dms', - name: 'TicketDms', - meta: { - title: 'dms', - icon: 'cloud_upload', - }, - component: () => import('src/pages/Ticket/Card/TicketDms.vue'), - }, + { path: 'service', name: 'TicketService', @@ -117,7 +103,6 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketService.vue'), }, ->>>>>>> Stashed changes ], }, ], From a57df459a6be01d2e312ff16477aa3be95143745 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 12:54:21 -0300 Subject: [PATCH 10/49] Add pay button --- src/pages/Ticket/Card/TicketService.vue | 39 +++++++++++++++++++++---- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/pages/Ticket/Card/TicketService.vue b/src/pages/Ticket/Card/TicketService.vue index af2a5c664..f071c7baa 100644 --- a/src/pages/Ticket/Card/TicketService.vue +++ b/src/pages/Ticket/Card/TicketService.vue @@ -1,6 +1,6 @@ -
checkeds: {{ selectedServices }}
diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index ff928c492..9162ca945 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -7,3 +7,4 @@ service: newService: New service type addService: Add service quantityInfo: To create services with negative amounts mark the service on the source ticket and press the pay button. + createRefundSuccess: 'The following refund ticket have been created: { ticketId }' diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index f1326e502..bb02a946f 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -7,5 +7,6 @@ service: newService: Nuevo tipo de servicio addService: Añadir servicio quantityInfo: Para crear sevicios con cantidades negativas marcar servicio en el ticket origen y apretar el boton abonar. + createRefundSuccess: 'Se ha creado siguiente ticket de abono: { ticketId }' Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket From 1529e2dd4f15dd693abed81c2732c335f618aa84 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 25 Jun 2024 12:58:49 -0300 Subject: [PATCH 11/49] Add tooltip to add state button --- src/pages/Ticket/Card/TicketTracking.vue | 2 +- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Ticket/Card/TicketTracking.vue b/src/pages/Ticket/Card/TicketTracking.vue index 548bba831..2ddb278fa 100644 --- a/src/pages/Ticket/Card/TicketTracking.vue +++ b/src/pages/Ticket/Card/TicketTracking.vue @@ -114,7 +114,7 @@ const openCreateModal = () => createTrackingDialogRef.value.show(); - {{ t('purchaseRequest.newRequest') }} + {{ t('tracking.addState') }} diff --git a/src/pages/Ticket/locale/en.yml b/src/pages/Ticket/locale/en.yml index 88f5642cd..4fe6072b2 100644 --- a/src/pages/Ticket/locale/en.yml +++ b/src/pages/Ticket/locale/en.yml @@ -2,3 +2,4 @@ tracking: state: State worker: Worker created: Created + addState: Add state diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml index 6f68842fb..d116abb12 100644 --- a/src/pages/Ticket/locale/es.yml +++ b/src/pages/Ticket/locale/es.yml @@ -2,5 +2,6 @@ tracking: state: Estado worker: Trabajador created: Fecha creación + addState: Añadir estado Search ticket: Buscar ticket You can search by ticket id or alias: Puedes buscar por id o alias del ticket From d409b9ea8688658593c8cdb04a83a20ed5f157da Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 22:51:26 +0200 Subject: [PATCH 12/49] fix: WorkerSelect option format --- src/pages/Ticket/Card/TicketCreateTracking.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/Ticket/Card/TicketCreateTracking.vue b/src/pages/Ticket/Card/TicketCreateTracking.vue index b340b406a..399663571 100644 --- a/src/pages/Ticket/Card/TicketCreateTracking.vue +++ b/src/pages/Ticket/Card/TicketCreateTracking.vue @@ -59,9 +59,22 @@ const onStateFkChange = (formData) => (formData.userFk = user.value.id); v-model="data.userFk" :options="workersOptions" hide-selected - option-label="nickname" + option-label="name" option-value="id" - /> + > +
From 151978160b0f1cf2f02d3ca474d051817f0da14d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 25 Jun 2024 23:01:26 +0200 Subject: [PATCH 13/49] fix: ticket order --- src/router/modules/ticket.js | 61 +++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index 475552585..2766d034a 100644 --- a/src/router/modules/ticket.js +++ b/src/router/modules/ticket.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'TicketMain' }, menus: { - main: ['TicketList', 'TicketAdvance', 'TicketFuture'], + main: ['TicketList', 'TicketAdvance', 'TicketWeekly', 'TicketFuture'], card: [ 'TicketBasicData', 'TicketBoxing', @@ -49,13 +49,13 @@ export default { component: () => import('src/pages/Ticket/TicketCreate.vue'), }, { - name: 'TicketAdvance', - path: 'advance', + name: 'TicketWeekly', + path: 'weekly', meta: { - title: 'ticketAdvance', - icon: 'keyboard_double_arrow_left', + title: 'weeklyTickets', + icon: 'access_time', }, - component: () => import('src/pages/Ticket/TicketAdvance.vue'), + component: () => import('src/pages/Ticket/TicketWeekly.vue'), }, { name: 'TicketFuture', @@ -66,6 +66,15 @@ export default { }, component: () => import('src/pages/Ticket/TicketFuture.vue'), }, + { + name: 'TicketAdvance', + path: 'advance', + meta: { + title: 'ticketAdvance', + icon: 'keyboard_double_arrow_left', + }, + component: () => import('src/pages/Ticket/TicketAdvance.vue'), + }, ], }, { @@ -103,22 +112,14 @@ export default { component: () => import('src/pages/Ticket/Card/TicketSale.vue'), }, { - path: 'boxing', - name: 'TicketBoxing', + path: 'request', + name: 'TicketPurchaseRequest', meta: { - title: 'boxing', - icon: 'vn:package', + title: 'purchaseRequest', + icon: 'vn:buyrequest', }, - component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), - }, - { - path: 'sms', - name: 'TicketSms', - meta: { - title: 'sms', - icon: 'sms', - }, - component: () => import('src/pages/Ticket/Card/TicketSms.vue'), + component: () => + import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), }, { path: 'tracking', @@ -139,14 +140,22 @@ export default { component: () => import('src/pages/Ticket/Card/TicketLog.vue'), }, { - path: 'request', - name: 'TicketPurchaseRequest', + path: 'boxing', + name: 'TicketBoxing', meta: { - title: 'purchaseRequest', - icon: 'vn:buyrequest', + title: 'boxing', + icon: 'vn:package', }, - component: () => - import('src/pages/Ticket/Card/TicketPurchaseRequest.vue'), + component: () => import('src/pages/Ticket/Card/TicketBoxing.vue'), + }, + { + path: 'sms', + name: 'TicketSms', + meta: { + title: 'sms', + icon: 'sms', + }, + component: () => import('src/pages/Ticket/Card/TicketSms.vue'), }, ], }, From cd01ba8fe1b90a1abfac8e97660a90f13a6b4d15 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:36:17 -0300 Subject: [PATCH 14/49] changes --- src/pages/Ticket/Card/TicketNotes.vue | 119 +++++++++++++------------- 1 file changed, 61 insertions(+), 58 deletions(-) diff --git a/src/pages/Ticket/Card/TicketNotes.vue b/src/pages/Ticket/Card/TicketNotes.vue index 732395584..747955e6d 100644 --- a/src/pages/Ticket/Card/TicketNotes.vue +++ b/src/pages/Ticket/Card/TicketNotes.vue @@ -40,63 +40,66 @@ watch( auto-load url="ObservationTypes" /> - - + + From ae73dd047f214d8dcf94882602338898a4209c35 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 26 Jun 2024 08:55:30 -0300 Subject: [PATCH 15/49] changes --- src/pages/Ticket/Card/TicketCard.vue | 1 - src/pages/Ticket/Card/TicketDescriptor.vue | 8 ++++---- src/pages/Ticket/Card/TicketNotes.vue | 9 +++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/Ticket/Card/TicketCard.vue b/src/pages/Ticket/Card/TicketCard.vue index 62b112d5d..689a717e6 100644 --- a/src/pages/Ticket/Card/TicketCard.vue +++ b/src/pages/Ticket/Card/TicketCard.vue @@ -13,7 +13,6 @@ const route = useRoute(); const routeName = computed(() => route.name); const searchBarDataKeys = { TicketSummary: 'TicketSummary', - TicketNotes: 'TicketNotes', TicketSale: 'TicketSale', TicketPurchaseRequest: 'TicketPurchaseRequest', }; diff --git a/src/pages/Ticket/Card/TicketDescriptor.vue b/src/pages/Ticket/Card/TicketDescriptor.vue index dfbcfc106..5fb312b28 100644 --- a/src/pages/Ticket/Card/TicketDescriptor.vue +++ b/src/pages/Ticket/Card/TicketDescriptor.vue @@ -71,7 +71,7 @@ const filter = { const data = ref(useCardDescription()); const setData = (entity) => - (data.value = useCardDescription(entity.client.name, entity.id)); + (data.value = useCardDescription(entity.client?.name, entity.id)); From 379d90d4c909390976486ec02a9743f3b39d8f32 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 11:40:57 +0200 Subject: [PATCH 27/49] updates --- src/components/LeftMenu.vue | 2 +- src/composables/useRole.js | 2 +- src/pages/Entry/EntryBuysTableDialog.vue | 66 +++++++++++++----------- src/pages/Entry/EntryList.vue | 3 +- 4 files changed, 41 insertions(+), 32 deletions(-) diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 0dfcc812e..51e99808b 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -70,7 +70,7 @@ function getRoutes() { (route) => toLowerCamel(route.name) === item.module ); if (!moduleDef) continue; - if (!role.isEmployee()) continue; + // if (!role.isEmployee()) continue; item.children = []; addChildren(item.module, moduleDef, item.children); diff --git a/src/composables/useRole.js b/src/composables/useRole.js index 485687f16..d1a6d6ef3 100644 --- a/src/composables/useRole.js +++ b/src/composables/useRole.js @@ -28,7 +28,7 @@ export function useRole() { return false; } function isEmployee() { - return !hasAny(['employee']); + return hasAny(['employee']); } return { diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index c8056e6ac..4cec9a04b 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -17,6 +17,8 @@ import { useQuasar } from 'quasar'; import { toCurrency } from 'src/filters'; import axios from 'axios'; import useNotify from 'src/composables/useNotify.js'; +import { usePrintService } from 'composables/usePrintService'; +const { openReport } = usePrintService(); const quasar = useQuasar(); const route = useRoute(); @@ -31,18 +33,14 @@ const $props = defineProps({ }, }); const rowsSelected = ref([]); +const entityId = computed(() => $props.id || route.params.id); const entriesTableColumns = computed(() => [ { align: 'left', name: 'item', label: t('entry.summary.item'), - field: 'itemFk', - format: (row) => row.item.name, - // component: 'fetchedTags', - // attrs: { - // item: (row) => row.item, - // }, + field: (row) => row.item.name, }, { align: 'left', @@ -90,8 +88,7 @@ const entriesTableColumns = computed(() => [ align: 'left', name: 'buyingValue', label: t('entry.summary.buyingValue'), - field: 'buyingValue', - format: ({ buyingValue }) => toCurrency(buyingValue), + field: ({ buyingValue }) => toCurrency(buyingValue), }, { align: 'left', @@ -109,20 +106,9 @@ const entriesTableColumns = computed(() => [ align: 'left', name: 'import', label: t('entry.summary.import'), - format: (row) => toCurrency(row.buyingValue * row.quantity), + field: (row) => toCurrency(row.buyingValue * row.quantity), }, ]); - -import { useArrayData } from 'src/composables/useArrayData'; -import VnTable from 'src/components/VnTable/VnTable.vue'; - -const arrayData = useArrayData('EntryBuys'); -const { store } = arrayData; - -const entityId = computed(() => $props.id || route.params.id); -// import EntryBuysTable from './EntryBuysTable.vue'; -store.userParams = {}; -onBeforeMount(() => {});
@@ -181,4 +188,5 @@ onBeforeMount(() => {}); es: + Print buys: Imprimir compras diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue index c6c99a651..0933eb88a 100644 --- a/src/pages/Entry/EntryList.vue +++ b/src/pages/Entry/EntryList.vue @@ -125,7 +125,7 @@ const printBuys = (rowId) => { type="submit" /> { es: + Print buys: Imprimir compras Inventory entry: Es inventario Virtual entry: Es una redada Search entries: Buscar entradas From 71900b15a6d6b6ec908ec7258b88de49e7b4f6f9 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 12:18:58 +0200 Subject: [PATCH 28/49] feat: newsection and i18n --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Entry/EntryBuysTableDialog.vue | 52 ++------ src/pages/Entry/EntryList.vue | 23 ---- src/pages/Entry/MyEntries.vue | 149 +++++++++++++++++++++++ src/pages/Entry/locale/en.yml | 1 + src/pages/Entry/locale/es.yml | 1 + src/router/modules/entry.js | 11 +- 8 files changed, 171 insertions(+), 68 deletions(-) create mode 100644 src/pages/Entry/MyEntries.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 645e12b7a..e6d323708 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -314,6 +314,7 @@ entry: pageTitles: entries: Entries list: List + eti: Labeler summary: Summary basicData: Basic data buys: Buys diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 29373efd0..a14318a60 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -312,6 +312,7 @@ entry: pageTitles: entries: Entradas list: Listado + eti: Etiquetar summary: Resumen basicData: Datos básicos buys: Compras diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 4cec9a04b..80fcfc516 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -38,15 +38,15 @@ const entityId = computed(() => $props.id || route.params.id); const entriesTableColumns = computed(() => [ { align: 'left', - name: 'item', - label: t('entry.summary.item'), - field: (row) => row.item.name, + name: 'itemFk', + field: 'itemFk', + label: t('globals.id'), }, { align: 'left', - name: 'quantity', - label: t('entry.summary.quantity'), - field: 'quantity', + name: 'item', + label: t('entry.summary.item'), + field: (row) => row.item.name, }, { align: 'left', @@ -60,18 +60,6 @@ const entriesTableColumns = computed(() => [ label: t('entry.summary.stickers'), field: 'stickers', }, - { - align: 'left', - name: 'printedStickers', - label: t('entry.buys.printedStickers'), - field: 'printedStickers', - }, - { - align: 'left', - name: 'weight', - label: t('entry.summary.weight'), - field: 'weight', - }, { align: 'left', name: 'packing', @@ -84,36 +72,12 @@ const entriesTableColumns = computed(() => [ label: t('entry.summary.grouping'), field: 'grouping', }, - { - align: 'left', - name: 'buyingValue', - label: t('entry.summary.buyingValue'), - field: ({ buyingValue }) => toCurrency(buyingValue), - }, - { - align: 'left', - name: 'price2', - label: t('entry.buys.groupingPrice'), - field: 'price2', - }, - { - align: 'left', - name: 'price3', - label: t('entry.buys.packingPrice'), - field: 'price3', - }, - { - align: 'left', - name: 'import', - label: t('entry.summary.import'), - field: (row) => toCurrency(row.buyingValue * row.quantity), - }, ]); diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue new file mode 100644 index 000000000..32cc871ee --- /dev/null +++ b/src/pages/Entry/MyEntries.vue @@ -0,0 +1,149 @@ + + + + +es: + Print buys: Imprimir compras + Inventory entry: Es inventario + Virtual entry: Es una redada + Search entries: Buscar entradas + You can search by entry reference: Puedes buscar por referencia de la entrada + diff --git a/src/pages/Entry/locale/en.yml b/src/pages/Entry/locale/en.yml index 9a476c80c..e4ad5ea62 100644 --- a/src/pages/Entry/locale/en.yml +++ b/src/pages/Entry/locale/en.yml @@ -1,4 +1,5 @@ entryList: + eti: eti list: inventoryEntry: Inventory entry virtualEntry: Virtual entry diff --git a/src/pages/Entry/locale/es.yml b/src/pages/Entry/locale/es.yml index fba6c5460..d3fe60c7a 100644 --- a/src/pages/Entry/locale/es.yml +++ b/src/pages/Entry/locale/es.yml @@ -1,6 +1,7 @@ Search entries: Buscar entradas You can search by entry reference: Puedes buscar por referencia de la entrada entryList: + eti: Etiquetas list: inventoryEntry: Es inventario virtualEntry: Es una redada diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js index 67fc41824..9bdda0bb5 100644 --- a/src/router/modules/entry.js +++ b/src/router/modules/entry.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'EntryMain' }, menus: { - main: ['EntryList', 'EntryLatestBuys'], + main: ['EntryList', 'MyEntries', 'EntryLatestBuys'], card: ['EntryBasicData', 'EntryBuys', 'EntryNotes', 'EntryDms', 'EntryLog'], }, children: [ @@ -30,6 +30,15 @@ export default { }, component: () => import('src/pages/Entry/EntryList.vue'), }, + { + path: 'list', + name: 'MyEntries', + meta: { + title: 'eti', + icon: 'sell', + }, + component: () => import('src/pages/Entry/MyEntries.vue'), + }, { path: 'create', name: 'EntryCreate', From eeab4ed91566abdcbabda343f617cd59f1eac1db Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 13:18:19 +0200 Subject: [PATCH 29/49] updates --- src/pages/Entry/MyEntries.vue | 135 ++++++++++++++-------------------- src/router/modules/entry.js | 2 +- 2 files changed, 58 insertions(+), 79 deletions(-) diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index 32cc871ee..8ab61bc13 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -1,5 +1,5 @@ es: - Print buys: Imprimir compras + Print buys: Imprimir etiquetas Inventory entry: Es inventario Virtual entry: Es una redada Search entries: Buscar entradas From 814056d92060671fd1ab6c204adc8dbb68cb9fbb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 14:20:31 +0200 Subject: [PATCH 31/49] feat: showLabelerDialog --- src/pages/Entry/EntryBuysTableDialog.vue | 42 +++++++----------------- src/pages/Entry/MyEntries.vue | 7 ++-- src/pages/Entry/locale/en.yml | 1 + src/pages/Entry/locale/es.yml | 2 ++ 4 files changed, 18 insertions(+), 34 deletions(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 80fcfc516..c6ab4033c 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -1,30 +1,15 @@ diff --git a/src/pages/Entry/locale/en.yml b/src/pages/Entry/locale/en.yml index 164b501af..677c3c055 100644 --- a/src/pages/Entry/locale/en.yml +++ b/src/pages/Entry/locale/en.yml @@ -1,5 +1,4 @@ entryList: - labeler: Labeler list: inventoryEntry: Inventory entry virtualEntry: Virtual entry diff --git a/src/pages/Entry/locale/es.yml b/src/pages/Entry/locale/es.yml index 9522c113c..10b77c2ee 100644 --- a/src/pages/Entry/locale/es.yml +++ b/src/pages/Entry/locale/es.yml @@ -2,7 +2,6 @@ Search entries: Buscar entradas You can search by entry reference: Puedes buscar por referencia de la entrada entryList: - labeler: Etiquetas list: inventoryEntry: Es inventario virtualEntry: Es una redada diff --git a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue index 428e7a7a1..cdf012b2a 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInSummary.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInSummary.vue @@ -209,7 +209,7 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; diff --git a/src/pages/Shelving/Card/ShelvingSummary.vue b/src/pages/Shelving/Card/ShelvingSummary.vue index 08d05626e..94175b0c1 100644 --- a/src/pages/Shelving/Card/ShelvingSummary.vue +++ b/src/pages/Shelving/Card/ShelvingSummary.vue @@ -51,7 +51,7 @@ const filter = { class="header header-link" :to="{ name: 'ShelvingBasicData', params: { id: entityId } }" > - {{ t('shelving.pageTitles.basicData') }} + {{ t('globals.pageTitles.basicData') }} diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 88ddee9a2..de539e949 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -49,7 +49,7 @@ const entriesTableColumns = computed(() => { showValue: false, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'supplierName', name: 'supplierName', align: 'left', @@ -248,7 +248,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -266,7 +266,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -284,7 +284,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index 98648512f..4dc7eb052 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -140,7 +140,7 @@ const columns = computed(() => [ sortable: true, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'cargoSupplierNickname', name: 'cargoSupplierNickname', align: 'left', diff --git a/src/pages/Travel/ExtraCommunityFilter.vue b/src/pages/Travel/ExtraCommunityFilter.vue index 78905ee5f..c51151451 100644 --- a/src/pages/Travel/ExtraCommunityFilter.vue +++ b/src/pages/Travel/ExtraCommunityFilter.vue @@ -218,7 +218,7 @@ warehouses(); 1) { const module = matches[1]; const moduleTitle = module.meta && module.meta.title; - moduleName = toLowerCamel(module.name); if (moduleTitle) { - title = t(`${moduleName}.pageTitles.${moduleTitle}`); + title = t(`globals.pageTitles.${moduleTitle}`); } } @@ -94,7 +91,7 @@ export default route(function (/* { store, ssrContext } */) { if (childPageTitle && matches.length > 2) { if (title != '') title += ': '; - const moduleLocale = `${moduleName}.pageTitles.${childPageTitle}`; + const moduleLocale = `globals.pageTitles.${childPageTitle}`; const pageTitle = te(moduleLocale) ? t(moduleLocale) : t(`globals.pageTitles.${childPageTitle}`); diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 6e8659747..06fe680eb 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -201,15 +201,6 @@ export default { }, component: () => import('src/pages/Item/Card/ItemLog.vue'), }, - { - path: 'botanical', - name: 'ItemBotanical', - meta: { - title: 'botanical', - icon: 'vn:botanical', - }, - component: () => import('src/pages/Item/Card/ItemBotanical.vue'), - }, ], }, ], diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index 4dd5ed2ae..51f266800 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -60,7 +60,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { menuChildren = menuChildren.map(({ name, title, icon }) => ({ name, icon, - title: `${module}.pageTitles.${title}`, + title: `globals.pageTitles.${title}`, })); if (meta && meta.roles && role.hasAny(meta.roles) === false) return; @@ -70,7 +70,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { children: menuChildren, }; if (meta) { - item.title = `${module}.pageTitles.${meta.title}`; + item.title = `globals.pageTitles.${meta.title}`; item.icon = meta.icon; } diff --git a/test/vitest/__tests__/components/Leftmenu.spec.js b/test/vitest/__tests__/components/Leftmenu.spec.js index ea1c51f8d..10d9d66fb 100644 --- a/test/vitest/__tests__/components/Leftmenu.spec.js +++ b/test/vitest/__tests__/components/Leftmenu.spec.js @@ -78,13 +78,13 @@ describe('Leftmenu', () => { { children: null, name: 'CustomerList', - title: 'customer.pageTitles.list', + title: 'globals.pageTitles.list', icon: 'view_list', }, { children: null, name: 'CustomerCreate', - title: 'customer.pageTitles.createCustomer', + title: 'globals.pageTitles.createCustomer', icon: 'vn:addperson', }, ];