mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 19:09:49 +09:00
정산이력 월 검색 기간 활성화 수정
This commit is contained in:
@@ -381,18 +381,22 @@ export default {
|
||||
closeDate(type) {
|
||||
if (type != undefined && type != null) {
|
||||
let initStartDate = new Date();
|
||||
let initEndDate = new Date();
|
||||
initStartDate.setMonth(Number(moment(initStartDate).format('MM')) - 4)
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 2)
|
||||
|
||||
|
||||
if (type == 'start') {
|
||||
this.disabledSDate = {to: initStartDate, from: new Date()};
|
||||
if (this.startDate !== initStartDate) {
|
||||
this.disabledEDate = {to: this.startDate, from: new Date()};
|
||||
this.disabledEDate = {to: this.startDate, from: initEndDate};
|
||||
|
||||
}
|
||||
} else if (type == 'end') {
|
||||
this.disabledEDate = {to: initStartDate, from: new Date()};
|
||||
if (this.endDate !== new Date()) {
|
||||
this.disabledEDate = {to: initStartDate, from: initEndDate};
|
||||
if (this.endDate !== initEndDate) {
|
||||
this.disabledSDate = {from: this.endDate};
|
||||
this.disabledSDate = {to: initStartDate, from: new Date()};
|
||||
this.disabledSDate = {to: initStartDate, from: initEndDate};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -483,7 +487,7 @@ export default {
|
||||
},
|
||||
initSetEndDate() {
|
||||
let initEndDate = new Date();
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 1);
|
||||
initEndDate.setMonth(Number(moment(initEndDate).format('MM')) - 2);
|
||||
this.endDate = initEndDate;
|
||||
// console.log(moment(this.endDate).format('YYYY-MM-DD'));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user