From 99ef7fad76d90fb365cad4a8567f2ddc0d850587 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 9 May 2024 08:28:58 +0200 Subject: [PATCH] feat #7311: subsections --- src/i18n/locale/es.yml | 4 +- src/pages/Account/Card/AccountBasicData.vue | 181 +++++++ src/pages/Account/Card/AccountCard.vue | 15 + src/pages/Account/Card/AccountDescriptor.vue | 216 ++++++++ .../Account/Card/AccountDescriptorMenu.vue | 130 +++++ src/pages/Account/Card/AccountLog.vue | 6 + .../Account/Card/AccountMailForwarding.vue | 256 +++++++++ src/pages/Account/Card/AccountPrivileges.vue | 354 ++++++++++++ src/pages/Account/Card/AccountSummary.vue | 502 ++++++++++++++++++ src/pages/Account/locale/es.yml | 2 + src/router/modules/account.js | 156 +++--- 11 files changed, 1747 insertions(+), 75 deletions(-) create mode 100644 src/pages/Account/Card/AccountBasicData.vue create mode 100644 src/pages/Account/Card/AccountCard.vue create mode 100644 src/pages/Account/Card/AccountDescriptor.vue create mode 100644 src/pages/Account/Card/AccountDescriptorMenu.vue create mode 100644 src/pages/Account/Card/AccountLog.vue create mode 100644 src/pages/Account/Card/AccountMailForwarding.vue create mode 100644 src/pages/Account/Card/AccountPrivileges.vue create mode 100644 src/pages/Account/Card/AccountSummary.vue create mode 100644 src/pages/Account/locale/es.yml diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 9127e6609..e23f4328c 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1231,13 +1231,13 @@ item/itemType: zone: pageTitles: zones: Zonas - zonesList: Zonas + list: Zonas deliveryList: Días de entrega upcomingList: Próximos repartos account: pageTitles: users: Usuarios - usersList: Usuarios + list: Usuarios roles: Roles alias: Alias de correo accounts: Cuentas diff --git a/src/pages/Account/Card/AccountBasicData.vue b/src/pages/Account/Card/AccountBasicData.vue new file mode 100644 index 000000000..7a3548b8b --- /dev/null +++ b/src/pages/Account/Card/AccountBasicData.vue @@ -0,0 +1,181 @@ + + diff --git a/src/pages/Account/Card/AccountCard.vue b/src/pages/Account/Card/AccountCard.vue new file mode 100644 index 000000000..4fa3bad7f --- /dev/null +++ b/src/pages/Account/Card/AccountCard.vue @@ -0,0 +1,15 @@ + + diff --git a/src/pages/Account/Card/AccountDescriptor.vue b/src/pages/Account/Card/AccountDescriptor.vue new file mode 100644 index 000000000..bdc0113a6 --- /dev/null +++ b/src/pages/Account/Card/AccountDescriptor.vue @@ -0,0 +1,216 @@ + + + + + + en: + accountRate: Claming rate + es: + accountRate: Ratio de reclamación + diff --git a/src/pages/Account/Card/AccountDescriptorMenu.vue b/src/pages/Account/Card/AccountDescriptorMenu.vue new file mode 100644 index 000000000..b63c0e5a8 --- /dev/null +++ b/src/pages/Account/Card/AccountDescriptorMenu.vue @@ -0,0 +1,130 @@ + + + + +{ + "en": { + "pickupOrder": "Pickup order", + "openPickupOrder": "Open pickup order", + "sendPickupOrder": "Send pickup order", + "deleteAccount": "Delete account", + "confirmDeletion": "Confirm deletion", + "confirmDeletionMessage": "Are you sure you want to delete this account?" + }, + "es": { + "pickupOrder": "Orden de recogida", + "openPickupOrder": "Abrir orden de recogida", + "sendPickupOrder": "Enviar orden de recogida", + "deleteAccount": "Eliminar reclamación", + "confirmDeletion": "Confirmar eliminación", + "confirmDeletionMessage": "Seguro que quieres eliminar esta reclamación?" + } +} + diff --git a/src/pages/Account/Card/AccountLog.vue b/src/pages/Account/Card/AccountLog.vue new file mode 100644 index 000000000..cfcf224c7 --- /dev/null +++ b/src/pages/Account/Card/AccountLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Account/Card/AccountMailForwarding.vue b/src/pages/Account/Card/AccountMailForwarding.vue new file mode 100644 index 000000000..d8a43c623 --- /dev/null +++ b/src/pages/Account/Card/AccountMailForwarding.vue @@ -0,0 +1,256 @@ + + + + + + +es: + Reason: Motivo + Result: Consecuencia + Responsible: Responsable + Worker: Trabajador + Redelivery: Devolución + diff --git a/src/pages/Account/Card/AccountPrivileges.vue b/src/pages/Account/Card/AccountPrivileges.vue new file mode 100644 index 000000000..b74e4a418 --- /dev/null +++ b/src/pages/Account/Card/AccountPrivileges.vue @@ -0,0 +1,354 @@ + + + + + + +en: + You are about to remove {count} rows: ' + You are about to remove {count} row | + You are about to remove {count} rows' +es: + Delivered: Entregado + Quantity: Cantidad + Accounted: Reclamada + Description: Descripción + Price: Precio + Discount: Descuento + Actions: Acciones + Amount: Total + Amount Accounted: Cantidad reclamada + Delete accounted sales: Eliminar ventas reclamadas + Discount updated: Descuento actualizado + Accounted quantity: Cantidad reclamada + You are about to remove {count} rows: ' + Vas a eliminar {count} línea | + Vas a eliminar {count} líneas' + diff --git a/src/pages/Account/Card/AccountSummary.vue b/src/pages/Account/Card/AccountSummary.vue new file mode 100644 index 000000000..c6b06ce54 --- /dev/null +++ b/src/pages/Account/Card/AccountSummary.vue @@ -0,0 +1,502 @@ + + + + + diff --git a/src/pages/Account/locale/es.yml b/src/pages/Account/locale/es.yml new file mode 100644 index 000000000..eec5ecc8a --- /dev/null +++ b/src/pages/Account/locale/es.yml @@ -0,0 +1,2 @@ +Search account: Buscar usuario +You can search by account id or customer name: Puedes buscar por id de la reclamación o nombre del cliente diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 674184383..6d85a4aa7 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -4,20 +4,28 @@ export default { path: '/account', name: 'Account', meta: { - title: 'accounts', - icon: 'vn:account', + title: 'users', + icon: 'face', moduleName: 'Account', }, component: RouterView, redirect: { name: 'AccountMain' }, menus: { - main: ['AccountList', 'AccountDepartment'], + main: [ + 'AccountList', + 'AccountRoles', + 'AccountAlias', + 'AccountAccounts', + 'AccountLdap', + 'AccountSamba', + 'AccountConnections', + ], card: [ 'AccountBasicData', 'AccountNotes', - 'AccountPda', - 'AccountNotificationsManager', - 'AccountPBX', + 'AccountMailForwarding', + 'AccountPrivileges', + 'AccountLog', 'AccountLog', 'AccountCalendar', 'AccountDms', @@ -42,14 +50,69 @@ export default { component: () => import('src/pages/Account/AccountList.vue'), }, { - path: 'department', - name: 'AccountDepartment', + path: 'roles', + name: 'AccountRoles', meta: { - title: 'department', - icon: 'vn:greuge', + title: 'roles', + icon: 'group', }, - component: () => import('src/pages/Account/AccountDepartment.vue'), + component: () => import('src/pages/Account/AccountRoles.vue'), }, + { + path: 'alias', + name: 'AccountAlias', + meta: { + title: 'alias', + icon: 'email', + }, + component: () => import('src/pages/Account/AccountAlias.vue'), + }, + { + path: 'accounts', + name: 'AccountAccounts', + meta: { + title: 'accounts', + icon: 'accessibility', + }, + component: () => import('src/pages/Account/AccountAccounts.vue'), + }, + { + path: 'ldap', + name: 'AccountLdap', + meta: { + title: 'ldap', + icon: 'account_tree', + }, + component: () => import('src/pages/Account/AccountLdap.vue'), + }, + { + path: 'samba', + name: 'AccountSamba', + meta: { + title: 'samba', + icon: 'preview', + }, + component: () => import('src/pages/Account/AccountSamba.vue'), + }, + { + path: 'acls', + name: 'AccountAcls', + meta: { + title: 'acls', + icon: 'check', + }, + component: () => import('src/pages/Account/AccountAcls.vue'), + }, + { + path: 'connections', + name: 'AccountConnections', + meta: { + title: 'connections', + icon: 'check', + }, + component: () => import('src/pages/Account/AccountConnections.vue'), + }, + { path: 'create', name: 'AccountCreate', @@ -77,8 +140,8 @@ export default { component: () => import('src/pages/Account/Card/AccountSummary.vue'), }, { - path: 'basic-data', name: 'AccountBasicData', + path: 'basic-data', meta: { title: 'basicData', icon: 'vn:settings', @@ -87,87 +150,34 @@ export default { import('src/pages/Account/Card/AccountBasicData.vue'), }, { - path: 'notes', - name: 'NotesCard', - redirect: { name: 'AccountNotes' }, - children: [ - { - path: '', - name: 'AccountNotes', - meta: { - title: 'notes', - icon: 'vn:notes', - }, - component: () => - import('src/pages/Account/Card/AccountNotes.vue'), - }, - ], - }, - { - name: 'AccountPda', - path: 'pda', + name: 'AccountMailForwarding', + path: 'mailForwarding', meta: { title: 'pda', icon: 'phone_android', }, - component: () => import('src/pages/Account/Card/AccountPda.vue'), + component: () => + import('src/pages/Account/Card/AccountMailForwarding.vue'), }, { - name: 'AccountNotificationsManager', - path: 'notifications', + name: 'AccountPrivileges', + path: 'privileges', meta: { title: 'notifications', icon: 'notifications', }, component: () => - import('src/pages/Account/Card/AccountNotificationsManager.vue'), - }, - { - path: 'pbx', - name: 'AccountPBX', - meta: { - title: 'pbx', - icon: 'vn:pbx', - }, - component: () => import('src/pages/Account/Card/AccountPBX.vue'), - }, - { - name: 'AccountDms', - path: 'dms', - meta: { - title: 'dms', - icon: 'cloud_upload', - }, - component: () => import('src/pages/Account/Card/AccountDms.vue'), + import('src/pages/Account/Card/AccountPrivileges.vue'), }, { name: 'AccountLog', path: 'log', meta: { title: 'log', - icon: 'vn:History', + icon: 'vn:log', }, component: () => import('src/pages/Account/Card/AccountLog.vue'), }, - { - name: 'AccountCalendar', - path: 'calendar', - meta: { - title: 'calendar', - icon: 'calendar_today', - }, - component: () => import('src/pages/Account/Card/AccountCalendar.vue'), - }, - { - name: 'AccountTimeControl', - path: 'time-control', - meta: { - title: 'timeControl', - icon: 'access_time', - }, - component: () => - import('src/pages/Account/Card/AccountTimeControl.vue'), - }, ], }, ],