巡视计划
This commit is contained in:
parent
a03ebde181
commit
e368ceeff7
|
|
@ -140,32 +140,36 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus2{
|
.planAuditStatus2{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_green.png) no-repeat;
|
background: url(../../../image/dialogBox_green.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus3{
|
.planAuditStatus3{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus4 {
|
.planAuditStatus4 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_red.png) no-repeat;
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -140,32 +140,36 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus2{
|
.planAuditStatus2{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_green.png) no-repeat;
|
background: url(../../../image/dialogBox_green.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus3{
|
.planAuditStatus3{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus4 {
|
.planAuditStatus4 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_red.png) no-repeat;
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,9 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planAuditStatus2 {
|
.planAuditStatus2 {
|
||||||
|
|
@ -165,8 +166,9 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_green.png) no-repeat;
|
background: url(../../../image/dialogBox_green.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planAuditStatus3 {
|
.planAuditStatus3 {
|
||||||
|
|
@ -174,16 +176,18 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus4 {
|
.planAuditStatus4 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_red.png) no-repeat;
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -139,32 +139,36 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus2{
|
.planAuditStatus2{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_green.png) no-repeat;
|
background: url(../../../image/dialogBox_green.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus3{
|
.planAuditStatus3{
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.planAuditStatus4 {
|
.planAuditStatus4 {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_red.png) no-repeat;
|
background: url(../../../image/dialogBox_red.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -203,7 +207,7 @@
|
||||||
分公司审核
|
分公司审核
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="planAuditStatus2" id="aiDitStatuses"></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>
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,9 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
background: url(../../../image/dialogBox_blue.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planAuditStatus2 {
|
.planAuditStatus2 {
|
||||||
|
|
@ -165,8 +166,9 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_green.png) no-repeat;
|
background: url(../../../image/dialogBox_green.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.planAuditStatus3 {
|
.planAuditStatus3 {
|
||||||
|
|
@ -174,8 +176,18 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
background: url(../../../image/dialogBox_gren.png) no-repeat;
|
||||||
background-size: 50% 100%;
|
background-size: 60% 100%;
|
||||||
background-position: center;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -219,7 +231,7 @@
|
||||||
分公司审核
|
分公司审核
|
||||||
</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>
|
||||||
|
|
|
||||||
|
|
@ -212,7 +212,7 @@ function pass() {
|
||||||
"insMonth": insMonths,
|
"insMonth": insMonths,
|
||||||
"yjId": yjIds,
|
"yjId": yjIds,
|
||||||
"id": ids,
|
"id": ids,
|
||||||
"auditStatus": 4
|
"auditStatus": 2
|
||||||
}),
|
}),
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
layer.close(loadingMsg); // 关闭提示层
|
layer.close(loadingMsg); // 关闭提示层
|
||||||
|
|
@ -245,12 +245,21 @@ function noPass() {
|
||||||
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: './noPassReasonTotal.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']];
|
||||||
var fnc = myIframe.setData(yjIds, insMonths, ids); //aaa()为子页面的方法
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -92,7 +92,7 @@ function setData(data, yjId, insMonth) {
|
||||||
var element = document.getElementById('aiDitStatuses');
|
var element = document.getElementById('aiDitStatuses');
|
||||||
// 移除旧的类
|
// 移除旧的类
|
||||||
element.classList.remove('planAuditStatus3');
|
element.classList.remove('planAuditStatus3');
|
||||||
if(data[0].aiDitStatuses == 2){
|
if(data[0].aiDitStatuses == 2 || data[0].aiDitStatuses == 4){
|
||||||
element.classList.add('planAuditStatus2');
|
element.classList.add('planAuditStatus2');
|
||||||
$('#aiDitStatuses').html("审核通过");
|
$('#aiDitStatuses').html("审核通过");
|
||||||
}else if(data[0].aiDitStatuses == 3){
|
}else if(data[0].aiDitStatuses == 3){
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ function addData(){
|
||||||
"insMonth": insMonths,
|
"insMonth": insMonths,
|
||||||
"yjId": yjIds,
|
"yjId": yjIds,
|
||||||
"id": ids,
|
"id": ids,
|
||||||
"auditStatus": 4,
|
"auditStatus": 3,
|
||||||
"auditReason":revokeReason
|
"auditReason":revokeReason
|
||||||
}),
|
}),
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|
|
||||||
|
|
@ -19,57 +19,57 @@ function setData(yjId, insMonth, id) {
|
||||||
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
||||||
parent.layer.close(index); //再执行关闭
|
parent.layer.close(index); //再执行关闭
|
||||||
});
|
});
|
||||||
$("#searchBt").click(function() {
|
// 验证成功后才会执行下面的操作
|
||||||
// 加载提示
|
form.on('submit(formDemo)', function (data) {
|
||||||
let loadingMsg = layer.msg('数据上传中,请稍候...', {
|
addData();
|
||||||
icon: 16,
|
|
||||||
scrollbar: false,
|
|
||||||
time: 0,
|
|
||||||
shade: [0.8, '#393D49']
|
|
||||||
});
|
|
||||||
// form请求地址
|
|
||||||
let formUrl = PATH_URL + "/inspectionPlan/updateTotalExamine";
|
|
||||||
|
|
||||||
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
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addData(){
|
||||||
|
// 加载提示
|
||||||
|
let loadingMsg = layer.msg('数据上传中,请稍候...', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false,
|
||||||
|
time: 0,
|
||||||
|
shade: [0.8, '#393D49']
|
||||||
|
});
|
||||||
|
// form请求地址
|
||||||
|
let formUrl = PATH_URL + "/inspectionPlan/updateTotalExamine";
|
||||||
|
|
||||||
|
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": 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.close(index); //再执行关闭
|
||||||
|
// reloading();
|
||||||
|
localStorage.setItem("noPassTotal","1");
|
||||||
|
} else {
|
||||||
|
layer.alert(data.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, e) {
|
||||||
|
layer.close(loadingMsg);
|
||||||
|
layer.msg('数据请求发生异常,请稍后重试', {
|
||||||
|
icon: 16,
|
||||||
|
scrollbar: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
//设置弹窗关闭
|
//设置弹窗关闭
|
||||||
function reloading() {
|
function reloading() {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,24 @@ function setData(data, yjId, insMonth) {
|
||||||
|
|
||||||
//分公司
|
//分公司
|
||||||
if (data[0].aiDitStatuses) {
|
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);
|
$('#auditUserName').html(data[0].auditUserName);
|
||||||
$('#auditTime').html(data[0].auditTime);
|
$('#auditTime').html(data[0].auditTime);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -107,7 +124,19 @@ function setData(data, yjId, insMonth) {
|
||||||
|
|
||||||
//总公司
|
//总公司
|
||||||
if (data[0].aiDitStatusTotal) {
|
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);
|
$('#auditUserNameTotal').html(data[0].auditUserNameTotal);
|
||||||
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
$('#auditTimeTotal').html(data[0].auditTimeTotal);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ function init(){
|
||||||
html += `<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
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>`
|
html += `<button class="layui-btn layui-btn-sm layui-btn-primary" onclick="exportDataDetails('${yjId}','${insMonth}')">导出</button>`
|
||||||
}
|
}
|
||||||
if(status == '0'){
|
if(status == '0' ){
|
||||||
//待审核
|
//待审核
|
||||||
html += `<button class="layui-btn layui-btn-sm" onclick="detailsView('${yjId}','${insMonth}')">详情</button>`
|
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="revokeView('${yjId}','${insMonth}')">撤销</button>`
|
html += `<button type="button" class="layui-btn layui-btn-sm layui-bg-orange" onclick="revokeView('${yjId}','${insMonth}')">撤销</button>`
|
||||||
|
|
@ -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 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>`
|
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;
|
return html;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue