From e650d2ce2428a6574c79c9f6dde9226cf84c144a Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Mon, 14 Mar 2022 23:38:59 -0600 Subject: [PATCH] campos editables --- components/admin/tableTickets.vue | 41 ++++++++--- components/admin/ticket.vue | 113 ++++++++++++++++-------------- 2 files changed, 93 insertions(+), 61 deletions(-) diff --git a/components/admin/tableTickets.vue b/components/admin/tableTickets.vue index 8af75e0..9ed1a40 100644 --- a/components/admin/tableTickets.vue +++ b/components/admin/tableTickets.vue @@ -39,7 +39,7 @@ {{ props.row.Usuario.numeroCuenta }} - {{ props.row.folio }} @@ -47,14 +47,12 @@ {{ props.row.monto }} - - Ver ticket - + Validar + + Cancelar + + + + Ver ticket diff --git a/components/admin/ticket.vue b/components/admin/ticket.vue index ddd380e..3249bbd 100644 --- a/components/admin/ticket.vue +++ b/components/admin/ticket.vue @@ -6,23 +6,9 @@ - - -
@@ -36,9 +22,48 @@

-

Folio: {{ $route.query.folio }}

-

Cantidad: {{ $route.query.monto }}

-

Fecha del ticket: {{ fecha($route.query.fecha) }}

+ + +

+ + +

+
+ + + +

+ + +

+
+ + + + +

+ + +

+
import axios from 'axios' -import moment from 'moment' export default { props: { @@ -84,10 +108,16 @@ export default { return { token: '', - isImageModalActive: false, + switchFolio: true, + switchMonto: true, + switchFecha: true, + + fechaTicket: new Date(this.$route.query.fecha), + isLoading: true, isFullPage: true, urlTicket: '', + validado: null, } }, @@ -128,8 +158,18 @@ export default { this.$router.go(-1) }) }, - fecha(fecha) { - return moment(fecha).format('L') + habilitar(tipo) { + tipo == 'folio' && this.switchFolio == true + ? (this.switchFolio = false) + : (this.switchFolio = true) + + tipo == 'monto' && this.switchMonto == true + ? (this.switchMonto = false) + : (this.switchMonto = true) + + tipo == 'fecha' && this.switchFecha == true + ? (this.switchFecha = false) + : (this.switchFecha = true) }, regresar() { this.$router.go(-1) @@ -150,37 +190,6 @@ export default { padding-bottom: 470px; } -.overlay { - position: absolute; - top: 4%; - bottom: 0; - left: 0; - right: 40%; - height: 470px; - width: 350px; - opacity: 0; - transition: 0.5s ease; - background-color: white; -} - -/* When you mouse over the container, fade in the overlay icon*/ -.containerImg:hover .overlay { - opacity: 0.3; -} - -/* The icon inside the overlay is positioned in the middle vertically and horizontally */ -.icon { - color: black; - font-size: 100px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - text-align: center; - z-index: 2; -} - .zoom { transition: transform 0.2s; }