You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
301 lines
11 KiB
301 lines
11 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="../../../../component/pear/css/pear.css" />
|
|
<style>
|
|
html,
|
|
body,
|
|
form {
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.layui-card {
|
|
height: calc(100% - 20px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.require-star {
|
|
position: absolute;
|
|
width: 3px;
|
|
height: 14px;
|
|
background-color: #ea4335;
|
|
top: 12px;
|
|
right: 8px;
|
|
border-radius: 1.5px;
|
|
}
|
|
|
|
.input-width {
|
|
max-width: 230px
|
|
}
|
|
|
|
.layui-row {
|
|
width: 800px;
|
|
margin: 10px auto;
|
|
}
|
|
|
|
.text {
|
|
|
|
display: block;
|
|
padding: 9px 15px;
|
|
width: 230px;
|
|
font-weight: 400;
|
|
line-height: 20px;
|
|
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="pear-container">
|
|
<form class="layui-form" action="">
|
|
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-row" style="margin-top: 50px;">
|
|
<i class="layui-icon layui-icon-note" style="color: #16BAAA;" id="title"></i>
|
|
</div>
|
|
<div class="layui-row" style="margin-top: 20px;">
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">状态:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a1"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">应提交数:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a2"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row" style="margin-top: 10px;">
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">已提交数:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a3" style="cursor: pointer;color: #16BAAA;"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">未提交数:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a4" style="cursor: pointer;color: #16BAAA;"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row" style="margin-top: 10px;">
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">退回未提交数:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a5" style="cursor: pointer;color: #16BAAA;"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-xs6">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 115px !important;">退回已提交数:</label>
|
|
<div class="layui-input-block">
|
|
<span class="text" id="a6" style="cursor: pointer;color: #16BAAA;"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-row" style="text-align: center;margin-top: 50px;" id="th">
|
|
<button id="shangbao" type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit=""
|
|
lay-filter="save" style="margin-right: 50px;">
|
|
<i class="layui-icon layui-icon-ok"></i>
|
|
上 报
|
|
</button>
|
|
<button id="cxsb" type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit=""
|
|
lay-filter="save" style="margin-right: 50px;">
|
|
<i class="layui-icon layui-icon-ok"></i>
|
|
重新上报
|
|
</button>
|
|
<button id="xzthxx" type="submit" class="pear-btn layui-bg-orange pear-btn-sm" lay-submit=""
|
|
lay-filter="thxx" style="margin-right: 50px;">
|
|
<i class="layui-icon layui-icon-return"></i>
|
|
选择退回学校
|
|
</button>
|
|
<button id="ckthyy" type="submit" class="pear-btn pear-btn-sm" lay-submit="" lay-filter="thyy"
|
|
style="margin-right: 50px;">
|
|
<i class="layui-icon layui-icon-form"></i>
|
|
查看退回原因
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
<script src="../../../../component/layui/layui.js"></script>
|
|
<script src="../../../../component/pear/pear.js"></script>
|
|
|
|
<script>
|
|
layui.use(function () {
|
|
var form = layui.form;
|
|
var $ = layui.jquery;
|
|
|
|
initInfo();
|
|
|
|
function initInfo() {
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/QingLong/zbdc/CheckViewByArea",
|
|
success: function (res) {
|
|
$("#title").html(" " + res.data.name);
|
|
$("#a1").html(res.data.check_type_name);
|
|
$("#a2").html(res.data.yingtijiao_count);
|
|
$("#a3").html(res.data.yitijiao_count);
|
|
$("#a4").html(res.data.weitijiao_count);
|
|
$("#a5").html(res.data.tuihuiweitijiao_count);
|
|
$("#a6").html(res.data.tuihui_commit_count);
|
|
|
|
if (res.data.check_type_id == 0) {
|
|
$("#cxsb").hide();
|
|
$("#ckthyy").hide();
|
|
} else if (res.data.check_type_id == 2) {
|
|
$("#shangbao").hide();
|
|
$("#cxsb").hide();
|
|
$("#xzthxx").hide();
|
|
$("#ckthyy").hide();
|
|
} else if (res.data.check_type_id == -1) {
|
|
$("#shangbao").hide();
|
|
} else if (res.data.check_type_id == 1) {
|
|
$("#shangbao").hide();
|
|
$("#cxsb").hide();
|
|
$("#xzthxx").hide();
|
|
$("#ckthyy").hide();
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
$("#a3").click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: "已提交",
|
|
shade: 0.1,
|
|
area: ['100%', '100%'],
|
|
content: './school_list_details.html?flag=2'
|
|
});
|
|
|
|
});
|
|
|
|
$("#a4").click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: "未提交",
|
|
shade: 0.1,
|
|
area: ['800px', '512px'],
|
|
content: './school_list.html?flag=0'
|
|
});
|
|
|
|
});
|
|
|
|
$("#a5").click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: "退回未提交",
|
|
shade: 0.1,
|
|
area: ['800px', '512px'],
|
|
content: './school_list.html?flag=-1'
|
|
});
|
|
|
|
});
|
|
|
|
$("#a6").click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: "退回已提交",
|
|
shade: 0.1,
|
|
area: ['800px', '512px'],
|
|
content: './school_list.html?flag=3'
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
form.on('submit(save)', function (data) {
|
|
|
|
|
|
if ($("#a2").html() == $("#a3").html()) {
|
|
$.ajax({
|
|
url: '/QingLong/zbdc/CheckReportSave',
|
|
type: 'post',
|
|
success: function (result) {
|
|
if (result.success) {
|
|
layer.msg("上报成功!", {
|
|
icon: 1,
|
|
time: 1300
|
|
});
|
|
} else {
|
|
layer.msg(result.message, {
|
|
icon: 2,
|
|
time: 2000
|
|
});
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
layer.msg("还有未提交的学校,不能上报!", {
|
|
icon: 2,
|
|
time: 3000
|
|
});
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
});
|
|
|
|
form.on('submit(thxx)', function (data) {
|
|
layer.open({
|
|
type: 2,
|
|
title: "选择退回学校",
|
|
shade: 0.1,
|
|
area: ['700px', '710px'],
|
|
content: './th_school.html'
|
|
});
|
|
|
|
return false;
|
|
});
|
|
|
|
form.on('submit(thyy)', function (data) {
|
|
layer.open({
|
|
type: 2,
|
|
title: "查看退回原因",
|
|
shade: 0.1,
|
|
area: ['500px', '260px'],
|
|
content: './refuse_reason.html'
|
|
});
|
|
return false;
|
|
});
|
|
|
|
|
|
window.getInfo = function (data) {
|
|
initInfo();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |