123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_stattrade}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form method="get" name="formSearch" id="formSearch">
- <div class="ds-search-form">
- <dl>
- <dt>{$Think.lang.search_year}</dt>
- <dd>
- <select name="search_year" id="search_year" class="querySelect">
- {for start='2017' end='2028'}
- <option value="{$i}" {$Request.param.search_year == $i ? 'selected' : ''}>{$i}</option>
- {/for}
- </select>
- </dd>
- </dl>
- <dl>
- <dt>{$Think.lang.search_month}</dt>
- <dd>
- <select name="search_month" id="search_month" class="querySelect">
- <option value="01" {$Request.param.search_month == '01'? 'selected':''}>1</option>
- <option value="02" {$Request.param.search_month == '02'? 'selected':''}>2</option>
- <option value="03" {$Request.param.search_month == '03'? 'selected':''}>3</option>
- <option value="04" {$Request.param.search_month == '04'? 'selected':''}>4</option>
- <option value="05" {$Request.param.search_month == '05'? 'selected':''}>5</option>
- <option value="06" {$Request.param.search_month == '06'? 'selected':''}>6</option>
- <option value="07" {$Request.param.search_month == '07'? 'selected':''}>7</option>
- <option value="08" {$Request.param.search_month == '08'? 'selected':''}>8</option>
- <option value="09" {$Request.param.search_month == '09'? 'selected':''}>9</option>
- <option value="10" {$Request.param.search_month == '10'? 'selected':''}>10</option>
- <option value="11" {$Request.param.search_month == '11'? 'selected':''}>11</option>
- <option value="12" {$Request.param.search_month == '12'? 'selected':''}>12</option>
- </select>
- </dd>
- </dl>
- <div class="btn_group">
- <a href="javascript:void(0);" id="dssubmit" class="btn tooltip" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
- <a href="{:url('Stattrade/income')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
- <input type="hidden" id="export_type" data-url="{:url(request()->controller().'/'.request()->action())}/exporttype/excel" name="export_type" data-param='{"url":"income?search_year={:intval($Request.param.search_year)}&search_month={:trim($Request.param.search_month)}&exporttype=excel"}' value="excel"/>
- <a class="btn" href="javascript:void(0);" id="export_btn">{$Think.lang.ds_export}Excel</a>
- </div>
- </div>
- </form>
- <div class="stat-info">
- <span>{$Think.lang.stattrade_order_amount_total}:<strong>{:number_format($plat_data.oot,2)}</strong>{$Think.lang.ds_yuan}</span>
- <span>{$Think.lang.stattrade_refund_total}:<strong>{:number_format($plat_data.oort,2)}</strong>{$Think.lang.ds_yuan}</span>
- <span>{$Think.lang.stattrade_income}:<strong>{:number_format($plat_data['oot']-$plat_data['oort'],2)}</strong>{$Think.lang.ds_yuan}</span>
- <span>{$Think.lang.stattrade_commis_total}:<strong>{:number_format($plat_data['oct'],2)}</strong>{$Think.lang.ds_yuan}</span>
- <span>{$Think.lang.ob_store_cost_totals}:<strong>{:number_format($plat_data['osct'],2)}</strong>{$Think.lang.ds_yuan}</span>
- <span>{$Think.lang.stattrade_total}:<strong>{:number_format($plat_data['ort'],2)}</strong>{$Think.lang.ds_yuan}</span>
- </div>
- <div id="container" class="w100pre close_float" style="height:50px"></div>
- <table class="ds-default-table">
- <thead>
- <tr class="thead">
- <th class="align-center">{$Think.lang.ds_store_name}</th>
- <th class="align-center">{$Think.lang.ds_seller_name}</th>
- <th class="align-center">{$Think.lang.statstore_orderamount}</th>
- <th class="align-center">{$Think.lang.ob_commis_totals}</th>
- <th class="align-center">{$Think.lang.ob_order_return_totals}</th>
- <th class="align-center">{$Think.lang.ob_commis_return_totals}</th>
- <th class="align-center">{$Think.lang.ob_store_cost_totals}</th>
- <th class="align-center">{$Think.lang.ob_inviter_totals}</th>
- <th class="align-center">{$Think.lang.ob_result_totals}</th>
- <th class="align-center">{$Think.lang.ds_handle}</th>
- </tr>
- </thead>
- <tbody id="datatable">
- {notempty name="store_list"}
- {foreach name="store_list" item="v"}
- <tr class="hover">
- <td class="align-center">
- <a href="{:url('home/Store/index',['store_id'=>$v.ob_store_id])}" target="_blank">{$v.ob_store_name}</a>
- </td>
- <td class="align-center">{$v.member_name}</td>
- <td class="align-center">{$v.ob_order_totals}</td>
- <td class="align-center">{$v.ob_commis_totals}</td>
- <td class="align-center">{$v.ob_order_return_totals}</td>
- <td class="align-center">{$v.ob_commis_return_totals}</td>
- <td class="align-center">{$v.ob_store_cost_totals}</td>
- <td class="align-center">{$v.ob_inviter_totals}</td>
- <td class="align-center">{$v.ob_result_totals}</td>
- <td class="align-center">
- <a href="{:url('Stattrade/sale',['search_type'=>'month','search_time_month'=>$Request.param.search_month,'search_time_year'=>$Request.param.search_year,'store_name'=>$v.ob_store_name])}">{$Think.lang.ds_detail}</a>
- </td>
- </tr>
- {/foreach}
- {else /}
- <tr class="no_data">
- <td colspan="15">{$Think.lang.ds_no_record}</td>
- </tr>
- {/notempty}
- </tbody>
- </table>
- {$show_page|raw}
- </div>
- <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
- <script src="{$Think.PLUGINS_SITE_ROOT}/statistics.js"></script>
- <script>
- $(function () {
- $('#dssubmit').click(function(){
- $('#formSearch').submit();
- });
- //导出图表
- $("#export_btn").click(function(){
- var item = $("#export_type");
- var type = $(item).val();
- if(type == 'excel'){
- export_xls(item.attr('data-url').replace('.html',''));
- }
- });
- $('#dsexport').click(function(){
- $('#formSearch').submit();
- });
- });
- </script>
|