+
diff --git a/hxy-web/image/fileIcon/WORD.png b/hxy-web/image/fileIcon/WORD.png
new file mode 100644
index 0000000..6f7be11
Binary files /dev/null and b/hxy-web/image/fileIcon/WORD.png differ
diff --git a/hxy-web/image/fileIcon/docx.png b/hxy-web/image/fileIcon/docx.png
new file mode 100644
index 0000000..c0d0a91
Binary files /dev/null and b/hxy-web/image/fileIcon/docx.png differ
diff --git a/hxy-web/image/fileIcon/excel.png b/hxy-web/image/fileIcon/excel.png
new file mode 100644
index 0000000..2ec4ee9
Binary files /dev/null and b/hxy-web/image/fileIcon/excel.png differ
diff --git a/hxy-web/image/fileIcon/file.png b/hxy-web/image/fileIcon/file.png
new file mode 100644
index 0000000..2e2b698
Binary files /dev/null and b/hxy-web/image/fileIcon/file.png differ
diff --git a/hxy-web/image/fileIcon/fileLook.png b/hxy-web/image/fileIcon/fileLook.png
new file mode 100644
index 0000000..c9fff68
Binary files /dev/null and b/hxy-web/image/fileIcon/fileLook.png differ
diff --git a/hxy-web/image/fileIcon/pdf.png b/hxy-web/image/fileIcon/pdf.png
new file mode 100644
index 0000000..3ddb252
Binary files /dev/null and b/hxy-web/image/fileIcon/pdf.png differ
diff --git a/hxy-web/image/fileIcon/picture.png b/hxy-web/image/fileIcon/picture.png
new file mode 100644
index 0000000..d543a62
Binary files /dev/null and b/hxy-web/image/fileIcon/picture.png differ
diff --git a/hxy-web/image/fileIcon/xlsx.png b/hxy-web/image/fileIcon/xlsx.png
new file mode 100644
index 0000000..1dca025
Binary files /dev/null and b/hxy-web/image/fileIcon/xlsx.png differ
diff --git a/hxy-web/image/fileIcon/yulan.png b/hxy-web/image/fileIcon/yulan.png
new file mode 100644
index 0000000..b9cb221
Binary files /dev/null and b/hxy-web/image/fileIcon/yulan.png differ
diff --git a/hxy-web/js/dataStatistics/index.js b/hxy-web/js/dataStatistics/index.js
index 2f68db9..2ca83de 100644
--- a/hxy-web/js/dataStatistics/index.js
+++ b/hxy-web/js/dataStatistics/index.js
@@ -384,7 +384,7 @@ function monthRateEcharts(data) {
// 为echarts对象加载数据
myChart.setOption(option);
myChart.on('click', function (params, charts, event) {
- detailsClick();
+ // detailsClick();
});
}
diff --git a/hxy-web/js/dataStatistics/staff/staffList.js b/hxy-web/js/dataStatistics/staff/staffList.js
index 5d08815..9502965 100644
--- a/hxy-web/js/dataStatistics/staff/staffList.js
+++ b/hxy-web/js/dataStatistics/staff/staffList.js
@@ -99,11 +99,13 @@ function init(){
if(personStatus == '1'){
text = '在职';
color = '#19BE6B';
- }
- if(personStatus == '2'){
+ }else if(personStatus == '2'){
text = '离职';
color = '#F56C6C';
- }
+ }else{
+ text = '在职';
+ color = '#19BE6B';
+ }
html += ""
html += ` `
html += `${text}`
diff --git a/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsDetails.js b/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsDetails.js
index c6a5ddf..6aa7126 100644
--- a/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsDetails.js
+++ b/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsDetails.js
@@ -381,7 +381,7 @@ function setData(){
url: PATH_URL + "/makeInfo/getUserDetail",
dataType: 'json',
data: {
- id: id
+ id: id,makeMonth:localStorage.getItem("resultdataMakeMonth")
},
success: function (data) {
$("#username").text(data.data.userName);
diff --git a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js
index d984ffc..2b64bc7 100644
--- a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js
+++ b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js
@@ -1,73 +1,88 @@
-
-
+var yjId = $(window.parent.parent.document).find("input[id='taskSourceId']").attr("stationId");
var pers = []
-var table,form,layer
-layui.use(['form','layer','table'], function () {
+var table,form,layer,laydate;
+var times = getCurrentDateTimeArr();
+layui.use(['form','layer','table', 'laydate'], function () {
table = layui.table;
form = layui.form;
layer = layui.layer;
-
- //测试
- setData(null);
+ laydate = layui.laydate;
+ // 渲染时间选择器
+ // laydate.render({
+ // elem: '#wagesMonth',
+ // type: 'month',
+ // format: 'yyyy-MM',
+ // fullPanel: true,
+ // value: times[0] + "-" + times[1]
+ // });
- // 触发submit提交 按钮点击或者表单被执行提交时触发
- form.on('submit(query)', function (data) {
- // 对表格进行重载。id 即 table表格的id
- table.reload('table', {
- // //设定异步数据接口的额外参数
- where: data.field
- })
- return false; // 阻止表单跳转。如果需要表单跳转,去掉这段即可。
- });
- form.on('submit(reset)', function () {
- $('#username').val('');
- $('#proname').val('');
- form.render();
- let obj = {
- username:'',
- proname:'',
- }
- // 对表格进行重载。id 即 table表格的id
- table.reload('table', {
- // //设定异步数据接口的额外参数
- where: obj
- })
- return false; // 阻止表单跳转。如果需要表单跳转,去掉这段即可。
- });
+ //取消按钮点击
+ $("#closeBt").click(() => {
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
+ parent.layer.close(index); //再执行关闭
+ })
+ //保存按钮点击
+ $("#submitBt").click(() => {
+ save();
+ })
init();
});
- // 静态数据
- var tableData = [
- {id: 1, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 2, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 3, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
- {id: 4, username: '李云飞', idNumber: '342224196202241356', lineName: '500kV大宝Ⅰ回线',phone:'15665366624',bank:'中国银行',bankNumber:'xxxxxxxxxxxxxxxxxxxx',UnionPayNumber:'xxxxxxxxxxxx',visitationWorkSecond:'33',laborPrice:'10',visitationWorkDay:'5',laborPriceDay:'115', totalPrice: '800', messages: '100', bonusPenaltys: '100', remark: '绩效奖励', netSalarys: '1000'},
-
- ];
+//查询
+function queryClick(){
+ table.reload('layui_table', {
+ // //设定异步数据接口的额外参数
+ where: {
+ 'userName': $("#username").val(),
+ 'proName': $("#proName").val(),
+ 'yjId': $('#yjId').val(),
+ 'wagesMonth': $('#wagesMonth').val()
+ }
+ })
+}
+//重置
+function resetClick(){
+ $("#username").val('');
+ $("#proName").val('');
+ table.reload('layui_table', {
+ where: {
+ 'userName': '',
+ 'proName': '',
+ 'yjId': $('#yjId').val(),
+ 'wagesMonth': times[0] + "-" + times[1]
+ },
+ })
+}
+
+//页面赋值
+function setData(yjId,yjName,gsName,wagesMonth){
+ $("#wagesMonth").val(wagesMonth);
+ $("#yjId").val(yjId);
+ $.ajax({
+ type: 'POST',
+ url: PATH_URL + '/wages/getWagesNum',
+ contentType: "application/json; charset=utf-8",
+ data: JSON.stringify({"userName": '', "proName": '', "yjId": yjId, "wagesMonth": wagesMonth}),
+ success: function (data) {
+ console.log('data:',data.data)
+ if(data.code == '200'){
+ $("#inspectionStation").text(yjName);
+ $("#subComName").text(gsName);
+ $("#proNum").text(data.data.proNum);
+ $("#lineProtector").text(data.data.userNum);
+
+ $("#allPriceNum").text(data.data.allPriceNum);
+ $("#phonePriceNum").text(data.data.phonePriceNum);
+ $("#rewardNum").text(data.data.rewardNum);
+ $("#wagesNum").text(data.data.wagesNum);
+ }
+
+ }
+ })
+
+}
/**
* 初始化数据
@@ -75,11 +90,16 @@ layui.use(['form','layer','table'], function () {
function init(){
// 渲染表格
table.render({
+ id: 'layui_table',
elem: '#table',
- // url: "/sys/achievement",
- // page: true,
+ url: PATH_URL + '/wages/getWagesById',
+ where: {
+ 'yjId': $('#yjId').val(),
+ 'wagesMonth': $('#wagesMonth').val()
+ },
+ page: true, //开启分页
+ method:'post',
skin: 'line', // 表格样式
- data: tableData,
cols: [[
{
title: '序号',
@@ -87,34 +107,31 @@ function init(){
align: 'center',
type: 'numbers'
},
- {field:'username', title: '姓 名',align: 'center',},
+ {field:'userName', title: '姓 名',align: 'center',},
{field:'idNumber', title: '身份证号',align: 'center',},
- {field:'lineName', title: '管辖线路名称',align: 'center',},
+ {field:'proName', title: '管辖线路名称',align: 'center',},
{field:'phone', title: '手机号',align: 'center',},
{field:'bank', title: '开户行',align: 'center',},
- {field:'bankNumber', title: '银行卡号',align: 'center'},
- {field:'UnionPayNumber', title: '银联号',align: 'center'},
- {field:'visitationWorkSecond', title: '巡视工作量(基*次)',align: 'center', },
- {field:'laborPrice', title: '约定巡视工价(元/(基*次))',align: 'center', },
- {field:'visitationWorkDay', title: '特巡工作量(人*天)',align: 'center', },
- {field:'laborPriceDay', title: '约定特巡工价(元/(人*天))',align: 'center', },
- {field:'totalPrice', title: '合价(元)',align: 'center', },
- {field:'messages', title: '通讯费',align: 'center', },
- {field:'bonusPenaltys', title: '奖惩',align: 'center', },
- {field:'remark', title: '备注',align: 'center', },
- {field:'netSalarys', title: '实发工资',align: 'center', },
+ {field:'bankCard', title: '银行卡号',align: 'center'},
+ {field:'unionpayNum', title: '银联号',align: 'center'},
+ {field:'xsNum', title: '巡视工作量(基*次)',align: 'center', },
+ {field:'xsPrice', title: '约定巡视工价(元/(基*次))',align: 'center', },
+ {field:'txNum', title: '特巡工作量(人*天)',align: 'center', },
+ {field:'txPrice', title: '约定特巡工价(元/(人*天))',align: 'center', },
+ {field:'allPrice', title: '合价(元)',align: 'center'},
+ {field:'phonePrice', title: '通讯费',align: 'center'},
+ {field:'reward', title: '奖惩',align: 'center'},
+ {field:'remarks', title: '备注',align: 'center'},
+ {field:'wages', title: '实发工资',align: 'center'},
]],
+ done: function(res,curr,count){
+ //checkPermission();
+ }
});
-
}
-//页面赋值
-function setData(data){
- $("#inspectionStation").text("迪庆运检站");
- $("#subComName").text("运检二公司");
- $("#proNum").text("60");
- $("#lineProtector").text("16");
- $("#month").text("3月")
+//判断是否为数字
+function isNumber(variable){
+ return !isNaN(Number(variable));
}
-
diff --git a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js
index 655f05c..8985fb4 100644
--- a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js
+++ b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js
@@ -1,4 +1,6 @@
+var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
+var fgsId = $(window.parent.document).find("select[id='subComId']").val();
var pers = []
var table,form,laydate
layui.use(['form','layer','table','laydate'], function () {
@@ -8,13 +10,14 @@ layui.use(['form','layer','table','laydate'], function () {
//初始化日期选择框
laydate.render({
- elem: '#dataTime',
+ elem: '#wagesMonth',
type: 'month',
});
// 触发submit提交 按钮点击或者表单被执行提交时触发
form.on('submit(query)', function (data) {
console.log("搜索")
// 对表格进行重载。id 即 table表格的id
+ data.field.fgsId=fgsId;
table.reload('table', {
// //设定异步数据接口的额外参数
page:{curr : 1}
@@ -24,13 +27,13 @@ layui.use(['form','layer','table','laydate'], function () {
});
$("#reset").click(function(){
console.log("重置")
- $('#search1').val('');
- $('#search2').val('');
- $('#search3').val('');
+ $('#proName').val('');
+ $('#yjName').val('');
+ $('#wagesMonth').val('');
let obj = {
- search1:'',
- search2:'',
- search3:''
+ proName:'',
+ yjName:'',fgsId:fgsId,
+ wagesMonth:''
}
// 对表格进行重载。id 即 table表格的id
table.reload('table', {
@@ -43,128 +46,133 @@ layui.use(['form','layer','table','laydate'], function () {
init();
});
- // 静态数据
- var tableData = [
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'},
- {id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', personNum: '21', stationNum: '2,810', specialPatrolNum: '235', messageCost: '1', bonusPenalty: '0', actualRelease: '3,055'}
- ];
+
/**
* 初始化数据
*/
function init(){
- var subComId = $(window.parent.document).find("select[id='subComId']").val();
// 渲染表格
table.render({
elem: '#table',
where: {
- fgsId: subComId
+ fgsId: fgsId
},
- // url: "/sys/achievement",
+ url: PATH_URL + '/wages/getWagesEscalationList',
page: true,
+ method: 'post',
skin: 'line', // 表格样式
- cols: [[
- {
- title: '序号',
- field: 'zizeng',
- align: 'center',
- type: 'numbers',
- width: '5%'
- },
- {field:'comName', title: '分公司',align: 'center'},
- {field:'sName', title: '运检站',align: 'center'},
- {field:'month', title: '月份',align: 'center'},
- {field:'personNum', title: '人数',align: 'center'},
- {field:'stationNum', title: '巡视运检站(基*次)',align: 'center'},
- {field:'specialPatrolNum', title: '特巡天数(人*天)',align: 'center'},
- {field:'messageCost', title: '通讯费',align: 'center'},
- {field:'bonusPenalty', title: '奖惩',align: 'center'},
- {field:'actualRelease', title: '实发金额',align: 'center'},
- {
- field: '',
- title: '操作',
- align: 'center',
- width: '20%',
- templet: function(d){
- var id= d.id;
- var html = ``
- return html;
- },
- }
- ]],
- data: tableData
+ cols: [
+ [{
+ title: '序号',
+ field: 'zizeng',
+ align: 'center',
+ type: 'numbers'
+ },
+ {
+ field: 'fgsName',
+ title: '分公司',
+ align: 'center',
+ },
+ {
+ field: 'yjName',
+ title: '运检站',
+ align: 'center',
+ },
+ {
+ field: 'wagesMonth',
+ title: '月份',
+ align: 'center',
+ },
+ {
+ field: 'peopleNum',
+ title: '人数',
+ align: 'center',
+ },
+ {
+ field: 'xsNum',
+ title: '巡视运检站(基*次)',
+ align: 'center',
+ },
+ {
+ field: 'txNum',
+ title: '特巡天数(人*天)',
+ align: 'center',
+ width: 170
+ },
+ {
+ field: 'phonePrice',
+ title: '通讯费',
+ align: 'center',
+ width: 170
+ },
+ {
+ field: 'reward',
+ title: '奖惩',
+ align: 'center',
+ },
+ {
+ field: 'wages',
+ title: '实发金额',
+ align: 'center',
+ },
+ {
+ field: '',
+ title: '操作',
+ align: 'center',
+ width: '20%',
+ templet: function(d){
+ var yjId= d.yjId;
+ var yjName= d.yjName;
+ var gsName= d.fgsName;
+ var wagesMonth= d.wagesMonth;
+ var html = ``
+ return html;
+ },
+ }
+ ]
+ ],
});
}
-//详情
-function detailsView(id) {
- /* $.ajax({
- type: 'post',
- contentType: "application/x-www-form-urlencoded",
- url: oiPlanUrl + '/monthlyPlanSubmission/getDataById',
- dataType: 'json',
- data: {
- id: id
- },
- success: function (data) {
- var index = layer.open({
- title: ['详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
- type: 2,
- content: './wagesReport/producePayrollDetails.html',
- area: [width, height],
- maxmin: false,
- success: function (layero, index) {
- console.log(data);
- var myIframe = window[layero.find('iframe')[0]['name']];
- myIframe.hideSubmit();
- // var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
- },
- });
- }
- }) */
-
- //测试
+
+/**
+ * 查看
+ * */
+function detailsView(yjId,yjName,gsName,wagesMonth) {
let height = '98%';
let width = '99%';
+ //测试
var index = layer.open({
- title: ['工资清单详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
- type: 2,
- content: './wagesStatisticsDetails.html',
- area: [width, height],
- maxmin: false,
- success: function (layero, index) {
- // var myIframe = window[layero.find('iframe')[0]['name']];
- // myIframe.hideSubmit();
- // var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
-
- },
+ title: ['详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
+ type: 2,
+ content: './wagesStatisticsDetails.html',
+ area: [width, height],
+ maxmin: false,
+ success: function(layero, index) {
+ // //打开页面成功时执行
+ var myIframe = window[layero.find('iframe')[0]['name']];
+ //getTaskSource()为子页面的方法
+ myIframe.setData(yjId, yjName, gsName, wagesMonth);
+
+ },
});
}
//导出
-function exportData(){
- // let search1 = $('#search1').val();
- // let search2 = $('#search2').val();
- window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
+function exportData() {
+ var yjName = $("#yjName").val();
+ var proName = $("#proName").val();
+ var yjName = $("#yjName").val();
+ var wagesMonth = $("#wagesMonth").val();
+
+ window.location.href = PATH_URL + `/wages/exportWagesEscalationDatas?token=` + token +
+ "&yjName=" + yjName +
+ "&proName=" + proName +
+ "&wagesMonth=" + wagesMonth+ "&fgsId=" + fgsId
}
\ No newline at end of file
diff --git a/hxy-web/js/wireManager/attendance/attendance.js b/hxy-web/js/wireManager/attendance/attendance.js
index a99ba80..b73e579 100644
--- a/hxy-web/js/wireManager/attendance/attendance.js
+++ b/hxy-web/js/wireManager/attendance/attendance.js
@@ -38,15 +38,19 @@ layui.use(['form','layer','table','laydate','element'], function () {
if(tabIndex==0){
tableType = 'layui_table1';
initTable1();
+ $("#exportBt").css("display","")
}else if(tabIndex==1){
tableType = 'layui_table2';
initTable2();
+ $("#exportBt").css("display","none")
}else if(tabIndex==2){
tableType = 'layui_table3';
initTable3("", "", "", times[0] + "-" + times[1]);
+ $("#exportBt").css("display","none")
}else{
tableType = 'layui_table1';
initTable1();
+ $("#exportBt").css("display","")
}
});
@@ -355,9 +359,18 @@ function checkView(obj) {
//导出
function exportData() {
- // let search1 = $('#search1').val();
- // let search2 = $('#search2').val();
- window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
-
+ var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
+ let userName = $('#userName').val();
+ let proName = $('#proName').val();
+ let yjName = $('#yjName').val();
+ let startMakeMonth = $('#makeMonth').val();
+ let endMakeMonth = $('#makeMonth').val();
+ window.location.href = PATH_URL + `/attendance/exportData?token=` + token
+ + "&userName=" + userName
+ + "&proName=" + proName
+ + "&yjName=" + yjName
+ + "&yjId=" + yjId
+ + "&startMakeMonth=" + startMakeMonth
+ + "&endMakeMonth=" + endMakeMonth
}
\ No newline at end of file
diff --git a/hxy-web/js/wireManager/attendance/attendanceDetail.js b/hxy-web/js/wireManager/attendance/attendanceDetail.js
index 67072b5..9ef871c 100644
--- a/hxy-web/js/wireManager/attendance/attendanceDetail.js
+++ b/hxy-web/js/wireManager/attendance/attendanceDetail.js
@@ -55,6 +55,7 @@ function setData(data){
function getView(data){
+ console.log(data,"data");
var oneMakeList = data.data.oneMakeList;
$("#firstViewBox").html('');
let html1 = ``;
@@ -91,7 +92,7 @@ function getView(data){
${oneMakeList[i].gtName}
-

+
-

+
-

+
`
var flag = false;
for (var j = 0; j < photoList1.length; j++) {
@@ -272,10 +275,16 @@ function getView(){
break;
}
}
+ var usernamed=$("#username").text();
if(!flag){
//照片不存在,显示上传照片按钮
- html += `

-
上传图片
`
+ if("1"==viewList1[i].state){
+ html += `

`
+ html += `
上传图片
`
+ }else{
+ html += `

`
+ html += `
该杆塔不属于${usernamed}管辖
`
+ }
}
html += `
+ `
+ if("1"==viewList2[i].state||"1"==viewList2[i].makeType){
+ html +=`
+

+

+ `
+ }
+ html +=`
`
var flag = false;
for (var j = 0; j < photoList2.length; j++) {
@@ -347,10 +361,16 @@ function getView(){
break;
}
}
+ var usernamed=$("#username").text();
if(!flag){
//照片不存在,显示上传照片按钮
- html += `

-
上传图片
`
+ if("1"==viewList2[i].state){
+ html += `

`
+ html += `
上传图片
`
+ }else{
+ html += `

`
+ html += `
该杆塔不属于${usernamed}管辖
`
+ }
}
html += `