322 lines
18 KiB
HTML
322 lines
18 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 class="layui-form layui-form-pane" lay-filter="dataForm">
|
|
<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="idCardNumber" name="idCardNumber" 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>
|
|
|
|
<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" style="width: 130px;"><span style="color: red">*</span>初次发现日期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" id="discoveryDate" name="discoveryDate" class="layui-input"
|
|
value="" placeholder="请选择发现日期" readonly style="cursor: pointer;width: 95%" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">吸毒原因</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="drugReason" name="drugReason">
|
|
<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">吸毒后果</label>
|
|
<div class="layui-input-block layui-form">
|
|
<select id="drugResult" name="drugResult">
|
|
<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>
|
|
<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>
|
|
<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 layui-form">
|
|
<select id="controlInfo" name="controlInfo" lay-verify="required">
|
|
<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="controlUserName" name="controlUserName" class="layui-input"
|
|
autocomplete="off" value="" placeholder="请输入管控人姓名" lay-verify="required">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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">
|
|
<input type="text" id="controlUserPhone" name="controlUserPhone" class="layui-input" style="width: 93%"
|
|
autocomplete="off" value="" placeholder="请输入管控人联系方式" lay-verify="phone">
|
|
</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="helpUserName" name="helpUserName" class="layui-input"
|
|
autocomplete="off" value="" placeholder="请输入帮扶人姓名" lay-verify="required">
|
|
</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" id="helpUserPhone" name="helpUserPhone" class="layui-input" style="width: 93%"
|
|
autocomplete="off" value="" placeholder="请输入帮扶人联系方式" lay-verify="phone">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md4">
|
|
<div class="layui-form-item" pane>
|
|
<label class="layui-form-label"><span style="color: red">*</span>有无犯罪史</label>
|
|
<div class="layui-input-block layui-form">
|
|
<input type="radio" name="hasCrimeHis" value="0" title="否" checked>
|
|
<input type="radio" name="hasCrimeHis" value="1" title="是">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-row">
|
|
<div class="layui-col-md6">
|
|
<div class="layui-form-item layui-form-text">
|
|
<label class="layui-form-label">帮扶情况</label>
|
|
<div class="layui-input-block">
|
|
<textarea id="helpInfo" name="helpInfo" maxlength="1024" class="layui-textarea" placeholder="请输入帮扶情况"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-col-md6">
|
|
<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="crimeInfo" name="crimeInfo" maxlength="1024" class="layui-textarea" placeholder="请输入犯罪情况"></textarea>
|
|
</div>
|
|
</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" 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/js/vendor/wangEditor/wangEditor.min.js"></script>
|
|
<script src="assets/js/vendor/ckplayer/ckplayer/ckplayer.js"></script>
|
|
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
|
<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 addictsId = top.restAjax.params(window.location.href).addictsId;
|
|
|
|
// 初始化内容
|
|
function initData() {
|
|
var loadLayerIndex;
|
|
top.restAjax.get(top.restAjax.path('api/addicts/getaddictsbyid/{addictsId}', [addictsId]), {}, null, function(code, data) {
|
|
var dataFormData = {};
|
|
for(var i in data) {
|
|
dataFormData[i] = data[i] +'';
|
|
}
|
|
form.val('dataForm', dataFormData);
|
|
form.render(null, 'dataForm');
|
|
initDiscoveryDateDate();
|
|
}, function(code, data) {
|
|
top.dialog.msg(data.msg);
|
|
}, function() {
|
|
loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3});
|
|
}, function() {
|
|
top.dialog.close(loadLayerIndex);
|
|
});
|
|
}
|
|
initData();
|
|
|
|
// 初始化发现日期日期
|
|
function initDiscoveryDateDate() {
|
|
laydate.render({
|
|
elem: '#discoveryDate',
|
|
format: 'yyyy-MM-dd',
|
|
type: 'date',
|
|
trigger: 'click'
|
|
});
|
|
}
|
|
|
|
function closeBox() {
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
}
|
|
|
|
// 提交表单
|
|
form.on('submit(submitForm)', function(formData) {
|
|
top.dialog.confirm(top.dataMessage.commit, function(index) {
|
|
top.dialog.close(index);
|
|
var loadLayerIndex;
|
|
top.restAjax.put(top.restAjax.path('api/addicts/updateaddicts/{addictsId}', [addictsId]), formData.field, null, function(code, data) {
|
|
var layerIndex = top.dialog.msg(top.dataMessage.updateSuccess, {
|
|
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;
|
|
});
|
|
|
|
$('.layui-card').css('min-height',$win.height() - 90);
|
|
|
|
$('.close').on('click', function() {
|
|
closeBox();
|
|
});
|
|
|
|
// 校验
|
|
form.verify({
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |