fecha límite la de hoy
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user