<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('市房地产-预转现信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <!--<li>
                                <label>现售备案证明号：</label>
                                <input type="text" name="XSBAZMH"/>
                            </li>
                            <li>
                                <label>业务宗号：</label>
                                <input type="text" name="YWZH"/>
                            </li>-->
                            <li>
                                <label>企业名称：</label>
                                <input type="text" name="QYMC"/>
                            </li>
                            <li>
                                <label>项目名称：</label>
                                <input type="text" name="XMMC"/>
                            </li>
                            <!--<li>
                                <label>项目编号：</label>
                                <input type="text" name="XMBH"/>
                            </li>
                            <li>
                                <label>监管银行：</label>
                                <input type="text" name="JGYH"/>
                            </li>
                            <li>
                                <label>监管账号：</label>
                                <input type="text" name="JGZH"/>
                            </li>
                            <li>
                                <label>预售面积：</label>
                                <input type="text" name="YSMJ"/>
                            </li>
                            <li>
                                <label>套数：</label>
                                <input type="text" name="TS"/>
                            </li>
                            <li>
                                <label>幢号：</label>
                                <input type="text" name="ZH"/>
                            </li>
                            <li>
                                <label>房号：</label>
                                <input type="text" name="FH"/>
                            </li>
                            <li>
                                <label>面积：</label>
                                <input type="text" name="MJ"/>
                            </li>
                            <li>
                                <label>预售单价：</label>
                                <input type="text" name="YSDJ"/>
                            </li>
                            <li>
                                <label>规划用途：</label>
                                <input type="text" name="GHYT"/>
                            </li>
                            <li>
                                <label>房屋性质：</label>
                                <input type="text" name="FWXZ"/>
                            </li>
                            <li>
                                <label>审批时间：</label>
                                <input type="text" name="SPSJ"/>
                            </li>-->
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
<!--                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:pre_to_on:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:pre_to_on:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:pre_to_on:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:pre_to_on:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:pre_to_on:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:pre_to_on:remove')}]];
        var detailFlag = [[${@permission.hasPermi('system:pre_to_on:detail')}]];

        var prefix = ctx + "system/real_estate/real_estate_pre_to_on";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                detailUrl: prefix + "/detail/{id}",
                modalName: "市房地产-预转现信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                    {
                        field: 'xsbazmh',
                        title: '现售备案证明号'
                    },
                    {
                        field: 'ywzh',
                        title: '业务宗号'
                    },
                    {
                        field: 'qymc',
                        title: '企业名称'
                    },
                    {
                        field: 'xmmc',
                        title: '项目名称'
                    },
                    {
                        field: 'xmbh',
                        title: '项目编号'
                    },
                    {
                        field: 'jgyh',
                        title: '监管银行'
                    },
                    {
                        field: 'jgzh',
                        title: '监管账号'
                    },
                    {
                        field: 'ysmj',
                        title: '预售面积'
                    },
                    {
                        field: 'ts',
                        title: '套数'
                    },
                    {
                        field: 'zh',
                        title: '幢号'
                    },
                    {
                        field: 'fh',
                        title: '房号'
                    },
                    {
                        field: 'mj',
                        title: '面积'
                    },
                    {
                        field: 'ysdj',
                        title: '预售单价'
                    },
                    {
                        field: 'ghyt',
                        title: '规划用途'
                    },
                    {
                        field: 'fwxz',
                        title: '房屋性质'
                    },
                    {
                        field: 'spsj',
                        title: '审批时间'
                    },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        // actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>
