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.

177 lines
6.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>增加教学计划</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../static/css/font.css">
<link rel="stylesheet" href="../../static/css/weadmin.css">
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
<script src="../../lib/jquery-1.12.4.min.js"></script>
<script src="../../lib/ztree/jquery.ztree.core-3.5.min.js"></script>
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.inline {
display: inline-block;
vertical-align: top;
}
.disabled {
pointer-events: none;
border: 1px solid #e6e6e6;
background: #FBFBFB;
color: #C9C9C9;
cursor: not-allowed;
opacity: 1;
}
.searchTxt {
width: 456px;
border: 1px solid #dedede;
border-radius: 3px;
height: 37px;
padding-left: 13px;
vertical-align: top;
}
.search {
border: none;
margin-left: 12px;
}
.iconDel {
position: absolute;
right: 92px;
top: 10px;
display: none;
}
.aaa {
background-color: #FBFBFB;
border: 1px solid #e6e6e6;
color: #C9C9C9;
cursor: not-allowed;
opacity: 1;
}
</style>
</head>
<body>
<form class="layui-form">
<div class="weadmin-body">
<div class="layui-form-item">
<label class="layui-form-label" style="padding:9px 0;text-align: left;width:80px">审批意见</label>
<div class="layui-input-block">
<textarea id="verification_judgement" class="layui-textarea" placeholder="内容不能超过500字" style="text-align:left;"></textarea>
</div>
</div>
<div class="layui-form-item" align="center">
<buttin class="layui-btn" id="save">保存</buttin>
</div>
</div>
<script src="../../lib/layui/layui.js"></script>
<script src="../../lib/template.js"></script>
<script src="../../lib/base64.js"></script>
<script src="../../lib/JqueryExtend.js"></script>
<script src="../../lib/layuiExtend.js"></script>
<script>
layui.extend({
admin: '{/}../../static/js/admin'
});
layui.use(['form', 'jquery', 'laytpl', 'admin', 'layer', 'table'], function () {
var form = layui.form,
$ = layui.jquery,
admin = layui.admin,
layer = layui.layer,
table = layui.table,
laytpl = layui.laytpl;
//接收flag
var record_id = GetQueryString("record_id");
var type = GetQueryString("type");
if(type=='0'){
var data = {
"record_id": record_id
};
$.ajax({
type: "GET",
dataType: "json",
async: false,
data: data,
url: "/baseService/verification/getVerificationInfoById",
success: function (data) {
$("#verification_judgement").val(data.verification_judgement);
$("#save").css({"display": "none"})
}
});
}
$(document).on('click', '#save', function (data) {
var verification_judgement = $("#verification_judgement").val();
// 检查非空
if (verification_judgement === "") {
layer.msg('输入的审批意见为空,请检查后重新输入!', {icon: 2, time: 2000, shade: 0.1});
return;
}
if(verification_judgement.length>500){
layer.msg('审批意见内容不能超过500字', {icon: 2, time: 2000, shade: 0.1});
return false;
}
var data = {
"record_id": record_id,
"verification_judgement": verification_judgement
};
if(type=='1'){
$.ajax({
type: "POST",
dataType: "json",
async: false,
data: data,
url: "/baseService/verification/passCurrentVerification",
success: function (data) {
if (data.success) {
layer.msg(data.message, {icon: 1, time: 1000, shade: [0.5, '#000', true]}, function () {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
parent.layui.table.reload('idTest', {page: {curr: 1}});
});
} else {
layer.msg(data.message, {icon: 2, time: 3000, shade: [0.5, '#000', true]}, function () {
});
}
}
});
}
if(type=='2'){
$.ajax({
type: "POST",
dataType: "json",
async: false,
data: data,
url: "/baseService/verification/refuseCurrentVerification",
success: function (data) {
if (data.success) {
layer.msg(data.message, {icon: 1, time: 1000, shade: [0.5, '#000', true]}, function () {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
parent.layui.table.reload('idTest', {page: {curr: 1}});
});
} else {
layer.msg(data.message, {icon: 2, time: 3000, shade: [0.5, '#000', true]}, function () {
});
}
}
});
}
});
})
</script>
</form>
</body>
</html>