<!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="f_userid"/>
                            </li>
                            <li>
                                <label>用户名称：</label>
                                <input type="text" name="f_username"/>
                            </li>
                            <!--<li>
                                <label>用户类型：</label>
                                <input type="text" name="f_usertype"/>
                            </li>
                            <li>
                                <label>用户上期结余：</label>
                                <input type="text" name="f_zhye"/>
                            </li>
                            <li>
                                <label>本期结余：</label>
                                <input type="text" name="f_benqizhye"/>
                            </li>
                            <li>
                                <label>表类型：</label>
                                <input type="text" name="f_gasmeterstyle"/>
                            </li>
                            <li>
                                <label>预购气量：</label>
                                <input type="text" name="f_pregas"/>
                            </li>
                            <li>
                                <label>预购金额：</label>
                                <input type="text" name="f_preamount"/>
                            </li>
                            <li>
                                <label>付款方式：</label>
                                <input type="text" name="f_payment"/>
                            </li>
                            <li>
                                <label>累购气量：</label>
                                <input type="text" name="f_upbuynum"/>
                            </li>
                            <li>
                                <label>网点：</label>
                                <input type="text" name="f_sgnetwork"/>
                            </li>
                            <li>
                                <label>操作员：</label>
                                <input type="text" name="f_sgoperator"/>
                            </li>
                            <li>
                                <label>缴费日期：</label>
                                <input type="text" name="f_deliverydate"/>
                            </li>
                            <li>
                                <label>缴费时间：</label>
                                <input type="text" name="f_deliverytime"/>
                            </li>
                            <li>
                                <label>所属分公司：</label>
                                <input type="text" name="f_filiale"/>
                            </li>
                            <li>
                                <label>分公司编号：</label>
                                <input type="text" name="f_fengongsinum"/>
                            </li>
                            <li>
                                <label>收费类型：</label>
                                <input type="text" name="f_payfeetype"/>
                            </li>
                            <li>
                                <label>购气有效类型：</label>
                                <input type="text" name="f_payfeevalid"/>
                            </li>
                            <li>
                                <label>购气次数：</label>
                                <input type="text" name="f_times"/>
                            </li>
                            <li>
                                <label>阶梯气价类型：</label>
                                <input type="text" name="f_stairtype"/>
                            </li>
                            <li>
                                <label>阶梯一单价：</label>
                                <input type="text" name="f_stair1price"/>
                            </li>
                            <li>
                                <label>阶梯一气量：</label>
                                <input type="text" name="f_stair1amount"/>
                            </li>
                            <li>
                                <label>阶梯一金额：</label>
                                <input type="text" name="f_stair1fee"/>
                            </li>
                            <li>
                                <label>阶梯二单价：</label>
                                <input type="text" name="f_stair2price"/>
                            </li>
                            <li>
                                <label>阶梯二气量：</label>
                                <input type="text" name="f_stair2amount"/>
                            </li>
                            <li>
                                <label>阶梯二金额：</label>
                                <input type="text" name="f_stair2fee"/>
                            </li>
                            <li>
                                <label>阶梯三单价：</label>
                                <input type="text" name="f_stair3price"/>
                            </li>
                            <li>
                                <label>阶梯三气量：</label>
                                <input type="text" name="f_stair3amount"/>
                            </li>
                            <li>
                                <label>阶梯三金额：</label>
                                <input type="text" name="f_stair3fee"/>
                            </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:aofe_gas_purchase_infor:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:aofe_gas_purchase_infor:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:aofe_gas_purchase_infor:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:aofe_gas_purchase_infor: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:aofe_gas_purchase_infor:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:aofe_gas_purchase_infor:remove')}]];
        var detailFlag = [[${@permission.hasPermi('system:aofe_gas_purchase_infor:detail')}]];

        var prefix = ctx + "system/gas/aofe_gas_purchase_infor";

        $(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: 'fuserid',
                    title: '用户编号'
                },
                {
                    field: 'fusername',
                    title: '用户名称'
                },
                /*{
                    field: 'fusertype',
                    title: '用户类型'
                },*/
                /*{
                    field: 'fzhye',
                    title: '用户上期结余'
                },*/
                {
                    field: 'fbenqizhye',
                    title: '本期结余'
                },
                /*{
                    field: 'fgasmeterstyle',
                    title: '表类型'
                },*/
                {
                    field: 'fpregas',
                    title: '预购气量'
                },
                {
                    field: 'fpreamount',
                    title: '预购金额'
                },
                {
                    field: 'fpayment',
                    title: '付款方式'
                },
                /*{
                    field: 'fupbuynum',
                    title: '累购气量'
                },
                {
                    field: 'fsgnetwork',
                    title: '网点'
                },*/
                {
                    field: 'fsgoperator',
                    title: '操作员'
                },
                /*{
                    field: 'fdeliverydate',
                    title: '缴费日期'
                },
                {
                    field: 'fdeliverytime',
                    title: '缴费时间'
                },*/
                {
                    field: 'ffiliale',
                    title: '所属分公司'
                },
                /*{
                    field: 'ffengongsinum',
                    title: '分公司编号'
                },*/
                {
                    field: 'fpayfeetype',
                    title: '收费类型'
                },
                {
                    field: 'fpayfeevalid',
                    title: '购气有效类型'
                },
                /*{
                    field: 'ftimes',
                    title: '购气次数'
                },
                {
                    field: 'fstairtype',
                    title: '阶梯气价类型'
                },
                {
                    field: 'fstair1price',
                    title: '阶梯一单价'
                },
                {
                    field: 'fstair1amount',
                    title: '阶梯一气量'
                },
                {
                    field: 'fstair1fee',
                    title: '阶梯一金额'
                },
                {
                    field: 'fstair2price',
                    title: '阶梯二单价'
                },
                {
                    field: 'fstair2amount',
                    title: '阶梯二气量'
                },
                {
                    field: 'fstair2fee',
                    title: '阶梯二金额'
                },
                {
                    field: 'fstair3price',
                    title: '阶梯三单价'
                },
                {
                    field: 'fstair3amount',
                    title: '阶梯三气量'
                },
                {
                    field: 'fstair3fee',
                    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>
