Переглянути джерело

异常填报不校验考勤时长

QuYueTing 1 тиждень тому
батько
коміт
0a3a3be94e

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -3072,7 +3072,7 @@ export default {
                 for (var t = 0; t < this.form.domains.length; t++) {
                     totalTime += parseFloat(this.form.domains[t].workingTime);
                 }
-                if (this.report.time.workHours && totalTime > parseFloat(this.report.time.workHours)) {
+                if (!this.report.abnormalTime && this.report.time.workHours && totalTime > parseFloat(this.report.time.workHours)) {
                     this.$toast.fail("填报工时之和" + (totalTime) + "h不能超过考勤总工时(" + this.report.time.workHours.toFixed(1) + "h)");
                     return;
                 }