124 lines
5.8 KiB
HTML
124 lines
5.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
<head>
|
|
<th:block th:include="include :: header('修改检查站查获人员信息')" />
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
</head>
|
|
<body class="white-bg">
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
<form class="form-horizontal m" id="form-chryxxb-edit" th:object="${tbChryxxb}">
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">核查人员编号:</label>
|
|
<div class="col-sm-7">
|
|
<input name="HCRYBH" disabled class="form-control" type="text" th:field="*{HCRYBH}" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">查获人员身份证号码:</label>
|
|
<div class="col-sm-7">
|
|
<input name="ZJHM" th:field="*{ZJHM}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">查获人员类别:</label>
|
|
<div class="col-sm-7">
|
|
<!-- <input name="HCRYLB" th:field="*{HCRYLB}" class="form-control" type="text" required>-->
|
|
<select name="HCRYLB" class="form-control m-b" th:with="type=${@dict.getType('t_dict_chrylb')}" th:field="*{HCRYLB}" required>
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label">检查站代码:</label>
|
|
<div class="col-sm-7">
|
|
<input name="JCZDM" th:field="*{JCZDM}" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查站名称:</label>
|
|
<div class="col-sm-7">
|
|
<input name="JCZMC" th:field="*{JCZMC}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查站所属行政区划代码:</label>
|
|
<div class="col-sm-7">
|
|
<input name="XZQHDM" th:field="*{XZQHDM}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查站所属行政区划名称:</label>
|
|
<div class="col-sm-7">
|
|
<input name="XZQHMC" th:field="*{XZQHMC}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<!--<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查站所属公安机关代码:</label>
|
|
<div class="col-sm-7">
|
|
<input name="GAJGDM" th:field="*{GAJGDM}" class="form-control" type="text" required>
|
|
</div>
|
|
</div>-->
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查站所属公安机关:</label>
|
|
<div class="col-sm-7">
|
|
<!-- <input name="GAJGMC" th:field="*{GAJGMC}" class="form-control" type="text" required>-->
|
|
<input type="hidden" name="GAJGDM" id="treeId" th:field="*{GAJGDM}"/>
|
|
<input type="text" name="GAJGMC" onclick="selectDeptTree()" th:field="*{GAJGMC}" id="treeName" placeholder="请选择归属机构" class="form-control"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label is-required">检查时间:</label>
|
|
<div class="col-sm-7">
|
|
<div class="input-group date">
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
<input name="jcsjStr" th:value="${#dates.format(tbChryxxb.jcsj, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
<script type="text/javascript">
|
|
var prefix = ctx + "system/chryxxb";
|
|
$("#form-chryxxb-edit").validate({
|
|
focusCleanup: true
|
|
});
|
|
|
|
function submitHandler() {
|
|
if ($.validate.form()) {
|
|
$.operate.save(prefix + "/edit", $('#form-chryxxb-edit').serialize());
|
|
}
|
|
}
|
|
|
|
$("input[name='jcsjStr']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
function selectDeptTree() {
|
|
var treeId = $("#treeId").val();
|
|
var GAJGDM = $.common.isEmpty(treeId) ? "340000000000" : $("#treeId").val();
|
|
var type = 1;
|
|
var url = ctx + "system/dept/selectDeptTree/" + GAJGDM+"/"+type;
|
|
var options = {
|
|
title: '选择机构',
|
|
width: "380",
|
|
url: url,
|
|
callBack: doSubmit
|
|
};
|
|
$.modal.openOptions(options);
|
|
}
|
|
function doSubmit(index, layero){
|
|
var tree = layero.find("iframe")[0].contentWindow.$._tree;
|
|
var body = layer.getChildFrame('body', index);
|
|
$("#treeId").val(body.find('#treeId').val());
|
|
$("#treeName").val(body.find('#treeName').val());
|
|
layer.close(index);
|
|
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |