415 lines
23 KiB
HTML
415 lines
23 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<base href="/population/">
|
|
<meta 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="assets/fonts/font-awesome/css/font-awesome.css"/>
|
|
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
|
|
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
|
|
</head>
|
|
<body>
|
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header">
|
|
<span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
|
|
<a class="close" href="javascript:void(0);">上级列表</a><span lay-separator="">/</span>
|
|
<a href="javascript:void(0);"><cite>新增内容</cite></a>
|
|
</span>
|
|
</div>
|
|
<div class="layui-card-body" style="padding: 15px;">
|
|
<form id="dataForm" class="layui-form layui-form-pane" lay-filter="dataForm">
|
|
<div class="layui-row">
|
|
<div class="layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">身份证</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="idCardNumber" name="idCardNumber" class="layui-input" value="" placeholder="请先输入身份证查询人员信息">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md3">
|
|
<div style="margin: 4px 4px;">
|
|
<button type="button" id="search" class="layui-btn layui-btn-sm">
|
|
<i class="fa fa-lg fa-search"></i> 搜索
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="div-base-population-info">
|
|
<blockquote class="layui-elem-quote">人员基础信息</blockquote>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">姓名</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="fullName" name="fullName" class="layui-input" value="" readonly="readonly">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">性别</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="gender" name="gender" class="layui-input" value="" readonly="readonly">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">联系方式</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="telephone" name="telephone" class="layui-input" value="" readonly="readonly">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">籍贯</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="nativePlace" name="nativePlace" class="layui-input" value="" readonly="readonly">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="div-form-content" style="display: none;">
|
|
<blockquote class="layui-elem-quote">刑满释放人员信息补充</blockquote>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>原罪名</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="nameOfOriginalSin" name="nameOfOriginalSin" lay-verify="required">
|
|
<option value="">请选择原罪名</option>
|
|
<option value="危害国家安全罪">危害国家安全罪</option>
|
|
<option value="危害公共安全罪">危害公共安全罪</option>
|
|
<option value="破坏社会主义市场经济秩序罪">破坏社会主义市场经济秩序罪</option>
|
|
<option value="侵犯公民人身权利、民主权利罪">侵犯公民人身权利、民主权利罪</option>
|
|
<option value="侵犯财产罪">侵犯财产罪</option>
|
|
<option value="妨害社会管理秩序罪">妨害社会管理秩序罪</option>
|
|
<option value="危害国防利益罪">危害国防利益罪</option>
|
|
<option value="贪污贿赂罪">贪污贿赂罪</option>
|
|
<option value="渎职罪">渎职罪</option>
|
|
<option value="军人违反职责罪">军人违反职责罪</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>原判刑期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="originalSentenceData" name="originalSentenceData" class="layui-input"
|
|
autocomplete="off" maxlength="50" value="" placeholder="请输入原判刑期" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>是否累犯</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="isCumulativeCrime" name="isCumulativeCrime">
|
|
<option value="0">否</option>
|
|
<option value="1">是</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">释放日期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="releaseDate" name="releaseDate" class="layui-input" value="" placeholder="请选择释放日期" readonly style="cursor: pointer;" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md8">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>服刑场所</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="servingSentencePlace" name="servingSentencePlace" class="layui-input" value=""
|
|
autocomplete="off" maxlength="100" placeholder="请输入服刑场所" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>衔接日期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="linkUpDate" name="linkUpDate" class="layui-input" value=""
|
|
placeholder="请选择衔接日期" readonly style="cursor: pointer;" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md8">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>衔接情况</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="linkUpSituation" name="linkUpSituation" lay-verify="required">
|
|
<option value="">请选择衔接情况</option>
|
|
<option value="基层政府接回">基层政府接回</option>
|
|
<option value="监所送回原籍">监所送回原籍</option>
|
|
<option value="司法所接回">司法所接回</option>
|
|
<option value="公安机关落实管控措施">公安机关落实管控措施</option>
|
|
<option value="基层组织接回">基层组织接回</option>
|
|
<option value="人员自返">人员自返</option>
|
|
<option value="其他衔接情况">其他衔接情况</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>安置日期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="placementDate" name="placementDate" class="layui-input" value="" placeholder="请选择安置日期" readonly style="cursor: pointer;" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md8">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span style="color: red">*</span>安置情况</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="placementSituation" name="placementSituation" lay-verify="required">
|
|
<option value="">请选择安置情况</option>
|
|
<option value="落实责任田">落实责任田</option>
|
|
<option value="公益性岗位安置">公益性岗位安置</option>
|
|
<option value="企业认证为安置基地安置">企业认证为安置基地安置</option>
|
|
<option value="建设政府投入为主的安置基地安置">建设政府投入为主的安置基地安置</option>
|
|
<option value="从事个体经营">从事个体经营</option>
|
|
<option value="企业和经济实体吸纳就业">企业和经济实体吸纳就业</option>
|
|
<option value="自主创业">自主创业</option>
|
|
<option value="其他安置方式">其他安置方式</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 140px;"><span style="color: red">*</span>危险性评估类型</label>
|
|
<div class="layui-input-block layui-form" style="margin-left: 140px">
|
|
<select id="assessmentRiskType" name="assessmentRiskType" lay-verify="required">
|
|
<option value="">请选择危险性评估类型</option>
|
|
<option value="重点帮教人员">重点帮教人员</option>
|
|
<option value="一般帮教人员">一般帮教人员</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item" pane>
|
|
<label class="layui-form-label" style="width: 140px;"><span style="color: red">*</span>是否重新犯罪</label>
|
|
<div class="layui-input-block layui-form" style="margin-left: 140px">
|
|
<input type="radio" name="isCrimeAgain" value="0" title="否" checked>
|
|
<input type="radio" name="isCrimeAgain" value="1" title="是">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 140px;">重新犯罪罪名</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" style="width: 93%" id="crimeAgainCharge" name="crimeAgainCharge" class="layui-input"
|
|
autocomplete="off" maxlength="100" value="" placeholder="请输入重新犯罪罪名" >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-form-item layui-form-text">
|
|
<label class="layui-form-label">未安置原因</label>
|
|
<div class="layui-input-block">
|
|
<textarea id="unPlacementReason" name="unPlacementReason" class="layui-textarea" maxlength="1024" placeholder="请输入未安置原因"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-form-item layui-form-text">
|
|
<label class="layui-form-label">帮教情况</label>
|
|
<div class="layui-input-block">
|
|
<textarea id="helpAndEducate" name="helpAndEducate" class="layui-textarea" maxlength="1024" placeholder="请输入帮教情况"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item layui-layout-admin">
|
|
<div class="layui-input-block">
|
|
<div class="layui-footer" style="left: 0;">
|
|
<button type="button" class="layui-btn submit-btn" lay-submit lay-filter="submitForm">提交新增</button>
|
|
<button type="button" class="layui-btn layui-btn-primary close">返回上级</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
|
<script>
|
|
layui.config({
|
|
base: 'assets/layuiadmin/' //静态资源所在路径
|
|
}).extend({
|
|
index: 'lib/index' //主入口模块
|
|
}).use(['index', 'form', 'laydate', 'laytpl'], function(){
|
|
var $ = layui.$;
|
|
var $win = $(window);
|
|
var form = layui.form;
|
|
var laytpl = layui.laytpl;
|
|
var laydate = layui.laydate;
|
|
var basePopulationInfoId = '';
|
|
|
|
// 初始化内容
|
|
function initData() {
|
|
initReleaseDateDate();
|
|
initLinkUpDateDate();
|
|
initPlacementDateDate();
|
|
}
|
|
initData();
|
|
|
|
function queryBasePopulationInfo(idCardNumber){
|
|
if(typeof (idCardNumber) == 'undefined' || idCardNumber ==''){
|
|
layer.msg('请输入身份证号进行查询');
|
|
return false;
|
|
}
|
|
var loadIndex = layer.load(1);
|
|
top.restAjax.get(top.restAjax.path('api/basepopulationinfo/getbasepopulationinfo', []),
|
|
{idCardNumber:idCardNumber}, null, function(code, data) {
|
|
if(typeof (data) == 'undefined' || data.basePopulationInfoId == ''){
|
|
layer.msg('未查询到人员基础信息');
|
|
$('.submit-btn').hide();
|
|
$('.div-form-content').hide();
|
|
$('#dataForm')[0].reset();
|
|
form.render();
|
|
return false;
|
|
}
|
|
queryExistsData(idCardNumber);
|
|
var dataFormData = {};
|
|
for(var i in data) {
|
|
dataFormData[i] = data[i] +'';
|
|
}
|
|
dataFormData['currentResidence'] = dataFormData['currentResidence'] + '-' + dataFormData['currentResidenceAddr'];
|
|
form.val('dataForm', dataFormData);
|
|
form.render(null, 'dataForm');
|
|
basePopulationInfoId = dataFormData['basePopulationInfoId'];
|
|
$('.div-base-population-info').show();
|
|
$('.submit-btn').show();
|
|
}, function(code, data) {
|
|
top.dialog.msg(data.msg);
|
|
},function(){},
|
|
function () {
|
|
layer.close(loadIndex);
|
|
});
|
|
}
|
|
|
|
$(document).on('click','#search',function(){
|
|
queryBasePopulationInfo($('#idCardNumber').val());
|
|
});
|
|
|
|
function queryExistsData(idCardNumber){
|
|
top.restAjax.get(top.restAjax.path('api/releaseaftersentence/getreleaseaftersentenceinfo', []),
|
|
{idCardNumber:idCardNumber}, null, function(code, data) {
|
|
if(data.releaseAfterSentenceId){
|
|
window.location.href = 'route/releaseaftersentence/update-releaseaftersentence.html?releaseAfterSentenceId=' + data.releaseAfterSentenceId;
|
|
}
|
|
}, function(code, data) {
|
|
console.log(data);
|
|
}
|
|
);
|
|
}
|
|
|
|
// 初始化释放日期日期
|
|
function initReleaseDateDate() {
|
|
laydate.render({
|
|
elem: '#releaseDate',
|
|
format: 'yyyy-MM-dd',
|
|
type: 'date',
|
|
trigger: 'click'
|
|
});
|
|
}
|
|
|
|
// 初始化衔接日期日期
|
|
function initLinkUpDateDate() {
|
|
laydate.render({
|
|
elem: '#linkUpDate',
|
|
format: 'yyyy-MM-dd',
|
|
type: 'date',
|
|
trigger: 'click'
|
|
});
|
|
}
|
|
|
|
// 初始化安置日期日期
|
|
function initPlacementDateDate() {
|
|
laydate.render({
|
|
elem: '#placementDate',
|
|
format: 'yyyy-MM-dd',
|
|
type: 'date',
|
|
trigger: 'click'
|
|
});
|
|
}
|
|
|
|
// 提交表单
|
|
form.on('submit(submitForm)', function(formData) {
|
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
|
top.dialog.close(index);
|
|
var loadLayerIndex;
|
|
top.restAjax.post(top.restAjax.path('api/releaseaftersentence/savereleaseaftersentence', []), formData.field, null, function(code, data) {
|
|
var layerIndex = top.dialog.msg(top.dataMessage.commitSuccess, {
|
|
time: 0,
|
|
btn: [top.dataMessage.button.yes, top.dataMessage.button.no],
|
|
shade: 0.3,
|
|
yes: function(index) {
|
|
top.dialog.close(index);
|
|
window.location.reload();
|
|
},
|
|
btn2: function() {
|
|
closeBox();
|
|
}
|
|
});
|
|
}, function(code, data) {
|
|
top.dialog.msg(data.msg);
|
|
}, function() {
|
|
loadLayerIndex = top.dialog.msg(top.dataMessage.committing, {icon: 16, time: 0, shade: 0.3});
|
|
}, function() {
|
|
top.dialog.close(loadLayerIndex);
|
|
});
|
|
});
|
|
return false;
|
|
});
|
|
|
|
function closeBox() {
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
}
|
|
|
|
$('.submit-btn').hide();
|
|
|
|
$('.close').on('click', function() {
|
|
closeBox();
|
|
});
|
|
|
|
$('.layui-card').css('min-height',$win.height() - 90);
|
|
|
|
// 校验
|
|
form.verify({
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |