Arreglo de la fecha
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div class="box">
|
||||
<p><b>Folio:</b> {{ $route.query.folio }}</p>
|
||||
<p><b>Cantidad: </b> {{ $route.query.monto }}</p>
|
||||
<p><b>Fecha del ticket:</b> {{ $route.query.fecha }}</p>
|
||||
<p><b>Fecha del ticket:</b> {{ fecha($route.query.fecha) }}</p>
|
||||
</div>
|
||||
<div class="has-text-centered pb-5">
|
||||
<b-button
|
||||
@@ -49,6 +49,7 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -98,6 +99,9 @@ export default {
|
||||
this.imprimirError(err.response.data)
|
||||
})
|
||||
},
|
||||
fecha(fecha) {
|
||||
return moment(fecha).format('L')
|
||||
},
|
||||
regresar() {
|
||||
this.$router.go(-1)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user