Arreglo de la fecha

This commit is contained in:
Andres2908
2022-02-16 23:22:13 -06:00
parent 399dab94da
commit 426c1e3f66
2 changed files with 12 additions and 5 deletions
+5 -1
View File
@@ -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)
},