Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
61667eab
Commit
61667eab
authored
Aug 10, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
3171b9c0
ccdfedf7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
68 deletions
+47
-68
attendance-performance-manager-ui/admin/src/views/attendance/record/error/drawershow.vue
...ui/admin/src/views/attendance/record/error/drawershow.vue
+20
-8
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
...nager-ui/admin/src/views/attendance/record/error/list.vue
+9
-15
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceRecordErrorVo.java
...x/module/attendance/model/vo/AttendanceRecordErrorVo.java
+12
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordErrorController.java
...odule/attendance/web/AttendanceRecordErrorController.java
+6
-45
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/record/error/drawershow.vue
View file @
61667eab
...
...
@@ -19,18 +19,23 @@
<span
class=
"ml10"
>
修改为
</span>
</div>
<div
class=
"mt10"
>
<!-- 处理异常状态 -->
<!--
<Field
label=
""
v-model=
"dealParams.processResult"
type=
"select"
:enumData=
"dict.errorStatus"
/>
-->
<!-- 处理异常状态 -->
<el-select
v-model=
"dealParams.processResult"
>
<el-option
v-for=
'($label, $value) in dict.errorStatus'
:key=
"$value"
:label=
"$label"
:value=
"$
label
"
>
:value=
"$
value
"
>
</el-option>
</el-select>
<!-- 早退/迟到 -->
<el-input
style=
"width:220px"
placeholder=
"请输入数字"
:maxlength=
"4"
v-model=
"duration"
v-if=
"dealParams.processResult == '
迟到'|| dealParams.processResult == '早退
'"
<el-input
style=
"width:220px"
placeholder=
"请输入数字"
:maxlength=
"4"
v-model=
"duration"
v-if=
"dealParams.processResult == '
1'|| dealParams.processResult == '2
'"
class=
"ml20"
type=
"number"
>
<template
slot=
"append"
>
分钟
</
template
>
</el-input>
...
...
@@ -44,7 +49,7 @@
<div
class=
"mt20"
>
<el-button
type=
"primary"
@
click=
"saveForm"
>
确定
</el-button>
<el-button
@
click=
"cancleFn"
>
取消
</el-button>
</div>
</div>
</div>
</el-drawer>
...
...
@@ -54,7 +59,7 @@
export
default
{
name
:
"
AttendanceRecordDetail
"
,
created
()
{
},
data
()
{
return
{
...
...
@@ -65,6 +70,7 @@
// 是否显示弹出层
open
:
false
,
direction
:
"
rtl
"
,
toString
:
[
"
processResult
"
],
// 表单校验
rules
:
{
staffName
:
[
...
...
@@ -77,6 +83,8 @@
},
dealParams
:{
remark
:
''
,
errorStatus
:
null
,
durtion
:
0
,
processResult
:
''
,
recordErrorEntities
:[],
//处理员工
processStatus
:
1
//处理状态
...
...
@@ -131,8 +139,10 @@
this
.
$message
.
error
(
'
请选择处理结果
'
)
return
}
if
(
this
.
duration
&&
(
this
.
dealParams
.
processResult
==
'
早退
'
||
this
.
dealParams
.
processResult
==
'
迟到
'
)){
this
.
dealParams
.
processResult
=
this
.
dealParams
.
processResult
+
this
.
duration
+
'
分钟
'
this
.
dealParams
.
errorStatus
=
this
.
dealParams
.
processResult
if
(
this
.
duration
&&
(
this
.
dealParams
.
processResult
==
'
1
'
||
this
.
dealParams
.
processResult
==
'
2
'
)){
this
.
dealParams
.
processResult
=
this
.
dict
.
errorStatus
[
this
.
dealParams
.
processResult
]
+
this
.
duration
+
'
分钟
'
this
.
dealParams
.
durtion
=
this
.
duration
}
// 保存结果处理
this
.
$post
(
this
.
urls
.
saveUrl
,
this
.
dealParams
).
then
(
res
=>
{
...
...
@@ -145,6 +155,8 @@
this
.
open
=
false
this
.
dealParams
=
{
remark
:
''
,
errorStatus
:
null
,
durtion
:
0
,
processResult
:
''
,
recordErrorEntities
:[],
//处理员工
processStatus
:
1
//处理状态
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
View file @
61667eab
...
...
@@ -91,14 +91,12 @@
{
name
:
"
deptId
"
,
type
:
"
select
"
,
label
:
"
全部部门
"
,
fuzzy
:
false
label
:
"
全部部门
"
},
{
name
:
"
groupId
"
,
type
:
"
select
"
,
label
:
"
全部考勤组
"
,
fuzzy
:
false
label
:
"
全部考勤组
"
},
/* {
name: "classId",
...
...
@@ -109,38 +107,34 @@
{
name
:
"
errorStatus
"
,
type
:
"
select
"
,
label
:
"
全部异常状态
"
,
fuzzy
:
false
label
:
"
全部异常状态
"
},
{
name
:
"
processStatus
"
,
type
:
"
select
"
,
label
:
"
全部处理状态
"
,
fuzzy
:
false
label
:
"
全部处理状态
"
},
{
name
:
'
attendanceDat
eStart
'
,
name
:
'
errorDateTim
eStart
'
,
type
:
"
date
"
,
label
:
"
异常开始时间
"
,
fuzzy
:
false
label
:
"
异常开始时间
"
},
{
name
:
'
attendanceDateEnd
'
,
type
:
"
date
"
,
label
:
"
异常结束时间
"
,
fuzzy
:
false
label
:
"
errorDateTimeEnd
"
},
{
name
:
"
staffName
"
,
type
:
"
text
"
,
label
:
"
员工姓名
"
,
fuzzy
:
fals
e
fuzzy
:
tru
e
},
{
name
:
"
phoneNumber
"
,
type
:
"
text
"
,
label
:
"
手机号
"
,
fuzzy
:
fals
e
fuzzy
:
tru
e
},
],
columns
:
[
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceRecordErrorVo.java
View file @
61667eab
...
...
@@ -24,4 +24,16 @@ public class AttendanceRecordErrorVo extends BaseEntityLong {
*/
private
List
<
AttendanceRecordErrorEntity
>
recordErrorEntities
;
/** 开始 异常时间 */
private
String
errorDateTimeStart
;
/** 结束 异常时间 */
private
String
errorDateTimeEnd
;
private
Integer
duration
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordErrorController.java
View file @
61667eab
...
...
@@ -143,15 +143,19 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
for
(
AttendanceRecordErrorEntity
recordErrorEntity
:
entity
.
getRecordErrorEntities
())
{
AttendanceRecordErrorEntity
updateEntity
=
new
AttendanceRecordErrorEntity
();
updateEntity
.
setId
(
recordErrorEntity
.
getId
());
updateEntity
.
setErrorDateTime
(
recordErrorEntity
.
getErrorDateTime
());
updateEntity
.
setGoOffDateTime
(
recordErrorEntity
.
getGoOffDateTime
());
updateEntity
.
setProcessStatus
(
entity
.
getProcessStatus
());
updateEntity
.
setGoOffDateTime
(
null
);
updateEntity
.
setProcessResult
(
entity
.
getProcessResult
());
updateEntity
.
setStaffId
(
recordErrorEntity
.
getStaffId
());
updateEntity
.
setErrorStatus
(
entity
.
getErrorStatus
());
updateEntity
.
setOpertor
(
context
.
getUser
().
getRealName
());
updateEntity
.
setOperDateTime
(
new
Date
());
updateEntity
.
setRemark
(
entity
.
getRemark
());
updateEntity
.
setUpdateTime
(
new
Date
());
updateEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
getContext
()));
this
.
service
.
update
(
recordErrorEntity
,
getContext
());
updateEntity
.
setDuration
(
entity
.
getDuration
());
this
.
service
.
update
(
updateEntity
,
getContext
());
}
for
(
AttendanceRecordErrorEntity
item
:
entity
.
getRecordErrorEntities
())
{
...
...
@@ -220,49 +224,6 @@ public class AttendanceRecordErrorController extends BaseCRUDJsonBodyMappingCont
}
@Override
protected
int
saveAfter
(
AttendanceRecordErrorEntity
entity
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
YesNoEnum
.
YES
.
getValue
()
==
entity
.
getProcessStatus
())
{
//已经处理,根据错误状态提交考勤绩效
String
ruleCode
=
""
;
if
(
ErrorStatusEnum
.
早退
.
getValue
()
==
entity
.
getErrorStatus
())
{
//判断时间差定义
//entity.getErrorStatus()
}
/* AttendSaveReq attendSaveReq = new AttendSaveReq();
attendSaveReq.setAttendanceGroupId(entity.getAttendanceGroupId());
attendSaveReq.setAttendanceGroupName(entity.getAttendanceGroupName());
attendSaveReq.setAttendanceDate(entity.getActualAttendanceDateTime());
attendSaveReq.setErrorTime(entity.getErrorDateTime());
attendSaveReq.setGoOffTimeStr(entity.getGoOrOff());
attendSaveReq.setActualAttendTime();
attendSaveReq.setErrorResult(entity.getRemark());
attendSaveReq.setExt();
attendSaveReq.setWorkNum();
attendSaveReq.setTitle();
attendSaveReq.setHappenTime(entity.getErrorDateTime());
attendSaveReq.setRuleCode(ruleCode);
attendSaveReq.setRuleId();
attendSaveReq.setPhone();
attendSaveReq.setPerformType();
attendSaveReq.setStaffId();*/
// apiWebPerformController.attendSave(attendSaveReq);
}
return
super
.
saveAfter
(
entity
,
model
,
context
);
}
@Override
protected
int
editAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
AttendanceRecordErrorEntity
entity
,
Context
context
)
throws
AppException
{
this
.
addDict
(
model
,
"errorStatus"
,
paramService
.
getParamBySecondOrganize
(
"AttendanceRecordDetail"
,
"goWorkResult"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment