parent
354e2e125c
commit
ed5424476e
@ -0,0 +1,152 @@
|
||||
<!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-row {
|
||||
width: 800px;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.text {
|
||||
|
||||
display: block;
|
||||
padding: 9px 15px;
|
||||
width: 230px;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
|
||||
}
|
||||
|
||||
.layui-input-block {
|
||||
margin-left: 100px !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form class="layui-form" action="">
|
||||
|
||||
<div class="layui-row" style="margin-top: 20px;">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: 70px !important;">退回意见:</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="message" placeholder="请输入退回意见" class="layui-textarea"
|
||||
style="width: 380px;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" style="margin-left: 100px;">
|
||||
<button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save">
|
||||
<i class="layui-icon layui-icon-ok"></i>
|
||||
确 定
|
||||
</button>
|
||||
</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;
|
||||
|
||||
var _data = {};
|
||||
var reLoadFlag = 0;
|
||||
|
||||
if (GetQueryString("a") != null) {
|
||||
reLoadFlag = 1;
|
||||
_data = {
|
||||
"area_ids": GetQueryString("a"),
|
||||
"check_type_id": -1
|
||||
};
|
||||
} else {
|
||||
reLoadFlag = 2;
|
||||
_data = {
|
||||
"bureau_ids": GetQueryString("b"),
|
||||
"check_type_id": -1
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
form.on('submit(save)', function (data) {
|
||||
_data.message = data.field.message;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: "/QingLong/zbdc/CheckReport",
|
||||
data: _data,
|
||||
async: false,
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
layer.msg('退回成功!', {
|
||||
icon: 1,
|
||||
time: 1500
|
||||
}, function () {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||
if (reLoadFlag == 1) {
|
||||
parent.reLoadTable();
|
||||
} else {
|
||||
parent.reLoadTable1();
|
||||
}
|
||||
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.message, {
|
||||
icon: 2,
|
||||
time: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
function GetQueryString(name, istop) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||
|
||||
if (r != null) return unescape(r[2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in new issue