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 @@ + + + + (states = data)" auto-load /> + (workers = data)" + auto-load + /> + + + + {{ t(`params.${tag.label}`) }}: + {{ formatFn(tag.value) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +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 @@ + + + (workersOptions = data)" + auto-load + /> + + + + + + + + + + + + + + + + + + + + + + + filter(value, update, statesFilter)" + :rules="validate('account.accountStateFk')" + :input-debounce="0" + > + + + + + + + + + + + + + + + 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 @@ + + + + setAccountDms(data)" + ref="accountDmsRef" + /> + (AccountStates = data)" + auto-load + /> + + + {{ account.id }} - {{ account.client.name }} ({{ account.client.id }}) + + + + + + + + {{ item.description }} + + + + + + + + + + + + + + {{ account.accountState.description }} + + + + + + + + + + + + + + + + + {{ account.client?.name }} + + + + + + + + + + + + + + + {{ t(col.label) }} + + + + + + + {{ + t(col.value) + }} + {{ col.value }} + + + + + + + + + + + + + Video + + + + + + + + + + + + + + + + + {{ t(col.label) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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',