feat(clientes-maestro): importar y exportar clientes del archivo maestro

- Tabla ClienteMaestro (27 campos, unique numCliente)
- Importador Excel: 1535 clientes del Reporte maestro
- API: listar/filtros/exportar/detalle/importar
- Frontend: tabla paginada, filtros, exportar Excel
- Dark mode completo, 52 tests verdes
This commit is contained in:
2026-09-07 09:11:09 +00:00
parent c2a8f4e929
commit 9021733455
18 changed files with 1428 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'
import { MODULOS, esRolValido, modulosDeRol } from './roles.js'
const ESPERADOS: Record<string, string[]> = {
vendedor: ['mi-dia', 'alta-cliente', 'alta-afluencia', 'cotizador', 'mi-tablero', 'contactos', 'chat'],
vendedor: ['mi-dia', 'alta-cliente', 'alta-afluencia', 'cotizador', 'mi-tablero', 'contactos', 'chat', 'clientes-maestro'],
administracion_venta: [
'mi-dia',
'alta-cliente',
@@ -11,6 +11,7 @@ const ESPERADOS: Record<string, string[]> = {
'mi-tablero',
'contactos',
'chat',
'clientes-maestro',
'cobranza',
],
director_ventas: [
@@ -21,6 +22,7 @@ const ESPERADOS: Record<string, string[]> = {
'mi-tablero',
'contactos',
'chat',
'clientes-maestro',
'cobranza',
'tablero-comercial',
],
@@ -32,9 +34,10 @@ const ESPERADOS: Record<string, string[]> = {
'mi-tablero',
'contactos',
'chat',
'clientes-maestro',
'cobranza',
],
direccion_general: ['mi-dia', 'tablero-comercial', 'cobranza', 'chat'],
direccion_general: ['mi-dia', 'tablero-comercial', 'cobranza', 'chat', 'clientes-maestro'],
admin: [...MODULOS],
}