Browse Source

考勤0不填报

ggooalice 2 years ago
parent
commit
21aca6f506

+ 10 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -5643,8 +5643,16 @@
                             totalTime += parseFloat(this.workForm.domains[t].workingTime);
                         }
                         
-                        if(this.workForm.time){
-                            if (this.workForm.time.workHours == 0 && this.user.timeType.notAllowedNoAttendance == 1){
+                        if(this.user.timeType.notAllowedNoAttendance == 1){
+                            if (this.workForm.time){
+                                if (this.workForm.time.workHours == 0){
+                                    this.$message({
+                                        message: '无考勤记录不可填报',
+                                        type: 'error'
+                                    })
+                                    return
+                                }
+                            }else{
                                 this.$message({
                                     message: '无考勤记录不可填报',
                                     type: 'error'

File diff suppressed because it is too large
+ 179 - 179
fhKeeper/formulahousekeeper/timesheet_h5/package-lock.json


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

@@ -1519,8 +1519,13 @@ import timetoolVue from '../timetool/timetool.vue';
                             return;
                         }
                     }
-                    if(this.report.time){
-                            if (this.report.time.workHours == 0 && this.user.timeType.notAllowedNoAttendance == 1){
+                        if(this.user.timeType.notAllowedNoAttendance == 1){
+                            if (this.report.time){
+                                if (this.report.time.workHours == 0){
+                                    this.$toast.fail('无考勤记录不可填报')
+                                    return
+                                }
+                            }else{
                                 this.$toast.fail('无考勤记录不可填报')
                                 return
                             }