stat_income.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_stattrade}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" name="formSearch" id="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.search_year}</dt>
  17. <dd>
  18. <select name="search_year" id="search_year" class="querySelect">
  19. {for start='2017' end='2028'}
  20. <option value="{$i}" {$Request.param.search_year == $i ? 'selected' : ''}>{$i}</option>
  21. {/for}
  22. </select>
  23. </dd>
  24. </dl>
  25. <dl>
  26. <dt>{$Think.lang.search_month}</dt>
  27. <dd>
  28. <select name="search_month" id="search_month" class="querySelect">
  29. <option value="01" {$Request.param.search_month == '01'? 'selected':''}>1</option>
  30. <option value="02" {$Request.param.search_month == '02'? 'selected':''}>2</option>
  31. <option value="03" {$Request.param.search_month == '03'? 'selected':''}>3</option>
  32. <option value="04" {$Request.param.search_month == '04'? 'selected':''}>4</option>
  33. <option value="05" {$Request.param.search_month == '05'? 'selected':''}>5</option>
  34. <option value="06" {$Request.param.search_month == '06'? 'selected':''}>6</option>
  35. <option value="07" {$Request.param.search_month == '07'? 'selected':''}>7</option>
  36. <option value="08" {$Request.param.search_month == '08'? 'selected':''}>8</option>
  37. <option value="09" {$Request.param.search_month == '09'? 'selected':''}>9</option>
  38. <option value="10" {$Request.param.search_month == '10'? 'selected':''}>10</option>
  39. <option value="11" {$Request.param.search_month == '11'? 'selected':''}>11</option>
  40. <option value="12" {$Request.param.search_month == '12'? 'selected':''}>12</option>
  41. </select>
  42. </dd>
  43. </dl>
  44. <div class="btn_group">
  45. <a href="javascript:void(0);" id="dssubmit" class="btn tooltip" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  46. <a href="{:url('Stattrade/income')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  47. <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"/>
  48. <a class="btn" href="javascript:void(0);" id="export_btn">{$Think.lang.ds_export}Excel</a>
  49. </div>
  50. </div>
  51. </form>
  52. <div class="stat-info">
  53. <span>{$Think.lang.stattrade_order_amount_total}:<strong>{:number_format($plat_data.oot,2)}</strong>{$Think.lang.ds_yuan}</span>
  54. <span>{$Think.lang.stattrade_refund_total}:<strong>{:number_format($plat_data.oort,2)}</strong>{$Think.lang.ds_yuan}</span>
  55. <span>{$Think.lang.stattrade_income}:<strong>{:number_format($plat_data['oot']-$plat_data['oort'],2)}</strong>{$Think.lang.ds_yuan}</span>
  56. <span>{$Think.lang.stattrade_commis_total}:<strong>{:number_format($plat_data['oct'],2)}</strong>{$Think.lang.ds_yuan}</span>
  57. <span>{$Think.lang.ob_store_cost_totals}:<strong>{:number_format($plat_data['osct'],2)}</strong>{$Think.lang.ds_yuan}</span>
  58. <span>{$Think.lang.stattrade_total}:<strong>{:number_format($plat_data['ort'],2)}</strong>{$Think.lang.ds_yuan}</span>
  59. </div>
  60. <div id="container" class="w100pre close_float" style="height:50px"></div>
  61. <table class="ds-default-table">
  62. <thead>
  63. <tr class="thead">
  64. <th class="align-center">{$Think.lang.ds_store_name}</th>
  65. <th class="align-center">{$Think.lang.ds_seller_name}</th>
  66. <th class="align-center">{$Think.lang.statstore_orderamount}</th>
  67. <th class="align-center">{$Think.lang.ob_commis_totals}</th>
  68. <th class="align-center">{$Think.lang.ob_order_return_totals}</th>
  69. <th class="align-center">{$Think.lang.ob_commis_return_totals}</th>
  70. <th class="align-center">{$Think.lang.ob_store_cost_totals}</th>
  71. <th class="align-center">{$Think.lang.ob_inviter_totals}</th>
  72. <th class="align-center">{$Think.lang.ob_result_totals}</th>
  73. <th class="align-center">{$Think.lang.ds_handle}</th>
  74. </tr>
  75. </thead>
  76. <tbody id="datatable">
  77. {notempty name="store_list"}
  78. {foreach name="store_list" item="v"}
  79. <tr class="hover">
  80. <td class="align-center">
  81. <a href="{:url('home/Store/index',['store_id'=>$v.ob_store_id])}" target="_blank">{$v.ob_store_name}</a>
  82. </td>
  83. <td class="align-center">{$v.member_name}</td>
  84. <td class="align-center">{$v.ob_order_totals}</td>
  85. <td class="align-center">{$v.ob_commis_totals}</td>
  86. <td class="align-center">{$v.ob_order_return_totals}</td>
  87. <td class="align-center">{$v.ob_commis_return_totals}</td>
  88. <td class="align-center">{$v.ob_store_cost_totals}</td>
  89. <td class="align-center">{$v.ob_inviter_totals}</td>
  90. <td class="align-center">{$v.ob_result_totals}</td>
  91. <td class="align-center">
  92. <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>
  93. </td>
  94. </tr>
  95. {/foreach}
  96. {else /}
  97. <tr class="no_data">
  98. <td colspan="15">{$Think.lang.ds_no_record}</td>
  99. </tr>
  100. {/notempty}
  101. </tbody>
  102. </table>
  103. {$show_page|raw}
  104. </div>
  105. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  106. <script src="{$Think.PLUGINS_SITE_ROOT}/statistics.js"></script>
  107. <script>
  108. $(function () {
  109. $('#dssubmit').click(function(){
  110. $('#formSearch').submit();
  111. });
  112. //导出图表
  113. $("#export_btn").click(function(){
  114. var item = $("#export_type");
  115. var type = $(item).val();
  116. if(type == 'excel'){
  117. export_xls(item.attr('data-url').replace('.html',''));
  118. }
  119. });
  120. $('#dsexport').click(function(){
  121. $('#formSearch').submit();
  122. });
  123. });
  124. </script>