|
@@ -20,7 +20,7 @@
|
|
|
</van-field>
|
|
|
<template #right-icon>
|
|
|
<!--先开放几家,试一下-->
|
|
|
- <span style="color:#20a0ff;" @click="getAIReport()" v-if="!hasWrittenReport && (user.companyId==10||user.companyId==7||user.companyId==7030)">智能填报</span>
|
|
|
+ <span style="color:#20a0ff;" @click="getAIReport()" v-if="!substitute && !hasWrittenReport && (user.companyId==10||user.companyId==7||user.companyId==7030)">智能填报</span>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
|
|
@@ -2283,8 +2283,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.dateAr = alp
|
|
|
- console.log(this.reportTimeType, this.dateAr, '<=== this.reportTimeType')
|
|
|
-
|
|
|
const { timeCanOverlap } = this.reportTimeType // timeCanOverlap 为零时校验不允许重叠
|
|
|
if (this.dateAr.length > 0 && timeCanOverlap == 0) {
|
|
|
let trus = this.fns()
|
|
@@ -2374,7 +2372,8 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if (this.user.timeType.notAllowedNoAttendance == 1 && this.isDraft == 0) {
|
|
|
+ //非代填情况下要校验考勤
|
|
|
+ if (!this.substitute && this.user.timeType.notAllowedNoAttendance == 1 && this.isDraft == 0) {
|
|
|
if (this.report.time) {
|
|
|
if (this.report.time.workHours == 0) {
|
|
|
this.$toast.fail('无考勤记录不可填报')
|
|
@@ -2386,7 +2385,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
//针对凡己,不校验考勤时长
|
|
|
- if (this.user.companyId != 3918 && this.user.companyId != 5978 && this.user.companyId != 4281 && this.reportTimeType.type == 1 && this.report.time) {
|
|
|
+ if (!this.substitute && this.user.companyId != 3918 && this.user.companyId != 5978 && this.user.companyId != 4281 && this.reportTimeType.type == 1 && this.report.time) {
|
|
|
var totalTime = 0;
|
|
|
for (var t = 0; t < this.form.domains.length; t++) {
|
|
|
totalTime += parseFloat(this.form.domains[t].workingTime);
|