<!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="HTH"/>
                            </li>
                            <li>
                                <label>业务宗号：</label>
                                <input type="text" name="YWZH"/>
                            </li>
                            <li>
                                <label>出卖人姓名：</label>
                                <input type="text" name="CMRXM"/>
                            </li>-->
                            <li>
                                <label style="width: auto">买受人姓名：</label>
                                <input type="text" name="MSRXM"/>
                            </li>
                            <!--<li>
                                <label>身份证类型：</label>
                                <input type="text" name="SFZLX"/>
                            </li>-->
                            <li>
                                <label>身份证号：</label>
                                <input type="text" name="SFZH"/>
                            </li>
                            <!--<li>
                                <label>联系地址：</label>
                                <input type="text" name="LXDZ"/>
                            </li>
                            <li>
                                <label>房屋坐落：</label>
                                <input type="text" name="FWZL"/>
                            </li>
                            <li>
                                <label>合同总价：</label>
                                <input type="text" name="HTZJ"/>
                            </li>
                            <li>
                                <label>建筑面积：</label>
                                <input type="text" name="JZMJ"/>
                            </li>
                            <li>
                                <label>套内面积：</label>
                                <input type="text" name="TNMJ"/>
                            </li>
                            <li>
                                <label>分摊面积：</label>
                                <input type="text" name="FTMJ"/>
                            </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="FWYT"/>
                            </li>
                            <li>
                                <label>房屋性质：</label>
                                <input type="text" name="FWXZ"/>
                            </li>
                            <li>
                                <label>坐落：</label>
                                <input type="text" name="ZL"/>
                            </li>
                            <li>
                                <label>签约时间：</label>
                                <input type="text" name="QYSJ"/>
                            </li>
                            <li>
                                <label>备案时间：</label>
                                <input type="text" name="BASJ"/>
                            </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_sale_record:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:pre_sale_record:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:pre_sale_record:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:pre_sale_record: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_sale_record:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:pre_sale_record:remove')}]];
        var detailFlag = [[${@permission.hasPermi('system:pre_sale_record:detail')}]];

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

        $(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: 'hth',
                        title: '合同号'
                    },
                    /*{
                        field: 'ywzh',
                        title: '业务宗号'
                    },
                    {
                        field: 'cmrxm',
                        title: '出卖人姓名'
                    },*/
                    {
                        field: 'msrxm',
                        title: '买受人姓名'
                    },
                    {
                        field: 'sfzlx',
                        title: '身份证类型'
                    },
                    {
                        field: 'sfzh',
                        title: '身份证号'
                    },
                    {
                        field: 'lxdz',
                        title: '联系地址'
                    },
                    {
                        field: 'fwzl',
                        title: '房屋坐落'
                    },
                    {
                        field: 'htzj',
                        title: '合同总价'
                    },
                    /*{
                        field: 'jzmj',
                        title: '建筑面积'
                    },*/
                    {
                        field: 'tnmj',
                        title: '套内面积'
                    },
                    /*{
                        field: 'ftmj',
                        title: '分摊面积'
                    },*/
                    {
                        field: 'zh',
                        title: '幢号'
                    },
                    {
                        field: 'fh',
                        title: '房号'
                    },
                    /*{
                        field: 'fwyt',
                        title: '房屋用途'
                    },*/
                    {
                        field: 'fwxz',
                        title: '房屋性质'
                    },
                    /*{
                        field: 'zl',
                        title: '坐落'
                    },*/
                    /*{
                        field: 'qysj',
                        title: '签约时间'
                    },
                    {
                        field: 'basj',
                        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>
