|
@@ -5576,7 +5576,14 @@
|
|
for (var t=0;t<this.workForm.domains.length; t++) {
|
|
for (var t=0;t<this.workForm.domains.length; t++) {
|
|
totalTime += parseFloat(this.workForm.domains[t].workingTime);
|
|
totalTime += parseFloat(this.workForm.domains[t].workingTime);
|
|
}
|
|
}
|
|
- if (this.reportTimeType.type == 1 && this.workForm.time && this.user.timeType.noWorkToReport == 1) {
|
|
|
|
|
|
+ if (this.reportTimeType.type == 1 && this.workForm.time) {
|
|
|
|
+ if (this.workForm.time.workHours && this.user.timeType.noWorkToReport == 1){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '无考勤记录不可填报',
|
|
|
|
+ type: 'error'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (this.workForm.time.workHours && totalTime > parseFloat(this.workForm.time.workHours)) {
|
|
if (this.workForm.time.workHours && totalTime > parseFloat(this.workForm.time.workHours)) {
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('message.Fillinthesumofworkinghours')+(totalTime)+"h"+this.$t('message.Cannotexceedthetotalworkinghoursofattendance')+"("+this.workForm.time.workHours.toFixed(1)+"h)",
|
|
message: this.$t('message.Fillinthesumofworkinghours')+(totalTime)+"h"+this.$t('message.Cannotexceedthetotalworkinghoursofattendance')+"("+this.workForm.time.workHours.toFixed(1)+"h)",
|