Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
86debcc3
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1426
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
86debcc3
编写于
7月 09, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
请假申请托管到表单布局
上级
6e0a6634
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
52 addition
and
1152 deletion
+52
-1152
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
...resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
+0
-345
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveDetails.js
...urces/template/js/checkWorkLeave/checkWorkLeaveDetails.js
+0
-23
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
...esources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
+0
-371
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveList.js
...esources/template/js/checkWorkLeave/checkWorkLeaveList.js
+26
-50
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveAdd.html
...ources/template/tpl/checkWorkLeave/checkWorkLeaveAdd.html
+0
-101
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveDetails.html
...es/template/tpl/checkWorkLeave/checkWorkLeaveDetails.html
+0
-104
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveEdit.html
...urces/template/tpl/checkWorkLeave/checkWorkLeaveEdit.html
+0
-102
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveList.html
...urces/template/tpl/checkWorkLeave/checkWorkLeaveList.html
+25
-55
checkwork/src/main/resources/template/tpl/checkWorkOvertime/checkWorkOvertimeList.html
...template/tpl/checkWorkOvertime/checkWorkOvertimeList.html
+1
-1
未找到文件。
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
已删除
100644 → 0
浏览文件 @
6e0a6634
// 请假类型集合
var
leaveType
=
new
Array
();
// 员工考勤班次
var
checkWorkTime
=
new
Array
();
// 员工年假/补休
var
staffYearHoliday
=
0
;
var
holidayNumber
=
0
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
var
serviceClassName
=
sysServiceMation
[
"
checkWorkLeave
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
// 请假日期的初始化集合
var
leaveDayElem
=
new
Array
();
var
leaveStartElem
=
new
Array
();
var
leaveEndElem
=
new
Array
();
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
)
{
$
(
"
#useTitle
"
).
html
(
"
用户请假申请单-
"
+
getYMDFormatDate
()
+
'
-
'
+
data
.
bean
.
userName
);
$
(
"
#useName
"
).
html
(
data
.
bean
.
userName
);
});
// 获取当前员工的年假
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
staff010
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
staffYearHoliday
=
json
.
bean
.
annualLeave
;
holidayNumber
=
json
.
bean
.
holidayNumber
;
$
(
"
#messageTips
"
).
html
(
"
截至当前剩余年假:
"
+
staffYearHoliday
+
"
小时,剩余补休为:
"
+
holidayNumber
+
"
小时
"
);
// 获取当前登陆人的考勤班次
checkWorkUtil
.
getCurrentUserCheckWorkTimeList
(
function
(
json
)
{
$
.
each
(
json
.
rows
,
function
(
i
,
item
)
{
checkWorkTime
.
push
({
id
:
item
.
timeId
,
name
:
item
.
title
,
days
:
item
.
days
,
startTime
:
item
.
startTime
,
endTime
:
item
.
endTime
,
restStartTime
:
item
.
restStartTime
,
restEndTime
:
item
.
restEndTime
,
type
:
item
.
type
});
});
initTypeHtml
();
});
}});
// 初始化请假类型
function
initTypeHtml
()
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysfdsettings001
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
.
each
(
JSON
.
parse
(
json
.
bean
.
holidaysTypeJson
),
function
(
i
,
item
)
{
leaveType
.
push
({
id
:
item
.
holidayNo
,
name
:
item
.
holidayName
,
whetherYearHour
:
item
.
whetherYearHour
,
whetherComLeave
:
item
.
whetherComLeave
});
});
// 考勤班次变化
form
.
on
(
'
select(timeId)
'
,
function
(
data
)
{
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
timeId
"
,
""
);
var
thisRowValue
=
data
.
value
;
$
(
"
#leaveDay
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveStartTime
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveEndTime
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveHour
"
+
thisRowNum
).
html
(
"
0
"
);
var
timeMation
=
getInPoingArr
(
checkWorkTime
,
"
id
"
,
thisRowValue
);
if
(
timeMation
!=
null
){
leaveDayElem
[
thisRowNum
].
config
.
chooseDay
=
timeMation
.
days
;
var
min
=
{
year
:
getYMDFormatDate
().
split
(
'
-
'
)[
0
],
month
:
getYMDFormatDate
().
split
(
'
-
'
)[
1
]
-
1
,
//关键
date
:
getYMDFormatDate
().
split
(
'
-
'
)[
2
],
hours
:
timeMation
.
startTime
.
split
(
'
:
'
)[
0
],
minutes
:
timeMation
.
startTime
.
split
(
'
:
'
)[
1
]
-
1
,
seconds
:
'
00
'
};
var
max
=
{
year
:
getYMDFormatDate
().
split
(
'
-
'
)[
0
],
month
:
getYMDFormatDate
().
split
(
'
-
'
)[
1
]
-
1
,
//关键
date
:
getYMDFormatDate
().
split
(
'
-
'
)[
2
],
hours
:
timeMation
.
endTime
.
split
(
'
:
'
)[
0
],
minutes
:
timeMation
.
endTime
.
split
(
'
:
'
)[
1
]
+
1
,
seconds
:
'
00
'
};
leaveStartElem
[
thisRowNum
].
config
.
min
=
min
;
leaveStartElem
[
thisRowNum
].
config
.
max
=
max
;
leaveEndElem
[
thisRowNum
].
config
.
min
=
min
;
leaveEndElem
[
thisRowNum
].
config
.
max
=
max
;
$
(
"
#workTime
"
+
thisRowNum
).
html
(
timeMation
.
startTime
+
"
~
"
+
timeMation
.
endTime
);
}
else
{
leaveDayElem
[
thisRowNum
].
config
.
chooseDay
=
[];
$
(
"
#workTime
"
+
thisRowNum
).
html
(
"
-
"
);
}
});
form
.
render
();
matchingLanguage
();
// 初始化一行数据
addRow
();
}});
}
skyeyeEnclosure
.
init
(
'
enclosureUpload
'
);
// 保存为草稿
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
1
"
,
""
);
}
return
false
;
});
// 提交审批
form
.
on
(
'
submit(formSubBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
// 获取请假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择请假日期数据
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
tableData
=
new
Array
();
var
noError
=
false
;
//循环遍历表格数据时,是否有其他错误信息
var
useYearHour
=
0
;
var
useHolidayNumber
=
0
;
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
if
(
inTableDataArray
(
$
(
"
#timeId
"
+
rowNum
).
val
(),
$
(
"
#leaveDay
"
+
rowNum
).
val
(),
tableData
)){
winui
.
window
.
msg
(
'
同一班次中不允许出现相同的请假日期.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
var
leaveTypeMation
=
getInPoingArr
(
leaveType
,
"
id
"
,
$
(
"
#leaveType
"
+
rowNum
).
val
());
if
(
leaveTypeMation
.
whetherYearHour
==
1
){
// 使用年假
useYearHour
=
sum
(
useYearHour
,
$
(
"
#leaveHour
"
+
rowNum
).
html
());
}
if
(
leaveTypeMation
.
whetherComLeave
==
1
){
// 使用补休
useHolidayNumber
=
sum
(
useHolidayNumber
,
$
(
"
#leaveHour
"
+
rowNum
).
html
());
}
var
row
=
{
timeId
:
$
(
"
#timeId
"
+
rowNum
).
val
(),
timeStartTime
:
$
(
"
#workTime
"
+
rowNum
).
html
().
split
(
'
~
'
)[
0
].
trim
(),
timeEndTime
:
$
(
"
#workTime
"
+
rowNum
).
html
().
split
(
'
~
'
)[
1
].
trim
(),
leaveType
:
$
(
"
#leaveType
"
+
rowNum
).
val
(),
leaveTypeName
:
$
(
"
#leaveType
"
+
rowNum
+
"
option:checked
"
).
text
(),
leaveDay
:
$
(
"
#leaveDay
"
+
rowNum
).
val
(),
leaveStartTime
:
$
(
"
#leaveStartTime
"
+
rowNum
).
val
(),
leaveEndTime
:
$
(
"
#leaveEndTime
"
+
rowNum
).
val
(),
leaveHour
:
$
(
"
#leaveHour
"
+
rowNum
).
html
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
tableData
.
push
(
row
);
});
if
(
noError
)
{
return
false
;
}
if
(
useYearHour
>
staffYearHoliday
){
winui
.
window
.
msg
(
'
超出剩余年假,请修改假期类型.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
useHolidayNumber
>
holidayNumber
){
winui
.
window
.
msg
(
'
超出剩余补休,请修改假期类型.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
params
=
{
title
:
$
(
"
#useTitle
"
).
html
(),
remark
:
$
(
"
#remark
"
).
val
(),
leaveDayStr
:
JSON
.
stringify
(
tableData
),
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
subType
:
subType
,
// 表单类型 1.保存草稿 2.提交审批
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
// 判断选中的请假日期是否也在数组中
function
inTableDataArray
(
timeId
,
leaveDay
,
array
)
{
var
isIn
=
false
;
$
.
each
(
array
,
function
(
i
,
item
)
{
if
(
item
.
timeId
===
timeId
&&
item
.
leaveDay
===
leaveDay
)
{
isIn
=
true
;
return
false
;
}
});
return
isIn
;
}
// 新增行
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
()
{
addRow
();
});
// 删除行
$
(
"
body
"
).
on
(
"
click
"
,
"
#deleteRow
"
,
function
()
{
deleteRow
();
});
// 新增行
function
addRow
()
{
var
par
=
{
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
timeId
:
"
timeId
"
+
rowNum
.
toString
(),
//班次id
workTime
:
"
workTime
"
+
rowNum
.
toString
(),
//打卡时间id
leaveType
:
"
leaveType
"
+
rowNum
.
toString
(),
//请假类型id
leaveDay
:
"
leaveDay
"
+
rowNum
.
toString
(),
//请假日期id
leaveStartTime
:
"
leaveStartTime
"
+
rowNum
.
toString
(),
//开始时间id
leaveEndTime
:
"
leaveEndTime
"
+
rowNum
.
toString
(),
//结束时间id
leaveHour
:
"
leaveHour
"
+
rowNum
.
toString
(),
//请假工时id
remark
:
"
remark
"
+
rowNum
.
toString
()
//备注id
};
$
(
"
#beanTable
"
).
append
(
getDataUseHandlebars
(
beanTemplate
,
par
));
$
(
"
#timeId
"
+
rowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
checkWorkTime
}));
$
(
"
#leaveType
"
+
rowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
leaveType
}));
leaveDayElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
'
#leaveDay
'
+
rowNum
.
toString
(),
calendar
:
true
,
min
:
getThirdDayToDate
()
});
leaveStartElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
"
#leaveStartTime
"
+
rowNum
.
toString
(),
format
:
'
HH:mm
'
,
type
:
'
timeminute
'
,
minutesinterval
:
30
,
btns
:
[
'
confirm
'
],
done
:
function
(
value
,
date
){
var
num
=
$
(
this
)[
0
].
elem
.
selector
.
replace
(
"
#
"
,
""
).
replace
(
"
leaveStartTime
"
,
""
);
$
(
"
#leaveStartTime
"
+
num
).
val
(
value
);
leaveEndElem
[
num
].
config
.
min
=
{
year
:
date
.
year
,
month
:
date
.
month
-
1
,
//关键
date
:
date
.
date
,
hours
:
date
.
hours
,
minutes
:
date
.
minutes
,
seconds
:
date
.
seconds
};
// 计算工时
calcLeaveHour
(
num
);
}
});
leaveEndElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
"
#leaveEndTime
"
+
rowNum
.
toString
(),
format
:
'
HH:mm
'
,
type
:
'
timeminute
'
,
minutesinterval
:
30
,
btns
:
[
'
confirm
'
],
done
:
function
(
value
,
date
){
var
num
=
$
(
this
)[
0
].
elem
.
selector
.
replace
(
"
#
"
,
""
).
replace
(
"
leaveEndTime
"
,
""
);
$
(
"
#leaveEndTime
"
+
num
).
val
(
value
);
leaveStartElem
[
num
].
config
.
max
=
{
year
:
date
.
year
,
month
:
date
.
month
-
1
,
//关键
date
:
date
.
date
,
hours
:
date
.
hours
,
minutes
:
date
.
minutes
,
seconds
:
date
.
seconds
};
// 计算工时
calcLeaveHour
(
num
);
}
});
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
rowNum
++
;
}
// 删除行
function
deleteRow
()
{
var
checkRow
=
$
(
"
#beanTable input[type='checkbox'][name='tableCheckRow']:checked
"
);
if
(
checkRow
.
length
>
0
)
{
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
$
(
item
).
parent
().
parent
().
remove
();
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
/**
* 计算请假工时
*
* @param num 表格的序号
*/
function
calcLeaveHour
(
num
){
var
startTime
=
$
(
"
#leaveStartTime
"
+
num
).
val
();
var
endTime
=
$
(
"
#leaveEndTime
"
+
num
).
val
();
if
(
!
isNull
(
startTime
)
&&
!
isNull
(
endTime
)){
var
timeId
=
$
(
"
#timeId
"
+
num
).
val
();
if
(
!
isNull
(
timeId
)){
var
hour
=
"
0
"
;
var
timeMation
=
getInPoingArr
(
checkWorkTime
,
"
id
"
,
timeId
);
startTime
=
startTime
+
"
:00
"
;
endTime
=
endTime
+
"
:00
"
;
// 作息时间是否为空
if
(
!
isNull
(
timeMation
.
restStartTime
)
&&
!
isNull
(
timeMation
.
restEndTime
)){
var
restStartTime
=
timeMation
.
restStartTime
+
"
:00
"
;
var
restEndTime
=
timeMation
.
restEndTime
+
"
:00
"
;
if
(
compare_HHmmss
(
restStartTime
,
endTime
)
||
compare_HHmmss
(
startTime
,
restEndTime
)){
// 请假结束时间比作息开始时间小或者请假开始时间比作息结束时间大,说明没有与作息时间重合的时间
hour
=
division
(
timeDifference
(
startTime
,
endTime
),
60
);
}
else
{
var
overlapTime
=
getOverlapTime
(
startTime
,
endTime
,
restStartTime
,
restEndTime
);
// 时间计算为:选择的请假时间时间减去与作息时间重复的时间段
hour
=
division
(
subtraction
(
timeDifference
(
startTime
,
endTime
),
timeDifference
(
overlapTime
[
0
],
overlapTime
[
1
])),
60
);
}
}
else
{
hour
=
division
(
timeDifference
(
startTime
,
endTime
),
60
);
}
$
(
"
#leaveHour
"
+
num
).
html
(
hour
);
}
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveDetails.js
已删除
100644 → 0
浏览文件 @
6e0a6634
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
$
=
layui
.
$
;
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
json
.
bean
.
stateName
=
getStateNameByState
(
json
.
bean
.
state
,
json
.
bean
.
stateName
);
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#useTemplate
"
).
html
(),
json
));
// 附件回显
skyeyeEnclosure
.
showDetails
({
"
enclosureUpload
"
:
json
.
bean
.
enclosureInfo
});
form
.
render
();
matchingLanguage
();
}});
});
});
\ No newline at end of file
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
已删除
100644 → 0
浏览文件 @
6e0a6634
// 请假类型集合
var
leaveType
=
new
Array
();
// 员工考勤班次
var
checkWorkTime
=
new
Array
();
// 员工年假/补休
var
staffYearHoliday
=
0
;
var
holidayNumber
=
0
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
var
serviceClassName
=
sysServiceMation
[
"
checkWorkLeave
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
// 请假日期的初始化集合
var
leaveDayElem
=
new
Array
();
var
leaveStartElem
=
new
Array
();
var
leaveEndElem
=
new
Array
();
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave004
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
mation
)
{
$
(
"
#useTitle
"
).
html
(
mation
.
bean
.
title
);
$
(
"
#useName
"
).
html
(
mation
.
bean
.
userName
);
$
(
"
#remark
"
).
val
(
mation
.
bean
.
remark
);
// 附件回显
skyeyeEnclosure
.
initTypeISData
({
'
enclosureUpload
'
:
mation
.
bean
.
enclosureInfo
});
if
(
mation
.
bean
.
state
==
'
1
'
){
$
(
"
.typeTwo
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
$
(
"
.typeOne
"
).
removeClass
(
"
layui-hide
"
);
}
// 获取当前员工的年假
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
staff010
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
staffYearHoliday
=
json
.
bean
.
annualLeave
;
holidayNumber
=
json
.
bean
.
holidayNumber
;
$
(
"
#messageTips
"
).
html
(
"
截至当前剩余年假:
"
+
staffYearHoliday
+
"
小时,剩余补休为:
"
+
holidayNumber
+
"
小时
"
);
// 获取当前登陆人的考勤班次
checkWorkUtil
.
getCurrentUserCheckWorkTimeList
(
function
(
json
)
{
$
.
each
(
json
.
rows
,
function
(
i
,
item
)
{
checkWorkTime
.
push
({
id
:
item
.
timeId
,
name
:
item
.
title
,
days
:
item
.
days
,
startTime
:
item
.
startTime
,
endTime
:
item
.
endTime
,
restStartTime
:
item
.
restStartTime
,
restEndTime
:
item
.
restEndTime
,
type
:
item
.
type
});
});
initTypeHtml
(
mation
);
});
}});
}});
// 初始化请假类型
function
initTypeHtml
(
mation
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysfdsettings001
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
.
each
(
JSON
.
parse
(
json
.
bean
.
holidaysTypeJson
),
function
(
i
,
item
)
{
leaveType
.
push
({
id
:
item
.
holidayNo
,
name
:
item
.
holidayName
,
whetherYearHour
:
item
.
whetherYearHour
,
whetherComLeave
:
item
.
whetherComLeave
});
});
// 考勤班次变化
form
.
on
(
'
select(timeId)
'
,
function
(
data
)
{
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
timeId
"
,
""
);
var
thisRowValue
=
data
.
value
;
$
(
"
#leaveDay
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveStartTime
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveEndTime
"
+
thisRowNum
).
val
(
""
);
$
(
"
#leaveHour
"
+
thisRowNum
).
html
(
"
0
"
);
var
timeMation
=
getInPoingArr
(
checkWorkTime
,
"
id
"
,
thisRowValue
);
if
(
timeMation
!=
null
){
leaveDayElem
[
thisRowNum
].
config
.
chooseDay
=
timeMation
.
days
;
var
min
=
{
year
:
getYMDFormatDate
().
split
(
'
-
'
)[
0
],
month
:
getYMDFormatDate
().
split
(
'
-
'
)[
1
]
-
1
,
//关键
date
:
getYMDFormatDate
().
split
(
'
-
'
)[
2
],
hours
:
timeMation
.
startTime
.
split
(
'
:
'
)[
0
],
minutes
:
timeMation
.
startTime
.
split
(
'
:
'
)[
1
]
-
1
,
seconds
:
'
00
'
};
var
max
=
{
year
:
getYMDFormatDate
().
split
(
'
-
'
)[
0
],
month
:
getYMDFormatDate
().
split
(
'
-
'
)[
1
]
-
1
,
//关键
date
:
getYMDFormatDate
().
split
(
'
-
'
)[
2
],
hours
:
timeMation
.
endTime
.
split
(
'
:
'
)[
0
],
minutes
:
timeMation
.
endTime
.
split
(
'
:
'
)[
1
]
+
1
,
seconds
:
'
00
'
};
leaveStartElem
[
thisRowNum
].
config
.
min
=
min
;
leaveStartElem
[
thisRowNum
].
config
.
max
=
max
;
leaveEndElem
[
thisRowNum
].
config
.
min
=
min
;
leaveEndElem
[
thisRowNum
].
config
.
max
=
max
;
$
(
"
#workTime
"
+
thisRowNum
).
html
(
timeMation
.
startTime
+
"
~
"
+
timeMation
.
endTime
);
}
else
{
leaveDayElem
[
thisRowNum
].
config
.
chooseDay
=
[];
$
(
"
#workTime
"
+
thisRowNum
).
html
(
"
-
"
);
}
});
form
.
render
();
matchingLanguage
();
$
.
each
(
mation
.
bean
.
leaveDay
,
function
(
i
,
item
)
{
addRow
();
$
(
"
#timeId
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
timeId
);
$
(
"
#workTime
"
+
(
rowNum
-
1
).
toString
()).
html
(
item
.
timeStartTime
+
"
~
"
+
item
.
timeEndTime
);
$
(
"
#leaveType
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
leaveType
);
$
(
"
#leaveDay
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
leaveDay
);
$
(
"
#leaveStartTime
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
leaveStartTime
);
$
(
"
#leaveEndTime
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
leaveEndTime
);
$
(
"
#leaveHour
"
+
(
rowNum
-
1
).
toString
()).
html
(
item
.
leaveHour
);
$
(
"
#remark
"
+
(
rowNum
-
1
).
toString
()).
val
(
item
.
remark
);
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
});
}});
}
// 保存为草稿
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
1
'
,
""
);
}
return
false
;
});
// 提交审批
form
.
on
(
'
submit(formSubBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 工作流中保存
form
.
on
(
'
submit(subBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
3
'
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
// 获取请假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择请假日期数据
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
tableData
=
new
Array
();
var
noError
=
false
;
//循环遍历表格数据时,是否有其他错误信息
var
useYearHour
=
0
;
var
useHolidayNumber
=
0
;
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
if
(
inTableDataArray
(
$
(
"
#timeId
"
+
rowNum
).
val
(),
$
(
"
#leaveDay
"
+
rowNum
).
val
(),
tableData
)){
winui
.
window
.
msg
(
'
同一班次中不允许出现相同的请假日期.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
var
leaveTypeMation
=
getInPoingArr
(
leaveType
,
"
id
"
,
$
(
"
#leaveType
"
+
rowNum
).
val
());
if
(
leaveTypeMation
.
whetherYearHour
==
1
){
// 使用年假
useYearHour
=
sum
(
useYearHour
,
$
(
"
#leaveHour
"
+
rowNum
).
html
());
}
if
(
leaveTypeMation
.
whetherComLeave
==
1
){
// 使用补休
useHolidayNumber
=
sum
(
useHolidayNumber
,
$
(
"
#leaveHour
"
+
rowNum
).
html
());
}
var
row
=
{
timeId
:
$
(
"
#timeId
"
+
rowNum
).
val
(),
timeStartTime
:
$
(
"
#workTime
"
+
rowNum
).
html
().
split
(
'
~
'
)[
0
].
trim
(),
timeEndTime
:
$
(
"
#workTime
"
+
rowNum
).
html
().
split
(
'
~
'
)[
1
].
trim
(),
leaveType
:
$
(
"
#leaveType
"
+
rowNum
).
val
(),
leaveTypeName
:
$
(
"
#leaveType
"
+
rowNum
+
"
option:checked
"
).
text
(),
leaveDay
:
$
(
"
#leaveDay
"
+
rowNum
).
val
(),
leaveStartTime
:
$
(
"
#leaveStartTime
"
+
rowNum
).
val
(),
leaveEndTime
:
$
(
"
#leaveEndTime
"
+
rowNum
).
val
(),
leaveHour
:
$
(
"
#leaveHour
"
+
rowNum
).
html
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
tableData
.
push
(
row
);
});
if
(
noError
)
{
return
false
;
}
if
(
useYearHour
>
staffYearHoliday
){
winui
.
window
.
msg
(
'
超出剩余年假,请修改假期类型.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
useHolidayNumber
>
holidayNumber
){
winui
.
window
.
msg
(
'
超出剩余补休,请修改假期类型.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
params
=
{
rowId
:
parent
.
rowId
,
remark
:
$
(
"
#remark
"
).
val
(),
leaveDayStr
:
JSON
.
stringify
(
tableData
),
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
subType
:
subType
,
// 1:保存为草稿 2.提交到工作流 3.在工作流中编辑
approvalId
:
approvalId
,
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave005
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
PUT
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
// 判断选中的请假日期是否也在数组中
function
inTableDataArray
(
timeId
,
leaveDay
,
array
)
{
var
isIn
=
false
;
$
.
each
(
array
,
function
(
i
,
item
)
{
if
(
item
.
timeId
===
timeId
&&
item
.
leaveDay
===
leaveDay
)
{
isIn
=
true
;
return
false
;
}
});
return
isIn
;
}
// 新增行
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
()
{
addRow
();
});
// 删除行
$
(
"
body
"
).
on
(
"
click
"
,
"
#deleteRow
"
,
function
()
{
deleteRow
();
});
// 新增行
function
addRow
()
{
var
par
=
{
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
timeId
:
"
timeId
"
+
rowNum
.
toString
(),
//班次id
workTime
:
"
workTime
"
+
rowNum
.
toString
(),
//打卡时间id
leaveType
:
"
leaveType
"
+
rowNum
.
toString
(),
//请假类型id
leaveDay
:
"
leaveDay
"
+
rowNum
.
toString
(),
//请假日期id
leaveStartTime
:
"
leaveStartTime
"
+
rowNum
.
toString
(),
//开始时间id
leaveEndTime
:
"
leaveEndTime
"
+
rowNum
.
toString
(),
//结束时间id
leaveHour
:
"
leaveHour
"
+
rowNum
.
toString
(),
//请假工时id
remark
:
"
remark
"
+
rowNum
.
toString
()
//备注id
};
$
(
"
#beanTable
"
).
append
(
getDataUseHandlebars
(
beanTemplate
,
par
));
$
(
"
#timeId
"
+
rowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
checkWorkTime
}));
$
(
"
#leaveType
"
+
rowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
leaveType
}));
leaveDayElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
'
#leaveDay
'
+
rowNum
.
toString
(),
calendar
:
true
,
min
:
getThirdDayToDate
()
});
leaveStartElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
"
#leaveStartTime
"
+
rowNum
.
toString
(),
format
:
'
HH:mm
'
,
type
:
'
timeminute
'
,
minutesinterval
:
30
,
btns
:
[
'
confirm
'
],
done
:
function
(
value
,
date
){
var
num
=
$
(
this
)[
0
].
elem
.
selector
.
replace
(
"
#
"
,
""
).
replace
(
"
leaveStartTime
"
,
""
);
$
(
"
#leaveStartTime
"
+
num
).
val
(
value
);
leaveEndElem
[
num
].
config
.
min
=
{
year
:
date
.
year
,
month
:
date
.
month
-
1
,
//关键
date
:
date
.
date
,
hours
:
date
.
hours
,
minutes
:
date
.
minutes
,
seconds
:
date
.
seconds
};
// 计算工时
calcLeaveHour
(
num
);
}
});
leaveEndElem
[
rowNum
.
toString
()]
=
laydate
.
render
({
elem
:
"
#leaveEndTime
"
+
rowNum
.
toString
(),
format
:
'
HH:mm
'
,
type
:
'
timeminute
'
,
minutesinterval
:
30
,
btns
:
[
'
confirm
'
],
done
:
function
(
value
,
date
){
var
num
=
$
(
this
)[
0
].
elem
.
selector
.
replace
(
"
#
"
,
""
).
replace
(
"
leaveEndTime
"
,
""
);
$
(
"
#leaveEndTime
"
+
num
).
val
(
value
);
leaveStartElem
[
num
].
config
.
max
=
{
year
:
date
.
year
,
month
:
date
.
month
-
1
,
//关键
date
:
date
.
date
,
hours
:
date
.
hours
,
minutes
:
date
.
minutes
,
seconds
:
date
.
seconds
};
// 计算工时
calcLeaveHour
(
num
);
}
});
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
rowNum
++
;
}
// 删除行
function
deleteRow
()
{
var
checkRow
=
$
(
"
#beanTable input[type='checkbox'][name='tableCheckRow']:checked
"
);
if
(
checkRow
.
length
>
0
)
{
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
$
(
item
).
parent
().
parent
().
remove
();
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
/**
* 计算请假工时
*
* @param num 表格的序号
*/
function
calcLeaveHour
(
num
){
var
startTime
=
$
(
"
#leaveStartTime
"
+
num
).
val
();
var
endTime
=
$
(
"
#leaveEndTime
"
+
num
).
val
();
if
(
!
isNull
(
startTime
)
&&
!
isNull
(
endTime
)){
var
timeId
=
$
(
"
#timeId
"
+
num
).
val
();
if
(
!
isNull
(
timeId
)){
var
hour
=
"
0
"
;
var
timeMation
=
getInPoingArr
(
checkWorkTime
,
"
id
"
,
timeId
);
startTime
=
startTime
+
"
:00
"
;
endTime
=
endTime
+
"
:00
"
;
// 作息时间是否为空
if
(
!
isNull
(
timeMation
.
restStartTime
)
&&
!
isNull
(
timeMation
.
restEndTime
)){
var
restStartTime
=
timeMation
.
restStartTime
+
"
:00
"
;
var
restEndTime
=
timeMation
.
restEndTime
+
"
:00
"
;
if
(
compare_HHmmss
(
restStartTime
,
endTime
)
||
compare_HHmmss
(
startTime
,
restEndTime
)){
// 请假结束时间比作息开始时间小或者请假开始时间比作息结束时间大,说明没有与作息时间重合的时间
hour
=
division
(
timeDifference
(
startTime
,
endTime
),
60
);
}
else
{
var
overlapTime
=
getOverlapTime
(
startTime
,
endTime
,
restStartTime
,
restEndTime
);
// 时间计算为:选择的请假时间时间减去与作息时间重复的时间段
hour
=
division
(
subtraction
(
timeDifference
(
startTime
,
endTime
),
timeDifference
(
overlapTime
[
0
],
overlapTime
[
1
])),
60
);
}
}
else
{
hour
=
division
(
timeDifference
(
startTime
,
endTime
),
60
);
}
$
(
"
#leaveHour
"
+
num
).
html
(
hour
);
}
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveList.js
浏览文件 @
86debcc3
var
rowId
=
""
;
var
taskType
=
""
;
//流程详情的主标题
var
processInstanceId
=
""
;
//流程id
layui
.
config
({
layui
.
config
({
base
:
basePath
,
base
:
basePath
,
version
:
skyeyeVersion
version
:
skyeyeVersion
}).
extend
({
}).
extend
({
window
:
'
js/winui.window
'
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
winui
.
renderColor
();
var
$
=
layui
.
$
,
var
$
=
layui
.
$
,
form
=
layui
.
form
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
table
=
layui
.
table
;
var
serviceClassName
=
sysServiceMation
[
"
checkWorkLeave
"
][
"
key
"
];
var
serviceClassName
=
sysServiceMation
[
"
checkWorkLeave
"
][
"
key
"
];
// 新增请假申请
authBtn
(
'
1616239712898
'
);
authBtn
(
'
1616239712898
'
);
// 申请时间
laydate
.
render
({
elem
:
'
#applyTime
'
,
range
:
'
~
'
});
// 我的请假申请列表
// 我的请假申请列表
table
.
render
({
table
.
render
({
id
:
'
messageTable
'
,
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
method
:
'
post
'
,
url
:
flowable
BasePath
+
'
checkworkleave001
'
,
url
:
sysMainMation
.
checkwork
BasePath
+
'
checkworkleave001
'
,
where
:
getTableParams
(),
where
:
getTableParams
(),
even
:
true
,
even
:
true
,
page
:
true
,
page
:
true
,
...
@@ -35,29 +26,35 @@ layui.config({
...
@@ -35,29 +26,35 @@ layui.config({
limit
:
getLimit
(),
limit
:
getLimit
(),
cols
:
[[
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
标题
'
,
width
:
300
,
templet
:
function
(
d
)
{
{
field
:
'
oddNumber
'
,
title
:
'
单号
'
,
width
:
200
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
'
<a lay-event="de
dails" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
return
'
<a lay-event="de
tails" class="notice-title-click">
'
+
d
.
oddNumber
+
'
</a>
'
;
}},
}},
{
field
:
'
oddNum
'
,
title
:
'
单号
'
,
width
:
2
00
},
{
field
:
'
name
'
,
title
:
'
标题
'
,
width
:
3
00
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
100
,
templet
:
function
(
d
)
{
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}},
}},
{
field
:
'
state
Name
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
activitiUtil
.
showStateName2
(
d
.
state
,
1
);
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
flowableStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
}},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
width
:
150
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
257
,
toolbar
:
'
#messageTableBar
'
}
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
257
,
toolbar
:
'
#messageTableBar
'
}
]],
]],
done
:
function
(
json
)
{
done
:
function
(
json
)
{
matchingLanguage
();
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入单号,标题
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
}
});
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
de
d
ails
'
)
{
// 详情
if
(
layEvent
===
'
de
t
ails
'
)
{
// 详情
de
d
ails
(
data
);
de
t
ails
(
data
);
}
else
if
(
layEvent
===
'
edit
'
)
{
// 编辑
}
else
if
(
layEvent
===
'
edit
'
)
{
// 编辑
edit
(
data
);
edit
(
data
);
}
else
if
(
layEvent
===
'
subApproval
'
)
{
// 提交审批
}
else
if
(
layEvent
===
'
subApproval
'
)
{
// 提交审批
...
@@ -74,7 +71,7 @@ layui.config({
...
@@ -74,7 +71,7 @@ layui.config({
// 新增请假申请
// 新增请假申请
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/checkWorkLeave/checkWorkLeaveAdd.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023070400001
'
,
null
)
,
title
:
"
请假申请
"
,
title
:
"
请假申请
"
,
pageId
:
"
checkWorkLeaveAdd
"
,
pageId
:
"
checkWorkLeaveAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -88,7 +85,7 @@ layui.config({
...
@@ -88,7 +85,7 @@ layui.config({
function
revoke
(
data
)
{
function
revoke
(
data
)
{
layer
.
confirm
(
'
确认撤销该申请吗?
'
,
{
icon
:
3
,
title
:
'
撤销操作
'
},
function
(
index
)
{
layer
.
confirm
(
'
确认撤销该申请吗?
'
,
{
icon
:
3
,
title
:
'
撤销操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
checkworkleave009
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
checkwork
BasePath
+
"
checkworkleave009
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -97,9 +94,8 @@ layui.config({
...
@@ -97,9 +94,8 @@ layui.config({
// 编辑请假申请
// 编辑请假申请
function
edit
(
data
)
{
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/checkWorkLeave/checkWorkLeaveEdit.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023070400002&id=
'
+
data
.
id
,
null
)
,
title
:
"
请假申请
"
,
title
:
"
请假申请
"
,
pageId
:
"
checkWorkLeaveEdit
"
,
pageId
:
"
checkWorkLeaveEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -116,10 +112,10 @@ layui.config({
...
@@ -116,10 +112,10 @@ layui.config({
layer
.
close
(
index
);
layer
.
close
(
index
);
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
var
params
=
{
var
params
=
{
rowI
d
:
data
.
id
,
i
d
:
data
.
id
,
approvalId
:
approvalId
approvalId
:
approvalId
};
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave006
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
checkworkBasePath
+
"
checkworkleave006
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -131,7 +127,7 @@ layui.config({
...
@@ -131,7 +127,7 @@ layui.config({
function
cancellation
(
data
)
{
function
cancellation
(
data
)
{
layer
.
confirm
(
'
确认作废该申请吗?
'
,
{
icon
:
3
,
title
:
'
作废操作
'
},
function
(
index
)
{
layer
.
confirm
(
'
确认作废该申请吗?
'
,
{
icon
:
3
,
title
:
'
作废操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
checkworkleave007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
checkworkBasePath
+
"
checkworkleave007
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -139,10 +135,9 @@ layui.config({
...
@@ -139,10 +135,9 @@ layui.config({
}
}
// 请假申请详情
// 请假申请详情
function
dedails
(
data
)
{
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/checkWorkLeave/checkWorkLeaveDetails.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023070400003&id=
'
+
data
.
id
,
null
)
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
checkWorkLeaveDetails
"
,
pageId
:
"
checkWorkLeaveDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -152,34 +147,15 @@ layui.config({
...
@@ -152,34 +147,15 @@ layui.config({
}
}
form
.
render
();
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
// 刷新
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
loadTable
();
});
});
// 刷新数据
function
loadTable
()
{
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
}
function
getTableParams
()
{
function
getTableParams
()
{
var
startTime
=
""
,
endTime
=
""
;
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
if
(
!
isNull
(
$
(
"
#applyTime
"
).
val
()))
{
startTime
=
$
(
"
#applyTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#applyTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
state
:
$
(
"
#state
"
).
val
(),
startTime
:
startTime
,
endTime
:
endTime
};
}
}
exports
(
'
checkWorkLeaveList
'
,
{});
exports
(
'
checkWorkLeaveList
'
,
{});
...
...
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveAdd.html
已删除
100644 → 0
浏览文件 @
6e0a6634
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
id=
"useTitle"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
步骤
</label>
<div
class=
"layui-input-block ver-center"
>
填单
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
责任人
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
id=
"useName"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
请假日期
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<button
id=
"addRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增行
</button>
<button
id=
"deleteRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-trash-o"
aria-hidden=
"true"
></i>
删除行
</button>
</div>
</div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"messageTips"
></div>
<table
class=
"layui-table"
>
<thead>
<tr>
<th
style=
"width: 30px;"
></th>
<th
style=
"width: 100px;"
>
班次
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
打卡时间
</th>
<th
style=
"width: 80px;"
>
假期类型
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 100px;"
>
请假日期
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
开始时间
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
结束时间
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
请假工时
</th>
<th
style=
"min-width: 80px;"
>
备注
</th>
</tr>
</thead>
<tbody
id=
"beanTable"
class=
"insurance-table"
>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关描述
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入相关描述"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关附件
</label>
<div
class=
"layui-input-block"
id=
"enclosureUpload"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
>
保存为草稿
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formSubBean"
>
提交审批
</button>
</div>
</div>
</form>
</div>
<!-- beanTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
<
tr
trcusid
=
"
{{trId}}
"
>
<
td
><
input
type
=
"
checkbox
"
rowId
=
"
{{id}}
"
lay
-
filter
=
"
checkboxProperty
"
name
=
"
tableCheckRow
"
/><
/td
>
<
td
><
select
id
=
"
{{timeId}}
"
lay
-
filter
=
"
timeId
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
id
=
"
{{workTime}}
"
>-<
/td
>
<
td
><
select
id
=
"
{{leaveType}}
"
lay
-
filter
=
"
leaveType
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveDay}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveStartTime}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveEndTime}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
id
=
"
{{leaveHour}}
"
>
0
<
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{remark}}
"
/><
/td
>
<
/tr
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/checkWorkLeave/
'
}).
use
(
'
checkWorkLeaveAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveDetails.html
已删除
100644 → 0
浏览文件 @
6e0a6634
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<!-- useTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"useTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
标题
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
title
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
单号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
oddNumber
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
状态
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{{
stateName
}}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
责任人
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
userName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
申请时间
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
createTime
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
请假日期
:
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
table
class
=
"
layui-table
"
>
<
thead
>
<
tr
>
<
th
style
=
"
width: 100px;
"
>
班次
<
/th
>
<
th
style
=
"
width: 80px;
"
>
打卡时间
<
/th
>
<
th
style
=
"
width: 80px;
"
>
假期类型
<
/th
>
<
th
style
=
"
width: 100px;
"
>
请假日期
<
/th
>
<
th
style
=
"
width: 80px;
"
>
开始时间
<
/th
>
<
th
style
=
"
width: 80px;
"
>
结束时间
<
/th
>
<
th
style
=
"
width: 80px;
"
>
请假工时
<
/th
>
<
th
style
=
"
width: 80px;
"
>
状态
<
/th
>
<
th
style
=
"
min-width: 80px;
"
>
备注
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
id
=
"
beanTable
"
class
=
"
insurance-table
"
>
{{
#
each
leaveDay
}}
<
tr
>
<
td
>
{{
timeName
}}
<
/td
>
<
td
>
{{
timeStartTime
}}
~
{{
timeEndTime
}}
<
/td
>
<
td
>
{{
leaveTypeName
}}
<
/td
>
<
td
>
{{
leaveDay
}}
<
/td
>
<
td
>
{{
leaveStartTime
}}
<
/td
>
<
td
>
{{
leaveEndTime
}}
<
/td
>
<
td
>
{{
leaveHour
}}
<
/td
>
<
td
>
{{
stateName
}}
<
/td
>
<
td
>
{{
remark
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
相关描述
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
remark
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
相关附件
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
enclosureUpload
"
>
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/checkWorkLeave/
'
}).
use
(
'
checkWorkLeaveDetails
'
);
</script>
</body>
</html>
\ No newline at end of file
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveEdit.html
已删除
100644 → 0
浏览文件 @
6e0a6634
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
id=
"useTitle"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
步骤
</label>
<div
class=
"layui-input-block ver-center"
>
填单
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
责任人
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
id=
"useName"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
请假日期
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<button
id=
"addRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增行
</button>
<button
id=
"deleteRow"
class=
"winui-toolbtn"
type=
"button"
><i
class=
"fa fa-trash-o"
aria-hidden=
"true"
></i>
删除行
</button>
</div>
</div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"messageTips"
></div>
<table
class=
"layui-table"
>
<thead>
<tr>
<th
style=
"width: 30px;"
></th>
<th
style=
"width: 100px;"
>
班次
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
打卡时间
</th>
<th
style=
"width: 80px;"
>
假期类型
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 100px;"
>
请假日期
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
开始时间
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
结束时间
<i
class=
"red"
>
*
</i></th>
<th
style=
"width: 80px;"
>
请假工时
</th>
<th
style=
"min-width: 80px;"
>
备注
</th>
</tr>
</thead>
<tbody
id=
"beanTable"
class=
"insurance-table"
>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关描述
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入相关描述"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关附件
</label>
<div
class=
"layui-input-block"
id=
"enclosureUpload"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn typeOne layui-hide"
lay-submit
lay-filter=
"formEditBean"
>
保存为草稿
</button>
<button
class=
"winui-btn typeOne layui-hide"
lay-submit
lay-filter=
"formSubBean"
>
提交审批
</button>
<button
class=
"winui-btn typeTwo layui-hide"
lay-submit
lay-filter=
"subBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<!-- beanTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
<
tr
trcusid
=
"
{{trId}}
"
>
<
td
><
input
type
=
"
checkbox
"
rowId
=
"
{{id}}
"
lay
-
filter
=
"
checkboxProperty
"
name
=
"
tableCheckRow
"
/><
/td
>
<
td
><
select
id
=
"
{{timeId}}
"
lay
-
filter
=
"
timeId
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
id
=
"
{{workTime}}
"
>-<
/td
>
<
td
><
select
id
=
"
{{leaveType}}
"
lay
-
filter
=
"
leaveType
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveDay}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveStartTime}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{leaveEndTime}}
"
win
-
verify
=
"
required
"
/><
/td
>
<
td
id
=
"
{{leaveHour}}
"
>
0
<
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{remark}}
"
/><
/td
>
<
/tr
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/checkWorkLeave/
'
}).
use
(
'
checkWorkLeaveEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
checkwork/src/main/resources/template/tpl/checkWorkLeave/checkWorkLeaveList.html
浏览文件 @
86debcc3
...
@@ -7,63 +7,33 @@
...
@@ -7,63 +7,33 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
</head>
<body>
<body>
<div
style=
"margin:0 auto; height: 100%;"
>
<div
class=
"winui-toolbar"
>
<div
class=
"txtcenter"
style=
"margin:0 auto; padding-top: 10px;"
>
<div
class=
"winui-tool"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<div
class=
"layui-form-item"
>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1616239712898"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
请假申请
</button>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"1"
>
审核中
</option>
<option
value=
"2"
>
审核通过
</option>
<option
value=
"3"
>
审核不通过
</option>
<option
value=
"4"
>
作废
</option>
<option
value=
"5"
>
撤销
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
申请时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"applyTime"
name=
"applyTime"
placeholder=
"请选择申请时间"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1616239712898"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
请假申请
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"messageTableBar"
>
{{
#
if
(
d
.
state
==
'
0
'
||
d
.
state
==
'
3
'
||
d
.
state
==
'
5
'
){
}}
{{
#
if
(
auth
(
'
1616239737116
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1616239747768
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
1
'
||
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1616239725973
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1616239762178
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
</script>
</div>
</div>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"messageTableBar"
>
{{
#
if
(
d
.
editRow
==
'
1
'
){
}}
{{
#
if
(
auth
(
'
1616239737116
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1616239747768
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1616239712898
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1616239762178
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
...
...
checkwork/src/main/resources/template/tpl/checkWorkOvertime/checkWorkOvertimeList.html
浏览文件 @
86debcc3
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<body>
<body>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
尽量不要申请工作日期间的加班,否则可能会覆盖正常的考勤信息。
</div>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
尽量不要申请工作日期间的加班,否则可能会覆盖正常的考勤信息。
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1618046226263"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
加班申请
</button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1618046226263"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
加班申请
</button>
</div>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录