巡视计划

This commit is contained in:
lSun 2024-08-21 22:09:45 +08:00
parent a03ebde181
commit e368ceeff7
12 changed files with 147 additions and 76 deletions

View File

@ -140,32 +140,36 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_blue.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus2{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_green.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus3{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_gren.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus4 {
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_red.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
</style>
</head>

View File

@ -140,32 +140,36 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_blue.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus2{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_green.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus3{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_gren.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus4 {
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_red.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
</style>
</head>

View File

@ -156,8 +156,9 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_blue.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus2 {
@ -165,8 +166,9 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_green.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus3 {
@ -174,16 +176,18 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_gren.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus4 {
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_red.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
</style>
</head>

View File

@ -2,7 +2,7 @@
<html>
<head>
<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/public.js"></script>

View File

@ -139,32 +139,36 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_blue.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus2{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_green.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus3{
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_gren.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus4 {
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_red.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
</style>
</head>
@ -203,7 +207,7 @@
分公司审核
</div>
<div>
<div class="planAuditStatus2" id="aiDitStatuses"></div>
<div class="planAuditStatus3" id="aiDitStatuses"></div>
<div style="text-align: center;">
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
</div>

View File

@ -156,8 +156,9 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_blue.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus2 {
@ -165,8 +166,9 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_green.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus3 {
@ -174,8 +176,18 @@
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_gren.png) no-repeat;
background-size: 50% 100%;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
.planAuditStatus4 {
color: #ffffff;
height: 30px;
padding-top: 5px;
background: url(../../../image/dialogBox_red.png) no-repeat;
background-size: 60% 100%;
background-position: center;
text-align: center;
}
</style>
</head>
@ -219,7 +231,7 @@
分公司审核
</div>
<div>
<div class="planAuditStatus2">审核通过</div>
<div class="planAuditStatus3" id="aiDitStatuses"></div>
<div style="text-align: center;">
<img class="chargePersonIcon2" src="../../../image/userIcon.png">
</div>

View File

@ -212,7 +212,7 @@ function pass() {
"insMonth": insMonths,
"yjId": yjIds,
"id": ids,
"auditStatus": 4
"auditStatus": 2
}),
success: function(data) {
layer.close(loadingMsg); // 关闭提示层
@ -245,12 +245,21 @@ function noPass() {
var index = layer.open({
title: ['审核不通过', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
type: 2,
content: './noPassReason.html',
content: './noPassReasonTotal.html',
area: [width, height],
maxmin: false,
success: function(layero, index) {
var myIframe = window[layero.find('iframe')[0]['name']];
var fnc = myIframe.setData(yjIds, insMonths, ids); //aaa()为子页面的方法
},
end: function(){
var noPassTotal = localStorage.getItem("noPassTotal");
if(noPassTotal =="1"){
parent.layer.msg("添加成功", { icon: 1 });
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
parent.layer.close(index); //再执行关闭
window.parent.location.reload();
}
}
});
}

View File

@ -92,7 +92,7 @@ function setData(data, yjId, insMonth) {
var element = document.getElementById('aiDitStatuses');
// 移除旧的类
element.classList.remove('planAuditStatus3');
if(data[0].aiDitStatuses == 2){
if(data[0].aiDitStatuses == 2 || data[0].aiDitStatuses == 4){
element.classList.add('planAuditStatus2');
$('#aiDitStatuses').html("审核通过");
}else if(data[0].aiDitStatuses == 3){

View File

@ -48,7 +48,7 @@ function addData(){
"insMonth": insMonths,
"yjId": yjIds,
"id": ids,
"auditStatus": 4,
"auditStatus": 3,
"auditReason":revokeReason
}),
success: function(data) {

View File

@ -19,7 +19,14 @@ function setData(yjId, insMonth, id) {
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
parent.layer.close(index); //再执行关闭
});
$("#searchBt").click(function() {
// 验证成功后才会执行下面的操作
form.on('submit(formDemo)', function (data) {
addData();
});
});
}
function addData(){
// 加载提示
let loadingMsg = layer.msg('数据上传中,请稍候...', {
icon: 16,
@ -39,19 +46,17 @@ function setData(yjId, insMonth, id) {
"insMonth": insMonths,
"yjId": yjIds,
"id": ids,
"auditStatus": 2,
"auditStatus": 3,
"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.msg("添加成功", { icon: 1 });
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
parent.layer.close(index); //再执行关闭
reloading();
// reloading();
localStorage.setItem("noPassTotal","1");
} else {
layer.alert(data.msg);
}
@ -64,13 +69,8 @@ function setData(yjId, insMonth, id) {
});
}
});
});
});
}
//设置弹窗关闭
function reloading() {
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引

View File

@ -96,7 +96,24 @@ function setData(data, yjId, insMonth) {
//分公司
if (data[0].aiDitStatuses) {
$('#aiDitStatuses').html(data[0].aiDitStatuses);
// 获取元素
var element = document.getElementById('aiDitStatuses');
// 移除旧的类
element.classList.remove('planAuditStatus3');
if(data[0].aiDitStatuses == 2 || data[0].aiDitStatuses == 4){
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);
$('#auditUserName').html(data[0].auditUserName);
$('#auditTime').html(data[0].auditTime);
} else {
@ -107,7 +124,19 @@ function setData(data, yjId, insMonth) {
//总公司
if (data[0].aiDitStatusTotal) {
$('#aiDitStatusTotal').html(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 {

View File

@ -149,6 +149,11 @@ function init(){
html += `<button type="button" class="layui-btn layui-btn-sm layui-bg-red" onclick="delData('${yjId}','${insMonth}')">删除</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 class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
}
return html;
},