<!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="YWZH"/>
                            </li>
                            <li>
                                <label>债务履行期限起：</label>
                                <input type="text" name="ZWLXQXQ"/>
                            </li>
                            <li>
                                <label>债务履行期限止：</label>
                                <input type="text" name="ZWLXQXZ"/>
                            </li>
                            <li>
                                <label>抵押类型：</label>
                                <input type="text" name="DYLX"/>
                            </li>
                            <li>
                                <label>主债权额：</label>
                                <input type="text" name="ZZQE"/>
                            </li>
                            <li>
                                <label>房屋价值：</label>
                                <input type="text" name="FWJZ"/>
                            </li>
                            <li>
                                <label>担保范围：</label>
                                <input type="text" name="DBFW"/>
                            </li>
                            <li>
                                <label>抵押合同编号：</label>
                                <input type="text" name="DYHTBH"/>
                            </li>
                            <li>
                                <label>抵押权人：</label>
                                <input type="text" name="DYQR"/>
                            </li>
                            <li>
                                <label>抵押权人证件号码：</label>
                                <input type="text" name="DYQRZJHM"/>
                            </li>-->
                            <li>
                                <label>抵押人：</label>
                                <input type="text" name="DYR"/>
                            </li>
                            <li>
                                <label style="width: auto">抵押人证件号码：</label>
                                <input type="text" name="DYRZJHM"/>
                            </li>
                            <!--<li>
                                <label>债务人：</label>
                                <input type="text" name="ZWR"/>
                            </li>
                            <li>
                                <label>债务人证件号码：</label>
                                <input type="text" name="ZWRZJHM"/>
                            </li>
                            <li>
                                <label>他项权证号(登记证明号)：</label>
                                <input type="text" name="TXQZH"/>
                            </li>
                            <li>
                                <label>所有权证号：</label>
                                <input type="text" name="SYQZH"/>
                            </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="JZMJ"/>
                            </li>
                            <li>
                                <label>注销原因：</label>
                                <input type="text" name="ZXYY"/>
                            </li>
                            <li>
                                <label>原他项权证号：</label>
                                <input type="text" name="YTXQZH"/>
                            </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:mortgage_cancel:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:mortgage_cancel:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:mortgage_cancel:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:mortgage_cancel: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:mortgage_cancel:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:mortgage_cancel:remove')}]];
        var detailFlag = [[${@permission.hasPermi('system:mortgage_cancel:detail')}]];

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

        $(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: 'ywzh',
                        title: '业务宗号'
                    },*/
                    /*{
                        field: 'zwlxqxq',
                        title: '债务履行期限起'
                    },
                    {
                        field: 'zwlxqxz',
                        title: '债务履行期限止'
                    },*/
                    {
                        field: 'dylx',
                        title: '抵押类型'
                    },
                    {
                        field: 'zzqe',
                        title: '主债权额'
                    },
                    {
                        field: 'fwjz',
                        title: '房屋价值'
                    },
                    /*{
                        field: 'dbfw',
                        title: '担保范围'
                    },*/
                    {
                        field: 'dyhtbh',
                        title: '抵押合同编号'
                    },
                    /*{
                        field: 'dyqr',
                        title: '抵押权人'
                    },
                    {
                        field: 'dyqrzjhm',
                        title: '抵押权人证件号码'
                    },*/
                    {
                        field: 'dyr',
                        title: '抵押人'
                    },
                    {
                        field: 'dyrzjhm',
                        title: '抵押人证件号码'
                    },
                    /*{
                        field: 'zwr',
                        title: '债务人'
                    },
                    {
                        field: 'zwrzjhm',
                        title: '债务人证件号码'
                    },
                    {
                        field: 'txqzh',
                        title: '他项权证号(登记证明号)'
                    },*/
                    {
                        field: 'syqzh',
                        title: '所有权证号'
                    },
                    {
                        field: 'zh',
                        title: '幢号'
                    },
                    {
                        field: 'fh',
                        title: '房号'
                    },
                    {
                        field: 'fwyt',
                        title: '房屋用途'
                    },
                    /*{
                        field: 'fwxz',
                        title: '房屋性质'
                    },
                    {
                        field: 'zl',
                        title: '坐落'
                    },*/
                    {
                        field: 'jzmj',
                        title: '建筑面积'
                    },
                    {
                        field: 'zxyy',
                        title: '注销原因'
                    },
                    {
                        field: 'ytxqzh',
                        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>
