{layout name="manager/layout" /}
<style>
    .layui-table-cell{
        height: auto;
        white-space: normal;
    }
    .layui-table .layui-layer-photos {height: 90px;}
    .layui-table img{
        max-height: 100%;
        object-fit: cover;
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 150px;
        vertical-align: middle;
        border: 0;
    }
    .l_font{
        font-size: 26px;height: 25px
    }
</style>

<div class="layui-row layui-col-space12">
    <div class="layui-row layui-col-space15">

        </div>
        <div class="layui-col-md10">
            <div class="layui-col-md12">
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>总流水:</strong></h3>
                            <span class="l_font" > &nbsp;</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>渠道商提成总额</strong></h3>
                            <span class="l_font">{$agency_money_sum ?? 0}</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>太古平台提成总额</strong></h3>
                            <span class="l_font">{$admin_money_sum ?? 0}</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>消费者提成总额</strong></h3>
                            <span  class="l_font">{$consumer_money_sum?? 0}</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>分销者提成总额</strong></h3>
                            <span  class="l_font">{$distribution_money_sum?? 0}</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>当前流水:</strong></h3>
                            <span class="l_font" > &nbsp;</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>渠道商提成总额</strong></h3>
                            <span class="l_font" id="new_agency_money_sum"> &nbsp;</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>太古平台提成总额</strong></h3>
                            <span class="l_font" id="new_admin_money_sum"> &nbsp;</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>消费者提成总额</strong></h3>
                            <span  class="l_font" id="new_consumer_money_sum"> &nbsp;</span>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md2">
                    <div class="layui-panel" style="border-radius: 8px;">
                        <div class="layui-row" style="padding: 5% 0;text-align: center">
                            <h3><strong>分销者提成总额</strong></h3>
                            <span  class="l_font" id="new_distribution_money_sum"> &nbsp;</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>



    </div>



    <div class="layui-col-xs12 layui-col-md12">
        <div id="echarts-records" style="background-color:#ffffff;min-height:600px;">
            <div class="layuimini-container location-index-page">
                <div class="layuimini-main">
                    <fieldset class="table-search-fieldset" >
                        <legend>搜索信息</legend>
                        <div style="margin: 10px 10px 10px 10px">
                            <form class="layui-form layui-form-pane" action="">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">关键词</label>
                                        <div class="layui-inline">
                                            <input type="text" name="keyword" class="layui-input" placeholder="商家名称，用户昵称，签到券名称">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">开始时间</label>
                                        <div class="layui-inline">
                                            <input type="text" name="start_time" id="start_time" value="{$startTime}" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">结束时间</label>
                                        <div class="layui-inline">
                                            <input type="text" name="end_time"  id="end_time" value="{$endTime}" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </fieldset>
                    <div>
                        <table id="table-container" class="layui-table" data-url="/manager/bill/index" lay-filter="table-container"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<!-- toolbar -->
<script type="text/html" id="toolbar-tpl">
    <a class="layui-btn layui-btn-primary layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
    <a class="layui-btn layui-btn-primary layui-btn-sm" id="exports">导出</a>
</script>


<!-- 列 轮播图 -->
<script type="text/html" id="row-commission">
    {{#  if(d.is_distribution_coupon ==0){ }}
    渠道商:平台:消费者 <br>
    比例: <span style="font-weight: bold">{{ d.commission_agency}} : {{ d.commission_admin}} : {{ d.commission_consumer}}</span> <br>
    金额: <span style="font-weight: bold">{{ d.agency_money}} : {{ d.admin_money}} : {{ d.consumer_money}}</span>
    {{#  }else{ }}
    分销者:平台:消费者 <br>
    比例: <span style="font-weight: bold">{{ d.commission_dis_distribution}} : {{ d.commission_dis_admin}} : {{ d.commission_dis_distributed}}</span> <br>
    金额: <span style="font-weight: bold">{{ d.distribution_money}} : {{ d.admin_money}} : {{ d.consumer_money}}</span>
    {{#  } }}
</script>

<script src="__MANAGER__/js/bill.js?v={:mt_rand()}"></script>