<!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-gtxx-edit" th:object="${orhonGtxx}">
            <input name="id" th:field="*{id}" type="hidden">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">登记机关中文名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <textarea name="djjgzwmc" class="form-control">[[*{djjgzwmc}]]</textarea>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">登记状态中文名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="djztzwmc" th:field="*{djztzwmc}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">数据汇总日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="sjhzsj" th:value="${#dates.format(orhonGtxx.sjhzsj, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">行业门类：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="hyml" th:field="*{hyml}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">资金数额：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="zjse" th:field="*{zjse}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">统一社会信用代码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="tyshxydm" th:field="*{tyshxydm}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">经营(驻在)期限至：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="jyqxz" th:value="${#dates.format(orhonGtxx.jyqxz, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">登记机关：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="djjg" th:field="*{djjg}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">经营者：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="jyz" th:field="*{jyz}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">经营场所邮政编码：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="jycsyzbm" th:field="*{jycsyzbm}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">登记状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="djzt" th:field="*{djzt}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">经营场所：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="jycs" th:field="*{jycs}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">经营范围：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <textarea name="jyfw" class="form-control">[[*{jyfw}]]</textarea>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">注册号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="zch" th:field="*{zch}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">字号名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="zhmc" th:field="*{zhmc}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">注册日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="zcrq" th:value="${#dates.format(orhonGtxx.zcrq, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">经营(驻在)期限自：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="jyqxzi" th:value="${#dates.format(orhonGtxx.jyqxzi, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
            <h4 class="form-header h4">基本信息</h4>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">登记机关名称：</label>
                        <div class="col-sm-8">
                            <input name="djjgzwmc" class="form-control" th:field="*{djjgzwmc}" placeholder="请输入登记机关名称" />
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">登记状态：</label>
<!--                        <div class="col-sm-8">-->
<!--                            <input name="djztzwmc" class="form-control" th:field="*{djztzwmc}" placeholder="请输入登记状态" type="text">-->
<!--                        </div>-->
                        <div class="col-sm-8">
                            <select name="djzt" class="form-control m-b" th:with="type=${@dict.getType('djztdm')}" >
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{djzt}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">数据汇总日期：</label>
                        <div class="col-sm-8">
                            <div class="input-group date">
                                <input name="sjhzsj" th:value="${#dates.format(orhonGtxx.sjhzsj, 'yyyy-MM-dd')}" class="form-control" placeholder="请选择数据汇总日期" type="text">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">行业门类：</label>
                        <div class="col-sm-8">
<!--                            <input name="hyml" class="form-control" th:field="*{hyml}" placeholder="请输入行业门类" type="text">-->
                            <select name="hyml" class="form-control m-b" th:with="type=${@dict.getType('hymldm')}" >
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{hyml}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">资金数额：</label>
                        <div class="col-sm-8">
                            <input name="zjse" class="form-control" th:field="*{zjse}" placeholder="请输入资金数额" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">统一社会信用代码：</label>
                        <div class="col-sm-8">
                            <input name="tyshxydm" class="form-control" th:field="*{tyshxydm}" placeholder="请输入统一社会信用代码" type="text">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">

                <div class="col-md-6">

                    <div class="form-group">
                        <label class="col-sm-3 control-label">经营(驻在)期限自：</label>
                        <div class="col-sm-8">
                            <div class="input-group date">
                                <input name="jyqxzi" th:value="${#dates.format(orhonGtxx.jyqxzi, 'yyyy-MM-dd')}" class="form-control" placeholder="请选择经营(驻在)期限自" type="text">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经营(驻在)期限至：</label>
                        <div class="col-sm-8">
                            <div class="input-group date">
                                <input name="jyqxz" th:value="${#dates.format(orhonGtxx.jyqxz, 'yyyy-MM-dd')}" class="form-control" placeholder="请选择经营(驻在)期限至" type="text">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经营者：</label>
                        <div class="col-sm-8">
                            <input name="jyz" class="form-control" th:field="*{jyz}" placeholder="请输入经营者" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经营场所邮政编码：</label>
                        <div class="col-sm-8">
                            <input name="jycsyzbm" class="form-control" th:field="*{jycsyzbm}" placeholder="请输入经营场所邮政编码" type="text">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
<!--                <div class="col-md-6">-->
<!--                    <div class="form-group">-->
<!--                        <label class="col-sm-3 control-label">登记状态：</label>-->
<!--                        <div class="col-sm-8">-->
<!--&lt;!&ndash;                            <input name="djzt" class="form-control" th:field="*{djzt}" placeholder="请输入登记状态" type="text">&ndash;&gt;-->
<!--&lt;!&ndash;                            <select name="djzt" class="form-control m-b" th:with="type=${@dict.getType('djztdm')}" >&ndash;&gt;-->
<!--&lt;!&ndash;                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>&ndash;&gt;-->
<!--&lt;!&ndash;                            </select>&ndash;&gt;-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经营场所：</label>
                        <div class="col-sm-8">
                            <input name="jycs" class="form-control" th:field="*{jycs}" placeholder="请输入经营场所" type="text">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6">

                    <div class="form-group">
                        <label class="col-sm-3 control-label">登记机关：</label>
                        <div class="col-sm-8">
                            <input name="djjg" class="form-control" th:field="*{djjg}" placeholder="请输入登记机关" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">注册号：</label>
                        <div class="col-sm-8">
                            <input name="zch" class="form-control" th:field="*{zch}" placeholder="请输入注册号"  type="text">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">字号名称：</label>
                        <div class="col-sm-8">
                            <input name="zhmc" class="form-control" th:field="*{zhmc}" placeholder="请输入字号名称"  type="text">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">注册日期：</label>
                        <div class="col-sm-8">
                            <div class="input-group date">
                                <input name="zcrq" th:value="${#dates.format(orhonGtxx.zcrq, 'yyyy-MM-dd')}"  class="form-control" placeholder="请选择注册日期" type="text">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">企业区域：</label>
                        <div class="col-sm-8">

                            <select name="deptId" class="form-control m-b" th:with="type=${@dict.getType('orhon_qyfl')}" >
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{deptId}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
<!--                <div class="col-md-6">-->
<!--                    <div class="form-group">-->
<!--                        <label class="col-sm-3 control-label">经营范围：</label>-->
<!--                        <div class="col-sm-8">-->
<!--                            <textarea name="jyfw" placeholder="请输入经营范围" class="form-control">[[*{jyfw}]]</textarea>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
                <div class="one">
                    <label class="only-one">经营范围：</label>
                    <div class="only-two">
                        <textarea name="jyfw" placeholder="请输入经营范围" class="form-control">[[*{jyfw}]]</textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/gtxx";
        $("#form-gtxx-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-gtxx-edit').serialize());
            }
        }

        $("input[name='sjhzsj']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='jyqxz']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='zcrq']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='jyqxzi']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
<style>
    .one{
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 0px 82px;
    }
    .only-one{
<!--        width: 135px;-->
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 32px;
    }
    .only-two{
        flex:1;
        padding-left:5px;
    }
</style>
</html>