From 31f069702393bc072b2acaf5d149634908406d72 Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Tue, 1 Mar 2022 22:53:32 -0600 Subject: [PATCH] =?UTF-8?q?fecha=20l=C3=ADmite=20la=20de=20hoy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/registro/CapturaDatos.vue | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/components/registro/CapturaDatos.vue b/components/registro/CapturaDatos.vue index f4e2f8f..ce81eea 100644 --- a/components/registro/CapturaDatos.vue +++ b/components/registro/CapturaDatos.vue @@ -148,7 +148,7 @@ export default { fechaTicket: '', dia: 10, minDate: this.diaMin(today), - maxDate: this.diaMax(today), + maxDate: new Date(), dropFiles: [], } @@ -219,28 +219,28 @@ export default { today.getDate() - today.getDate() + 1 ) }, - diaMax(today) { - const mesesCortos = { - 0: 31, - 1: 28, - 2: 31, - 3: 30, - 4: 31, - 5: 30, - 6: 31, - 7: 31, - 8: 30, - 9: 31, - 10: 30, - 11: 31, - } + // diaMax(today) { + // const mesesCortos = { + // 0: 31, + // 1: 28, + // 2: 31, + // 3: 30, + // 4: 31, + // 5: 30, + // 6: 31, + // 7: 31, + // 8: 30, + // 9: 31, + // 10: 30, + // 11: 31, + // } - return new Date( - today.getFullYear(), - today.getMonth(), - today.getDate() + mesesCortos[today.getMonth()] - today.getDate() - ) - }, + // return new Date( + // today.getFullYear(), + // today.getMonth(), + // today.getDate() + mesesCortos[today.getMonth()] - today.getDate() + // ) + // }, clear() { this.idArea = '' this.folio = ''