bug
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">已出勤 {{ attendanceCount.hasIn || 0 }}</span>
|
||||
<span @click="changeTab(2)" :class="[currIndex === 2 ? 'active' : '']">未出勤 {{ attendanceCount.hasOut || 0 }}</span>
|
||||
</div>
|
||||
<div class="right" @click="linkTo('./AttendanceSetting')" v-if="isAdmin">考勤设置</div>
|
||||
<div class="right" @click="linkTo('./AttendanceSetting')" v-if="!isAdmin">考勤设置</div>
|
||||
</div>
|
||||
<div class="info-table">
|
||||
<div class="table-header">
|
||||
|
||||
@@ -206,14 +206,22 @@
|
||||
return this.$u.toast('请选择下班打卡时间')
|
||||
}
|
||||
|
||||
if (this.$dayjs('2020-06-01 ' + this.form.workOutTime).valueOf() <= this.$dayjs('2020-06-01 ' + this.form.workInTime).valueOf()) {
|
||||
return this.$u.toast('下班时间不能早于上班时间')
|
||||
}
|
||||
|
||||
if (this.form.openRestTime === '1') {
|
||||
if (!this.form.restTimeBegin) {
|
||||
return this.$u.toast('请选择休息时间')
|
||||
return this.$u.toast('请选择休息开始时间')
|
||||
}
|
||||
|
||||
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.workInFrom) {
|
||||
@@ -224,6 +232,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.openWorkPoint === '1' && !this.address.address) {
|
||||
return this.$u.toast('请选择固定打卡点')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user