巡视计划
This commit is contained in:
parent
de081a6d4a
commit
393303d5c4
|
|
@ -3,177 +3,186 @@
|
||||||
<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>
|
||||||
<script src="../../js/public/aescbc.js"></script>
|
<script src="../../js/public/aescbc.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/wireManager/header.js"></script>
|
<script src="../../js/wireManager/header.js"></script>
|
||||||
<!-- css -->
|
<!-- css -->
|
||||||
<link type="text/css" media="screen" href="../../css/header.css" rel="stylesheet">
|
<link type="text/css" media="screen" href="../../css/header.css" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
#waitAuditNum{
|
#waitAuditNum {
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1%;
|
top: 1%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
background-color: rgba(255,165,0,1);
|
background-color: rgba(255, 165, 0, 1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 边框闪烁呼吸样式 */
|
/* 边框闪烁呼吸样式 */
|
||||||
.arrow_box{animation: glow 600ms ease-out infinite alternate; }
|
.arrow_box {
|
||||||
|
animation: glow 600ms ease-out infinite alternate;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes glow {
|
@keyframes glow {
|
||||||
0% {
|
0% {
|
||||||
background-color: rgba(255,165,0,1);
|
background-color: rgba(255, 165, 0, 1);
|
||||||
}
|
}
|
||||||
100% {
|
|
||||||
background-color: rgba(255,165,0,.2);
|
100% {
|
||||||
}
|
background-color: rgba(255, 165, 0, .2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-tab layui-tab-brief" lay-filter="chosenTab" style="height: 100%;width: 100%;display: flex;flex-direction: column;margin: 0;">
|
<div class="layui-tab layui-tab-brief" lay-filter="chosenTab"
|
||||||
<div class="hraderBox" style="width: 100%;height: 8%;background-color: #fff;display: flex;margin-bottom: 10px;">
|
style="height: 100%;width: 100%;display: flex;flex-direction: column;margin: 0;">
|
||||||
<div class="header-left">
|
<div class="hraderBox"
|
||||||
<div></div>
|
style="width: 100%;height: 8%;background-color: #fff;display: flex;margin-bottom: 10px;">
|
||||||
<div style="font-weight: bold; font-size: 16px;">护线员管理</div>
|
<div class="header-left">
|
||||||
<div class="select-box">
|
<div></div>
|
||||||
运检一公司
|
<div style="font-weight: bold; font-size: 16px;">护线员管理</div>
|
||||||
</div>
|
<div class="select-box">
|
||||||
</div>
|
运检一公司
|
||||||
<ul class="layui-tab-title tab-box">
|
</div>
|
||||||
<li class="layui-this">
|
|
||||||
<div><img src="../../image/tabIcon1.png" alt=""></div>
|
|
||||||
<div>首页</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon2.png" alt=""></div>
|
|
||||||
<div>巡视计划</div>
|
|
||||||
<div id="waitAuditNum"></div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon3.png" alt=""></div>
|
|
||||||
<div>人员台账</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon4.png" alt=""></div>
|
|
||||||
<div>巡视台账</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon5.png" alt=""></div>
|
|
||||||
<div>工作签证</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon6.png" alt=""></div>
|
|
||||||
<div>特勤考勤台账</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<div><img src="../../image/tabIcon7.png" alt=""></div>
|
|
||||||
<div>工资台账</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="layui-tab-content" style="width: 100%;height: 90%;">
|
|
||||||
<!-- 栏目1 -->
|
|
||||||
<div class="layui-tab-item layui-show">
|
|
||||||
<iframe src="index.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目2 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./viewPlan/viewPlanList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目3 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./staff/staffList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目4 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./viewStatistics/viewStatisticsList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目5 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./workVisa/workVisaList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目6 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./specialPatrol/specialPatrolList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
<!-- 栏目7 -->
|
|
||||||
<div class="layui-tab-item">
|
|
||||||
<iframe src="./wagesStatistics/wagesStatisticsList.html" frameborder="0" width="100%"
|
|
||||||
height="100%"></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 页面下方的审核提示框 -->
|
|
||||||
<div style="position: fixed;top: 92%;color: #ffffff; background-color: rgba(0,0,0,.6);padding: 15px 20px;width: 97%;">
|
|
||||||
<span>i 系统检测到您有5条计划待审核,请尽快处理。</span>
|
|
||||||
<span id="goViewPlan" style="color: #66B1FF;cursor: pointer;" > >>去处理</span>
|
|
||||||
<span style="cursor: pointer;margin-left: 76%;" onclick="closeTop(this)">X</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<ul class="layui-tab-title tab-box">
|
||||||
|
<li class="layui-this">
|
||||||
<script>
|
<div><img src="../../image/tabIcon1.png" alt=""></div>
|
||||||
//记录待审核计划数量,用于在头部展示
|
<div>首页</div>
|
||||||
var waitAuditNum = 5;
|
</li>
|
||||||
|
<li>
|
||||||
$(function(){
|
<div><img src="../../image/tabIcon2.png" alt=""></div>
|
||||||
layui.use(['element'], function () {
|
<div>巡视计划</div>
|
||||||
var element = layui.element;
|
<div id="waitAuditNum"></div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
$("#goViewPlan").click(function(){
|
<div><img src="../../image/tabIcon3.png" alt=""></div>
|
||||||
//切换tab
|
<div>人员台账</div>
|
||||||
$(".layui-tab-title>li").removeClass("layui-this")
|
</li>
|
||||||
$(".layui-tab-title>li:nth-child(2)").addClass("layui-this")
|
<li>
|
||||||
//切换内容
|
<div><img src="../../image/tabIcon4.png" alt=""></div>
|
||||||
$(".layui-tab-content>div").removeClass("layui-show")
|
<div>巡视台账</div>
|
||||||
$(".layui-tab-content>div:nth-child(2)").addClass("layui-show")
|
</li>
|
||||||
|
<li>
|
||||||
//关闭底部提示框
|
<div><img src="../../image/tabIcon5.png" alt=""></div>
|
||||||
$(this).parent().css("display", "none");
|
<div>工作签证</div>
|
||||||
})
|
</li>
|
||||||
});
|
<li>
|
||||||
|
<div><img src="../../image/tabIcon6.png" alt=""></div>
|
||||||
|
<div>特勤考勤台账</div>
|
||||||
//后台获取待审核计划数
|
</li>
|
||||||
/* $.ajax({
|
<li>
|
||||||
type: 'post',
|
<div><img src="../../image/tabIcon7.png" alt=""></div>
|
||||||
contentType: "application/x-www-form-urlencoded",
|
<div>工资台账</div>
|
||||||
url: "",
|
</li>
|
||||||
dataType: 'json',
|
</ul>
|
||||||
data: {
|
</div>
|
||||||
id: id
|
<div class="layui-tab-content" style="width: 100%;height: 90%;">
|
||||||
},
|
<!-- 栏目1 -->
|
||||||
success: function (data) {
|
<div class="layui-tab-item layui-show">
|
||||||
$("#waitAuditNum").text(0)
|
<iframe src="index.html" frameborder="0" width="100%" height="100%"></iframe>
|
||||||
}
|
</div>
|
||||||
}) */
|
<!-- 栏目2 -->
|
||||||
if(waitAuditNum > 0){
|
<div class="layui-tab-item">
|
||||||
$("#waitAuditNum").text(waitAuditNum);
|
<iframe src="./viewPlan/viewPlanList.html" frameborder="0" width="100%" height="100%"></iframe>
|
||||||
$("#waitAuditNum").addClass("arrow_box");
|
</div>
|
||||||
}
|
<!-- 栏目3 -->
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<iframe src="./staff/staffList.html" frameborder="0" width="100%" height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
<!-- 栏目4 -->
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<iframe src="./viewStatistics/viewStatisticsList.html" frameborder="0" width="100%"
|
||||||
|
height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
<!-- 栏目5 -->
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<iframe src="./workVisa/workVisaList.html" frameborder="0" width="100%" height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
<!-- 栏目6 -->
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<iframe src="./specialPatrol/specialPatrolList.html" frameborder="0" width="100%"
|
||||||
|
height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
<!-- 栏目7 -->
|
||||||
|
<div class="layui-tab-item">
|
||||||
|
<iframe src="./wagesStatistics/wagesStatisticsList.html" frameborder="0" width="100%"
|
||||||
|
height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 页面下方的审核提示框 -->
|
||||||
|
<div
|
||||||
|
style="position: fixed;top: 92%;color: #ffffff; background-color: rgba(0,0,0,.6);padding: 15px 20px;width: 97%;">
|
||||||
|
<span>i 系统检测到您有<span id="waitAuditNums"></span>条计划待审核,请尽快处理。</span>
|
||||||
|
<span id="goViewPlan" style="color: #66B1FF;cursor: pointer;"> >>去处理</span>
|
||||||
|
<span style="cursor: pointer;margin-left: 76%;" onclick="closeTop(this)">X</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//记录待审核计划数量,用于在头部展示
|
||||||
|
var waitAuditNum = 5;
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
layui.use(['element'], function() {
|
||||||
|
var element = layui.element;
|
||||||
|
|
||||||
|
|
||||||
|
$("#goViewPlan").click(function() {
|
||||||
|
//切换tab
|
||||||
|
$(".layui-tab-title>li").removeClass("layui-this")
|
||||||
|
$(".layui-tab-title>li:nth-child(2)").addClass("layui-this")
|
||||||
|
//切换内容
|
||||||
|
$(".layui-tab-content>div").removeClass("layui-show")
|
||||||
|
$(".layui-tab-content>div:nth-child(2)").addClass("layui-show")
|
||||||
|
|
||||||
|
//关闭底部提示框
|
||||||
|
$(this).parent().css("display", "none");
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
//关闭底部的提示框
|
|
||||||
function closeTop(event){
|
//后台获取待审核计划数
|
||||||
$(event).parent().css("display", "none");
|
$.ajax({
|
||||||
}
|
type: 'POST',
|
||||||
</script>
|
url: PATH_URL + '/inspectionPlan/waitAuditNum',
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify({
|
||||||
|
fgsId:'26'
|
||||||
|
}),
|
||||||
|
success: function(data) {
|
||||||
|
if (data.code == 200) {
|
||||||
|
$("#waitAuditNum").text(data.data.waitAuditNum);
|
||||||
|
if (data.data.waitAuditNum > 0) {
|
||||||
|
$("#waitAuditNum").addClass("arrow_box");
|
||||||
|
}
|
||||||
|
$("#waitAuditNums").text(data.data.waitAuditNum);
|
||||||
|
} else {
|
||||||
|
$("#waitAuditNum").text("0");
|
||||||
|
$("#waitAuditNums").text("0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
//关闭底部的提示框
|
||||||
|
function closeTop(event) {
|
||||||
|
$(event).parent().css("display", "none");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>月计划审核</title>
|
<title>月计划审核</title>
|
||||||
<script src="../../../js/public/token.js"></script>
|
<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.js"></script>
|
||||||
<script src="../../../js/public/public_utils.js"></script>
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
<script src="../../../js/public/aescbc.js"></script>
|
<script src="../../../js/public/aescbc.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/viewPlan/monthPlanAudit.js"></script>
|
<script src="../../../js/dataStatistics/viewPlan/monthPlanAudit.js"></script>
|
||||||
|
|
||||||
|
|
@ -159,6 +159,14 @@
|
||||||
background-size: 50% 100%;
|
background-size: 50% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
.planAuditStatus4 {
|
||||||
|
color: #ffffff;
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 5px;
|
||||||
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
|
background-size: 50% 100%;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -166,8 +174,13 @@
|
||||||
<div>
|
<div>
|
||||||
<img src="../../../image/deliverCardIcon.png" height="60px"/>
|
<img src="../../../image/deliverCardIcon.png" height="60px"/>
|
||||||
<div>
|
<div>
|
||||||
<div id="planName">运检一公司昆明运检一站 2024-03 月护线员工作计划</div>
|
<div id="planName">
|
||||||
<div id="subComName">● 待审核</div>
|
<span id="fgsName"></span>
|
||||||
|
<span id="yjName"></span>
|
||||||
|
<span id="insMonth" style="color: #409EFF;"></span>
|
||||||
|
月护线员工作计划
|
||||||
|
</div>
|
||||||
|
<div id="subComName"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -188,30 +201,30 @@
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon1" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon1" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson1">李小萌</div>
|
<div class="chargePerson1" id="createUser"></div>
|
||||||
<div class="planStatus1">2024-03-25 23:26:08</div>
|
<div class="planStatus1" id="createTime"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="comAuditLine">
|
<div class="comAuditLine">
|
||||||
分公司审核
|
分公司审核
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus2">审核通过</div>
|
<div class="planAuditStatus3" id="aiDitStatuses"></div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson2">李小刚</div>
|
<div class="chargePerson2" id="auditUserName"></div>
|
||||||
<div class="planStatus2">2024-03-25 23:26:08</div>
|
<div class="planStatus2" id="auditTime"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="totalAuditLine">
|
<div class="totalAuditLine">
|
||||||
总公司审核
|
总公司审核
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus3">完结</div>
|
<div class="planAuditStatus3" id="aiDitStatusTotal"></div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon3" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon3" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson3">总公司</div>
|
<div class="chargePerson3" id="auditUserNameTotal"></div>
|
||||||
<div class="planStatus3">待处理</div>
|
<div class="planStatus3" id="auditTimeTotal"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,24 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>护线员考勤</title>
|
<title>月计划详情</title>
|
||||||
<script src="../../../js/public/token.js"></script>
|
<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.js"></script>
|
||||||
<script src="../../../js/public/public_utils.js"></script>
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
<script src="../../../js/public/aescbc.js"></script>
|
<script src="../../../js/public/aescbc.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/viewPlan/monthPlanDetails.js"></script>
|
<script src="../../../js/dataStatistics/viewPlan/monthPlanDetails.js"></script>
|
||||||
|
|
||||||
<!-- css -->
|
<!-- css -->
|
||||||
<!-- <link type="text/css" media="screen" href="../../../css/dataTable.css" rel="stylesheet"> -->
|
<!-- <link type="text/css" media="screen" href="../../../css/dataTable.css" rel="stylesheet"> -->
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body,html {
|
body,
|
||||||
|
html {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -26,7 +27,8 @@
|
||||||
float: left;
|
float: left;
|
||||||
background-color: #F0F2F5;
|
background-color: #F0F2F5;
|
||||||
}
|
}
|
||||||
.title{
|
|
||||||
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -35,27 +37,33 @@
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
height: 16.4%;
|
height: 16.4%;
|
||||||
}
|
}
|
||||||
.title>div{
|
|
||||||
|
.title>div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.title>div:nth-child(1){
|
|
||||||
|
.title>div:nth-child(1) {
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
}
|
}
|
||||||
#planName{
|
|
||||||
|
#planName {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
#subComName{
|
|
||||||
|
#subComName {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.title>div:nth-child(2){
|
|
||||||
|
.title>div:nth-child(2) {
|
||||||
margin-right: 40px;
|
margin-right: 40px;
|
||||||
}
|
}
|
||||||
.overview{
|
|
||||||
|
.overview {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -63,79 +71,87 @@
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 30px 0 30px 0;
|
padding: 30px 0 30px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overview>div:nth-child(1),
|
.overview>div:nth-child(1),
|
||||||
.overview>div:nth-child(3),
|
.overview>div:nth-child(3),
|
||||||
.overview>div:nth-child(5){
|
.overview>div:nth-child(5) {
|
||||||
width: 158px;
|
width: 158px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planAuditStatus1,
|
.planAuditStatus1,
|
||||||
.planAuditStatus2,
|
.planAuditStatus2,
|
||||||
.planAuditStatus3{
|
.planAuditStatus3 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chargePersonIcon1,
|
.chargePersonIcon1,
|
||||||
.chargePersonIcon2,
|
.chargePersonIcon2,
|
||||||
.chargePersonIcon3{
|
.chargePersonIcon3 {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chargePerson1,
|
.chargePerson1,
|
||||||
.chargePerson2,
|
.chargePerson2,
|
||||||
.chargePerson3{
|
.chargePerson3 {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
color:#666666;
|
color: #666666;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planStatus1,
|
.planStatus1,
|
||||||
.planStatus2,
|
.planStatus2,
|
||||||
.planStatus3{
|
.planStatus3 {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
color:#999999;
|
color: #999999;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comAuditLine{
|
.comAuditLine {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 4px solid #19BE6B;
|
border-bottom: 4px solid #19BE6B;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
.totalAuditLine{
|
|
||||||
|
.totalAuditLine {
|
||||||
width: 480px;
|
width: 480px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 4px solid #409EFF;
|
border-bottom: 4px solid #409EFF;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 滚动槽 */
|
/* 滚动槽 */
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
-webkit-box-shadow: inset 0 0 5px #e8eceb;
|
-webkit-box-shadow: inset 0 0 5px #e8eceb;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 滚动条滑块 */
|
/* 滚动条滑块 */
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
-webkit-box-shadow: inset 0 0 6px #cbb7b7;
|
-webkit-box-shadow: inset 0 0 6px #cbb7b7;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:window-inactive {
|
::-webkit-scrollbar-thumb:window-inactive {
|
||||||
background: #e8eceb;
|
background: #e8eceb;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-corner {
|
::-webkit-scrollbar-corner {
|
||||||
background-color: #e8eceb;
|
background-color: #e8eceb;
|
||||||
// 颜色
|
// 颜色
|
||||||
}
|
}
|
||||||
.planAuditStatus1{
|
|
||||||
|
.planAuditStatus1 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
@ -143,7 +159,8 @@
|
||||||
background-size: 50% 100%;
|
background-size: 50% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus2{
|
|
||||||
|
.planAuditStatus2 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
@ -151,7 +168,8 @@
|
||||||
background-size: 50% 100%;
|
background-size: 50% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus3{
|
|
||||||
|
.planAuditStatus3 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
@ -159,61 +177,77 @@
|
||||||
background-size: 50% 100%;
|
background-size: 50% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
.planAuditStatus4 {
|
||||||
|
color: #ffffff;
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 5px;
|
||||||
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
|
background-size: 50% 100%;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div>
|
<div>
|
||||||
<img src="../../../image/deliverCardIcon.png" height="60px"/>
|
<img src="../../../image/deliverCardIcon.png" height="60px" />
|
||||||
<div>
|
<div>
|
||||||
<div id="planName">运检一公司昆明运检一站 2024-03 月护线员工作计划</div>
|
<div id="planName">
|
||||||
<div id="subComName">● 待审核</div>
|
<span id="fgsName"></span>
|
||||||
|
<span id="yjName"></span>
|
||||||
|
<span id="insMonth" style="color: #409EFF;"></span>
|
||||||
|
月护线员工作计划
|
||||||
|
</div>
|
||||||
|
<div id="subComName"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="layui-btn layui-bg-blue" onclick="exporData()">
|
<button class="layui-btn layui-bg-blue" onclick="exportData()">
|
||||||
<i class="layui-icon"></i>
|
<i class="layui-icon"></i>
|
||||||
导出
|
导出
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="background-color: #F0F2F5 !important;width: 98%;height: 74%;overflow: auto;flex-direction: column;margin: 0 auto;background-color: #FFFFFF;border-radius: 10px;padding: 10px;">
|
<div
|
||||||
|
style="background-color: #F0F2F5 !important;width: 98%;height: 74%;overflow: auto;flex-direction: column;margin: 0 auto;background-color: #FFFFFF;border-radius: 10px;padding: 10px;">
|
||||||
<div class="overview">
|
<div class="overview">
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus1">提交</div>
|
<div class="planAuditStatus1">提交</div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon1" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon1" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson1">李小萌</div>
|
<div class="chargePerson1" id="createUser"></div>
|
||||||
<div class="planStatus1">2024-03-25 23:26:08</div>
|
<div class="planStatus1" id="createTime"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="comAuditLine">
|
<div class="comAuditLine">
|
||||||
分公司审核
|
分公司审核
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus2">审核通过</div>
|
<div class="planAuditStatus3" id="aiDitStatuses"></div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson2">李小刚</div>
|
<div class="chargePerson2" id="auditUserName"></div>
|
||||||
<div class="planStatus2">2024-03-25 23:26:08</div>
|
<div class="planStatus2" id="auditTime"></div>
|
||||||
|
|
||||||
|
<div id="noPassReason" style="color: #F56C6C;font-size: 12px;margin-top: 2%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="totalAuditLine">
|
<div class="totalAuditLine">
|
||||||
总公司审核
|
总公司审核
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus3">完结</div>
|
<div class="planAuditStatus3" id="aiDitStatusTotal"></div>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
<img class="chargePersonIcon3" src="../../../image/userIcon.png">
|
<img class="chargePersonIcon3" src="../../../image/userIcon.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="chargePerson3">总公司</div>
|
<div class="chargePerson3" id="auditUserNameTotal"></div>
|
||||||
<div class="planStatus3">待处理</div>
|
<div class="planStatus3" id="auditTimeTotal"></div>
|
||||||
<div id="noPassReason" style="color: #F56C6C;font-size: 12px;margin-top: 2%;"></div>
|
<div id="noPassReasonTotal" style="color: #F56C6C;font-size: 12px;margin-top: 2%;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="widget-body no-padding">
|
<div class="widget-body no-padding">
|
||||||
<table id="table" class="layui-table" lay-skin="row" style="width:100%;white-space: nowrap;">
|
<table id="table" class="layui-table" lay-skin="row" style="width:100%;white-space: nowrap;">
|
||||||
|
|
@ -221,6 +255,6 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,47 +1,49 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>特巡结果上传</title>
|
<title>分公司-审核不通过</title>
|
||||||
<script src="../../../js/public/token.js"></script>
|
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
<script src="../../../js/public/public.js"></script>
|
<script src="../../../js/public/jq.js"></script>
|
||||||
<script src="../../../js/public/public_utils.js"></script>
|
<script src="../../../js/public/public.js"></script>
|
||||||
<script src="../../../js/public/aescbc.js"></script>
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
<script src="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
<script src="../../../js/public/aescbc.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="../../../js/dataStatistics/viewPlan/noPassReason.js"></script>
|
<script src="../../../js/dataStatistics/viewPlan/noPassReason.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
button{
|
button {
|
||||||
margin-left: 73.5%;
|
margin-left: 73.5%;
|
||||||
margin-top: 1%;
|
margin-top: 1%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="layui-form" onsubmit="return false">
|
<div class="layui-form" onsubmit="return false">
|
||||||
<form class="layui-form" action="">
|
<form class="layui-form" action="">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<div class="layui-inline" style="width: 566px;margin-left: 7%;">
|
<div class="layui-inline" style="width: 566px;margin-left: 7%;">
|
||||||
<label class="layui-form-label" style="width: 150px;text-align: left;padding: 9px 0" left>
|
<label class="layui-form-label" style="width: 150px;text-align: left;padding: 9px 0" left>
|
||||||
<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" style="width: 610px;">
|
<div class="layui-input-inline" style="width: 610px;">
|
||||||
<textarea oninput="wordCount(this)" type="text" name="revokeReason" id="revokeReason" maxlength="300" lay-verify="required" cols="78" rows="10" style="text-indent: 5px;border-color:#EEEEEE;padding:10px"></textarea>
|
<textarea oninput="wordCount(this)" type="text" name="revokeReason" id="revokeReason"
|
||||||
<div style="color: #999999;font-size: 12px;">
|
maxlength="300" lay-verify="required" cols="78" rows="10"
|
||||||
<span>已输入</span>
|
style="text-indent: 5px;border-color:#EEEEEE;padding:10px"></textarea>
|
||||||
<span id="wordCount">0</span>
|
<div style="color: #999999;font-size: 12px;">
|
||||||
<span>/300</span>
|
<span>已输入</span>
|
||||||
|
<span id="wordCount">0</span>
|
||||||
|
<span>/300</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
<button id="closeBt" class="layui-btn layui-btn-primary layui-border-blue">取消</button>
|
||||||
|
<button id="searchBt" class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</body>
|
||||||
<button id="closeBt" class="layui-btn layui-btn-primary layui-border-blue">取消</button>
|
</html>
|
||||||
<button id="searchBt" class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>护线员考勤</title>
|
<title>巡视计划</title>
|
||||||
<script src="../../../js/public/token.js"></script>
|
<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.js"></script>
|
||||||
<script src="../../../js/public/public_utils.js"></script>
|
<script src="../../../js/public/public_utils.js"></script>
|
||||||
<script src="../../../js/public/aescbc.js"></script>
|
<script src="../../../js/public/aescbc.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/viewPlan/viewPlanList.js"></script>
|
<script src="../../../js/dataStatistics/viewPlan/viewPlanList.js"></script>
|
||||||
|
|
||||||
|
|
@ -34,31 +34,36 @@
|
||||||
<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="fgsName" 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" 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="insMonth" name="insMonth" readonly 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">
|
||||||
<select id="proId" name="proId" class="layui-select" lay-verify="required">
|
<select id="aiDitStatus" name="aiDitStatus" class="layui-select" >
|
||||||
<option value="" selected>审核状态</option>
|
<option value="" >全部状态</option>
|
||||||
|
<option value="2" >已通过</option>
|
||||||
|
<option value="3" >未通过</option>
|
||||||
|
<option value="0" selected >待审核</option>
|
||||||
|
<option value="1" >已撤销</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="query">
|
<button class="layui-btn layui-btn-sm" onclick="queryClick()">
|
||||||
<i class="layui-icon layui-icon-search"></i>
|
<i class="layui-icon layui-icon-search"></i>
|
||||||
查询
|
查询
|
||||||
</button>
|
</button>
|
||||||
<button id="reset" type="button" class="layui-btn layui-btn-sm layui-btn-primary">
|
<button id="reset" type="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>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<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="../../../plugs/jquery/jquery-3.6.0.min.js"></script>
|
||||||
<script src="../../../js/public/jq.js"></script>
|
<script src="../../../js/public/jq.js"></script>
|
||||||
<script src="../../../js/public/public.js"></script>
|
<script src="../../../js/public/public.js"></script>
|
||||||
|
|
@ -158,6 +158,14 @@
|
||||||
background-size: 50% 100%;
|
background-size: 50% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
.planAuditStatus4 {
|
||||||
|
color: #ffffff;
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 5px;
|
||||||
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
|
background-size: 50% 100%;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,124 +1,256 @@
|
||||||
|
|
||||||
|
|
||||||
var pers = []
|
var pers = []
|
||||||
var table,form,laydate
|
var table, form, laydate
|
||||||
layui.use(['form','layer','table','laydate'], function () {
|
|
||||||
table = layui.table;
|
var yjIds, insMonths, ids;
|
||||||
form = layui.form;
|
// 静态数据
|
||||||
laydate = layui.laydate
|
var tableData = [];
|
||||||
|
|
||||||
init();
|
function setData(data, yjId, insMonth, id) {
|
||||||
|
yjIds = yjId;
|
||||||
setData();
|
insMonths = insMonth;
|
||||||
});
|
ids = id;
|
||||||
function setData(){
|
|
||||||
}
|
layui.use(['form', 'layer', 'table', 'laydate'], function() {
|
||||||
// 静态数据
|
table = layui.table;
|
||||||
var tableData = [
|
form = layui.form;
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
laydate = layui.laydate
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
if (data.length > 0) {
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#fgsName').html(data[0].fgsName);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#yjName').html(data[0].yjName);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#insMonth').html(data[0].insMonth);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
setAiDitStatus(data[0].aiDitStatus);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#createUser').html(data[0].createUser);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#createTime').html(data[0].createTime);
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
//分公司
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
if (data[0].aiDitStatuses) {
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
// 获取元素
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
var element = document.getElementById('aiDitStatuses');
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
// 移除旧的类
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
element.classList.remove('planAuditStatus3');
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
if (data[0].aiDitStatuses == 2) {
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
element.classList.add('planAuditStatus2');
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#aiDitStatuses').html("审核通过");
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
} else if (data[0].aiDitStatuses == 3) {
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
element.classList.add('planAuditStatus4');
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
$('#aiDitStatuses').html("审核不通过");
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
}
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
];
|
$('#auditUserName').html(data[0].auditUserName);
|
||||||
|
$('#auditTime').html(data[0].auditTime);
|
||||||
|
} else {
|
||||||
|
$('#aiDitStatuses').html("");
|
||||||
|
$('#auditUserName').html("");
|
||||||
|
$('#auditTime').html("待处理");
|
||||||
|
}
|
||||||
|
|
||||||
|
//总公司
|
||||||
|
if (data[0].aiDitStatusTotal) {
|
||||||
|
|
||||||
|
// 获取元素
|
||||||
|
var element = document.getElementById('aiDitStatusTotal');
|
||||||
|
// 移除旧的类
|
||||||
|
element.classList.remove('planAuditStatus3');
|
||||||
|
if (data[0].aiDitStatusTotal == 2) {
|
||||||
|
element.classList.add('planAuditStatus2');
|
||||||
|
$('#aiDitStatusTotal').html("审核通过");
|
||||||
|
} else if (data[0].aiDitStatusTotal == 3) {
|
||||||
|
element.classList.add('planAuditStatus4');
|
||||||
|
$('#aiDitStatusTotal').html("审核不通过");
|
||||||
|
}
|
||||||
|
$('#auditUserNameTotal').html(data[0].auditUserNameTotal);
|
||||||
|
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
||||||
|
} else {
|
||||||
|
$('#aiDitStatusTotal').html("");
|
||||||
|
$('#auditUserNameTotal').html("");
|
||||||
|
$('#auditTimeTotal').html("待处理");
|
||||||
|
}
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
|
tableData.push({
|
||||||
|
id: data[i].id,
|
||||||
|
proName: data[i].proName,
|
||||||
|
yjId: data[i].yjId,
|
||||||
|
insMonth: data[i].insMonth,
|
||||||
|
|
||||||
|
workContent: data[i].workContent,
|
||||||
|
stateTime: data[i].stateTime,
|
||||||
|
enTime: data[i].enTime,
|
||||||
|
dutyUser: data[i].dutyUser,
|
||||||
|
supervisor: data[i].supervisor,
|
||||||
|
complete: data[i].complete,
|
||||||
|
remarks: data[i].remarks,
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
init();
|
||||||
|
} else {
|
||||||
|
init();
|
||||||
|
layer.alert("无数据,请联系管理员", {
|
||||||
|
icon: 2
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setAiDitStatus(status) {
|
||||||
|
$("#subComName").empty();
|
||||||
|
var text;
|
||||||
|
var color;
|
||||||
|
var html = "";
|
||||||
|
if (status == '2') {
|
||||||
|
text = '已通过';
|
||||||
|
color = '#19BE6B';
|
||||||
|
}
|
||||||
|
if (status == '0') {
|
||||||
|
text = '待审核';
|
||||||
|
color = '#FF9900';
|
||||||
|
}
|
||||||
|
if (status == '3') {
|
||||||
|
text = '未通过';
|
||||||
|
color = '#F56C6C';
|
||||||
|
}
|
||||||
|
if (status == '1') {
|
||||||
|
text = '已撤销';
|
||||||
|
color = '#999999';
|
||||||
|
}
|
||||||
|
html += "<span style='display: flex;align-items: center'>"
|
||||||
|
html += `<span style='width: 5px;height: 5px;background: ${color};border-radius: 50%'></span> `
|
||||||
|
html += `<span>${text}</span>`
|
||||||
|
html += "</span>"
|
||||||
|
|
||||||
|
$("#subComName").append(html);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function init(){
|
function init() {
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
// url: "/sys/achievement",
|
skin: 'line', // 表格样式
|
||||||
// page: true,
|
cols: [
|
||||||
skin: 'line', // 表格样式
|
[{
|
||||||
cols: [[
|
title: '序号',
|
||||||
{
|
field: 'zizeng',
|
||||||
title: '序号',
|
align: 'center',
|
||||||
field: 'zizeng',
|
type: 'numbers',
|
||||||
align: 'center',
|
width: '5%'
|
||||||
type: 'numbers',
|
},
|
||||||
width: '5%'
|
{
|
||||||
},
|
field: 'proName',
|
||||||
{field:'lineName', title: '线路名称',align: 'center'},
|
title: '线路名称',
|
||||||
{field:'workContent', title: '工作内容',align: 'center'},
|
align: 'center'
|
||||||
{field:'planStartTime', title: '计划开始时间',align: 'center'},
|
},
|
||||||
{field:'planEndTime', title: '计划结束时间',align: 'center'},
|
{
|
||||||
{field:'liablePerson', title: '责任人(护线员)',align: 'center'},
|
field: 'workContent',
|
||||||
{field:'proctorPerson', title: '督办人(设备主人)',align: 'center'},
|
title: '工作内容',
|
||||||
{field:'standard', title: '完成标准',align: 'center'},
|
align: 'center'
|
||||||
{field:'remark', title: '备注',align: 'center'},
|
},
|
||||||
]],
|
{
|
||||||
data: tableData,
|
field: 'stateTime',
|
||||||
done: function(res, curr, count, origin){
|
title: '计划开始时间',
|
||||||
console.log(res); // 得到当前渲染的数据
|
align: 'center'
|
||||||
console.log(curr); // 得到当前页码
|
},
|
||||||
console.log(count); // 得到数据总量
|
{
|
||||||
console.log(origin); // 回调函数所执行的来源 --- 2.8.7+
|
field: 'enTime',
|
||||||
laydate.render({
|
title: '计划结束时间',
|
||||||
elem: '.planStartTime'
|
align: 'center'
|
||||||
});
|
},
|
||||||
laydate.render({
|
{
|
||||||
elem: '.planEndTime'
|
field: 'dutyUser',
|
||||||
});
|
title: '责任人(护线员)',
|
||||||
},
|
align: 'center'
|
||||||
});
|
},
|
||||||
|
{
|
||||||
|
field: 'supervisor',
|
||||||
|
title: '督办人(设备主人)',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'complete',
|
||||||
|
title: '完成标准',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'remarks',
|
||||||
|
title: '备注',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
],
|
||||||
|
data: tableData,
|
||||||
|
done: function(res, curr, count, origin) {
|
||||||
|
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//审核通过按钮点击
|
//审核通过按钮点击
|
||||||
function pass(){
|
function pass() {
|
||||||
layer.confirm("是否确定审核通过?",{icon: 3},function(){
|
layer.confirm("是否确定审核通过?", {
|
||||||
/* $.ajax({
|
icon: 3
|
||||||
type: 'post',
|
}, function() {
|
||||||
contentType: "application/x-www-form-urlencoded",
|
// 加载提示
|
||||||
url: "",
|
let loadingMsg = layer.msg('数据上传中,请稍候...', {
|
||||||
dataType: 'json',
|
icon: 16,
|
||||||
data: {
|
scrollbar: false,
|
||||||
id: id
|
time: 0,
|
||||||
},
|
shade: [0.8, '#393D49']
|
||||||
success: function (data) {
|
});
|
||||||
},
|
// form请求地址
|
||||||
}) */
|
let formUrl = PATH_URL + "/inspectionPlan/updateDivideExamine";
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: formUrl, // 请求地址
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify({
|
||||||
|
"insMonth": insMonths,
|
||||||
|
"yjId": yjIds,
|
||||||
|
"id": ids,
|
||||||
|
"auditStatus": 4
|
||||||
|
}),
|
||||||
|
success: function(data) {
|
||||||
|
layer.close(loadingMsg); // 关闭提示层
|
||||||
|
if (data.code == 200) {
|
||||||
|
parent.layer.msg("审核成功", {
|
||||||
|
icon: 1
|
||||||
|
});
|
||||||
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||||
|
parent.layer.close(index); //再执行关闭
|
||||||
|
reloading();
|
||||||
|
} else {
|
||||||
|
layer.alert(data.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, e) {
|
||||||
|
layer.close(loadingMsg);
|
||||||
|
layer.msg('数据请求发生异常,请稍后重试', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//审核不通过按钮点击
|
//审核不通过按钮点击
|
||||||
function noPass(){
|
function noPass() {
|
||||||
let height = '65%';
|
let height = '65%';
|
||||||
let width = '40%';
|
let width = '41%';
|
||||||
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: './noPassReason.html',
|
content: './noPassReason.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']];
|
var myIframe = window[layero.find('iframe')[0]['name']];
|
||||||
// myIframe.hideSubmit();
|
var fnc = myIframe.setData(yjIds, insMonths, ids); //aaa()为子页面的方法
|
||||||
// var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
|
},
|
||||||
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -1,96 +1,204 @@
|
||||||
|
|
||||||
|
|
||||||
var pers = []
|
var pers = []
|
||||||
var table,form,laydate
|
var table, form, laydate
|
||||||
layui.use(['form','layer','table','laydate'], function () {
|
|
||||||
table = layui.table;
|
|
||||||
form = layui.form;
|
|
||||||
laydate = layui.laydate
|
|
||||||
|
|
||||||
init();
|
|
||||||
|
|
||||||
setData();
|
|
||||||
});
|
|
||||||
function setData(){
|
|
||||||
$("#noPassReason").text("±500kV永富直流线填写作业内容不合理,核算后重新填写上传±500kV永富直流线填写作业内容不合理,核算后重新填写上传±500kV永富直流线填写作业内容不合理,核算后重新填写上传±500kV永富直流线填写作业内容不合理,核算后重新填写上传")
|
|
||||||
}
|
|
||||||
// 静态数据
|
|
||||||
var tableData = [
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
{id: 1, lineName: '±500kV永富直', workContent: '500kV草宝甲线开展2次/月巡视,按全线开展。开展2次巡视,第2次执行关键重要区段巡视。2、关键重要区段:(1)关键交叉跨越管控区段:#001-#003、#046-#047 (2)重要交叉跨越管控区段:#107-#108、#115-#116 ', planStartTime: '2024-03-01', planEndTime: '2024-03-31', liablePerson: '周应福、毕兴武、李永辉', proctorPerson: '马俊伟', standard: '巡视表单、通话记录', remark: '备注'},
|
|
||||||
];
|
|
||||||
|
|
||||||
|
var yjIds, insMonths;
|
||||||
|
// 静态数据
|
||||||
|
var tableData = [];
|
||||||
/**
|
/**
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function init(){
|
function init() {
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
// url: "/sys/achievement",
|
skin: 'line', // 表格样式
|
||||||
// page: true,
|
cols: [
|
||||||
skin: 'line', // 表格样式
|
[{
|
||||||
cols: [[
|
title: '序号',
|
||||||
{
|
field: 'zizeng',
|
||||||
title: '序号',
|
align: 'center',
|
||||||
field: 'zizeng',
|
type: 'numbers',
|
||||||
align: 'center',
|
width: '5%'
|
||||||
type: 'numbers',
|
},
|
||||||
width: '5%'
|
{
|
||||||
},
|
field: 'proName',
|
||||||
{field:'lineName', title: '线路名称',align: 'center'},
|
title: '线路名称',
|
||||||
{field:'workContent', title: '工作内容',align: 'center'},
|
align: 'center'
|
||||||
{field:'planStartTime', title: '计划开始时间',align: 'center'},
|
},
|
||||||
{field:'planEndTime', title: '计划结束时间',align: 'center'},
|
{
|
||||||
{field:'liablePerson', title: '责任人(护线员)',align: 'center'},
|
field: 'workContent',
|
||||||
{field:'proctorPerson', title: '督办人(设备主人)',align: 'center'},
|
title: '工作内容',
|
||||||
{field:'standard', title: '完成标准',align: 'center'},
|
align: 'center'
|
||||||
{field:'remark', title: '备注',align: 'center'},
|
},
|
||||||
]],
|
{
|
||||||
data: tableData,
|
field: 'stateTime',
|
||||||
done: function(res, curr, count, origin){
|
title: '计划开始时间',
|
||||||
console.log(res); // 得到当前渲染的数据
|
align: 'center'
|
||||||
console.log(curr); // 得到当前页码
|
},
|
||||||
console.log(count); // 得到数据总量
|
{
|
||||||
console.log(origin); // 回调函数所执行的来源 --- 2.8.7+
|
field: 'enTime',
|
||||||
laydate.render({
|
title: '计划结束时间',
|
||||||
elem: '.planStartTime'
|
align: 'center'
|
||||||
});
|
},
|
||||||
laydate.render({
|
{
|
||||||
elem: '.planEndTime'
|
field: 'dutyUser',
|
||||||
});
|
title: '责任人(护线员)',
|
||||||
},
|
align: 'center'
|
||||||
});
|
},
|
||||||
|
{
|
||||||
|
field: 'supervisor',
|
||||||
|
title: '督办人(设备主人)',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'complete',
|
||||||
|
title: '完成标准',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'remarks',
|
||||||
|
title: '备注',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
],
|
||||||
|
data: tableData,
|
||||||
|
done: function(res, curr, count, origin) {
|
||||||
|
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function setData(data, yjId, insMonth) {
|
||||||
|
yjIds = yjId;
|
||||||
|
insMonths = insMonth;
|
||||||
|
|
||||||
|
layui.use(['form', 'layer', 'table', 'laydate'], function() {
|
||||||
|
table = layui.table;
|
||||||
|
form = layui.form;
|
||||||
|
laydate = layui.laydate
|
||||||
|
if (data.length > 0) {
|
||||||
|
$('#fgsName').html(data[0].fgsName);
|
||||||
|
$('#yjName').html(data[0].yjName);
|
||||||
|
$('#insMonth').html(data[0].insMonth);
|
||||||
|
setAiDitStatus(data[0].aiDitStatus);
|
||||||
|
|
||||||
|
$('#createUser').html(data[0].createUser);
|
||||||
|
$('#createTime').html(data[0].createTime);
|
||||||
|
//分公司
|
||||||
|
if (data[0].aiDitStatuses) {
|
||||||
|
// 获取元素
|
||||||
|
var element = document.getElementById('aiDitStatuses');
|
||||||
|
// 移除旧的类
|
||||||
|
element.classList.remove('planAuditStatus3');
|
||||||
|
if(data[0].aiDitStatuses == 2){
|
||||||
|
element.classList.add('planAuditStatus2');
|
||||||
|
$('#aiDitStatuses').html("审核通过");
|
||||||
|
}else if(data[0].aiDitStatuses == 3){
|
||||||
|
element.classList.add('planAuditStatus4');
|
||||||
|
$('#aiDitStatuses').html("审核不通过");
|
||||||
|
|
||||||
|
$('#noPassReason').html(data[0].auditReason);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#auditUserName').html(data[0].auditUserName);
|
||||||
|
$('#auditTime').html(data[0].auditTime);
|
||||||
|
} else {
|
||||||
|
$('#aiDitStatuses').html("");
|
||||||
|
$('#auditUserName').html("");
|
||||||
|
$('#auditTime').html("待处理");
|
||||||
|
}
|
||||||
|
|
||||||
|
//总公司
|
||||||
|
if (data[0].aiDitStatusTotal) {
|
||||||
|
|
||||||
|
// 获取元素
|
||||||
|
var element = document.getElementById('aiDitStatusTotal');
|
||||||
|
// 移除旧的类
|
||||||
|
element.classList.remove('planAuditStatus3');
|
||||||
|
if(data[0].aiDitStatusTotal == 2){
|
||||||
|
element.classList.add('planAuditStatus2');
|
||||||
|
$('#aiDitStatusTotal').html("审核通过");
|
||||||
|
}else if(data[0].aiDitStatusTotal == 3){
|
||||||
|
element.classList.add('planAuditStatus4');
|
||||||
|
$('#aiDitStatusTotal').html("审核不通过");
|
||||||
|
|
||||||
|
$('#noPassReasonTotal').html(data[0].auditReason);
|
||||||
|
}
|
||||||
|
$('#auditUserNameTotal').html(data[0].auditUserNameTotal);
|
||||||
|
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
||||||
|
} else {
|
||||||
|
$('#aiDitStatusTotal').html("");
|
||||||
|
$('#auditUserNameTotal').html("");
|
||||||
|
$('#auditTimeTotal').html("待处理");
|
||||||
|
}
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
|
tableData.push({
|
||||||
|
id: data[i].id,
|
||||||
|
proName: data[i].proName,
|
||||||
|
yjId: data[i].yjId,
|
||||||
|
insMonth: data[i].insMonth,
|
||||||
|
|
||||||
|
workContent: data[i].workContent,
|
||||||
|
stateTime: data[i].stateTime,
|
||||||
|
enTime: data[i].enTime,
|
||||||
|
dutyUser: data[i].dutyUser,
|
||||||
|
supervisor: data[i].supervisor,
|
||||||
|
complete: data[i].complete,
|
||||||
|
remarks: data[i].remarks,
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
init();
|
||||||
|
} else {
|
||||||
|
init();
|
||||||
|
layer.alert("无数据,请联系管理员", {
|
||||||
|
icon: 2
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(data)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setAiDitStatus(status) {
|
||||||
|
$("#subComName").empty();
|
||||||
|
var text;
|
||||||
|
var color;
|
||||||
|
var html = "";
|
||||||
|
if (status == '2') {
|
||||||
|
text = '已通过';
|
||||||
|
color = '#19BE6B';
|
||||||
|
}
|
||||||
|
if (status == '0') {
|
||||||
|
text = '待审核';
|
||||||
|
color = '#FF9900';
|
||||||
|
}
|
||||||
|
if (status == '3') {
|
||||||
|
text = '未通过';
|
||||||
|
color = '#F56C6C';
|
||||||
|
}
|
||||||
|
if (status == '1') {
|
||||||
|
text = '已撤销';
|
||||||
|
color = '#999999';
|
||||||
|
}
|
||||||
|
html += "<span style='display: flex;align-items: center'>"
|
||||||
|
html += `<span style='width: 5px;height: 5px;background: ${color};border-radius: 50%'></span> `
|
||||||
|
html += `<span>${text}</span>`
|
||||||
|
html += "</span>"
|
||||||
|
|
||||||
|
$("#subComName").append(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData(){
|
function exportData() {
|
||||||
// let search1 = $('#search1').val();
|
window.location.href = PATH_URL + `/inspectionPlan/exportMonthPlanData?token=` + token +
|
||||||
// let search2 = $('#search2').val();
|
"&insMonth=" + insMonths +
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
"&yjId=" + yjIds
|
||||||
|
layer.msg('下载中,请稍等', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -5,156 +5,75 @@ var upload;
|
||||||
var id;
|
var id;
|
||||||
var formData;
|
var formData;
|
||||||
|
|
||||||
|
var yjIds, insMonths, ids;
|
||||||
|
|
||||||
layui.use(['form', 'table', 'upload', 'laydate'], function () {
|
function setData(yjId, insMonth, id) {
|
||||||
let form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功
|
yjIds = yjId;
|
||||||
form.render();
|
insMonths = insMonth;
|
||||||
upload = layui.upload;
|
ids = id;
|
||||||
var laydate = layui.laydate;
|
layui.use(['form', 'layer', 'table', 'laydate'], function() {
|
||||||
|
let form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功
|
||||||
laydate.render({
|
form.render();
|
||||||
elem: '#dataTime'
|
|
||||||
});
|
|
||||||
|
|
||||||
uploadFile();
|
$("#closeBt").click(function() {
|
||||||
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||||
|
parent.layer.close(index); //再执行关闭
|
||||||
|
});
|
||||||
|
$("#searchBt").click(function() {
|
||||||
|
// 加载提示
|
||||||
|
let loadingMsg = layer.msg('数据上传中,请稍候...', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false,
|
||||||
|
time: 0,
|
||||||
|
shade: [0.8, '#393D49']
|
||||||
|
});
|
||||||
|
// form请求地址
|
||||||
|
let formUrl = PATH_URL + "/inspectionPlan/updateDivideExamine";
|
||||||
|
|
||||||
|
let revokeReason = $("#revokeReason").val();
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: formUrl, // 请求地址
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify({
|
||||||
|
"insMonth": insMonths,
|
||||||
|
"yjId": yjIds,
|
||||||
|
"id": ids,
|
||||||
|
"auditStatus": 2,
|
||||||
|
"auditReason":revokeReason
|
||||||
|
}),
|
||||||
|
success: function(data) {
|
||||||
|
layer.close(loadingMsg); // 关闭提示层
|
||||||
|
if (data.code == 200) {
|
||||||
|
parent.layer.msg("审核成功", {
|
||||||
|
icon: 1
|
||||||
|
});
|
||||||
|
var index = parent.layer.getFrameIndex(window
|
||||||
|
.name); //先得到当前 iframe层的索引
|
||||||
|
parent.layer.close(index); //再执行关闭
|
||||||
|
reloading();
|
||||||
|
} else {
|
||||||
|
layer.alert(data.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, e) {
|
||||||
|
layer.close(loadingMsg);
|
||||||
|
layer.msg('数据请求发生异常,请稍后重试', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
form.on('submit(formDemo)', function (data) {
|
});
|
||||||
add();
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$("#closeBt").click(function(){
|
|
||||||
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
|
||||||
parent.layer.close(index); //再执行关闭
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
function uploadFile(){
|
|
||||||
var uploadcom = upload.render({
|
|
||||||
elem: '#test',
|
|
||||||
url: '', //改成您自己的上传接口
|
|
||||||
multiple: true, //是否允许多文件上传,默认未false
|
|
||||||
dataType: "json",
|
|
||||||
// data: {"pickId": id},
|
|
||||||
exts: 'jpg|png|mp4',
|
|
||||||
//acceptMime: 'image/jpg,image/png,image/jpeg,file/pdf,file/xlsx',
|
|
||||||
auto: false, //是否自动上传 ,默认为true
|
|
||||||
number: 9, //最大上传数量
|
|
||||||
// size: 1024*5, //最大文件大小,单位k
|
|
||||||
bindAction: '#hideUpload', //绑定的按钮
|
|
||||||
field: 'file', //传到后台的字段名,默认file
|
|
||||||
choose: function (obj) {
|
|
||||||
flag = false;
|
|
||||||
var suffixType = ''; //后缀类型
|
|
||||||
uploadcom.config.elem.next()[0].value = '';
|
|
||||||
obj.files = obj.pushFile();
|
|
||||||
startWorkFiles = obj.pushFile();
|
|
||||||
obj.preview(function (index, file, result) {
|
|
||||||
console.log(index); //得到文件索引
|
|
||||||
console.log(file.name); //得到文件对象
|
|
||||||
var files = $('#demo img')
|
|
||||||
if(files.length <= 2){
|
|
||||||
$('#demo').append(
|
|
||||||
'<div id="prove_' + index + '" style="display: inline-block">' +
|
|
||||||
'<div class="item">' +
|
|
||||||
'<div class="handle" style="margin-top: -28px" data-idx="prove_' + index + '">' +
|
|
||||||
'<i class="layui-icon layui-icon-delete" style="position: relative;top: 30px;left: 72px; font-size: 20px;color: red" data-idx="prove_' + index + '" ></i>' +
|
|
||||||
'</div>' +
|
|
||||||
'<img src="' + result + '" alt="' + file.name + '" title="' + file.name + '" data-index="prove_' + index + '" data-name="' + file.name + '" style="height: 100px;width: 100px;margin-right: 10px" class="layui-upload-img ">' +
|
|
||||||
'<div><span>' + (file.name.length > 8 ? (file.name.substr(0, 8) + "..") : file.name) + '</span></div>' +
|
|
||||||
'</div>'+
|
|
||||||
'</div>'
|
|
||||||
);
|
|
||||||
}else{
|
|
||||||
layer.msg('最多上传2张照片',{icon:2})
|
|
||||||
}
|
|
||||||
addDelete(startWorkFiles);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
before: function (obj) {
|
|
||||||
this.data = {
|
|
||||||
photoType: "supplyChainBlack"
|
|
||||||
};
|
|
||||||
},
|
|
||||||
done: function (data) {
|
|
||||||
},
|
|
||||||
allDone: function (data) {
|
|
||||||
top.layer.close(loadingMsg);
|
|
||||||
top.layer.msg(data.msg, {icon: 1});
|
|
||||||
reloading();
|
|
||||||
},
|
|
||||||
error: function (e) {
|
|
||||||
//请求异常回调
|
|
||||||
console.log(e)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function add() {
|
|
||||||
// loadingMsg = top.layer.msg('数据上传中,请稍候...', {icon: 16, scrollbar: false, time: 0, shade: [0.8, '#393D49']});
|
|
||||||
var files = $('#demo img')
|
|
||||||
if(files.length == 0){
|
|
||||||
layer.msg('请上传文件', {icon: 2});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: 'POST',
|
|
||||||
async: true, // 默认异步true,false表示同步
|
|
||||||
url: ctxPath + '/supplyChainBlack/addBlack',
|
|
||||||
contentType: "application/json; charset=utf-8",
|
|
||||||
data: JSON.stringify(formData.field), //获取提交的表单字段
|
|
||||||
dataType: 'json', // 服务器返回数据类型
|
|
||||||
success: function (data) {
|
|
||||||
if (data.code == 200) {
|
|
||||||
$("#hideUpload").trigger("click");
|
|
||||||
} else {
|
|
||||||
layer.alert(data.msg, {icon: 2});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (XMLHttpRequest, textStatus, e) {
|
|
||||||
top.layer.close(loadingMsg);
|
|
||||||
layer.msg('数据请求发生异常,请稍后重试', {icon: 16, scrollbar: false});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var deletePhoto = [];
|
|
||||||
function delPhoto(i,id) {
|
|
||||||
var parentcolor = document.getElementById("demo" + i);
|
|
||||||
var childcolor = document.getElementById(id + "");
|
|
||||||
var path = childcolor.name;
|
|
||||||
deletePhoto.push(path);
|
|
||||||
parentcolor.removeChild(childcolor);
|
|
||||||
var photoNum = $("#demo" + i).children().length;
|
|
||||||
if (photoNum == 0) {
|
|
||||||
$("#preview" + i).css("display", "none");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function addDelete(arr) {
|
|
||||||
$('#demo').click(function (e) {
|
|
||||||
var target = $(e.target)
|
|
||||||
if (target.hasClass('handle') || target.hasClass('layui-icon')) {
|
|
||||||
var dataIdx = target.attr('data-idx')
|
|
||||||
var filePath = $('#' + dataIdx).children().children().next().attr('file')
|
|
||||||
delete arr[dataIdx]; // 通过获取绑定在标签上的index,删除files对象中对应的key属性即可
|
|
||||||
target.parents('.item').remove() // 页面文件标签也删除
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
//设置弹窗关闭
|
//设置弹窗关闭
|
||||||
function reloading() {
|
function reloading() {
|
||||||
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||||
parent.layer.close(index); //再执行关闭
|
parent.layer.close(index); //再执行关闭
|
||||||
window.parent.location.reload();
|
window.parent.location.reload();
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//字数检测
|
|
||||||
function wordCount(event){
|
|
||||||
var count = $("#revokeReason").val().length;
|
|
||||||
$("#wordCount").text(count);
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,249 +1,330 @@
|
||||||
|
|
||||||
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() {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
laydate = layui.laydate
|
laydate = layui.laydate
|
||||||
|
|
||||||
//初始化日期选择框
|
//初始化日期选择框
|
||||||
laydate.render({
|
laydate.render({
|
||||||
elem: '#dataTime',
|
elem: '#insMonth',
|
||||||
type: 'month',
|
type: 'month',
|
||||||
|
btns: ['now', 'confirm']
|
||||||
});
|
});
|
||||||
// 触发submit提交 按钮点击或者表单被执行提交时触发
|
|
||||||
form.on('submit(query)', function (data) {
|
init();
|
||||||
console.log("搜索")
|
|
||||||
// 对表格进行重载。id 即 table表格的id
|
|
||||||
table.reload('table', {
|
|
||||||
// //设定异步数据接口的额外参数
|
|
||||||
page:{curr : 1}
|
|
||||||
,where: data.field
|
|
||||||
})
|
|
||||||
return false; // 阻止表单跳转。如果需要表单跳转,去掉这段即可。
|
|
||||||
});
|
|
||||||
$("#reset").click(function(){
|
|
||||||
console.log("重置")
|
|
||||||
$('#search1').val('');
|
|
||||||
$('#search2').val('');
|
|
||||||
$('#search3').val('');
|
|
||||||
let obj = {
|
|
||||||
search1:'',
|
|
||||||
search2:'',
|
|
||||||
search3:''
|
|
||||||
}
|
|
||||||
// 对表格进行重载。id 即 table表格的id
|
|
||||||
table.reload('table', {
|
|
||||||
// //设定异步数据接口的额外参数
|
|
||||||
page:{curr : 1}
|
|
||||||
,where: obj
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
table.on('tool(table)', function (obj) {
|
|
||||||
switch (obj.event) {
|
|
||||||
case 'details':
|
|
||||||
console.log('详情',obj)
|
|
||||||
detailsView(obj.id)
|
|
||||||
break;
|
|
||||||
case 'uploadResult':
|
|
||||||
console.log('上传结果',obj)
|
|
||||||
updateView()
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
init();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// 静态数据
|
//查询
|
||||||
var tableData = [
|
function queryClick() {
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '1'},
|
let fgsName = $('#fgsName').val();
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '1'},
|
let yjName = $('#yjName').val();
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '1'},
|
let insMonth = $('#insMonth').val();
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '2'},
|
let aiDitStatus = $('#aiDitStatus').val();
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '2'},
|
table.reload('layui_table', {
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '2'},
|
where: {
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '3'},
|
fgsId: '26',
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '3'},
|
fgsName: fgsName,
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '3'},
|
yjName: yjName,
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '4'},
|
insMonth: insMonth,
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '4'},
|
aiDitStatus: aiDitStatus,
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '4'},
|
}
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '4'},
|
})
|
||||||
{id: 1, comName: '运检一公司',sName: '昆明运检一站', month: '2024-03', workPlan: '21', subPerson: '郭福林', subTime: '2024-02-28 18:10:10', status: '4'}
|
}
|
||||||
];
|
//重置
|
||||||
|
function resetClick() {
|
||||||
|
$('#fgsName').val('');
|
||||||
|
$('#yjName').val('');
|
||||||
|
$('#insMonth').val('');
|
||||||
|
$('#aiDitStatus').val('0');
|
||||||
|
form.render();
|
||||||
|
table.reload('layui_table', {
|
||||||
|
where: {
|
||||||
|
fgsId: "26",
|
||||||
|
fgsName: "",
|
||||||
|
yjName: "",
|
||||||
|
insMonth: "",
|
||||||
|
aiDitStatus: "",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function init(){
|
function init() {
|
||||||
// 渲染表格
|
let aiDitStatus = $('#aiDitStatus').val();
|
||||||
table.render({
|
// 渲染表格
|
||||||
elem: '#table',
|
table.render({
|
||||||
// url: "/sys/achievement",
|
id: 'layui_table',
|
||||||
page: true,
|
elem: '#table',
|
||||||
skin: 'line', // 表格样式
|
url: PATH_URL + '/inspectionPlan/getLineProjectListAuditPage',
|
||||||
cols: [[
|
where: {
|
||||||
{
|
fgsId: '26',
|
||||||
title: '序号',
|
aiDitStatus: aiDitStatus
|
||||||
field: 'zizeng',
|
|
||||||
align: 'center',
|
|
||||||
type: 'numbers',
|
|
||||||
width: '5%'
|
|
||||||
},
|
|
||||||
{field:'comName', title: '分公司',align: 'center',width: '15%'},
|
|
||||||
{field:'sName', title: '运检站',align: 'center',width: '15%'},
|
|
||||||
{field:'month', title: '月份',align: 'center',width: '6%'},
|
|
||||||
{field:'workPlan', title: '工程计划数量',align: 'center',width: '7%'},
|
|
||||||
{field:'subPerson', title: '提交人',align: 'center',width: '7%'},
|
|
||||||
{field:'subTime', title: '提交时间',align: 'center',width: '15%'},
|
|
||||||
{
|
|
||||||
field: '',
|
|
||||||
title: '审核状态',
|
|
||||||
align: 'center',
|
|
||||||
width: '10%',
|
|
||||||
templet: function(d){
|
|
||||||
var status = d.status;
|
|
||||||
|
|
||||||
var text;
|
|
||||||
var color;
|
|
||||||
var html = "";
|
|
||||||
if(status == '1'){
|
|
||||||
text = '已审核';
|
|
||||||
color = '#19BE6B';
|
|
||||||
}
|
|
||||||
if(status == '2'){
|
|
||||||
text = '待审核';
|
|
||||||
color = '#FF9900';
|
|
||||||
|
|
||||||
}
|
|
||||||
if(status == '3'){
|
|
||||||
text = '未通过';
|
|
||||||
color = '#F56C6C';
|
|
||||||
}
|
|
||||||
if(status == '4'){
|
|
||||||
text = '已撤销';
|
|
||||||
color = '#999999';
|
|
||||||
}
|
|
||||||
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>${text}</span>`
|
|
||||||
html += "</span>"
|
|
||||||
return html;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
page: true,
|
||||||
field: '',
|
method: 'post',
|
||||||
title: '操作',
|
skin: 'line', // 表格样式
|
||||||
align: 'center',
|
cols: [
|
||||||
width: '20%',
|
[{
|
||||||
templet: function(d){
|
title: '序号',
|
||||||
var id= d.id;
|
field: 'zizeng',
|
||||||
var status = d.status;
|
align: 'center',
|
||||||
var text;
|
type: 'numbers',
|
||||||
var html = "";
|
width: '5%'
|
||||||
if(status == '1'){
|
},
|
||||||
//已审核
|
{
|
||||||
html += `<button class="layui-btn layui-btn-sm" onclick="detailsView('${id}')">详情</button>`
|
field: 'fgsName',
|
||||||
html += `<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportData('${id}')">导出</button>`
|
title: '分公司',
|
||||||
}
|
align: 'center',
|
||||||
if(status == '2'){
|
width: '15%'
|
||||||
//待审核
|
},
|
||||||
html += `<button class="layui-btn layui-btn-sm" onclick="detailsView('${id}')">详情</button>`
|
{
|
||||||
html += `<button type="button" class="layui-btn layui-btn-sm layui-bg-orange" onclick="auditView('${id}')">审批</button>`
|
field: 'yjName',
|
||||||
html += `<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportData('${id}''${id}')">导出</button>`
|
title: '运检站',
|
||||||
}
|
align: 'center',
|
||||||
if(status == '3'){
|
width: '15%'
|
||||||
//未通过
|
},
|
||||||
html += `<button class="layui-btn layui-btn-sm" onclick="detailsView('${id}')">详情</button>`
|
{
|
||||||
html += `<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportData('${id}')">导出</button>`
|
field: 'insMonth',
|
||||||
}
|
title: '月份',
|
||||||
|
align: 'center',
|
||||||
return html;
|
width: '6%'
|
||||||
},
|
},
|
||||||
}
|
{
|
||||||
]],
|
field: 'proPlanNum',
|
||||||
data: tableData
|
title: '工程计划数量',
|
||||||
});
|
align: 'center',
|
||||||
|
width: '7%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'createUser',
|
||||||
|
title: '提交人',
|
||||||
|
align: 'center',
|
||||||
|
width: '7%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'createTime',
|
||||||
|
title: '提交时间',
|
||||||
|
align: 'center',
|
||||||
|
width: '15%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: '',
|
||||||
|
title: '审核状态',
|
||||||
|
align: 'center',
|
||||||
|
width: '10%',
|
||||||
|
templet: function(d) {
|
||||||
|
var status = d.aiDitStatus;
|
||||||
|
console.log(status)
|
||||||
|
var text;
|
||||||
|
var color;
|
||||||
|
var html = "";
|
||||||
|
if (status == '2') {
|
||||||
|
text = '已通过';
|
||||||
|
color = '#19BE6B';
|
||||||
|
}
|
||||||
|
if (status == '0') {
|
||||||
|
text = '待审核';
|
||||||
|
color = '#FF9900';
|
||||||
|
}
|
||||||
|
if (status == '3') {
|
||||||
|
text = '未通过';
|
||||||
|
color = '#F56C6C';
|
||||||
|
}
|
||||||
|
if (status == '1') {
|
||||||
|
text = '已撤销';
|
||||||
|
color = '#999999';
|
||||||
|
}
|
||||||
|
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>${text}</span>`
|
||||||
|
html += "</span>"
|
||||||
|
return html;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: '',
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
width: '20%',
|
||||||
|
templet: function(d) {
|
||||||
|
var id = d.id;
|
||||||
|
var yjId = d.yjId;
|
||||||
|
var insMonth = d.insMonth;
|
||||||
|
var status = d.aiDitStatus;
|
||||||
|
var text;
|
||||||
|
var html = "";
|
||||||
|
if (status == '2') {
|
||||||
|
//已审核
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
|
||||||
|
}
|
||||||
|
if (status == '0') {
|
||||||
|
//分公司待审核
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
||||||
|
html +=
|
||||||
|
`<button type="button" class="layui-btn layui-btn-sm layui-bg-orange" onclick="auditView('${yjId}','${insMonth}','${id}')">审批</button>`
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status == '4') {
|
||||||
|
//总公司待审核
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
||||||
|
html +=
|
||||||
|
`<button type="button" class="layui-btn layui-btn-sm layui-bg-orange" onclick="auditTotalView('${yjId}','${insMonth}','${id}')">审批</button>`
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
|
||||||
|
}
|
||||||
|
|
||||||
|
if (status == '3') {
|
||||||
|
//未通过
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
||||||
|
html +=
|
||||||
|
`<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
|
||||||
|
}
|
||||||
|
|
||||||
|
return html;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//详情
|
//详情
|
||||||
function detailsView(id) {
|
function detailsView(yjId, insMonth) {
|
||||||
/* $.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()为子页面的方法
|
|
||||||
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}) */
|
|
||||||
|
|
||||||
//测试
|
|
||||||
let height = '98%';
|
let height = '98%';
|
||||||
let width = '99%';
|
let width = '95%';
|
||||||
var index = layer.open({
|
$.ajax({
|
||||||
title: ['月计划详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
type: 'POST',
|
||||||
type: 2,
|
url: PATH_URL + '/inspectionPlan/getDetails',
|
||||||
content: './monthPlanDetails.html',
|
contentType: "application/json; charset=utf-8",
|
||||||
area: [width, height],
|
data: JSON.stringify({
|
||||||
maxmin: false,
|
"yjId": yjId,
|
||||||
success: function (layero, index) {
|
"insMonth": insMonth
|
||||||
// var myIframe = window[layero.find('iframe')[0]['name']];
|
}),
|
||||||
// myIframe.hideSubmit();
|
success: function(data) {
|
||||||
// var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
|
console.log("data:", data)
|
||||||
|
var index = layer.open({
|
||||||
},
|
title: ['月计划详情'],
|
||||||
});
|
type: 2,
|
||||||
|
content: './monthPlanDetails.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, yjId, insMonth); //aaa()为子页面的方法
|
||||||
|
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
//审批
|
//审批
|
||||||
function auditView(id){
|
function auditView(yjId, insMonth,id) {
|
||||||
let height = '98%';
|
let height = '98%';
|
||||||
let width = '99%';
|
let width = '95%';
|
||||||
var index = layer.open({
|
$.ajax({
|
||||||
title: ['月计划审核', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
type: 'POST',
|
||||||
type: 2,
|
url: PATH_URL + '/inspectionPlan/getDetails',
|
||||||
content: './monthPlanAudit.html',
|
contentType: "application/json; charset=utf-8",
|
||||||
area: [width, height],
|
data: JSON.stringify({
|
||||||
maxmin: false,
|
"yjId": yjId,
|
||||||
success: function (layero, index) {
|
"insMonth": insMonth
|
||||||
// var myIframe = window[layero.find('iframe')[0]['name']];
|
}),
|
||||||
// myIframe.hideSubmit();
|
success: function(data) {
|
||||||
// var fnc = myIframe.setData(data.data); //aaa()为子页面的方法
|
var index = layer.open({
|
||||||
|
title: ['月计划审核'],
|
||||||
|
type: 2,
|
||||||
|
content: './monthPlanAudit.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, yjId, insMonth,id); //aaa()为子页面的方法
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//删除
|
|
||||||
function delData(id){
|
|
||||||
layer.confirm("确定删除吗?", {icon: 0}, function () {
|
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//总公司审批
|
||||||
|
function auditTotalView(yjId, insMonth,id) {
|
||||||
|
let height = '98%';
|
||||||
|
let width = '95%';
|
||||||
|
$.ajax({
|
||||||
|
type: 'POST',
|
||||||
|
url: PATH_URL + '/inspectionPlan/getDetails',
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify({
|
||||||
|
"yjId": yjId,
|
||||||
|
"insMonth": insMonth
|
||||||
|
}),
|
||||||
|
success: function(data) {
|
||||||
|
var index = layer.open({
|
||||||
|
title: ['月计划审核'],
|
||||||
|
type: 2,
|
||||||
|
content: './monthPlanAuditTotal.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, yjId, insMonth,id); //aaa()为子页面的方法
|
||||||
|
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//导出
|
||||||
|
function exportData() {
|
||||||
|
|
||||||
|
let fgsName = $('#fgsName').val();
|
||||||
|
let yjName = $('#yjName').val();
|
||||||
|
let insMonth = $('#insMonth').val();
|
||||||
|
let aiDitStatus = $('#aiDitStatus').val();
|
||||||
|
let fgsId = '26'
|
||||||
|
|
||||||
|
window.location.href = PATH_URL + `/inspectionPlan/exportAuditPlanData?token=` + token +
|
||||||
|
"&fgsName=" + fgsName +
|
||||||
|
"&yjName=" + yjName +
|
||||||
|
"&insMonth=" + insMonth +
|
||||||
|
"&aiDitStatus=" + aiDitStatus + "&fgsId=" + fgsId
|
||||||
|
|
||||||
|
layer.msg('下载中,请稍等', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData(){
|
function exportDataDetails(yjId, insMonth) {
|
||||||
// let search1 = $('#search1').val();
|
window.location.href = PATH_URL + `/inspectionPlan/exportMonthPlanData?token=` + token +
|
||||||
// let search2 = $('#search2').val();
|
"&insMonth=" + insMonth +
|
||||||
window.location.href = oiPlanUrl + "/monthlyPlanSubmission/export?token=" + token;
|
"&yjId=" + yjId
|
||||||
|
layer.msg('下载中,请稍等', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
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() {
|
||||||
table = layui.table;
|
table = layui.table;
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
laydate = layui.laydate
|
laydate = layui.laydate
|
||||||
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
});
|
});
|
||||||
var yjIds,insMonths;
|
var yjIds, insMonths;
|
||||||
|
|
||||||
// 静态数据
|
// 静态数据
|
||||||
var tableData = [];
|
var tableData = [];
|
||||||
|
|
@ -16,92 +16,125 @@ var tableData = [];
|
||||||
/**
|
/**
|
||||||
* 初始化数据
|
* 初始化数据
|
||||||
*/
|
*/
|
||||||
function init(){
|
function init() {
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#table',
|
elem: '#table',
|
||||||
// url: "/sys/achievement",
|
// url: "/sys/achievement",
|
||||||
// page: true,
|
// page: true,
|
||||||
skin: 'line', // 表格样式
|
skin: 'line', // 表格样式
|
||||||
cols: [[
|
cols: [
|
||||||
{
|
[{
|
||||||
title: '序号',
|
title: '序号',
|
||||||
field: 'zizeng',
|
field: 'zizeng',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
type: 'numbers',
|
type: 'numbers',
|
||||||
width: '5%'
|
width: '5%'
|
||||||
},
|
},
|
||||||
{field:'proName', title: '线路名称',align: 'center'},
|
{
|
||||||
{field:'workContent', title: '工作内容',align: 'center'},
|
field: 'proName',
|
||||||
{field:'stateTime', title: '计划开始时间',align: 'center'},
|
title: '线路名称',
|
||||||
{field:'enTime', title: '计划结束时间',align: 'center'},
|
align: 'center'
|
||||||
{field:'dutyUser', title: '责任人(护线员)',align: 'center'},
|
},
|
||||||
{field:'supervisor', title: '督办人(设备主人)',align: 'center'},
|
{
|
||||||
{field:'complete', title: '完成标准',align: 'center'},
|
field: 'workContent',
|
||||||
{field:'remarks', title: '备注',align: 'center'},
|
title: '工作内容',
|
||||||
]],
|
align: 'center'
|
||||||
data: tableData,
|
},
|
||||||
done: function(res, curr, count, origin){
|
{
|
||||||
|
field: 'stateTime',
|
||||||
},
|
title: '计划开始时间',
|
||||||
});
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'enTime',
|
||||||
|
title: '计划结束时间',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'dutyUser',
|
||||||
|
title: '责任人(护线员)',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'supervisor',
|
||||||
|
title: '督办人(设备主人)',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'complete',
|
||||||
|
title: '完成标准',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'remarks',
|
||||||
|
title: '备注',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
],
|
||||||
|
data: tableData,
|
||||||
|
done: function(res, curr, count, origin) {
|
||||||
|
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setData(data,yjId,insMonth){
|
function setData(data, yjId, insMonth) {
|
||||||
yjIds = yjId;
|
yjIds = yjId;
|
||||||
insMonths = insMonth;
|
insMonths = insMonth;
|
||||||
if(data.length>0){
|
if (data.length > 0) {
|
||||||
$('#fgsName').html(data[0].fgsName);
|
$('#fgsName').html(data[0].fgsName);
|
||||||
$('#yjName').html(data[0].yjName);
|
$('#yjName').html(data[0].yjName);
|
||||||
$('#insMonth').html(data[0].insMonth);
|
$('#insMonth').html(data[0].insMonth);
|
||||||
|
|
||||||
setAiDitStatus(data[0].aiDitStatus);
|
setAiDitStatus(data[0].aiDitStatus);
|
||||||
|
|
||||||
$('#createUser').html(data[0].createUser);
|
$('#createUser').html(data[0].createUser);
|
||||||
$('#createTime').html(data[0].createTime);
|
$('#createTime').html(data[0].createTime);
|
||||||
|
|
||||||
//分公司
|
//分公司
|
||||||
if(data[0].aiDitStatuses){
|
if (data[0].aiDitStatuses) {
|
||||||
$('#aiDitStatuses').html(data[0].aiDitStatuses);
|
$('#aiDitStatuses').html(data[0].aiDitStatuses);
|
||||||
$('#auditUserName').html(data[0].auditUserName);
|
$('#auditUserName').html(data[0].auditUserName);
|
||||||
$('#auditTime').html(data[0].auditTime);
|
$('#auditTime').html(data[0].auditTime);
|
||||||
}else{
|
} else {
|
||||||
$('#aiDitStatuses').html("");
|
$('#aiDitStatuses').html("");
|
||||||
$('#auditUserName').html("");
|
$('#auditUserName').html("");
|
||||||
$('#auditTime').html("");
|
$('#auditTime').html("");
|
||||||
}
|
}
|
||||||
|
|
||||||
//总公司
|
//总公司
|
||||||
if(data[0].aiDitStatusTotal){
|
if (data[0].aiDitStatusTotal) {
|
||||||
$('#aiDitStatusTotal').html(data[0].aiDitStatusTotal);
|
$('#aiDitStatusTotal').html(data[0].aiDitStatusTotal);
|
||||||
$('#auditUserNameTotal').html(data[0].auditUserNameTotal);
|
$('#auditUserNameTotal').html(data[0].auditUserNameTotal);
|
||||||
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
||||||
}else{
|
} else {
|
||||||
$('#aiDitStatusTotal').html("");
|
$('#aiDitStatusTotal').html("");
|
||||||
$('#auditUserNameTotal').html("");
|
$('#auditUserNameTotal').html("");
|
||||||
$('#auditTimeTotal').html("");
|
$('#auditTimeTotal').html("");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
tableData.push({
|
tableData.push({
|
||||||
id: data[i].id,
|
id: data[i].id,
|
||||||
proName: data[i].proName,
|
proName: data[i].proName,
|
||||||
yjId:data[i].yjId,
|
yjId: data[i].yjId,
|
||||||
insMonth:data[i].insMonth,
|
insMonth: data[i].insMonth,
|
||||||
|
|
||||||
workContent:data[i].workContent,
|
workContent: data[i].workContent,
|
||||||
stateTime:data[i].stateTime,
|
stateTime: data[i].stateTime,
|
||||||
enTime:data[i].enTime,
|
enTime: data[i].enTime,
|
||||||
dutyUser:data[i].dutyUser,
|
dutyUser: data[i].dutyUser,
|
||||||
supervisor:data[i].supervisor,
|
supervisor: data[i].supervisor,
|
||||||
complete:data[i].complete,
|
complete: data[i].complete,
|
||||||
remarks:data[i].remarks,
|
remarks: data[i].remarks,
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
init();
|
init();
|
||||||
}else{
|
} else {
|
||||||
layer.alert("无数据,请联系管理员", {
|
layer.alert("无数据,请联系管理员", {
|
||||||
icon: 2
|
icon: 2
|
||||||
});
|
});
|
||||||
|
|
@ -109,24 +142,24 @@ function setData(data,yjId,insMonth){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function setAiDitStatus(status){
|
function setAiDitStatus(status) {
|
||||||
$("#subComName").empty();
|
$("#subComName").empty();
|
||||||
var text;
|
var text;
|
||||||
var color;
|
var color;
|
||||||
var html = "";
|
var html = "";
|
||||||
if(status == '2'){
|
if (status == '2') {
|
||||||
text = '已通过';
|
text = '已通过';
|
||||||
color = '#19BE6B';
|
color = '#19BE6B';
|
||||||
}
|
}
|
||||||
if(status == '0'){
|
if (status == '0') {
|
||||||
text = '待审核';
|
text = '待审核';
|
||||||
color = '#FF9900';
|
color = '#FF9900';
|
||||||
}
|
}
|
||||||
if(status == '3'){
|
if (status == '3') {
|
||||||
text = '未通过';
|
text = '未通过';
|
||||||
color = '#F56C6C';
|
color = '#F56C6C';
|
||||||
}
|
}
|
||||||
if(status == '1'){
|
if (status == '1') {
|
||||||
text = '已撤销';
|
text = '已撤销';
|
||||||
color = '#999999';
|
color = '#999999';
|
||||||
}
|
}
|
||||||
|
|
@ -134,20 +167,20 @@ function setAiDitStatus(status){
|
||||||
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>`
|
||||||
html += "</span>"
|
html += "</span>"
|
||||||
|
|
||||||
$("#subComName").append(html);
|
$("#subComName").append(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//导出
|
//导出
|
||||||
function exportData(){
|
function exportData() {
|
||||||
|
|
||||||
|
|
||||||
window.location.href = PATH_URL + `/inspectionPlan/exportMonthPlanData?token=` + token
|
window.location.href = PATH_URL + `/inspectionPlan/exportMonthPlanData?token=` + token +
|
||||||
+ "&insMonth=" + insMonths
|
"&insMonth=" + insMonths +
|
||||||
+ "&yjId=" + yjIds
|
"&yjId=" + yjIds
|
||||||
|
|
||||||
|
|
||||||
layer.msg('下载中,请稍等', {
|
layer.msg('下载中,请稍等', {
|
||||||
icon: 16,
|
icon: 16,
|
||||||
scrollbar: false
|
scrollbar: false
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,6 @@ function init(){
|
||||||
var yjId= d.yjId;
|
var yjId= d.yjId;
|
||||||
var insMonth= d.insMonth;
|
var insMonth= d.insMonth;
|
||||||
var status = d.aiDitStatus;
|
var status = d.aiDitStatus;
|
||||||
var status = d.aiDitStatus;
|
|
||||||
var text;
|
var text;
|
||||||
var html = "";
|
var html = "";
|
||||||
if(status == '2'){
|
if(status == '2'){
|
||||||
|
|
@ -173,7 +172,7 @@ function detailsView(yjId,insMonth) {
|
||||||
|
|
||||||
|
|
||||||
var index = layer.open({
|
var index = layer.open({
|
||||||
title: ['详情'],
|
title: ['月计划详情'],
|
||||||
type: 2,
|
type: 2,
|
||||||
content: './monthPlanDetails.html',
|
content: './monthPlanDetails.html',
|
||||||
area: [width, height],
|
area: [width, height],
|
||||||
|
|
@ -201,7 +200,7 @@ function revokeView(yjId,insMonth){
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
layer.close(index);
|
layer.close(index);
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
layer.confirm("撤销成功", {icon: 1}, function () {
|
layer.msg("撤销成功", {icon: 1}, function () {
|
||||||
table.reload('layui_table', {
|
table.reload('layui_table', {
|
||||||
where: {
|
where: {
|
||||||
yjId:yjId,
|
yjId:yjId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue