Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
55276936
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1437
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看板
提交
55276936
编写于
7月 17, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【薪资模块】薪资发放历史列表整改
上级
ebd9fe7a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
135 addition
and
28 deletion
+135
-28
wages/src/main/resources/template/js/wagesPaymentHistory/wagesAllGrantPaymentHistoryList.js
...js/wagesPaymentHistory/wagesAllGrantPaymentHistoryList.js
+19
-22
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableSearchUtil.js
...ssets/lib/layui/customer/tableUtil/initTableSearchUtil.js
+99
-5
web/src/main/resources/template/assets/lib/winui/css/customer/search-table.css
...s/template/assets/lib/winui/css/customer/search-table.css
+17
-1
未找到文件。
wages/src/main/resources/template/js/wagesPaymentHistory/wagesAllGrantPaymentHistoryList.js
浏览文件 @
55276936
...
...
@@ -15,10 +15,7 @@ layui.config({
laydate
=
layui
.
laydate
;
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
laydate
.
render
({
elem
:
'
#payMonth
'
,
type
:
'
month
'
});
laydate
.
render
({
elem
:
'
#payMonth
'
,
type
:
'
month
'
});
// 获取所有已发放薪资发放历史列表
table
.
render
({
...
...
@@ -32,11 +29,11 @@ layui.config({
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
companyName
'
,
title
:
'
公司
'
,
align
:
'
left
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
companyName
'
,
title
:
'
公司
'
,
align
:
'
left
'
,
width
:
150
},
{
field
:
'
departmentName
'
,
title
:
'
部门
'
,
align
:
'
left
'
,
width
:
150
},
{
field
:
'
jobName
'
,
title
:
'
职位
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
userName
'
,
title
:
'
员工
'
,
align
:
'
left
'
,
width
:
1
00
},
{
field
:
'
userName
'
,
title
:
'
员工
'
,
align
:
'
left
'
,
width
:
1
50
},
{
field
:
'
payMonth
'
,
title
:
'
月份
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
payMonth
+
'
</p>
'
;
}},
...
...
@@ -50,11 +47,14 @@ layui.config({
}},
{
field
:
'
createTime
'
,
title
:
'
核算日期
'
,
align
:
'
center
'
,
width
:
150
}
]],
done
:
function
(){
done
:
function
(
json
){
if
(
!
loadCompany
){
initCompany
();
}
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
function
()
{
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -73,6 +73,7 @@ layui.config({
systemCommonUtil
.
getSysCompanyList
(
function
(
json
)
{
// 加载企业数据
$
(
"
#companyList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
json
));
form
.
render
(
'
select
'
);
});
}
...
...
@@ -110,14 +111,6 @@ layui.config({
initJob
();
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
refreshloadTable
();
}
return
false
;
});
// 详情
function
details
(
data
){
rowId
=
data
.
staffId
;
...
...
@@ -132,6 +125,14 @@ layui.config({
});
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
...
...
@@ -141,19 +142,15 @@ layui.config({
table
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
refreshloadTable
(){
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
function
getTableParams
(){
return
{
return
$
.
extend
(
true
,
{
userName
:
$
(
"
#userName
"
).
val
(),
jobNumber
:
$
(
"
#jobNumber
"
).
val
(),
companyId
:
$
(
"
#companyList
"
).
val
(),
departmentId
:
$
(
"
#departmentList
"
).
val
(),
jobId
:
$
(
"
#jobList
"
).
val
(),
payMonth
:
$
(
"
#payMonth
"
).
val
()
};
}
,
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
))
;
}
exports
(
'
wagesAllGrantPaymentHistoryList
'
,
{});
...
...
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableSearchUtil.js
浏览文件 @
55276936
...
...
@@ -159,7 +159,8 @@ var initTableSearchUtil = {
'
<i class="fa fa-user-plus input-icon" id="userSearchSelPeople"></i>
'
;
}
else
if
(
type
===
'
userStaff
'
)
{
// 员工
return
''
;
return
'
<div id="
'
+
fieldId
+
'
" class="layui-input search-user-staff"></div>
'
+
'
<i class="fa fa-user-plus input-icon" id="userStaffSearchSelPeople"></i>
'
;
}
else
if
(
type
===
'
virtualSelect
'
)
{
// 接口-下拉框 virtualDataFrom: {"url": "", "valueKey": "", "showKey": ""}
var
dataFrom
=
initTableSearchUtil
.
getVirtualSelectData
(
searchParam
);
...
...
@@ -237,6 +238,13 @@ var initTableSearchUtil = {
}
else
if
(
type
===
'
user
'
)
{
systemCommonUtil
.
userReturnList
=
[];
$
(
"
#
"
+
fieldId
).
val
(
''
);
}
else
if
(
type
===
'
userStaff
'
)
{
if
(
operator
==
'
in
'
)
{
systemCommonUtil
.
checkStaffMation
=
[];
}
else
{
systemCommonUtil
.
checkStaffMation
=
{};
}
$
(
"
#
"
+
fieldId
).
val
(
''
);
}
},
...
...
@@ -270,7 +278,17 @@ var initTableSearchUtil = {
return
systemCommonUtil
.
userReturnList
[
0
].
name
;
}
else
if
(
type
===
'
userStaff
'
)
{
// 员工
return
''
;
if
(
systemCommonUtil
.
checkStaffMation
.
length
==
0
)
{
return
null
;
}
if
(
operator
==
'
in
'
)
{
var
text
=
[];
$
.
each
(
systemCommonUtil
.
checkStaffMation
,
function
(
i
,
item
)
{
text
.
push
(
item
.
name
);
});
return
text
.
toString
();
}
return
systemCommonUtil
.
checkStaffMation
.
jobNumber
+
'
_
'
+
systemCommonUtil
.
checkStaffMation
.
userName
;
}
else
if
(
type
===
'
virtualSelect
'
||
type
===
'
constantSelect
'
)
{
// 接口-下拉框 virtualDataFrom / 常量-下拉框 constantDataFrom
if
(
operator
==
'
in
'
)
{
...
...
@@ -321,7 +339,17 @@ var initTableSearchUtil = {
return
systemCommonUtil
.
userReturnList
[
0
].
id
;
}
else
if
(
type
===
'
userStaff
'
)
{
// 员工
return
''
;
if
(
systemCommonUtil
.
checkStaffMation
.
length
==
0
)
{
return
null
;
}
if
(
operator
==
'
in
'
)
{
var
text
=
[];
$
.
each
(
systemCommonUtil
.
checkStaffMation
,
function
(
i
,
item
)
{
text
.
push
(
"
'
"
+
item
.
id
+
"
'
"
);
});
return
text
.
toString
();
}
return
systemCommonUtil
.
checkStaffMation
.
id
;
}
else
if
(
type
===
'
virtualSelect
'
||
type
===
'
constantSelect
'
)
{
// 接口-下拉框 virtualDataFrom / 常量-下拉框 constantDataFrom
if
(
operator
==
'
in
'
)
{
...
...
@@ -383,6 +411,30 @@ var initTableSearchUtil = {
$
(
"
#
"
+
fieldId
).
html
(
str
);
}
else
if
(
type
===
'
userStaff
'
)
{
// 员工
var
str
=
""
;
if
(
operator
==
'
in
'
)
{
systemCommonUtil
.
checkStaffMation
=
[];
var
staffIds
=
confimValue
.
hideValue
.
replaceAll
(
"
'
"
,
""
).
split
(
'
,
'
);
$
.
each
(
confimValue
.
showValue
.
split
(
'
,
'
),
function
(
i
,
value
)
{
str
+=
'
<span class="layui-badge layui-bg-blue skyeye-badge">
'
+
value
+
''
+
'
<i class="layui-icon layui-unselect layui-tab-close search-user-staff-del" staff-id="
'
+
staffIds
[
i
]
+
'
" title="删除" operator="
'
+
operator
+
'
">ဆ</i>
'
+
'
</span>
'
;
systemCommonUtil
.
checkStaffMation
.
push
({
id
:
staffIds
[
i
],
name
:
value
});
});
}
else
{
str
=
'
<span class="layui-badge layui-bg-blue skyeye-badge">
'
+
confimValue
.
showValue
+
''
+
'
<i class="layui-icon layui-unselect layui-tab-close search-user-staff-del" staff-id="
'
+
confimValue
.
hideValue
+
'
" title="删除" operator="
'
+
operator
+
'
">ဆ</i>
'
+
'
</span>
'
;
systemCommonUtil
.
checkStaffMation
=
{
id
:
confimValue
.
hideValue
,
jobNumber
:
confimValue
.
showValue
.
split
(
'
_
'
)[
0
],
userName
:
confimValue
.
showValue
.
split
(
'
_
'
)[
1
]
};
}
$
(
"
#
"
+
fieldId
).
html
(
str
);
}
else
if
(
type
===
'
virtualSelect
'
||
type
===
'
constantSelect
'
)
{
// 接口-下拉框 virtualDataFrom / 常量-下拉框 constantDataFrom
if
(
operator
==
'
in
'
)
{
...
...
@@ -421,6 +473,9 @@ var initTableSearchUtil = {
initTableSearchUtil
.
resetFormDefaultValue
(
tableId
,
fieldId
,
paramConfig
);
form
.
render
();
form
.
on
(
'
select(sel
'
+
fieldId
+
'
)
'
,
function
(
data
)
{
if
(
isNull
(
data
.
value
))
{
return
;
}
$
(
"
#searchContent
"
+
fieldId
).
html
(
initTableSearchUtil
.
getFormUnit
(
fieldId
,
paramConfig
));
// 初始化事件,例如:日期的要初始化后才能使用
initTableSearchUtil
.
initFormUnitEvent
(
fieldId
,
paramConfig
);
...
...
@@ -534,6 +589,45 @@ var initTableSearchUtil = {
event
.
stopPropagation
();
});
// 员工选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#userStaffSearchSelPeople
"
,
function
(
e
)
{
var
operator
=
$
(
"
#searchBox
"
).
find
(
"
#searchFilterCriteria
"
).
find
(
"
select
"
).
val
();
var
fieldId
=
$
(
"
#searchBox
"
).
find
(
"
.searchDefine
"
).
attr
(
"
field-id
"
);
if
(
operator
==
'
in
'
)
{
systemCommonUtil
.
userStaffCheckType
=
true
;
// 选择类型,默认单选,true:多选,false:单选
}
else
{
systemCommonUtil
.
userStaffCheckType
=
false
;
// 选择类型,默认单选,true:多选,false:单选
}
systemCommonUtil
.
openSysAllUserStaffChoosePage
(
function
(
checkStaffMation
){
var
str
=
""
;
if
(
operator
==
'
in
'
)
{
$
.
each
(
checkStaffMation
,
function
(
key
,
value
)
{
str
+=
'
<span class="layui-badge layui-bg-blue skyeye-badge">
'
+
value
.
name
+
''
+
'
<i class="layui-icon layui-unselect layui-tab-close search-user-staff-del" staff-id="
'
+
value
.
id
+
'
" title="删除" operator="
'
+
operator
+
'
">ဆ</i>
'
+
'
</span>
'
;
});
}
else
{
str
=
'
<span class="layui-badge layui-bg-blue skyeye-badge">
'
+
checkStaffMation
.
jobNumber
+
'
_
'
+
checkStaffMation
.
userName
+
''
+
'
<i class="layui-icon layui-unselect layui-tab-close search-user-staff-del" staff-id="
'
+
checkStaffMation
.
id
+
'
" title="删除" operator="
'
+
operator
+
'
">ဆ</i>
'
+
'
</span>
'
;
}
$
(
"
#
"
+
fieldId
).
html
(
str
);
});
});
// 【员工选择】删除
$
(
"
body
"
).
on
(
"
click
"
,
"
.search-user-staff-del
"
,
function
(
event
)
{
var
staffId
=
$
(
this
).
attr
(
'
staff-id
'
);
var
operator
=
$
(
this
).
attr
(
'
operator
'
);
if
(
operator
==
'
in
'
)
{
systemCommonUtil
.
checkStaffMation
=
[].
concat
(
arrayUtil
.
removeArrayPointKey
(
systemCommonUtil
.
checkStaffMation
,
'
id
'
,
staffId
));
}
else
{
systemCommonUtil
.
checkStaffMation
=
{};
}
$
(
this
).
parent
().
remove
();
// 阻止事件冒泡
event
.
stopPropagation
();
});
},
/**
...
...
@@ -549,8 +643,8 @@ var initTableSearchUtil = {
$
.
each
(
tableChooseMap
,
function
(
key
,
value
)
{
var
fieldId
=
value
.
fieldId
;
$
(
"
span[search-table-id='
"
+
tableId
+
"
'][search-sign='
"
+
fieldId
+
"
']
"
).
addClass
(
'
layui-table-choose
'
);
str
+=
'
<span class="layui-badge layui-bg-blue skyeye-badge">
'
+
value
.
fieldName
+
'
'
+
value
.
operatorName
+
'
'
+
value
.
showValue
+
''
+
'
<i class="layui-icon layui-unselect layui-tab-close search-del" table-id="
'
+
tableId
+
'
" field-id="
'
+
fieldId
+
'
" title="删除">ဆ</i>
'
+
str
+=
'
<span class="layui-badge layui-bg-blue skyeye-badge"
title="
'
+
value
.
showValue
+
'
"><div
>
'
+
value
.
fieldName
+
'
'
+
value
.
operatorName
+
'
'
+
value
.
showValue
+
''
+
'
<
/div><
i class="layui-icon layui-unselect layui-tab-close search-del" table-id="
'
+
tableId
+
'
" field-id="
'
+
fieldId
+
'
" title="删除">ဆ</i>
'
+
'
</span>
'
;
});
$
(
"
#filter
"
+
tableId
).
html
(
str
);
...
...
web/src/main/resources/template/assets/lib/winui/css/customer/search-table.css
浏览文件 @
55276936
...
...
@@ -17,7 +17,8 @@
padding-top
:
7px
;
}
.search-user
.skyeye-badge
{
.search-user
.skyeye-badge
,
.search-user-staff
.skyeye-badge
{
margin-bottom
:
0px
;
margin-top
:
5px
;
}
...
...
@@ -33,6 +34,15 @@
margin-left
:
5px
;
}
.filter-search-box
.skyeye-badge
div
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
box-sizing
:
border-box
;
max-width
:
300px
;
float
:
left
;
}
.filter-search-box
.skyeye-badge
.layui-tab-close
{
margin-left
:
5px
;
font-size
:
14px
;
...
...
@@ -67,4 +77,10 @@
height
:
auto
;
padding-bottom
:
5px
;
min-height
:
30px
;
}
.search-user-staff
{
height
:
auto
;
padding-bottom
:
5px
;
min-height
:
30px
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录