diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index 1a4514ef5..e52be753f 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -54,6 +54,13 @@ async function fetch() { emit('onFetch', Array.isArray(data) ? data[0] : data); isLoading.value = false; } + +const showRedirectToSummaryIcon = computed(() => { + const routeExists = route.matched.some( + (route) => route.name === `${route.meta.moduleName}Summary` + ); + return !isSummary.value && route.meta.moduleName && routeExists; +}); + + diff --git a/src/pages/Monitor/SalesClientsTable.vue b/src/pages/Monitor/SalesClientsTable.vue new file mode 100644 index 000000000..84cccf91b --- /dev/null +++ b/src/pages/Monitor/SalesClientsTable.vue @@ -0,0 +1,219 @@ + + + diff --git a/src/pages/Monitor/SalesMonitor.vue b/src/pages/Monitor/SalesMonitor.vue deleted file mode 100644 index 842474545..000000000 --- a/src/pages/Monitor/SalesMonitor.vue +++ /dev/null @@ -1,270 +0,0 @@ - - - diff --git a/src/pages/Monitor/SalesOrdersTable.vue b/src/pages/Monitor/SalesOrdersTable.vue new file mode 100644 index 000000000..2e1d3aaed --- /dev/null +++ b/src/pages/Monitor/SalesOrdersTable.vue @@ -0,0 +1,198 @@ + + + diff --git a/src/pages/Monitor/SalesTicketsTable.vue b/src/pages/Monitor/SalesTicketsTable.vue new file mode 100644 index 000000000..d82a5f2ca --- /dev/null +++ b/src/pages/Monitor/SalesTicketsTable.vue @@ -0,0 +1,622 @@ + + + diff --git a/src/pages/Monitor/locale/en.yml b/src/pages/Monitor/locale/en.yml new file mode 100644 index 000000000..a449225ed --- /dev/null +++ b/src/pages/Monitor/locale/en.yml @@ -0,0 +1,40 @@ +salesMonitor: + clientsOnWebsite: Clients on website + recentOrderActions: Recent order actions +salesClientsTable: + from: From + to: To + date: Date + hour: Hour + salesPerson: Salesperson + client: Client +salesOrdersTable: + delete: Delete + date: Date + client: Client + salesPerson: Salesperson + deleteConfirmTitle: Delete selected elements + deleteConfirmMessage: All the selected elements will be deleted. Are you sure you want to continue? +salesTicketsTable: + problems: Problems + noVerifiedData: No verified data + notVisible: Not visible + purchaseRequest: Purchase request + clientFrozen: Client frozen + risk: Risk + componentLack: Component lack + tooLittle: Ticket too little + identifier: Identifier + client: Client + salesPerson: Salesperson + date: Date + theoretical: Theoretical + practical: Practical + province: Province + state: State + isFragile: Is fragile + zone: Zone + goToLines: Go to lines + preview: Preview + total: Total + preparation: Preparation diff --git a/src/pages/Monitor/locale/es.yml b/src/pages/Monitor/locale/es.yml new file mode 100644 index 000000000..6ed6604be --- /dev/null +++ b/src/pages/Monitor/locale/es.yml @@ -0,0 +1,40 @@ +salesMonitor: + clientsOnWebsite: Clientes activos en la web + recentOrderActions: Acciones recientes en pedidos +salesClientsTable: + from: Desde + to: Hasta + date: Fecha + hour: Hora + salesPerson: Comercial + client: Cliente +salesOrdersTable: + delete: Eliminar + date: Fecha + client: Cliente + salesPerson: Comercial + deleteConfirmTitle: Eliminar los elementos seleccionados + deleteConfirmMessage: Todos los elementos seleccionados serán eliminados. ¿Seguro que quieres continuar? +salesTicketsTable: + problems: Problemas + noVerifiedData: Sin datos comprobados + notVisible: No visible + purchaseRequest: Petición de compra + clientFrozen: Cliente congelado + risk: Riesgo + componentLack: Faltan componentes + tooLittle: Ticket demasiado pequeño + identifier: Identificador + client: Cliente + salesPerson: Comercial + date: Fecha + theoretical: Teórica + practical: Práctica + province: Provincia + state: Estado + isFragile: Es frágil + zone: Zona + goToLines: Ir a líneas + preview: Vista previa + total: Total + preparation: Preparación diff --git a/src/pages/Ticket/Card/TicketSale.vue b/src/pages/Ticket/Card/TicketSale.vue new file mode 100644 index 000000000..02cccaff2 --- /dev/null +++ b/src/pages/Ticket/Card/TicketSale.vue @@ -0,0 +1 @@ + diff --git a/src/router/modules/monitor.js b/src/router/modules/monitor.js index 0ce6e153b..6c388a474 100644 --- a/src/router/modules/monitor.js +++ b/src/router/modules/monitor.js @@ -5,13 +5,13 @@ export default { name: 'Monitor', meta: { title: 'monitors', - icon: 'vn:grid', + icon: 'grid_view', moduleName: 'Monitor', }, component: RouterView, redirect: { name: 'MonitorMain' }, menus: { - main: ['SalesMonitor'], + main: ['MonitorList'], card: [], }, children: [ @@ -19,24 +19,18 @@ export default { path: '', name: 'MonitorMain', component: () => import('src/pages/Monitor/MonitorMain.vue'), - redirect: { name: 'SalesMonitor' }, + redirect: { name: 'MonitorList' }, children: [ { - path: 'index', - name: 'SalesMonitor', + path: 'list', + name: 'MonitorList', meta: { - title: 'salesMonitor', - icon: 'vn:grid', + title: 'list', + icon: 'grid_view', }, - component: () => import('src/pages/Monitor/SalesMonitor.vue'), + component: () => import('src/pages/Monitor/MonitorList.vue'), }, ], }, - // { - // name: 'ItemCard', - // path: ':id', - // component: () => import('src/pages/Item/Card/ItemCard.vue'), - // children: [], - // }, ], }; diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js index eb6c1b6d2..6cb7291dc 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'], + card: ['TicketBoxing', 'TicketSms', 'TicketSale'], }, children: [ { @@ -66,6 +66,15 @@ export default { }, component: () => import('src/pages/Ticket/Card/TicketBasicData.vue'), }, + { + name: 'TicketSale', + path: 'sale', + meta: { + title: 'sale', + icon: 'vn:lines', + }, + component: () => import('src/pages/Ticket/Card/TicketSale.vue'), + }, { path: 'boxing', name: 'TicketBoxing',