diff --git a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbChryxxbMapper.xml b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbChryxxbMapper.xml index d8d9aed..29dba13 100644 --- a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbChryxxbMapper.xml +++ b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbChryxxbMapper.xml @@ -12,25 +12,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + + - select HCRYBH, XZQHDM, XZQHMC, GAJGDM, GAJGMC, JCZDM, JCZMC, JCSJ, ZJHM, HCRYLB from tb_chryxxb + select HCRYBH, XZQHDM, XZQHMC, GAJGDM, GAJGMC, JCZDM, JCZMC, jcsj, DATE_FORMAT(jcsj, '%Y-%m-%d') AS jcsjStr, ZJHM, HCRYLB from tb_chryxxb -
- + +
+
- +
-
- +
+
- +
-
- -
- -
-
-
- -
- -
-
-
+ +
-
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ + +
+
- +
-
- -
- -
-
-
- -
- -
-
@@ -84,15 +87,46 @@ function submitHandler() { if ($.validate.form()) { + + console.log($('#form-chryxxb-add').serialize()) + debugger; $.operate.save(prefix + "/add", $('#form-chryxxb-add').serialize()); } } - $("input[name='JCSJ']").datetimepicker({ + $("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); + + } + /*document.querySelector('#ZJHM').addEventListener('blur', function() { + var idCard = this.value; + var valid = /^[1-9]\d{5}(18|19|20)?\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}(\d|[Xx])$/.test(idCard); + if (!valid) { + alert('身份证号码不正确!'); + } + });*/ \ No newline at end of file diff --git a/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/chryxxb.html b/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/chryxxb.html index 3988158..f0c5dbc 100644 --- a/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/chryxxb.html +++ b/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/chryxxb.html @@ -10,6 +10,9 @@ margin: 5px 5px 5px 0px; text-align:right; } + .fixed-table-toolbar .dropdown-menu{ + width: 200px; + }
@@ -18,29 +21,41 @@
    -
  • + +
  • +

    查获人员身份证号码:

    + +
  • +
  • +

    检查站名称:

    +
  • 检查站所属行政区划名称:

  • -

    检查站所属公安机关代码:

    - +

    检查站所属公安机关:

    + +
  • -
  • + +
  • -

    检查站名称:

    - +

    查获人员类别:

    +
  • 检查时间:

    @@ -48,17 +63,6 @@ -
  • -
  • -

    查获人员身份证号码:

    - -
  • -
  • -

    查获人员类别:

    - -
  •  搜索  重置 @@ -149,7 +153,7 @@ } }, { - field : 'jcsj', + field : 'jcsjStr', title : '检查时间' }, { @@ -165,6 +169,27 @@ }; $.table.init(options); }); + 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); + + } \ No newline at end of file diff --git a/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/edit.html b/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/edit.html index 71c1ee3..0d5f33b 100644 --- a/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/edit.html +++ b/basepro-manager/basepro-manager-web/src/main/resources/templates/chry/edit.html @@ -7,7 +7,40 @@
    - +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    @@ -20,51 +53,30 @@
    -
    +
    - +
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - + + +
    +
    - +
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    @@ -81,11 +93,32 @@ } } - $("input[name='JCSJ']").datetimepicker({ + $("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); + + } \ No newline at end of file