ZhiYeJianKang/职业健康平台后端/target/dzzyb/webpage/modules/sys/sysHome.jsp
2025-02-20 15:25:59 +08:00

555 lines
26 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp" %>
<html>
<head>
<title>首页</title>
<meta name="decorator" content="default"/>
<link rel="stylesheet" href="${ctxStatic }/chart/c3/c3.min.css"/>
<link rel="stylesheet" href="${ctxStatic }/chart/style.css"/>
<link rel="stylesheet" href="${ctxStatic }/chart/peity/animate.css"/>
<script type="text/javascript" src="${ctxStatic }/chart/d3/d3.min.js"></script>
<script type="text/javascript" src="${ctxStatic }/chart/c3/c3.min.js"></script>
<script type="text/javascript" src="${ctxStatic }/chart/peity/jquery.peity.min.js"></script>
<script src="${ctxStatic}/echarts-2.2.7/build/dist/echarts-all.js"></script>
<script src="${ctxStatic}/echarts-2.2.7/build/dist/echarts.js"></script>
<style type="text/css">
.main111 {
height: 500px;
/*width: 778px !important;*/
overflow: hidden;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #e3e3e3;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
body {
background-color: #fff !important;
/*background: url("
${ctxStatic} /images/12138.jpg") no-repeat;*/
background-size: 520px 519px;
background-position-x: center;
background-position-y: center;
}
.weclom {
z-index: 1;
position: absolute;
top: 50%;
left: 40%;
font-size: 100px;
}
</style>
</head>
<body style="overflow-x:hidden;background-color:white;">
<div>
<%--工单处理--%>
<div id="wo-handel" style="position: relative;padding: 10px; z-index: 10;">
<style>
#wo-handel .work-status {
width: 100%;
border: 1px silver solid;
}
#wo-handel .work-status th {
text-align: center;
}
#wo-handel .work-status td {
white-space: nowrap;
text-align: center;
}
#wo-handel .count-num {
cursor: pointer;
}
#wo-handel .count-num:hover {
background-color: #cdced6;
text-decoration: underline;
}
.tbDoc tr {
line-height: 35px;
}
.greyTR {
background-color: #f8f8f8;
}
A.tishihantitle:link {
color: #FF0000;
}
A.tishihantitle:visited {
color: #FF0000;
}
A.tishihantitle:hover {
color: #FF0000;
cursor: pointer !important;
text-decoration: underline;
}
A.uploadcss {
color: #FF0000;
/*cursor: pointer !important;*/
}
A.uploadcss:hover {
color: #FF0000;
text-decoration: underline;
/*cursor: pointer !important;*/
}
#divTishihan {
text-align: left;
margin-left: 60px;
font-size: 16px;
color: #FF0000;
width: 450px;
line-height: 50px;
}
</style>
<div class="row">
<%-- <div>${zybWoList}</div>--%>
<div class="col-sm-12">
<div id="view_DocList"></div>
<shiro:hasRole name="qyjg">
<script id="tpl_DocList" type="text/html">
<div id="divTishihan" style="display: none;"><a href="javascript:void(0);" class="tishihantitle"
onclick="displayTishihan();" id="aTishihan">《职业卫生资料缺失提示函》,请查收</a>
</div>
<table class="tbDoc">
{{# layui.each(d, function(index, item){ }}
{{# if(index % 2==1) { }}
<tr class="greyTR">
{{# } else { }}
<tr>
{{# } }}
<td style="width: 50px;text-align: center">{{ index+1 }}</td>
<td style="width:300px">{{ item.careerProfilename }}</td>
<td style="width: 200px;text-align: left;">
{{# if(item.docstatus!=1){ }}
{{# if(item.doctypeid === '15') { }}
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/logon/addqytjxx')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } else if(item.doctypeid === '16' || item.doctypeid === '17' || item.doctypeid
==='18') { }}
<%-- //职业卫生宣传教育培训档案--- 16岗前/17定期/18管理人--%>
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/logon/addqyxcjyda')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } else if(item.doctypeid === '14') { }}
<%--建设项目职业病危害现状评价报告--%>
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/logon/addqypjxx')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } else if(item.doctypeid === '19') { }}
<%-- 工作场所职业病危害因素检测报告--%>
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/logon/addqyjcxx')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } else if(item.doctypeid === '12') { }}
<%-- //三同时--%>
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/logon/zybSts')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } else{ }}
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('{{ item.careerProfilename }}','${ctx}/zyb/zyzl/add?typeid={{ item.doctypeid }}')">{{
item.docstatusremark }}</a>
{{# if(item.docstatus==2){ }}
&nbsp;&nbsp;
<a class='uploadcss' href='javascript:void(0);'
onclick="OpenUpload('查看历史数据','${ctx}/zyb/logon/history?type={{ item.doctypeid }}')">查看历史数据</a>
{{# }}}
{{# } }}
{{# } else{ }}
{{ item.docstatusremark }}
{{# } }}
</td>
</tr>
{{# }); }}
</table>
</script>
</shiro:hasRole>
<div id="view_Tishihan" style="display: none"></div>
<shiro:hasRole name="qyjg">
<script id="tpl_Tishihan" type="text/html">
<div id="tishihan">
<div style="margin:30px; background-color: #fff; border: solid 1px #f0f0f0;padding: 10px">
{{# layui.each(d, function(index, item){ }}
{{# if(item.docstatus!=1) { }}
<div style="line-height: 30px;width:700px;margin-top:50px;margin-bottom: 50px;">
{{# if (item.daycount <= 3) { }}
<div style="text-align: center;font-weight: bold;font-size: 18px">职业卫生资料缺失提示函</div>
<div style="text-align: left;font-weight: bold;font-size: 16px">{{
item.enterprisename }}:
</div>
<div style="text-align: left;font-size: 14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你单位的<span
style="font-weight: bold">{{ item.careerProfilename }}</span>资料未按照要求上传,请于收到提醒后3日内上传相关资料或者证明,否则信息将推送{{
item.areaname }}卫生健康局。
</div>
<div style="text-align: right;font-size: 14px;margin-right: 50px;">${fns:getConfig("city")}市职业健康管理中心
</div>
<div style="text-align: right;font-size: 14px;margin-right: 98px;">{{ item.riqi }}
</div>
{{# } }}
</div>
<div style="line-height: 30px;width:700px;margin-top:50px;margin-bottom: 50px;">
{{# if (item.daycount <= 5 && item.daycount > 3) { }}
<div style="text-align: center;font-weight: bold;font-size: 18px">职业卫生资料缺失提示函</div>
<div style="text-align: left;font-weight: bold;font-size: 16px">{{
item.enterprisename }}:
</div>
<div style="text-align: left;font-size: 14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你单位的<span
style="font-weight: bold">{{ item.careerProfilename }}</span>资料未按照要求上传,请于收到提醒后2日内上传相关资料或者证明,否则信息将推送${fns:getConfig("city")}市卫生综合执法支队。
</div>
<div style="text-align: right;font-size: 14px;margin-right: 50px;">{{ item.areaname
}}卫生健康局
</div>
<div style="text-align: right;font-size: 14px;margin-right: 98px;">{{ item.riqi }}
</div>
{{# } }}
</div>
<div style="line-height: 30px;width:700px;margin-top:50px;margin-bottom: 50px;">
{{# if (item.daycount > 5) { }}
<div style="text-align: center;font-weight: bold;font-size: 18px">职业卫生资料缺失提示函</div>
<div style="text-align: left;font-weight: bold;font-size: 16px">{{
item.enterprisename }}:
</div>
<div style="text-align: left;font-size: 14px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你单位的<span
style="font-weight: bold">{{ item.careerProfilename }}</span>资料未按照要求上传,请于收到提醒后2日内上传相关资料或者证明,否则${fns:getConfig("city")}市卫生综合执法支队将进行现场检查。
</div>
<div style="text-align: right;font-size: 14px;margin-right: 50px;">${fns:getConfig("city")}市卫生综合执法支队
</div>
<div style="text-align: right;font-size: 14px;margin-right: 98px;">{{ item.riqi }}
</div>
{{# } }}
</div>
{{# } }); }}
</div>
</div>
</script>
</shiro:hasRole>
</div>
<div class="col-sm-12" style="display: none">
<div class="panel panel-success">
<div class="panel-heading" style="padding-bottom: 30px;">
<h1 class="panel-title pull-left">工单处理</h1>
</div>
<div class="panel-body" style="padding: 5px">
<div class="row">
<c:forEach items="${zybWoList}" var="zybWo">
<div class="col-sm-2">
<div class="panel panel-info panel-dom">
<input type="hidden" class="project-type" value="${zybWo.projectType}">
<div class="panel-heading" style="padding-bottom: 30px;">
<h3 class="panel-title pull-left project-name">${zybWo.projectName}</h3>
<span class="badge pull-right">${zybWo.all}</span>
</div>
<div class="panel-body" style="padding: 5px">
<table class="work-status" border="1">
<tr style="height: 30px;">
<shiro:hasRole name="admin">
<th style="background-color: rgba(221,221,196,0.5)">未接收</th>
</shiro:hasRole>
<th style="background-color: rgba(191,221,194,0.5)">已接收</th>
<th style="background-color: rgba(189,221,221,0.5)">处理中</th>
</tr>
<tr style="height: 30px;">
<shiro:hasRole name="admin">
<td class="count-num"
style="background-color: rgba(221,221,196,0.5)">${zybWo.receive}</td>
</shiro:hasRole>
<td class="count-num"
style="background-color: rgba(191,221,194,0.5)">${zybWo.unHandle}</td>
<td class="count-num"
style="background-color: rgba(189,221,221,0.5)">${zybWo.handling}</td>
</tr>
</table>
</div>
</div>
</div>
</c:forEach>
</div>
<div class="row">
<div class="col-sm-12" id="work-dom"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<shiro:lacksRole name="qyjg">
<div class="weclom">欢迎使用</div>
</shiro:lacksRole>
</div>
<c:if test="${isEnterprise && isRevise && fns:getConfig('show_editPassWord')}">
<%--<c:if test="${isEnterprise && isRevise && isShow}">--%>
<div id="window-form">
<%-- <div class="layui-form-item">
<label class="layui-form-label" style="width: 55%; color: red">请修改密码(非信用代码后6位/'123456')</label>
</div>--%>
<div class="layui-form-item" style="margin: 20px">
<div class="control-group">
<label class="col-sm-3 control-label"><font color="red">*</font>旧密码:</label>
<div class="controls">
<input id="oldPassword" name="oldPassword" type="password" value="" maxlength="50" minlength="3"
class="form-control max-width-250 required"/>
</div>
</div>
<div class="control-group">
<label class="col-sm-3 control-label"><font color="red">*</font>新密码:</label>
<div class="controls">
<input id="newPassword" name="newPassword" type="password" value="" maxlength="50" minlength="3"
class="form-control max-width-250 required"/>
</div>
</div>
<div class="control-group">
<label class="col-sm-3 control-label"><font color="red">*</font>确认新密码:</label>
<div class="controls">
<input id="confirmNewPassword" name="confirmNewPassword" type="password" value="" maxlength="50"
minlength="3" class="form-control max-width-250 required" equalTo="#newPassword"></input>
</div>
<h3 style="text-align: center; margin: 10px 0 10px 0 ;color: red">请修改密码(新密码不可设置为信用代码后6位或者'123456')
</h3>
</div>
<div class="form-actions control-group">
<div style="margin-left: 200px"><input id="btnSubmit" class="btn btn-primary" type="submit"
style="display:inline-block;" onclick="submitForm()"
value="保&nbsp;&nbsp;存"/>&nbsp;&nbsp;
<input id="btnSubmitLogout" class="btn" type="button" style="display:inline-block;"
onclick="location.href='${ctx}/logout'" value="退出账号"/>
</div>
</div>
</div>
<script>
function goHref(href) {
layer.open({
type: 2,
content: href,
area: ['60%', '80%'],
end: function () {
location.reload();
}
});
}
function submitForm() {
var data = {
'oldPassword': document.getElementById('oldPassword').value,
'newPassword': document.getElementById('newPassword').value,
'confirmNewPassword': document.getElementById('confirmNewPassword').value
}
$.ajax({
url: "${ctx}/sys/user/modifyPwdDeit",
/*traditional: true,*/
data: data,
dataType: "json",
async: false,
type: 'get',
success: function (res) {
debugger
if (res.code != '1') {
alert(res.message);
} else {
location.reload();
}
}
})
}
</script>
</div>
<script>
top.layer.open({
type: 1,
content: $('#window-form').html(),
area: ['800px', '700px'],
closeBtn: 0,
zIndex: 99
});
</script>
</c:if>
<script src="${ctxStatic}/layui-v2.4.5/layui/layui.js"></script>
<script>
// 点击对应数据查看详情
<%--$(".count-num").on('click', function () {--%>
<%-- let woType = $(this).index();--%>
<%-- let $panelDom = $(this).parents(".panel-dom");--%>
<%-- $.ajax({--%>
<%-- url: '${ctx}/zyb/wo/flowList',--%>
<%-- data: {--%>
<%-- woType: woType,--%>
<%-- projectType: $panelDom.find("input[class='project-type']").val(),--%>
<%-- woTypeName: $panelDom.find("table th:eq(" + woType + ")").text(),--%>
<%-- projectName: $panelDom.find(".project-name").text()--%>
<%-- },--%>
<%-- type: 'get',--%>
<%-- success: function (res) {--%>
<%-- $("#work-dom").html(res);--%>
<%-- }--%>
<%-- });--%>
<%--})--%>
var active2 = {
AddComplete2: function (index) {
InitBasic(false);
if (index) {
top.layer.close(index);
}
}
};
function InitBasic(showTip) {
layui.use('laytpl', function () {
var laytpl = layui.laytpl;
<shiro:hasRole name="qyjg">
var getTpl = tpl_DocList.innerHTML
, view = $('#view_DocList');
var getTpl2 = tpl_Tishihan.innerHTML
, view2 = $('#view_Tishihan');
$.ajax({
async: false,
url: "${ctx}/zyb/worktask/GetDocStatusForEnterprise",
// data:{"taskIds":taskIds},
dataType: "json",
success: function (data) {
laytpl(getTpl).render(data, function (html) {
// view.innerHTML = html;
$('#view_DocList').html(html);
});
laytpl(getTpl2).render(data, function (html) {
// view.innerHTML = html;
$('#view_Tishihan').html(html);
});
if ($('#view_Tishihan').html().indexOf("职业卫生资料缺失提示函") > 0) {
if (${fns:getConfig("show_tishihan")}) {
$("#divTishihan").css("display", "block");
} else {
$("#divTishihan").css("display", "none");
}
if (showTip && ${fns:getConfig("show_tishihan")}) displayTishihan();
}
}
});
</shiro:hasRole>
});
}
$(function () {
InitBasic(true);
// if ($("#tishihan").html().indexOf("职业卫生资料缺失提示函") > 0) {
// displayTishihan();
// $("#divTishihan").css("display", "block")
// }
// $("#aTishihan").click(function () {
// displayTishihan();
//
// })
}
);
function displayTishihan() {
top.layer.open({
type: 1,
area: ['800px', '700px'],
title: "职业卫生资料缺失提示函",
maxmin: true, //开启最大化最小化按钮
content: $("#view_Tishihan").html(),//document.getElementById('tishihan').innerHTML,
// content: $("#tishihan").html(),//document.getElementById('tishihan').innerHTML,
btn: ['关闭'],
zIndex: 1,
cancel: function (index) {
}
});
}
window.OpenUpload = function (titleStr, urlStr) {
top.layer.open({
title: titleStr,
type: 2,
area: ['75%', '700px'],
fixed: false, //不固定
maxmin: true,
content: urlStr
});
}
</script>
</body>
</html>