fecha límite la de hoy

This commit is contained in:
Andres2908
2022-03-01 22:53:32 -06:00
parent fa7f6293ce
commit 31f0697023
+22 -22
View File
@@ -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 = ''