Commit cf1bd616 authored by 赵啸非's avatar 赵啸非

修改固定班次考勤

parent 1a06d676
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
} }
}) })
this.$nextTick(() => { this.$nextTick(() => {
this.selection = arr.map(item => item.id) this.selection = arr.map(item => item.id)
}) })
if(arr.length < 1){ if(arr.length < 1){
this.$message.error('请至少选择一条处理') this.$message.error('请至少选择一条处理')
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
{label: "员工姓名", prop: "staffName",fixed:'left',width:100}, {label: "员工姓名", prop: "staffName",fixed:'left',width:100},
{label: "工号", prop: "workNum"}, {label: "工号", prop: "workNum"},
{label: "部门", prop: "deptName"}, {label: "部门", prop: "deptName"},
{label: "考勤组", prop: "deptName"}, {label: "考勤组", prop: "attendanceGroupName"},
{label: "班次", prop: "shiftsName"}, {label: "班次", prop: "shiftsName"},
{label: "异常状态", prop: "errorStatus",formatter: this.formattereErrorStatus}, {label: "异常状态", prop: "errorStatus",formatter: this.formattereErrorStatus},
{label: "异常时间", prop: "errorDateTime", formatter: this.formatterDate}, {label: "异常时间", prop: "errorDateTime", formatter: this.formatterDate},
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
}else{ }else{
return ( return (
<span> <span>
<el-button type="text" size='mini' onClick={() => { <el-button type="text" size='mini' onClick={() => {
this.reCancle(row) this.reCancle(row)
}}>撤销</el-button> }}>撤销</el-button>
...@@ -192,4 +192,4 @@ ...@@ -192,4 +192,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -498,12 +498,11 @@ export default { ...@@ -498,12 +498,11 @@ export default {
{ label: "员工工号", prop: "workNum" }, { label: "员工工号", prop: "workNum" },
{ {
label: "考勤组", label: "考勤组",
prop: "attendanceGroupName", prop: "attendanceGroupName"
formatter: this.formatters,
}, },
{ label: "部门", prop: "deptName", formatter: this.formatters }, { label: "部门", prop: "deptName" },
{ label: "职位", prop: "positionName", formatter: this.formatters }, { label: "职位", prop: "positionName"},
{ label: "班次", prop: "shiftsName", formatter: this.formatters }, { label: "班次", prop: "classId", formatter: this.formatter },
{ {
label: "签到结果", label: "签到结果",
prop: "signInResult", prop: "signInResult",
......
...@@ -39,28 +39,24 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At ...@@ -39,28 +39,24 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
protected void findAfter(AttendanceRecordErrorEntity params, PageInfo pageInfo, Context context, List<AttendanceRecordErrorEntity> list) throws AppException { protected void findAfter(AttendanceRecordErrorEntity params, PageInfo pageInfo, Context context, List<AttendanceRecordErrorEntity> list) throws AppException {
list.forEach(item -> { list.forEach(item -> {
AttendanceClassEntity attendanceClassEntity = attendanceClassService.get(item.getShiftsId(), context); AttendanceClassDetailEntity attendanceClassDetailEntity = classDetailService.get(item.getShiftsId(), context);
if(!ObjectUtils.isEmpty(attendanceClassEntity)&&!ObjectUtils.isEmpty(attendanceClassEntity.getAttendanceClassDetailList())){ if (!ObjectUtils.isEmpty(attendanceClassDetailEntity)) {
for (AttendanceClassDetailEntity attendanceClassDetailEntity : attendanceClassEntity.getAttendanceClassDetailList()) { String str = DateUtil.formatTime(item.getGoOffDateTime());
if (!ObjectUtils.isEmpty(attendanceClassDetailEntity)) { String goStr = DateUtil.formatTime(attendanceClassDetailEntity.getGoWorkDate());
String str = DateUtil.formatTime(item.getGoOffDateTime()); String offStr = DateUtil.formatTime(attendanceClassDetailEntity.getOffWorkDate());
String goStr = DateUtil.formatTime(attendanceClassDetailEntity.getGoWorkDate());
String offStr = DateUtil.formatTime(attendanceClassDetailEntity.getOffWorkDate());
if (!ObjectUtils.isEmpty(str)&&str.equals(goStr)) { if (!ObjectUtils.isEmpty(str) && str.equals(goStr)) {
item.setGoOrOff("上班"); item.setGoOrOff("上班");
}
if (!ObjectUtils.isEmpty(str)&&str.equals(offStr)) {
item.setGoOrOff("下班");
}
if (ObjectUtils.isEmpty(item.getGoOrOff())) {
item.setGoOrOff("上班");
}
}
} }
}else { if (!ObjectUtils.isEmpty(str) && str.equals(offStr)) {
item.setGoOrOff("上班"); item.setGoOrOff("下班");
}
if (ObjectUtils.isEmpty(item.getGoOrOff())) {
item.setGoOrOff("");
}
} else {
item.setGoOrOff("");
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment