From f6d3e37787db76df9fccb979bdf5b2a1937fda8c Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 10 May 2024 08:02:12 +0200 Subject: [PATCH] feat: accountRoles --- src/pages/Account/{ => Role}/AccountRoles.vue | 4 +- src/pages/Account/Role/AccountRolesFilter.vue | 225 ++++++++ src/pages/Account/Role/Card/RoleBasicData.vue | 181 +++++++ src/pages/Account/Role/Card/RoleSummary.vue | 488 ++++++++++++++++++ src/router/modules/account.js | 3 +- 5 files changed, 898 insertions(+), 3 deletions(-) rename src/pages/Account/{ => Role}/AccountRoles.vue (97%) create mode 100644 src/pages/Account/Role/AccountRolesFilter.vue create mode 100644 src/pages/Account/Role/Card/RoleBasicData.vue create mode 100644 src/pages/Account/Role/Card/RoleSummary.vue diff --git a/src/pages/Account/AccountRoles.vue b/src/pages/Account/Role/AccountRoles.vue similarity index 97% rename from src/pages/Account/AccountRoles.vue rename to src/pages/Account/Role/AccountRoles.vue index 2b94a88da..910a6f124 100644 --- a/src/pages/Account/AccountRoles.vue +++ b/src/pages/Account/Role/AccountRoles.vue @@ -4,11 +4,11 @@ import { useRouter } from 'vue-router'; import { useStateStore } from 'stores/useStateStore'; import { toDate } from 'filters/index'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; -import AccountFilter from './AccountFilter.vue'; +import AccountFilter from '../AccountFilter.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import CardList from 'src/components/ui/CardList.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue'; -import AccountSummary from './Card/AccountSummary.vue'; +import AccountSummary from '../Card/AccountSummary.vue'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; const stateStore = useStateStore(); diff --git a/src/pages/Account/Role/AccountRolesFilter.vue b/src/pages/Account/Role/AccountRolesFilter.vue new file mode 100644 index 000000000..23b72266c --- /dev/null +++ b/src/pages/Account/Role/AccountRolesFilter.vue @@ -0,0 +1,225 @@ + + + + + +en: + params: + search: Contains + clientFk: Customer + clientName: Customer + salesPersonFk: Salesperson + attenderFk: Attender + accountResponsibleFk: Responsible + accountStateFk: State + created: Created + myTeam: My team +es: + params: + search: Contiene + clientFk: Cliente + clientName: Cliente + salesPersonFk: Comercial + attenderFk: Asistente + accountResponsibleFk: Responsable + accountStateFk: Estado + created: Creada + Customer ID: ID cliente + Client Name: Nombre del cliente + Salesperson: Comercial + Attender: Asistente + Responsible: Responsable + State: Estado + Item: Artículo + Created: Creada + More options: Más opciones + myTeam: Mi equipo + diff --git a/src/pages/Account/Role/Card/RoleBasicData.vue b/src/pages/Account/Role/Card/RoleBasicData.vue new file mode 100644 index 000000000..7a3548b8b --- /dev/null +++ b/src/pages/Account/Role/Card/RoleBasicData.vue @@ -0,0 +1,181 @@ + + diff --git a/src/pages/Account/Role/Card/RoleSummary.vue b/src/pages/Account/Role/Card/RoleSummary.vue new file mode 100644 index 000000000..69f46dde8 --- /dev/null +++ b/src/pages/Account/Role/Card/RoleSummary.vue @@ -0,0 +1,488 @@ + + + + + diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 83abceda9..725de4ac7 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -51,7 +51,8 @@ export default { title: 'roles', icon: 'group', }, - component: () => import('src/pages/Account/AccountRoles.vue'), + component: () => + import('src/pages/Account/AccountRole/AccountRoles.vue'), }, { path: 'alias',