jsk
|
|
@ -17,7 +17,7 @@ body{
|
||||||
.content>form>div:nth-child(n + 3){
|
.content>form>div:nth-child(n + 3){
|
||||||
border: 1px solid #E9E9E9;
|
border: 1px solid #E9E9E9;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 18%;
|
height: 20%;
|
||||||
margin-left: 10%;
|
margin-left: 10%;
|
||||||
}
|
}
|
||||||
.content button{
|
.content button{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
<div><span>数据概览</span></div>
|
<div><span>数据概览</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dataOverview">
|
<div class="dataOverview">
|
||||||
<div class="dataOverviewTop" style="border-color: #FB6260" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FB6260" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">工程总数(项)</div>
|
<div class="typeTitle" style="font-size: 14px;">工程总数(项)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon1.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon1.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #0099FF" onclick="detailsClick(1)">
|
<div class="dataOverviewTop" style="border-color: #0099FF" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">护线员人数(人)</div>
|
<div class="typeTitle" style="font-size: 14px;">护线员人数(人)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon2.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon2.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #8167F5" onclick="inherentClick()">
|
<div class="dataOverviewTop" style="border-color: #8167F5" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">杆塔总数(基)</div>
|
<div class="typeTitle" style="font-size: 14px;">杆塔总数(基)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon3.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon3.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #FF7A8C" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FF7A8C" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">本月未巡视(基)</div>
|
<div class="typeTitle" style="font-size: 14px;">本月未巡视(基)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #FBA64B" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FBA64B" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">本月特巡天数(天)</div>
|
<div class="typeTitle" style="font-size: 14px;">本月特巡天数(天)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>工资上报</title>
|
<title>详情</title>
|
||||||
|
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
|
<script src="../../../js/public/jq.js"></script>
|
||||||
<script src="../../../js/public/token.js"></script>
|
<script src="../../../js/public/token.js"></script>
|
||||||
<script src="../../../js/public/public.js"></script>
|
<script src="../../../js/public/public.js"></script>
|
||||||
<script src="../../../js/public/public_utils.js"></script>
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
|
|
@ -10,7 +12,8 @@
|
||||||
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
<script src="../../../plugs/layui-v2.9.2/layui/layui.js"></script>
|
<script src="../../../plugs/layui-v2.9.2/layui/layui.js"></script>
|
||||||
<link href="../../../plugs/layui-v2.9.2/layui/css/layui.css" rel="stylesheet">
|
<link href="../../../plugs/layui-v2.9.2/layui/css/layui.css" rel="stylesheet">
|
||||||
<script src="../../../util/Interceptor.js"></script>
|
<!-- <script src="../../../util/Interceptor.js"></script> -->
|
||||||
|
<script src="../../../util/time.js"></script>
|
||||||
<!--业务js-->
|
<!--业务js-->
|
||||||
<script src="../../../js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js"></script>
|
<script src="../../../js/dataStatistics/wagesStatistics/wagesStatisticsDetails.js"></script>
|
||||||
|
|
||||||
|
|
@ -60,18 +63,19 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: 1px #E9E9E9 solid;
|
border: 1px #E9E9E9 solid;
|
||||||
}
|
}
|
||||||
#title>div:nth-child(1),
|
#title>div
|
||||||
#title>div:nth-child(2),
|
|
||||||
#title>div:nth-child(3),
|
|
||||||
#title>div:nth-child(4),
|
|
||||||
#title>div:nth-child(5),
|
|
||||||
#title>div:nth-child(6),
|
|
||||||
#title>div:nth-child(8)
|
|
||||||
{
|
{
|
||||||
width: 10%;
|
width: 13%;
|
||||||
}
|
}
|
||||||
#title>div:nth-child(7){
|
#title>div:nth-child(1)
|
||||||
width: 25%;
|
{
|
||||||
|
width: 20%;
|
||||||
|
margin-left: 1%;
|
||||||
|
margin-right: 1%;
|
||||||
|
}
|
||||||
|
#title>div:nth-child(7)
|
||||||
|
{
|
||||||
|
width: 40%;
|
||||||
}
|
}
|
||||||
#title>div:nth-child(1){
|
#title>div:nth-child(1){
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -111,6 +115,10 @@
|
||||||
color: #409EFF;
|
color: #409EFF;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
#month>input{
|
||||||
|
border: none;
|
||||||
|
color: #409EFF;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -130,29 +138,34 @@
|
||||||
<div>护线员数量</div>
|
<div>护线员数量</div>
|
||||||
<div id="lineProtector">--</div>
|
<div id="lineProtector">--</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div>合计费用</div>
|
<div>合计费用</div>
|
||||||
<div id="">--</div>
|
<div id="allPriceNum">--</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>通讯费用</div>
|
<div>通讯费用</div>
|
||||||
<div id="">--</div>
|
<div id="phonePriceNum">--</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>奖惩费用</div>
|
<div>奖惩费用</div>
|
||||||
<div id="">--</div>
|
<div id="rewardNum">--</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>实发工资</div>
|
<div>实发工资</div>
|
||||||
<div id="">--</div>
|
<div id="wagesNum">--</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="month">
|
<div id="month">
|
||||||
--
|
<input type="text" class="layui-input" autocomplete="off" id="wagesMonth" name="wagesMonth" placeholder="选择月份" readonly >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 83%;width: 98%;display: flex;flex-direction: column;margin: 0 auto;background-color: #FFFFFF;border-radius: 10px;padding: 10px;overflow: auto;">
|
<div style="height: 83%;width: 98%;display: flex;flex-direction: column;margin: 0 auto;background-color: #FFFFFF;border-radius: 10px;padding: 10px;overflow: auto;">
|
||||||
<header style="height: 10%">
|
<header style="height: 10%">
|
||||||
<form class="layui-form" onsubmit="return false">
|
<form class="layui-form" onsubmit="return false">
|
||||||
|
<input type="hidden" id="yjId" name="yjId">
|
||||||
<div class="form-group" style="margin-top: 0.5%">
|
<div class="form-group" style="margin-top: 0.5%">
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
|
|
@ -165,18 +178,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="query">
|
<button class="layui-btn layui-btn-sm layui-btn-normal" onclick="queryClick()">
|
||||||
<i class="layui-icon layui-icon-search"></i>
|
<i class="layui-icon layui-icon-search"></i>
|
||||||
查询
|
查询
|
||||||
</button>
|
</button>
|
||||||
<button class="layui-btn layui-btn-sm layui-btn-primary" lay-submit lay-filter="reset">
|
<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="resetClick()">
|
||||||
<i class="layui-icon layui-icon-refresh"></i>
|
<i class="layui-icon layui-icon-refresh"></i>
|
||||||
重置
|
重置
|
||||||
</button>
|
</button>
|
||||||
<button id="exportBt" class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportData()">
|
|
||||||
<i class="layui-icon"></i>
|
|
||||||
导出
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
<script src="../../../plugs/layui-v2.9.2/layui/layui.js"></script>
|
<script src="../../../plugs/layui-v2.9.2/layui/layui.js"></script>
|
||||||
<link href="../../../plugs/layui-v2.9.2/layui/css/layui.css" rel="stylesheet">
|
<link href="../../../plugs/layui-v2.9.2/layui/css/layui.css" rel="stylesheet">
|
||||||
<script src="../../../util/Interceptor.js"></script>
|
<!-- <script src="../../../util/Interceptor.js"></script> -->
|
||||||
<!--业务js-->
|
<!--业务js-->
|
||||||
<script src="../../../js/dataStatistics/wagesStatistics/wagesStatisticsList.js"></script>
|
<script src="../../../js/dataStatistics/wagesStatistics/wagesStatisticsList.js"></script>
|
||||||
|
|
||||||
|
|
@ -34,17 +34,17 @@
|
||||||
<div class="form-group" style="margin-top: 0.5%">
|
<div class="form-group" style="margin-top: 0.5%">
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input id="search1" type="text" class="layui-input" placeholder="工程名称" >
|
<input id="proName" name="proName" type="text" class="layui-input" placeholder="工程名称" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input id="search2" type="text" class="layui-input" placeholder="工作站名称" >
|
<input id="yjName" name="yjName" type="text" class="layui-input" placeholder="工作站名称" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input id="dataTime" name="dataTime" type="text" class="layui-input" placeholder="请选择月份">
|
<input id="wagesMonth" name="wagesMonth" type="text" class="layui-input" placeholder="请选择月份">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="query">
|
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="query">
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
height: 50px;
|
height: 50px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 24px;
|
font-size: 20px;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
border-top-left-radius: 6px;
|
border-top-left-radius: 6px;
|
||||||
border-top-right-radius: 6px;
|
border-top-right-radius: 6px;
|
||||||
|
|
@ -77,13 +77,11 @@
|
||||||
.viewHeader>span{
|
.viewHeader>span{
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.viewContent{
|
.viewContent {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 220px;
|
height: 210px;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.viewContent>img{
|
.viewContent>img{
|
||||||
width: 160px;
|
width: 160px;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
<div><span>数据概览</span></div>
|
<div><span>数据概览</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dataOverview">
|
<div class="dataOverview">
|
||||||
<div class="dataOverviewTop" style="border-color: #FB6260" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FB6260" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">线路总数(项)</div>
|
<div class="typeTitle" style="font-size: 14px;">线路总数(项)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon1.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon1.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #0099FF" onclick="detailsClick(1)">
|
<div class="dataOverviewTop" style="border-color: #0099FF" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">护线员人数(人)</div>
|
<div class="typeTitle" style="font-size: 14px;">护线员人数(人)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon2.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon2.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #8167F5" onclick="inherentClick()">
|
<div class="dataOverviewTop" style="border-color: #8167F5" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">杆塔总数(基)</div>
|
<div class="typeTitle" style="font-size: 14px;">杆塔总数(基)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon3.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon3.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #51D351" onclick="inherentClick()">
|
<div class="dataOverviewTop" style="border-color: #51D351" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">本月已巡视(基)</div>
|
<div class="typeTitle" style="font-size: 14px;">本月已巡视(基)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon4.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon4.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #FF7A8C" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FF7A8C" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">本月未巡视(基)</div>
|
<div class="typeTitle" style="font-size: 14px;">本月未巡视(基)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dataOverviewTop" style="border-color: #FBA64B" onclick="detailsClick()">
|
<div class="dataOverviewTop" style="border-color: #FBA64B" >
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="typeTitle" style="font-size: 14px;">本月特巡天数(天)</div>
|
<div class="typeTitle" style="font-size: 14px;">本月特巡天数(天)</div>
|
||||||
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
<div class="iconBox"> <img src="../../image/dataIcon5.png" alt="" srcset=""> </div>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<input type="hidden" id="yjId" name="yjId">
|
||||||
<form class="form-inline layui-form" onsubmit="return false">
|
<form class="form-inline layui-form" onsubmit="return false">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>电子合同文档</title>
|
||||||
|
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
|
<script src="../../../js/public/jq.js"></script>
|
||||||
|
<script src="../../../js/public/public.js"></script>
|
||||||
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
|
<script src="../../../plugs/commonUtils.js"></script>
|
||||||
|
<script src="../../../js/public/aescbc.js"></script>
|
||||||
|
<script src="../../../plugs/layui-v2.9.2/layui/layui.js"></script>
|
||||||
|
<link href="../../../plugs/layui-v2.9.2/layui/css/layui.css" rel="stylesheet">
|
||||||
|
<script type="text/javascript" src="../../../js/formSelects-v4.js"></script>
|
||||||
|
<link href="../../../js/formSelects-v4.css" rel="stylesheet">
|
||||||
|
<!-- <script src="../../../util/Interceptor.js"></script> -->
|
||||||
|
<!--业务js-->
|
||||||
|
<script src="../../../js/wireManager/staff/contractView.js"></script>
|
||||||
|
<!-- css -->
|
||||||
|
<link type="text/css" media="screen" href="../../../css/formAdd.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--<div id="title" style="background-color: #1AA094">附件查看</div>-->
|
||||||
|
<div id="dataDiv" style="height: 100%;">
|
||||||
|
<div style="width:100%;text-align: right;">
|
||||||
|
<button id="downloadBtn" class="layui-btn layui-btn-normal" style="margin: 1% 3% 0 0">下载</button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<iframe id="iframe" style="width:95%;height: 95%;border: none;margin-left: 2.5%;"></iframe>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -62,9 +62,14 @@
|
||||||
width: 40%!important;
|
width: 40%!important;
|
||||||
height: 100%!important;
|
height: 100%!important;
|
||||||
}
|
}
|
||||||
|
.layui-transfer-box{
|
||||||
|
height: 350px !important;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
.layui-transfer-data{
|
.layui-transfer-data{
|
||||||
height: 100%!important;
|
height: 236px !important;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -173,7 +178,7 @@
|
||||||
<i class="tip-required" style="color: red;font-size: 20px">*</i>联系电话:</label>
|
<i class="tip-required" style="color: red;font-size: 20px">*</i>联系电话:</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="tel" id="tel" class="layui-input"
|
<input type="text" name="tel" id="tel" class="layui-input"
|
||||||
lay-verify="tel" maxlength="200" placeholder="请填写人员联系电话" style="width: 425px">
|
lay-verify="tel" lay-verify="required" maxlength="200" placeholder="请填写人员联系电话" style="width: 425px">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -309,7 +314,7 @@
|
||||||
<button type="button" style="margin-left: 2%;" class="layui-btn layui-btn-primary" id="contractFile">
|
<button type="button" style="margin-left: 2%;" class="layui-btn layui-btn-primary" id="contractFile">
|
||||||
<i class="layui-icon"></i>上传附件
|
<i class="layui-icon"></i>上传附件
|
||||||
</button>
|
</button>
|
||||||
<blockquote id="preview1" class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
|
<blockquote id="preview1" class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;border-width: 0px;padding: 0px;">
|
||||||
预览图:
|
预览图:
|
||||||
<div class="layui-upload-list" id="demo1"></div>
|
<div class="layui-upload-list" id="demo1"></div>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
@ -318,7 +323,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="layui-form-item" style="margin-top: 1%;margin-left: -5%;">
|
<div class="layui-form-item" style="margin-top: 10%;margin-left: -5%;">
|
||||||
<div class="layui-inline" style="width: 90%;" >
|
<div class="layui-inline" style="width: 90%;" >
|
||||||
<span style="border: 3px solid #409EFF;width: 20px;height: 10px;margin-left: 5%"></span>银行卡信息
|
<span style="border: 3px solid #409EFF;width: 20px;height: 10px;margin-left: 5%"></span>银行卡信息
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<div style="color: #333333;font-size: 16px;margin-top: 2%;">填写导入数据信息</div>
|
<div style="color: #333333;font-size: 16px;margin-top: 2%;">填写导入数据信息</div>
|
||||||
<div style="color: #999999;margin-top: 0.6%;">请按照数据模板的格式准备导入数据,模板中的表头名称不可更改,表头行不能删除。</div>
|
<div style="color: #999999;margin-top: 0.6%;">请按照数据模板的格式准备导入数据,模板中的表头名称不可更改,表头行不能删除。</div>
|
||||||
<div style="margin-top: 1%;">
|
<div style="margin-top: 1%;">
|
||||||
<a id="tempId" href="../../../templateDown/人员信息.xlsx" download="人员信息.xlsx" style="color: #409EFF;">下载模板</a>
|
<a id="tempId" href="../../../templateDown/ryxx.xlsx" download="人员信息.xlsx" style="color: #409EFF;">下载模板</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-upload" style="margin-top: 1.5%;">
|
<div class="layui-upload" style="margin-top: 1.5%;">
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
|
@ -384,7 +384,7 @@ function monthRateEcharts(data) {
|
||||||
// 为echarts对象加载数据
|
// 为echarts对象加载数据
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
myChart.on('click', function (params, charts, event) {
|
myChart.on('click', function (params, charts, event) {
|
||||||
detailsClick();
|
// detailsClick();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,11 +99,13 @@ function init(){
|
||||||
if(personStatus == '1'){
|
if(personStatus == '1'){
|
||||||
text = '在职';
|
text = '在职';
|
||||||
color = '#19BE6B';
|
color = '#19BE6B';
|
||||||
}
|
}else if(personStatus == '2'){
|
||||||
if(personStatus == '2'){
|
|
||||||
text = '离职';
|
text = '离职';
|
||||||
color = '#F56C6C';
|
color = '#F56C6C';
|
||||||
}
|
}else{
|
||||||
|
text = '在职';
|
||||||
|
color = '#19BE6B';
|
||||||
|
}
|
||||||
html += "<span style='display: flex;justify-content: center;align-items: center'>"
|
html += "<span style='display: flex;justify-content: center;align-items: center'>"
|
||||||
html += `<span style='width: 5px;height: 5px;background: ${color};border-radius: 50%'></span> `
|
html += `<span style='width: 5px;height: 5px;background: ${color};border-radius: 50%'></span> `
|
||||||
html += `<span>${text}</span>`
|
html += `<span>${text}</span>`
|
||||||
|
|
|
||||||
|
|
@ -381,7 +381,7 @@ function setData(){
|
||||||
url: PATH_URL + "/makeInfo/getUserDetail",
|
url: PATH_URL + "/makeInfo/getUserDetail",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: id
|
id: id,makeMonth:localStorage.getItem("resultdataMakeMonth")
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#username").text(data.data.userName);
|
$("#username").text(data.data.userName);
|
||||||
|
|
|
||||||
|
|
@ -1,73 +1,88 @@
|
||||||
|
var yjId = $(window.parent.parent.document).find("input[id='taskSourceId']").attr("stationId");
|
||||||
|
|
||||||
var pers = []
|
var pers = []
|
||||||
var table,form,layer
|
var table,form,layer,laydate;
|
||||||
layui.use(['form','layer','table'], function () {
|
var times = getCurrentDateTimeArr();
|
||||||
|
layui.use(['form','layer','table', 'laydate'], function () {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
layer = layui.layer;
|
layer = layui.layer;
|
||||||
|
laydate = layui.laydate;
|
||||||
|
// 渲染时间选择器
|
||||||
|
// laydate.render({
|
||||||
|
// elem: '#wagesMonth',
|
||||||
|
// type: 'month',
|
||||||
|
// format: 'yyyy-MM',
|
||||||
|
// fullPanel: true,
|
||||||
|
// value: times[0] + "-" + times[1]
|
||||||
|
// });
|
||||||
|
|
||||||
//测试
|
//取消按钮点击
|
||||||
setData(null);
|
$("#closeBt").click(() => {
|
||||||
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||||
// 触发submit提交 按钮点击或者表单被执行提交时触发
|
parent.layer.close(index); //再执行关闭
|
||||||
form.on('submit(query)', function (data) {
|
})
|
||||||
// 对表格进行重载。id 即 table表格的id
|
//保存按钮点击
|
||||||
table.reload('table', {
|
$("#submitBt").click(() => {
|
||||||
// //设定异步数据接口的额外参数
|
save();
|
||||||
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; // 阻止表单跳转。如果需要表单跳转,去掉这段即可。
|
|
||||||
});
|
|
||||||
|
|
||||||
init();
|
init();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 静态数据
|
//查询
|
||||||
var tableData = [
|
function queryClick(){
|
||||||
{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'},
|
table.reload('layui_table', {
|
||||||
{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'},
|
where: {
|
||||||
{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'},
|
'userName': $("#username").val(),
|
||||||
{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'},
|
'proName': $("#proName").val(),
|
||||||
{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'},
|
'yjId': $('#yjId').val(),
|
||||||
{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'},
|
'wagesMonth': $('#wagesMonth').val()
|
||||||
{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 resetClick(){
|
||||||
{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'},
|
$("#username").val('');
|
||||||
{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'},
|
$("#proName").val('');
|
||||||
{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'},
|
table.reload('layui_table', {
|
||||||
{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'},
|
where: {
|
||||||
{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'},
|
'userName': '',
|
||||||
{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'},
|
'proName': '',
|
||||||
{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'},
|
'yjId': $('#yjId').val(),
|
||||||
{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'},
|
'wagesMonth': times[0] + "-" + times[1]
|
||||||
{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 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(){
|
function init(){
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
|
id: 'layui_table',
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
// url: "/sys/achievement",
|
url: PATH_URL + '/wages/getWagesById',
|
||||||
// page: true,
|
where: {
|
||||||
|
'yjId': $('#yjId').val(),
|
||||||
|
'wagesMonth': $('#wagesMonth').val()
|
||||||
|
},
|
||||||
|
page: true, //开启分页
|
||||||
|
method:'post',
|
||||||
skin: 'line', // 表格样式
|
skin: 'line', // 表格样式
|
||||||
data: tableData,
|
|
||||||
cols: [[
|
cols: [[
|
||||||
{
|
{
|
||||||
title: '序号',
|
title: '序号',
|
||||||
|
|
@ -87,34 +107,31 @@ function init(){
|
||||||
align: 'center',
|
align: 'center',
|
||||||
type: 'numbers'
|
type: 'numbers'
|
||||||
},
|
},
|
||||||
{field:'username', title: '姓 名',align: 'center',},
|
{field:'userName', title: '姓 名',align: 'center',},
|
||||||
{field:'idNumber', title: '身份证号',align: 'center',},
|
{field:'idNumber', title: '身份证号',align: 'center',},
|
||||||
{field:'lineName', title: '管辖线路名称',align: 'center',},
|
{field:'proName', title: '管辖线路名称',align: 'center',},
|
||||||
{field:'phone', title: '手机号',align: 'center',},
|
{field:'phone', title: '手机号',align: 'center',},
|
||||||
{field:'bank', title: '开户行',align: 'center',},
|
{field:'bank', title: '开户行',align: 'center',},
|
||||||
{field:'bankNumber', title: '银行卡号',align: 'center'},
|
{field:'bankCard', title: '银行卡号',align: 'center'},
|
||||||
{field:'UnionPayNumber', title: '银联号',align: 'center'},
|
{field:'unionpayNum', title: '银联号',align: 'center'},
|
||||||
{field:'visitationWorkSecond', title: '巡视工作量(基*次)',align: 'center', },
|
{field:'xsNum', title: '巡视工作量(基*次)',align: 'center', },
|
||||||
{field:'laborPrice', title: '约定巡视工价(元/(基*次))',align: 'center', },
|
{field:'xsPrice', title: '约定巡视工价(元/(基*次))',align: 'center', },
|
||||||
{field:'visitationWorkDay', title: '特巡工作量(人*天)',align: 'center', },
|
{field:'txNum', title: '特巡工作量(人*天)',align: 'center', },
|
||||||
{field:'laborPriceDay', title: '约定特巡工价(元/(人*天))',align: 'center', },
|
{field:'txPrice', title: '约定特巡工价(元/(人*天))',align: 'center', },
|
||||||
{field:'totalPrice', title: '合价(元)',align: 'center', },
|
{field:'allPrice', title: '合价(元)',align: 'center'},
|
||||||
{field:'messages', title: '通讯费',align: 'center', },
|
{field:'phonePrice', title: '通讯费',align: 'center'},
|
||||||
{field:'bonusPenaltys', title: '奖惩',align: 'center', },
|
{field:'reward', title: '奖惩',align: 'center'},
|
||||||
{field:'remark', title: '备注',align: 'center', },
|
{field:'remarks', title: '备注',align: 'center'},
|
||||||
{field:'netSalarys', title: '实发工资',align: 'center', },
|
{field:'wages', title: '实发工资',align: 'center'},
|
||||||
]],
|
]],
|
||||||
|
done: function(res,curr,count){
|
||||||
|
//checkPermission();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//页面赋值
|
//判断是否为数字
|
||||||
function setData(data){
|
function isNumber(variable){
|
||||||
$("#inspectionStation").text("迪庆运检站");
|
return !isNaN(Number(variable));
|
||||||
$("#subComName").text("运检二公司");
|
|
||||||
$("#proNum").text("60");
|
|
||||||
$("#lineProtector").text("16");
|
|
||||||
$("#month").text("3月")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 pers = []
|
||||||
var table,form,laydate
|
var table,form,laydate
|
||||||
layui.use(['form','layer','table','laydate'], function () {
|
layui.use(['form','layer','table','laydate'], function () {
|
||||||
|
|
@ -8,13 +10,14 @@ layui.use(['form','layer','table','laydate'], function () {
|
||||||
|
|
||||||
//初始化日期选择框
|
//初始化日期选择框
|
||||||
laydate.render({
|
laydate.render({
|
||||||
elem: '#dataTime',
|
elem: '#wagesMonth',
|
||||||
type: 'month',
|
type: 'month',
|
||||||
});
|
});
|
||||||
// 触发submit提交 按钮点击或者表单被执行提交时触发
|
// 触发submit提交 按钮点击或者表单被执行提交时触发
|
||||||
form.on('submit(query)', function (data) {
|
form.on('submit(query)', function (data) {
|
||||||
console.log("搜索")
|
console.log("搜索")
|
||||||
// 对表格进行重载。id 即 table表格的id
|
// 对表格进行重载。id 即 table表格的id
|
||||||
|
data.field.fgsId=fgsId;
|
||||||
table.reload('table', {
|
table.reload('table', {
|
||||||
// //设定异步数据接口的额外参数
|
// //设定异步数据接口的额外参数
|
||||||
page:{curr : 1}
|
page:{curr : 1}
|
||||||
|
|
@ -24,13 +27,13 @@ layui.use(['form','layer','table','laydate'], function () {
|
||||||
});
|
});
|
||||||
$("#reset").click(function(){
|
$("#reset").click(function(){
|
||||||
console.log("重置")
|
console.log("重置")
|
||||||
$('#search1').val('');
|
$('#proName').val('');
|
||||||
$('#search2').val('');
|
$('#yjName').val('');
|
||||||
$('#search3').val('');
|
$('#wagesMonth').val('');
|
||||||
let obj = {
|
let obj = {
|
||||||
search1:'',
|
proName:'',
|
||||||
search2:'',
|
yjName:'',fgsId:fgsId,
|
||||||
search3:''
|
wagesMonth:''
|
||||||
}
|
}
|
||||||
// 对表格进行重载。id 即 table表格的id
|
// 对表格进行重载。id 即 table表格的id
|
||||||
table.reload('table', {
|
table.reload('table', {
|
||||||
|
|
@ -43,128 +46,133 @@ layui.use(['form','layer','table','laydate'], function () {
|
||||||
init();
|
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(){
|
function init(){
|
||||||
var subComId = $(window.parent.document).find("select[id='subComId']").val();
|
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
where: {
|
where: {
|
||||||
fgsId: subComId
|
fgsId: fgsId
|
||||||
},
|
},
|
||||||
// url: "/sys/achievement",
|
url: PATH_URL + '/wages/getWagesEscalationList',
|
||||||
page: true,
|
page: true,
|
||||||
|
method: 'post',
|
||||||
skin: 'line', // 表格样式
|
skin: 'line', // 表格样式
|
||||||
cols: [[
|
cols: [
|
||||||
{
|
[{
|
||||||
title: '序号',
|
title: '序号',
|
||||||
field: 'zizeng',
|
field: 'zizeng',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
type: 'numbers',
|
type: 'numbers'
|
||||||
width: '5%'
|
},
|
||||||
},
|
{
|
||||||
{field:'comName', title: '分公司',align: 'center'},
|
field: 'fgsName',
|
||||||
{field:'sName', title: '运检站',align: 'center'},
|
title: '分公司',
|
||||||
{field:'month', title: '月份',align: 'center'},
|
align: 'center',
|
||||||
{field:'personNum', title: '人数',align: 'center'},
|
},
|
||||||
{field:'stationNum', title: '巡视运检站(基*次)',align: 'center'},
|
{
|
||||||
{field:'specialPatrolNum', title: '特巡天数(人*天)',align: 'center'},
|
field: 'yjName',
|
||||||
{field:'messageCost', title: '通讯费',align: 'center'},
|
title: '运检站',
|
||||||
{field:'bonusPenalty', title: '奖惩',align: 'center'},
|
align: 'center',
|
||||||
{field:'actualRelease', title: '实发金额',align: 'center'},
|
},
|
||||||
{
|
{
|
||||||
field: '',
|
field: 'wagesMonth',
|
||||||
title: '操作',
|
title: '月份',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%',
|
},
|
||||||
templet: function(d){
|
{
|
||||||
var id= d.id;
|
field: 'peopleNum',
|
||||||
var html = `<button class="layui-btn layui-btn-sm" onclick="detailsView('${id}')">详情</button>`
|
title: '人数',
|
||||||
return html;
|
align: 'center',
|
||||||
},
|
},
|
||||||
}
|
{
|
||||||
]],
|
field: 'xsNum',
|
||||||
data: tableData
|
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 = `<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${yjName}','${gsName}','${wagesMonth}')">详情</button>`
|
||||||
|
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 height = '98%';
|
||||||
let width = '99%';
|
let width = '99%';
|
||||||
|
//测试
|
||||||
var index = layer.open({
|
var index = layer.open({
|
||||||
title: ['工资清单详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
title: ['详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||||
type: 2,
|
type: 2,
|
||||||
content: './wagesStatisticsDetails.html',
|
content: './wagesStatisticsDetails.html',
|
||||||
area: [width, height],
|
area: [width, height],
|
||||||
maxmin: false,
|
maxmin: false,
|
||||||
success: function (layero, index) {
|
success: function(layero, index) {
|
||||||
// var myIframe = window[layero.find('iframe')[0]['name']];
|
// //打开页面成功时执行
|
||||||
// myIframe.hideSubmit();
|
var myIframe = window[layero.find('iframe')[0]['name']];
|
||||||
// var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
|
//getTaskSource()为子页面的方法
|
||||||
|
myIframe.setData(yjId, yjName, gsName, wagesMonth);
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData(){
|
function exportData() {
|
||||||
// let search1 = $('#search1').val();
|
var yjName = $("#yjName").val();
|
||||||
// let search2 = $('#search2').val();
|
var proName = $("#proName").val();
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
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
|
||||||
}
|
}
|
||||||
|
|
@ -38,15 +38,19 @@ layui.use(['form','layer','table','laydate','element'], function () {
|
||||||
if(tabIndex==0){
|
if(tabIndex==0){
|
||||||
tableType = 'layui_table1';
|
tableType = 'layui_table1';
|
||||||
initTable1();
|
initTable1();
|
||||||
|
$("#exportBt").css("display","")
|
||||||
}else if(tabIndex==1){
|
}else if(tabIndex==1){
|
||||||
tableType = 'layui_table2';
|
tableType = 'layui_table2';
|
||||||
initTable2();
|
initTable2();
|
||||||
|
$("#exportBt").css("display","none")
|
||||||
}else if(tabIndex==2){
|
}else if(tabIndex==2){
|
||||||
tableType = 'layui_table3';
|
tableType = 'layui_table3';
|
||||||
initTable3("", "", "", times[0] + "-" + times[1]);
|
initTable3("", "", "", times[0] + "-" + times[1]);
|
||||||
|
$("#exportBt").css("display","none")
|
||||||
}else{
|
}else{
|
||||||
tableType = 'layui_table1';
|
tableType = 'layui_table1';
|
||||||
initTable1();
|
initTable1();
|
||||||
|
$("#exportBt").css("display","")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -355,9 +359,18 @@ function checkView(obj) {
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData() {
|
function exportData() {
|
||||||
// let search1 = $('#search1').val();
|
var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
|
||||||
// let search2 = $('#search2').val();
|
let userName = $('#userName').val();
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -55,6 +55,7 @@ function setData(data){
|
||||||
|
|
||||||
|
|
||||||
function getView(data){
|
function getView(data){
|
||||||
|
console.log(data,"data");
|
||||||
var oneMakeList = data.data.oneMakeList;
|
var oneMakeList = data.data.oneMakeList;
|
||||||
$("#firstViewBox").html('');
|
$("#firstViewBox").html('');
|
||||||
let html1 = ``;
|
let html1 = ``;
|
||||||
|
|
@ -91,7 +92,7 @@ function getView(data){
|
||||||
<span>${oneMakeList[i].gtName}</span>
|
<span>${oneMakeList[i].gtName}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="viewContent" style="height: ${ height }">
|
<div class="viewContent" style="height: ${ height }">
|
||||||
<img src="../../../image/viewImg.jpg" style="height: ${ imgHeight }" alt="">
|
<img src="${IMG_URL+oneMakeList[i].sfilePath}" style="height: ${ imgHeight }" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="viewFooter">
|
<div class="viewFooter">
|
||||||
<i class="layui-icon"></i>
|
<i class="layui-icon"></i>
|
||||||
|
|
@ -140,7 +141,7 @@ function getView(data){
|
||||||
<span>${twoMakeList[i].gtName}</span>
|
<span>${twoMakeList[i].gtName}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="viewContent" style="height: ${ height }">
|
<div class="viewContent" style="height: ${ height }">
|
||||||
<img src="../../../image/viewImg.jpg" style="height: ${ imgHeight }" alt="">
|
<img src="${IMG_URL+twoMakeList[i].sfilePath}" style="height: ${ imgHeight }" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="viewFooter">
|
<div class="viewFooter">
|
||||||
<i class="layui-icon"></i>
|
<i class="layui-icon"></i>
|
||||||
|
|
@ -161,7 +162,7 @@ function getView(data){
|
||||||
<span>${spMakeList[i].makeTime}</span>
|
<span>${spMakeList[i].makeTime}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="viewContent" style="height: 196px">
|
<div class="viewContent" style="height: 196px">
|
||||||
<img src="../../../image/viewImg.jpg" style="height: 186px" alt="">
|
<img src="${IMG_URL+spMakeList[i].sfilePath}" style="height: 186px" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="viewFooter">
|
<div class="viewFooter">
|
||||||
<i class="layui-icon"></i>
|
<i class="layui-icon"></i>
|
||||||
|
|
|
||||||
|
|
@ -337,7 +337,7 @@ function monthRateEcharts(data) {
|
||||||
// 为echarts对象加载数据
|
// 为echarts对象加载数据
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
myChart.on('click', function (params, charts, event) {
|
myChart.on('click', function (params, charts, event) {
|
||||||
detailsClick();
|
// detailsClick();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ layui.use(['layer', 'form', 'upload'], function () {
|
||||||
});
|
});
|
||||||
function setParam(data){
|
function setParam(data){
|
||||||
parentValue = data;
|
parentValue = data;
|
||||||
|
$("#yjId").val(data.yjId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getProjectSelect(proId) {
|
function getProjectSelect(proId) {
|
||||||
|
|
@ -45,6 +46,7 @@ function getProjectSelect(proId) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: PATH_URL + "/lineProject/getProList",
|
url: PATH_URL + "/lineProject/getProList",
|
||||||
data: {
|
data: {
|
||||||
|
yjId:$("#yjId").val()
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
console.log("获取工程下拉列表OK");
|
console.log("获取工程下拉列表OK");
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
var pers = []
|
var pers = []
|
||||||
|
var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
|
||||||
var table,form,layer;
|
var table,form,layer;
|
||||||
layui.use(['form','layer','table'], function () {
|
layui.use(['form','layer','table'], function () {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
|
|
@ -275,7 +276,8 @@ function importData(){
|
||||||
var myIframe = window[layero.find('iframe')[0]['name']];
|
var myIframe = window[layero.find('iframe')[0]['name']];
|
||||||
var json = {
|
var json = {
|
||||||
type: '1',
|
type: '1',
|
||||||
proId: ""
|
proId: "",
|
||||||
|
yjId:yjId
|
||||||
}
|
}
|
||||||
myIframe.setParam(json)
|
myIframe.setParam(json)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,175 @@
|
||||||
|
var Base64 = {
|
||||||
|
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
||||||
|
encode: function(e) {
|
||||||
|
var t = "";
|
||||||
|
var n, r, i, s, o, u, a;
|
||||||
|
var f = 0;
|
||||||
|
e = Base64._utf8_encode(e);
|
||||||
|
while (f < e.length) {
|
||||||
|
n = e.charCodeAt(f++);
|
||||||
|
r = e.charCodeAt(f++);
|
||||||
|
i = e.charCodeAt(f++);
|
||||||
|
s = n >> 2;
|
||||||
|
o = (n & 3) << 4 | r >> 4;
|
||||||
|
u = (r & 15) << 2 | i >> 6;
|
||||||
|
a = i & 63;
|
||||||
|
if (isNaN(r)) {
|
||||||
|
u = a = 64
|
||||||
|
} else if (isNaN(i)) {
|
||||||
|
a = 64
|
||||||
|
}
|
||||||
|
t = t + this._keyStr.charAt(s) + this._keyStr.charAt(o) + this._keyStr.charAt(u) + this._keyStr.charAt(a)
|
||||||
|
}
|
||||||
|
return t
|
||||||
|
},
|
||||||
|
decode: function(e) {
|
||||||
|
var t = "";
|
||||||
|
var n, r, i;
|
||||||
|
var s, o, u, a;
|
||||||
|
var f = 0;
|
||||||
|
e = e.replace(/[^A-Za-z0-9+/=]/g, "");
|
||||||
|
while (f < e.length) {
|
||||||
|
s = this._keyStr.indexOf(e.charAt(f++));
|
||||||
|
o = this._keyStr.indexOf(e.charAt(f++));
|
||||||
|
u = this._keyStr.indexOf(e.charAt(f++));
|
||||||
|
a = this._keyStr.indexOf(e.charAt(f++));
|
||||||
|
n = s << 2 | o >> 4;
|
||||||
|
r = (o & 15) << 4 | u >> 2;
|
||||||
|
i = (u & 3) << 6 | a;
|
||||||
|
t = t + String.fromCharCode(n);
|
||||||
|
if (u != 64) {
|
||||||
|
t = t + String.fromCharCode(r)
|
||||||
|
}
|
||||||
|
if (a != 64) {
|
||||||
|
t = t + String.fromCharCode(i)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
t = Base64._utf8_decode(t);
|
||||||
|
return t
|
||||||
|
},
|
||||||
|
_utf8_encode: function(e) {
|
||||||
|
e = e.replace(/rn/g, "n");
|
||||||
|
var t = "";
|
||||||
|
for (var n = 0; n < e.length; n++) {
|
||||||
|
var r = e.charCodeAt(n);
|
||||||
|
if (r < 128) {
|
||||||
|
t += String.fromCharCode(r)
|
||||||
|
} else if (r > 127 && r < 2048) {
|
||||||
|
t += String.fromCharCode(r >> 6 | 192);
|
||||||
|
t += String.fromCharCode(r & 63 | 128)
|
||||||
|
} else {
|
||||||
|
t += String.fromCharCode(r >> 12 | 224);
|
||||||
|
t += String.fromCharCode(r >> 6 & 63 | 128);
|
||||||
|
t += String.fromCharCode(r & 63 | 128)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return t
|
||||||
|
},
|
||||||
|
_utf8_decode: function(e) {
|
||||||
|
var t = "";
|
||||||
|
var n = 0;
|
||||||
|
var r = c1 = c2 = 0;
|
||||||
|
while (n < e.length) {
|
||||||
|
r = e.charCodeAt(n);
|
||||||
|
if (r < 128) {
|
||||||
|
t += String.fromCharCode(r);
|
||||||
|
n++
|
||||||
|
} else if (r > 191 && r < 224) {
|
||||||
|
c2 = e.charCodeAt(n + 1);
|
||||||
|
t += String.fromCharCode((r & 31) << 6 | c2 & 63);
|
||||||
|
n += 2
|
||||||
|
} else {
|
||||||
|
c2 = e.charCodeAt(n + 1);
|
||||||
|
c3 = e.charCodeAt(n + 2);
|
||||||
|
t += String.fromCharCode((r & 15) << 12 | (c2 & 63) << 6 | c3 & 63);
|
||||||
|
n += 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var downloadFileName = localStorage.getItem("downloadFileName");
|
||||||
|
var filePreviewPath;
|
||||||
|
let filePath;
|
||||||
|
$(function() {
|
||||||
|
var urlParam=localStorage.getItem("contracturl");
|
||||||
|
console.log(urlParam,"urlParam");
|
||||||
|
setParam(urlParam);
|
||||||
|
})
|
||||||
|
function setParam(urlParam){
|
||||||
|
filePath = urlParam;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
filePreviewPath = IMG_URL + filePath;
|
||||||
|
}else{
|
||||||
|
filePreviewPath = IMG_URL + filePath;
|
||||||
|
}
|
||||||
|
$("#iframe").attr("src", filePreviewPath);
|
||||||
|
//限制onclick事件只触发一次
|
||||||
|
$("#downloadBtn").one('click',function () {
|
||||||
|
var truePath;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
truePath = filePath;
|
||||||
|
}else{
|
||||||
|
truePath = IMG_URL + filePath;
|
||||||
|
}
|
||||||
|
if(downloadFileName!==null && downloadFileName !== undefined){
|
||||||
|
download(truePath, downloadFileName);
|
||||||
|
localStorage.removeItem("downloadFileName");
|
||||||
|
}else{
|
||||||
|
download(truePath, "电子合同文档");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function setParamPro(urlParam){
|
||||||
|
filePath = urlParam;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
filePreviewPath = filePath;
|
||||||
|
}else{
|
||||||
|
filePreviewPath = filePath;
|
||||||
|
}
|
||||||
|
$("#iframe").attr("src", filePreviewPath);
|
||||||
|
//限制onclick事件只触发一次
|
||||||
|
$("#downloadBtn").one('click',function () {
|
||||||
|
var truePath;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
truePath = filePath;
|
||||||
|
}else{
|
||||||
|
truePath = filePath;
|
||||||
|
}
|
||||||
|
if(downloadFileName!==null && downloadFileName !== undefined){
|
||||||
|
download(truePath, downloadFileName);
|
||||||
|
localStorage.removeItem("downloadFileName");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function setParamPDFs(urlParam){
|
||||||
|
filePath = urlParam;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
filePreviewPath = filePreviewPathAll + "/" + filePath;
|
||||||
|
}else{
|
||||||
|
filePreviewPath = filePreviewPathAll + "/" + filePath;
|
||||||
|
}
|
||||||
|
$("#iframe").attr("src", filePreviewPath);
|
||||||
|
|
||||||
|
var truePath;
|
||||||
|
if(filePath.indexOf("http") != -1){
|
||||||
|
truePath = filePath;
|
||||||
|
}else{
|
||||||
|
truePath = dataPath + "/" + filePath;
|
||||||
|
}
|
||||||
|
if(downloadFileName!==null && downloadFileName !== undefined){
|
||||||
|
download(truePath, downloadFileName);
|
||||||
|
localStorage.removeItem("downloadFileName");
|
||||||
|
}else{
|
||||||
|
download(truePath, "电子合同文档");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -4,6 +4,7 @@ var trainFileNames = [];
|
||||||
var trainFilePaths = [];
|
var trainFilePaths = [];
|
||||||
var examFileNames = [];
|
var examFileNames = [];
|
||||||
var examFilePaths = [];
|
var examFilePaths = [];
|
||||||
|
var startWorkFiles = {};
|
||||||
var staffType = "";
|
var staffType = "";
|
||||||
var tree;
|
var tree;
|
||||||
var transfer;
|
var transfer;
|
||||||
|
|
@ -61,22 +62,29 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
||||||
,multiple: true //是否允许多文件上传,默认未false
|
,multiple: true //是否允许多文件上传,默认未false
|
||||||
,dataType: "json"
|
,dataType: "json"
|
||||||
,exts: 'pdf'
|
,exts: 'pdf'
|
||||||
|
,accept: 'file'
|
||||||
,number: 1 //最大上传数量
|
,number: 1 //最大上传数量
|
||||||
,size: 1024 * 5 //最大文件大小,单位k
|
,size: 1024 * 5 //最大文件大小,单位k
|
||||||
,bindAction: '#hideUpload1' //指向一个按钮触发上传
|
,bindAction: '#hideUpload1' //指向一个按钮触发上传
|
||||||
,choose: function(obj){
|
,choose: function(obj){
|
||||||
//将每次选择的文件追加到文件队列
|
//将每次选择的文件追加到文件队列
|
||||||
var files = obj.pushFile();
|
var files = obj.pushFile();
|
||||||
|
startWorkFiles = obj.pushFile();
|
||||||
chosenum=1;
|
chosenum=1;
|
||||||
//预读本地文件,如果是多文件,则会遍历。(不支持ie8/9)
|
//预读本地文件,如果是多文件,则会遍历。(不支持ie8/9)
|
||||||
obj.preview(function(index, file, result){
|
obj.preview(function(index, file, result){
|
||||||
var length = $('#demo1 img').length;
|
var length = $('#demo1 img').length;
|
||||||
if (length > 2) {
|
if (length > 1) {
|
||||||
delete files[index];//删除指定图片
|
delete files[index];//删除指定图片
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
return layer.msg("附件为1-3张,请勿过多上传", {icon: 5});
|
return layer.msg("附件为1张,请勿过多上传", {icon: 5});
|
||||||
}
|
}
|
||||||
$('#demo1').append('<img src="' + result + '" id="' + index + '" alt="' + file.name + '" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">');
|
if(file.name.indexOf(".pdf") !== -1||file.name.indexOf(".PDF") !== -1){
|
||||||
|
$('#demo1').append('<img src="../../../image/fileIcon/pdf.png" id="' + index + '" title="'+file.name+'" alt="' + file.name + '" style="height: 40px;width: 40px;margin-right: 10px" class="layui-upload-img ">');
|
||||||
|
}else{
|
||||||
|
$('#demo1').append('<img src="' + result + '" id="' + index + '" title="'+file.name+'" alt="' + file.name + '" style="height: 40px;width: 40px;margin-right: 10px" class="layui-upload-img ">');
|
||||||
|
}
|
||||||
|
|
||||||
$('#' + index).bind('dblclick', function () {//双击删除指定预上传图片
|
$('#' + index).bind('dblclick', function () {//双击删除指定预上传图片
|
||||||
delete files[index];//删除指定图片
|
delete files[index];//删除指定图片
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
|
@ -123,6 +131,26 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
||||||
//请求异常回调
|
//请求异常回调
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
var singleClick = false;
|
||||||
|
var singleClickTimer;
|
||||||
|
|
||||||
|
$('#myElement').on('click', function() {
|
||||||
|
singleClick = true;
|
||||||
|
singleClickTimer = setTimeout(function() {
|
||||||
|
singleClick = false;
|
||||||
|
}, 200);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#myElement').on('dblclick', function(e) {
|
||||||
|
clearTimeout(singleClickTimer);
|
||||||
|
if (singleClick) {
|
||||||
|
alert('Single Click');
|
||||||
|
singleClick = false;
|
||||||
|
} else {
|
||||||
|
alert('Double Click');
|
||||||
|
}
|
||||||
|
e.preventDefault(); // 阻止默认的双击行为(可能会导致滚动或者选中文本等)
|
||||||
|
});
|
||||||
// 渲染开始时间选择器
|
// 渲染开始时间选择器
|
||||||
laydate.render({
|
laydate.render({
|
||||||
elem: '#startTime',
|
elem: '#startTime',
|
||||||
|
|
@ -248,7 +276,7 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
||||||
form.on('submit(formDemo)', function (data) {
|
form.on('submit(formDemo)', function (data) {
|
||||||
filedata=data;
|
filedata=data;
|
||||||
if($("#id").val()==''){
|
if($("#id").val()==''){
|
||||||
if(chosenum==0){
|
if($.isEmptyObject(startWorkFiles)){
|
||||||
layer.msg("请上传附件!")
|
layer.msg("请上传附件!")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -266,7 +294,29 @@ layui.use(['element','layer','transfer', 'form', 'upload','laydate','tree'], fun
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
function electronicContractView(url){
|
||||||
|
let height ='100%';
|
||||||
|
let width = '80%';
|
||||||
|
localStorage.setItem("contracturl", url);
|
||||||
|
let layerIndex = parent.layer.open({
|
||||||
|
id: 'layer-electronicContract',
|
||||||
|
title: ['详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||||
|
type: 2,
|
||||||
|
content: 'contractView.html',
|
||||||
|
area: [width, height],
|
||||||
|
maxmin: false,
|
||||||
|
shadeClose: false, //开启遮罩关闭
|
||||||
|
shade: 0.3, //显示遮罩
|
||||||
|
move: false,
|
||||||
|
resize: false,
|
||||||
|
success:function(layero,index){
|
||||||
|
$(window).resize(function () {
|
||||||
|
if (autoResizeWidth) autoResizeWidth(index);
|
||||||
|
if (autoResizeHeight) autoResizeHeight(index);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function initProSelect(arr){
|
function initProSelect(arr){
|
||||||
var yj_id=localStorage.getItem("oneselectyj");
|
var yj_id=localStorage.getItem("oneselectyj");
|
||||||
|
|
@ -600,6 +650,12 @@ function setData2(data) {
|
||||||
$("#fileName").val(data.fileName);
|
$("#fileName").val(data.fileName);
|
||||||
$("#filePath").val(data.filePath);
|
$("#filePath").val(data.filePath);
|
||||||
$("#pdfPath").val(data.pdfPath);
|
$("#pdfPath").val(data.pdfPath);
|
||||||
|
$('#demo1').empty();
|
||||||
|
if(data.filePath.indexOf(".pdf") !== -1||data.filePath.indexOf(".PDF") !== -1){
|
||||||
|
$('#demo1').append('<img src="../../../image/fileIcon/pdf.png" id="' + data.id + '" onclick="electronicContractView(\''+data.filePath+'\')" title="'+data.fileName+'" alt="' + data.fileName + '" style="height: 40px;width: 40px;margin-right: 10px" class="layui-upload-img ">');
|
||||||
|
}else{
|
||||||
|
$('#demo1').append('<img src="../../../image/fileIcon/pdf.png" id="' + data.id + '" onclick="electronicContractView(\''+data.filePath+'\')" title="'+data.fileName+'" alt="' + data.fileName + '" style="height: 40px;width: 40px;margin-right: 10px" class="layui-upload-img ">');
|
||||||
|
}
|
||||||
// getTaskSource("taskSourceId",data[0].taskSourceId);
|
// getTaskSource("taskSourceId",data[0].taskSourceId);
|
||||||
// $("#taskSourceId").val(data[0].taskSourceId);
|
// $("#taskSourceId").val(data[0].taskSourceId);
|
||||||
// 首先移除所有选项的 pass 类
|
// 首先移除所有选项的 pass 类
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,9 @@ layui.use(['form', 'table', 'upload', 'laydate'], function () {
|
||||||
|
|
||||||
form.on('submit(formDemo)', function (data) {
|
form.on('submit(formDemo)', function (data) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
|
if($.isEmptyObject(startWorkFiles)){
|
||||||
|
layer.msg("请上传文件!")
|
||||||
|
}
|
||||||
checkGt(data.field.gtId);
|
checkGt(data.field.gtId);
|
||||||
// $("#hideUpload").trigger("click");
|
// $("#hideUpload").trigger("click");
|
||||||
});
|
});
|
||||||
|
|
@ -56,7 +59,7 @@ function checkGt(gtid){
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async:false,
|
async:false,
|
||||||
data: {
|
data: {
|
||||||
gtid:gtid,makeTime:$("#dataTime").val()
|
gtId:gtid,makeTime:$("#dataTime").val()
|
||||||
},
|
},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
|
|
@ -188,7 +191,7 @@ function uploadFile(){
|
||||||
}else{
|
}else{
|
||||||
layer.msg('最多上传2张照片',{icon:2})
|
layer.msg('最多上传2张照片',{icon:2})
|
||||||
}
|
}
|
||||||
addDelete(startWorkFiles);
|
addDelete(startWorkFiles,obj.pushFile(),index);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
@ -259,13 +262,13 @@ function delPhoto(i,id) {
|
||||||
$("#preview" + i).css("display", "none");
|
$("#preview" + i).css("display", "none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addDelete(arr) {
|
function addDelete(arr,pusharr,index) {
|
||||||
$('#demo').click(function (e) {
|
$('#demo').click(function (e) {
|
||||||
var target = $(e.target)
|
var target = $(e.target)
|
||||||
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
||||||
var dataIdx = target.attr('data-idx')
|
var dataIdx = target.attr('data-idx')
|
||||||
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
||||||
delete arr[dataIdx]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
delete pusharr[index]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
||||||
target.parents('.item').remove() // 页面文件标签也删除
|
target.parents('.item').remove() // 页面文件标签也删除
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,9 @@ layui.use(['form', 'table', 'upload', 'laydate'], function () {
|
||||||
uploadFile();
|
uploadFile();
|
||||||
|
|
||||||
form.on('submit(formDemo)', function (data) {
|
form.on('submit(formDemo)', function (data) {
|
||||||
|
if($.isEmptyObject(startWorkFiles)){
|
||||||
|
layer.msg("请上传文件!")
|
||||||
|
}
|
||||||
$("#hideUpload").trigger("click");
|
$("#hideUpload").trigger("click");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -98,7 +101,7 @@ function uploadFile(){
|
||||||
}else{
|
}else{
|
||||||
layer.msg('最多上传2张照片',{icon:2})
|
layer.msg('最多上传2张照片',{icon:2})
|
||||||
}
|
}
|
||||||
addDelete(startWorkFiles);
|
addDelete(startWorkFiles,obj.pushFile(),index);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
@ -213,13 +216,13 @@ function delPhoto(i,id) {
|
||||||
$("#preview" + i).css("display", "none");
|
$("#preview" + i).css("display", "none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addDelete(arr) {
|
function addDelete(arr,pusharr,index) {
|
||||||
$('#demo').click(function (e) {
|
$('#demo').click(function (e) {
|
||||||
var target = $(e.target)
|
var target = $(e.target)
|
||||||
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
||||||
var dataIdx = target.attr('data-idx')
|
var dataIdx = target.attr('data-idx')
|
||||||
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
||||||
delete arr[dataIdx]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
delete pusharr[index]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
||||||
target.parents('.item').remove() // 页面文件标签也删除
|
target.parents('.item').remove() // 页面文件标签也删除
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ layui.use(['form', 'table', 'upload'], function () {
|
||||||
uploadFile();
|
uploadFile();
|
||||||
|
|
||||||
form.on('submit(formDemo)', function (data) {
|
form.on('submit(formDemo)', function (data) {
|
||||||
if(urls.length==0){
|
console.log(startWorkFiles,"startWorkFiles")
|
||||||
|
if($.isEmptyObject(startWorkFiles)){
|
||||||
layer.msg("请上传文件!")
|
layer.msg("请上传文件!")
|
||||||
}
|
}
|
||||||
$("#hideUpload").trigger("click");
|
$("#hideUpload").trigger("click");
|
||||||
|
|
@ -48,7 +49,8 @@ function uploadFile(){
|
||||||
multiple: true, //是否允许多文件上传,默认未false
|
multiple: true, //是否允许多文件上传,默认未false
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
exts: 'jpg|png',
|
exts: 'jpg|png',
|
||||||
//acceptMime: 'image/jpg,image/png,image/jpeg,file/pdf,file/xlsx',
|
// acceptMime: 'file',
|
||||||
|
accept: 'file',
|
||||||
auto: false, //是否自动上传 ,默认为true
|
auto: false, //是否自动上传 ,默认为true
|
||||||
number: 9, //最大上传数量
|
number: 9, //最大上传数量
|
||||||
// size: 1024*5, //最大文件大小,单位k
|
// size: 1024*5, //最大文件大小,单位k
|
||||||
|
|
@ -79,7 +81,7 @@ function uploadFile(){
|
||||||
}else{
|
}else{
|
||||||
layer.msg('最多上传1张照片',{icon:2})
|
layer.msg('最多上传1张照片',{icon:2})
|
||||||
}
|
}
|
||||||
addDelete(startWorkFiles);
|
addDelete(startWorkFiles,obj.pushFile(),index);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
@ -158,13 +160,13 @@ function delPhoto(i,id) {
|
||||||
$("#preview" + i).css("display", "none");
|
$("#preview" + i).css("display", "none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addDelete(arr) {
|
function addDelete(arr,pusharr,index) {
|
||||||
$('#demo').click(function (e) {
|
$('#demo').click(function (e) {
|
||||||
var target = $(e.target)
|
var target = $(e.target)
|
||||||
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
||||||
var dataIdx = target.attr('data-idx')
|
var dataIdx = target.attr('data-idx')
|
||||||
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
||||||
delete arr[dataIdx]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
delete pusharr[index]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
||||||
target.parents('.item').remove() // 页面文件标签也删除
|
target.parents('.item').remove() // 页面文件标签也删除
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ layui.use(['form', 'table', 'upload'], function () {
|
||||||
uploadFile();
|
uploadFile();
|
||||||
|
|
||||||
form.on('submit(formDemo)', function (data) {
|
form.on('submit(formDemo)', function (data) {
|
||||||
if(urls.length==0){
|
if($.isEmptyObject(startWorkFiles)){
|
||||||
layer.msg("请上传文件!")
|
layer.msg("请上传文件!")
|
||||||
}
|
}
|
||||||
$("#hideUpload").trigger("click");
|
$("#hideUpload").trigger("click");
|
||||||
|
|
@ -79,7 +79,7 @@ function uploadFile(){
|
||||||
}else{
|
}else{
|
||||||
layer.msg('最多上传1张照片',{icon:2})
|
layer.msg('最多上传1张照片',{icon:2})
|
||||||
}
|
}
|
||||||
addDelete(startWorkFiles);
|
addDelete(startWorkFiles,obj.pushFile(),index);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
@ -158,13 +158,13 @@ function delPhoto(i,id) {
|
||||||
$("#preview" + i).css("display", "none");
|
$("#preview" + i).css("display", "none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addDelete(arr) {
|
function addDelete(arr,pusharr,index) {
|
||||||
$('#demo').click(function (e) {
|
$('#demo').click(function (e) {
|
||||||
var target = $(e.target)
|
var target = $(e.target)
|
||||||
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
||||||
var dataIdx = target.attr('data-idx')
|
var dataIdx = target.attr('data-idx')
|
||||||
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
||||||
delete arr[dataIdx]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
delete pusharr[index];// 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
||||||
target.parents('.item').remove() // 页面文件标签也删除
|
target.parents('.item').remove() // 页面文件标签也删除
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,11 @@ layui.use(['form','layer','table','laydate'], function () {
|
||||||
break;
|
break;
|
||||||
case 'uploadResult':
|
case 'uploadResult':
|
||||||
console.log('上传结果',obj.data.id,obj.data.userId)
|
console.log('上传结果',obj.data.id,obj.data.userId)
|
||||||
updateView(obj.data.id,obj.data.userId,obj.data.makeMonth);
|
if(obj.data.isUpdate==0){
|
||||||
|
updateView(obj.data.id,obj.data.userId,obj.data.makeMonth);
|
||||||
|
}else{
|
||||||
|
layer.msg("该月工资已生成。")
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -396,12 +396,13 @@ function getView(){
|
||||||
//页面赋值
|
//页面赋值
|
||||||
function setData(){
|
function setData(){
|
||||||
var id=localStorage.getItem("resultUserId");
|
var id=localStorage.getItem("resultUserId");
|
||||||
|
var makeMonth=localStorage.getItem("resultMakeMonth");
|
||||||
$.ajax({//id获取详情打开弹窗传值子页面
|
$.ajax({//id获取详情打开弹窗传值子页面
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: PATH_URL + "/makeInfo/getUserDetail",
|
url: PATH_URL + "/makeInfo/getUserDetail",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: id
|
id: id,makeMonth:makeMonth
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#username").text(data.data.userName);
|
$("#username").text(data.data.userName);
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,8 @@ layui.use(['form','layer','table','laydate','element'], function () {
|
||||||
});
|
});
|
||||||
$("#month").val(localStorage.getItem("resultMakeMonth"));
|
$("#month").val(localStorage.getItem("resultMakeMonth"));
|
||||||
resultMonth=localStorage.getItem("resultMakeMonth")
|
resultMonth=localStorage.getItem("resultMakeMonth")
|
||||||
init(year,month)
|
|
||||||
setData()
|
setData()
|
||||||
|
init(year,month)
|
||||||
});
|
});
|
||||||
function firstDayStr(){
|
function firstDayStr(){
|
||||||
var today = new Date();
|
var today = new Date();
|
||||||
|
|
@ -258,10 +257,14 @@ function getView(){
|
||||||
html +=`<div class="viewHeader" style="background-color: #52C1F5;">`
|
html +=`<div class="viewHeader" style="background-color: #52C1F5;">`
|
||||||
}
|
}
|
||||||
html += `<img src="../../../image/tower_white.png" alt="">
|
html += `<img src="../../../image/tower_white.png" alt="">
|
||||||
<span style="width: 33%;" title="${viewList1[i].gtName}">${gtName}</span>
|
<span style="width: 33%;" title="${viewList1[i].gtName}">${gtName}</span> `
|
||||||
<img src="../../../image/edit_white.png" onclick="towerEdit(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
if("1"==viewList1[i].state||"1"==viewList1[i].makeType){
|
||||||
<img src="../../../image/del_white.png" onclick="towerDel(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
html +=`
|
||||||
</div>
|
<img src="../../../image/edit_white.png" onclick="towerEdit(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
|
<img src="../../../image/del_white.png" onclick="towerDel(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
html +=`</div>
|
||||||
<div class="viewContent">`
|
<div class="viewContent">`
|
||||||
var flag = false;
|
var flag = false;
|
||||||
for (var j = 0; j < photoList1.length; j++) {
|
for (var j = 0; j < photoList1.length; j++) {
|
||||||
|
|
@ -272,10 +275,16 @@ function getView(){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var usernamed=$("#username").text();
|
||||||
if(!flag){
|
if(!flag){
|
||||||
//照片不存在,显示上传照片按钮
|
//照片不存在,显示上传照片按钮
|
||||||
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" onclick="uploadPhoto(${viewList1[i].gtId},1,${viewList1[i].makeType})">
|
if("1"==viewList1[i].state){
|
||||||
<div style="color:#cccccc">上传图片</div>`
|
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" onclick="uploadPhoto(${viewList1[i].gtId},1,${viewList1[i].makeType})">`
|
||||||
|
html += `<div style="color:#cccccc">上传图片</div>`
|
||||||
|
}else{
|
||||||
|
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" >`
|
||||||
|
html += `<div style="color:#cccccc">该杆塔不属于${usernamed}管辖</div>`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
html += `<div style="display: none;align-items: center;justify-content: center;position: relative;top:-100%;width:100%;height:100%;z-index:99;background-color: rgba(0,0,0,.2)">
|
html += `<div style="display: none;align-items: center;justify-content: center;position: relative;top:-100%;width:100%;height:100%;z-index:99;background-color: rgba(0,0,0,.2)">
|
||||||
<button class="layui-btn" onclick="uploadPhoto(${viewList1[i].gtId},1,${viewList1[i].makeType})">
|
<button class="layui-btn" onclick="uploadPhoto(${viewList1[i].gtId},1,${viewList1[i].makeType})">
|
||||||
|
|
@ -334,9 +343,14 @@ function getView(){
|
||||||
html += `
|
html += `
|
||||||
<img src="../../../image/tower_white.png" alt="">
|
<img src="../../../image/tower_white.png" alt="">
|
||||||
<span style="width: 33%;" title="${viewList2[i].gtName}">${gtName}</span>
|
<span style="width: 33%;" title="${viewList2[i].gtName}">${gtName}</span>
|
||||||
<img src="../../../image/edit_white.png" onclick="towerEdit(this,${viewList2[i].gtId},2)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
`
|
||||||
<img src="../../../image/del_white.png" onclick="towerDel(this,${viewList2[i].gtId},2)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
if("1"==viewList2[i].state||"1"==viewList2[i].makeType){
|
||||||
</div>
|
html +=`
|
||||||
|
<img src="../../../image/edit_white.png" onclick="towerEdit(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
|
<img src="../../../image/del_white.png" onclick="towerDel(this,${viewList1[i].gtId},1)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
html +=`</div>
|
||||||
<div class="viewContent">`
|
<div class="viewContent">`
|
||||||
var flag = false;
|
var flag = false;
|
||||||
for (var j = 0; j < photoList2.length; j++) {
|
for (var j = 0; j < photoList2.length; j++) {
|
||||||
|
|
@ -347,10 +361,16 @@ function getView(){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var usernamed=$("#username").text();
|
||||||
if(!flag){
|
if(!flag){
|
||||||
//照片不存在,显示上传照片按钮
|
//照片不存在,显示上传照片按钮
|
||||||
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" onclick="uploadPhoto(${viewList2[i].gtId},2,${viewList2[i].makeType})">
|
if("1"==viewList2[i].state){
|
||||||
<div style="color:#cccccc">上传图片</div>`
|
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" onclick="uploadPhoto(${viewList2[i].gtId},1,${viewList2[i].makeType})">`
|
||||||
|
html += `<div style="color:#cccccc">上传图片</div>`
|
||||||
|
}else{
|
||||||
|
html += `<img src="../../../image/add2.png" style="width:150px;height:150px;border: 1px solid #E9E9E9;backgroubd:#F9F9F9;cursor: pointer;margin-top: 10px;" alt="" >`
|
||||||
|
html += `<div style="color:#cccccc">该杆塔不属于${usernamed}管辖</div>`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
html += `<div style="display: none;align-items: center;justify-content: center;position: relative;top:-100%;width:100%;height:100%;z-index:99;background-color: rgba(0,0,0,.2)">
|
html += `<div style="display: none;align-items: center;justify-content: center;position: relative;top:-100%;width:100%;height:100%;z-index:99;background-color: rgba(0,0,0,.2)">
|
||||||
<button class="layui-btn" onclick="uploadPhoto(${viewList2[i].gtId},2,${viewList2[i].makeType})">
|
<button class="layui-btn" onclick="uploadPhoto(${viewList2[i].gtId},2,${viewList2[i].makeType})">
|
||||||
|
|
@ -396,7 +416,7 @@ function getView(){
|
||||||
<div class="viewHeader" style="font-size:12px;background-color: #73A0FA;">
|
<div class="viewHeader" style="font-size:12px;background-color: #73A0FA;">
|
||||||
<img src="../../../image/tower_white.png" alt="">
|
<img src="../../../image/tower_white.png" alt="">
|
||||||
<span style="width: 33%;" title="${viewList3[i].gtName}">${gtName}</span>
|
<span style="width: 33%;" title="${viewList3[i].gtName}">${gtName}</span>
|
||||||
<img src="../../../image/edit_white.png" onclick="towerSpeciaEdit(this,${viewList1[i].gtId},3)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
<img src="../../../image/edit_white.png" onclick="towerSpeciaEdit(this,${viewList3[i].gtId},3)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
<img src="../../../image/del_white.png" onclick="towerSpecialDel(this,${viewList3[i].gtId},3)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
<img src="../../../image/del_white.png" onclick="towerSpecialDel(this,${viewList3[i].gtId},3)" style="cursor: pointer;width: 14px;height:16px" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="viewContent">
|
<div class="viewContent">
|
||||||
|
|
@ -927,12 +947,14 @@ function uploadPhoto(id,numTimes,makeType){
|
||||||
//页面赋值
|
//页面赋值
|
||||||
function setData(){
|
function setData(){
|
||||||
var id=localStorage.getItem("resultUserId");
|
var id=localStorage.getItem("resultUserId");
|
||||||
|
var makeMonth=localStorage.getItem("resultMakeMonth");
|
||||||
$.ajax({//id获取详情打开弹窗传值子页面
|
$.ajax({//id获取详情打开弹窗传值子页面
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: PATH_URL + "/makeInfo/getUserDetail",
|
url: PATH_URL + "/makeInfo/getUserDetail",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
async:false,
|
||||||
data: {
|
data: {
|
||||||
id: id
|
id: id,makeMonth:makeMonth
|
||||||
},
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#username").text(data.data.userName);
|
$("#username").text(data.data.userName);
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ function init(){
|
||||||
type: 'numbers'
|
type: 'numbers'
|
||||||
},
|
},
|
||||||
{field:'userName', title: '姓 名',align: 'center',},
|
{field:'userName', title: '姓 名',align: 'center',},
|
||||||
{field:'idCard', title: '身份证号',align: 'center',},
|
{field:'idNumber', title: '身份证号',align: 'center',},
|
||||||
{field:'proName', title: '管辖线路名称',align: 'center',},
|
{field:'proName', title: '管辖线路名称',align: 'center',},
|
||||||
{field:'phone', title: '手机号',align: 'center',},
|
{field:'phone', title: '手机号',align: 'center',},
|
||||||
{field:'bank', title: '开户行',align: 'center',},
|
{field:'bank', title: '开户行',align: 'center',},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
// 二级页面背景弹框动态高度、宽度
|
||||||
|
let getDefaultWidth = () => {
|
||||||
|
return $(top.window).width() * 0.571875;
|
||||||
|
};
|
||||||
|
let autoResizeWidth = (index) => {
|
||||||
|
layer.style(index, {width: getDefaultWidth().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe' + index).width(getDefaultWidth().toFixed(0));
|
||||||
|
};
|
||||||
|
let getDefaultHeight = () => {
|
||||||
|
return $(top.window).height() * 0.7407407;
|
||||||
|
};
|
||||||
|
let autoResizeHeight = (index) => {
|
||||||
|
layer.style(index, {height: getDefaultHeight().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe' + index).height(getDefaultHeight().toFixed(0));
|
||||||
|
};
|
||||||
|
|
||||||
|
let autoParentResizeWidth = (index) => {
|
||||||
|
parent.layer.style(index, {width: getDefaultWidth().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe' + index).width(getDefaultWidth().toFixed(0));
|
||||||
|
};
|
||||||
|
let autoParentResizeHeight = (index) => {
|
||||||
|
parent.layer.style(index, {height: getDefaultHeight().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe' + index).width(getDefaultHeight().toFixed(0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// 二级页面背景弹框动态高度、宽度
|
||||||
|
let getDefaultWidth2 = () => {
|
||||||
|
return $(top.window).width() * 0.2859375;
|
||||||
|
};
|
||||||
|
let autoResizeWidth2 = (index) => {
|
||||||
|
layer.style(index, {width: getDefaultWidth2().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe'+index).width(getDefaultWidth2().toFixed(0));
|
||||||
|
};
|
||||||
|
let getDefaultHeight2 = () => {
|
||||||
|
return $(top.window).height() * 0.37037037 ;
|
||||||
|
};
|
||||||
|
let autoResizeHeight2 = (index) => {
|
||||||
|
layer.style(index, {height: getDefaultHeight2().toFixed(0) + 'px'});
|
||||||
|
// $('#layui-layer-iframe'+index).height(getDefaultHeight2().toFixed(0));
|
||||||
|
};
|
||||||