29911
This commit is contained in:
@@ -193,6 +193,10 @@
|
||||
return this.$u.toast('请选择最晚打卡时间')
|
||||
}
|
||||
|
||||
if (this.$dayjs('2020-06-01 ' + this.form.workOutEnd).valueOf() <= this.$dayjs('2020-06-01 ' + this.form.workInFrom).valueOf()) {
|
||||
return this.$u.toast('最晚打卡时间不能最早打卡时间')
|
||||
}
|
||||
|
||||
if (this.form.openRestTime === '1') {
|
||||
if (!this.form.restTimeBegin) {
|
||||
return this.$u.toast('请选择休息时间')
|
||||
@@ -201,6 +205,10 @@
|
||||
if (!this.form.restTimeEnd) {
|
||||
return this.$u.toast('请选择休息结束时间')
|
||||
}
|
||||
|
||||
if (this.$dayjs('2020-06-01 ' + this.form.restTimeEnd).valueOf() <= this.$dayjs('2020-06-01 ' + this.form.restTimeBegin).valueOf()) {
|
||||
return this.$u.toast('休息结束时间不能早于休息开始时间')
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.form.workHoursLimit) {
|
||||
|
||||
Reference in New Issue
Block a user