177 lines
7.4 KiB
HTML
177 lines
7.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>用工公告审核页面</title>
|
|
<link rel="stylesheet" type="text/css" media="screen"
|
|
href="../../../layui/css/layui.css">
|
|
<script type="text/javascript"
|
|
src="../../../js/libs/jquery-3.7.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../layui/layui.js"></script>
|
|
<script type="text/javascript" src="../../../../public/public.js"></script>
|
|
<script type="text/javascript" src="../../../js/publicJs.js"></script>
|
|
<script type="text/javascript" src="../../../js/jq.js"></script>
|
|
<style type="text/css">
|
|
.layui-form-label {
|
|
width: 120px;
|
|
}
|
|
|
|
.layui-input-block {
|
|
margin-left: 150px;
|
|
}
|
|
|
|
.layui-form-item .layui-input-inline {
|
|
float: left !important;
|
|
width: 340px !important;
|
|
margin-right: 10px !important;
|
|
}
|
|
|
|
.layui-input-block {
|
|
margin-left: 250px !important;
|
|
margin-top: -6% !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<form class="layui-form" id="projectForm" action="">
|
|
<input type="hidden" id="id" name="id">
|
|
<div id="bigBox" style="width:800px; border: 2px solid black;margin-left: 100px;margin-top: 50px;">
|
|
<div id="box1" style="margin-top:20px;margin-bottom:20px;">
|
|
<div id="leftOne" style="float: left; margin-left:100px;">
|
|
发布时间:<span id="releaseTime"></span>
|
|
</div>
|
|
<div id="rightOne" style="margin-left: 450px;">
|
|
项目:<span id="project"></span>
|
|
</div>
|
|
<div id="box2" style="margin-top:20px;margin-bottom:20px;margin-left: 100px;">
|
|
<div id="leftTwo" style="float: left; ">
|
|
分包:<span id="subcontract"></span>
|
|
</div>
|
|
<div id="rightTwo" style="margin-left: 350px;">
|
|
班组类别:<span id="teamCategory"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="box3" style="margin-top:20px;margin-bottom:20px;margin-left: 100px;">
|
|
<div id="leftThree" style="float: left; ">
|
|
人员数量:<span id="numberPeople"></span>
|
|
</div>
|
|
<div id="rightThree" style="margin-left: 350px;">
|
|
班组数量:<span id="teamNumber"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="box4" style="margin-top:20px;margin-bottom:20px;margin-left: 100px;">
|
|
<div id="leftFour" style="float: left; ">
|
|
联系负责人:<span id="contactPerson"></span>
|
|
</div>
|
|
<div id="rightFour" style="margin-left: 350px;">
|
|
联系方式:<span id="contactWay"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="box5" style="margin-top:20px;margin-bottom:20px;margin-left: 100px;">
|
|
<div id="leftFive" style="float: left; ">
|
|
持证要求:<span id="holderReq"></span>
|
|
</div>
|
|
<div id="rightFive" style="margin-left: 350px;">
|
|
备注:<span id="remark"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="width:800px; margin-top: 4%;margin-left: 100px;">
|
|
<div class="layui-input-inline" style="margin-bottom: 20px;margin-top: 20px;">
|
|
<label style="margin-left: 37%;">
|
|
<i style="color: red; font-size: 20px">*</i>
|
|
审核:
|
|
</label>
|
|
<div class="layui-input-block">
|
|
<select id="releaseStatus" name="releaseStatus"
|
|
style="width: 150px;height: 60px;">
|
|
<option value="">请选择</option>
|
|
<option value="1">已通过</option>
|
|
<option value="2">未通过</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item" style="display: none">
|
|
<div class="layui-input-block">
|
|
<button type="button" class="layui-btn" id="commit" lay-submit lay-filter="formDemo">提交</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</body>
|
|
<script>
|
|
$(function () {
|
|
layui.use(['form'], function () {
|
|
var form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功
|
|
form.render();
|
|
// 验证成功后才会执行下面的操作
|
|
form.on('submit(formDemo)', function (data) {
|
|
auditWorkInfo(); // 新增工程
|
|
});
|
|
});
|
|
});
|
|
|
|
function setData(data) {
|
|
$("#id").val(data[0].id);
|
|
$("#releaseTime").html(data[0].releaseTime);
|
|
$("#project").html(data[0].project);
|
|
$("#subcontract").html(data[0].subcontract);
|
|
$("#teamCategory").html(data[0].teamCategory);
|
|
$("#numberPeople").html(data[0].numberPeople);
|
|
$("#teamNumber").html(data[0].teamNumber);
|
|
$("#holderReq").html(data[0].holderReq);
|
|
$("#contactPerson").html(data[0].contactPerson);
|
|
$("#contactWay").html(data[0].contactWay);
|
|
$("#remark").html(data[0].remark);
|
|
}
|
|
|
|
function auditWorkInfo() {
|
|
var formData = new FormData();
|
|
var status = $("#releaseStatus").val();
|
|
var id = $("#id").val();
|
|
if (status == "") {
|
|
alert("请选择审核内容,同意/不同意");
|
|
} else {
|
|
// 加载提示
|
|
var loadingMsg = layer.msg('数据请求中,请稍候...', {icon: 16, scrollbar: false, time: 0, shade: [0.8, '#393D49']});
|
|
// form请求地址
|
|
var formUrl = smz_ht_url + "/releaseWorkInfoAudit/auditInfoById";
|
|
$.ajax({
|
|
type: 'POST',
|
|
async: false, // 默认异步true,false表示同步
|
|
url: formUrl, // 请求地址project
|
|
dataType: 'text', // 服务器返回数据类型
|
|
data: {
|
|
"id": id,
|
|
"releaseStatus": status
|
|
}, //获取提交的表单字段
|
|
success: function (data) {
|
|
layer.close(loadingMsg); // 关闭提示层
|
|
if (data == 'success') {
|
|
parent.layer.alert('审核成功', {icon: 1}, function () {
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
|
parent.layer.close(index); //再执行关闭
|
|
window.parent.location.reload();//刷新父页面
|
|
});
|
|
} else {
|
|
parent.layer.alert('审核失败', {icon: 2}, function () {
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
|
|
parent.layer.close(index); //再执行关闭
|
|
window.parent.location.reload();//刷新父页面
|
|
});
|
|
}
|
|
},
|
|
error: function (XMLHttpRequest, textStatus, e) {
|
|
layer.close(loadingMsg);
|
|
layer.msg('数据请求发生异常,请稍后重试', {icon: 16, scrollbar: false});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
</html> |