detail.html 8.54 KB
<!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-modify-edit" th:object="${creditExceptionApply}">
            <h4 class="form-header h4">错误数据撤销申请</h4>
            <input name="id" th:field="*{id}" type="hidden">
            <!--<div class="form-group">
                <label class="col-sm-3 control-label is-required">信息类型:</label>
                <div class="col-sm-8">
                    <select name="applyType" class="form-control m-b" th:with="type=${@dict.getEnum('exception_apply_type')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{applyType}"></option>
                    </select>
                </div>
            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">问题类别:</label>
                <div class="col-sm-8">
                    <select name="exceptionType" class="form-control m-b" th:with="type=${@dict.getEnum('exception_data_type')}" required disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{exceptionType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required" >申请内容:</label>
                <div class="col-sm-8">
                    <textarea name="applyContent" class="form-control" disabled>[[*{applyContent}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">附件:</label>
                <div class="col-sm-8">
                    <input type="hidden" name="applyFile" th:field="*{applyFile}">
                    <div th:if="*{applyFileResp.fileUrl}">
                        <a class="btn btn-success btn-xs" th:href="*{applyFileResp.fileUrl}">[[*{applyFileResp.fileName}]]</a>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">业务附件:</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input type="hidden" name="businessFile" th:field="*{businessFile}">-->
<!--                    <div th:if="*{businessFileResp.fileUrl}">-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">备注:</label>
                <div class="col-sm-8">
                    <textarea name="applyMemo" class="form-control" disabled>[[*{applyMemo}]]</textarea>
                </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="reportDate" th:value="${#dates.format(creditExceptionApply.reportDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
                        <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-sm-12">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="bootstrap-table"></table>
                    </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 + "business/modify";
        var dataTypeDatas = [[${@dict.getEnum('publicity_type')}]];
        var counterpartTypeDatas = [[${@dict.getEnum('counterpart_view_type')}]];
        var handlerStatusDatas = [[${@dict.getEnum('exception_data_handler')}]];

        $("#form-modify-edit").validate({
            focusCleanup: true
        });

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

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

        $(function() {
            var options = {
                data: [[${creditExceptionApply.exceptionDataList}]],
                pagination: false,
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                sidePagination: "client",
                columns: [{
                    checkbox: false,
                },
                {
                    field: 'id',
                    align: 'center',
                    title: "主键"
                },
                /*{
                    field: 'recoverId',
                    align: 'center',
                    title: '错误数据主键'
                },*/

                {
                    field: 'dataType',
                    align: 'center',
                    title: '错误数据类型',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(dataTypeDatas, value);
                    }
                },
                {
                    field: 'counterpartName',
                    align: 'center',
                    title: '错误数据主体'
                },

                {
                    field: 'counterpartCode',
                    align: 'center',
                    title: '错误统一社会信用代码'
                },

                {
                    field: 'counterpartType',
                    align: 'center',
                    title: '错误行政相对人类别',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(counterpartTypeDatas, value);
                    }
                },

                {
                    field: 'decisionSequence',
                    align: 'center',
                    title: '错误文书号'
                },

                /*{
                    field: 'decisionCreditCode',
                    align: 'center',
                    title: '错误决定机关统一社会信用代码'
                },*/

                {
                    field: 'rightCounterpartName',
                    align: 'center',
                    title: '正确主体'
                },

                {
                    field: 'rightCounterpartCode',
                    align: 'center',
                    title: '正确主体统一社会信用代码'
                },

                {
                    field: 'rightCounterpartType',
                    align: 'center',
                    title: '正确行政相对人类别',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(counterpartTypeDatas, value);
                    }
                },

                {
                    field: 'rightDecisionSequence',
                    align: 'center',
                    title: '正确文书号'
                },

                /*{
                    field: 'rightDecisionCreditCode',
                    align: 'center',
                    title: '正确决定机关统一社会信用代码'
                },*/

                /*{
                    field: 'handleStatus',
                    align: 'center',
                    title: '修复状态',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(handlerStatusDatas, value);
                    }
                },*/

                {
                    field: 'applyTime',
                    align: 'center',
                    title: '申请时间'
                }
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>