poundage.blade.php 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('手续费统计'))
  4. <link href="{{static_url('yunshop/css/order.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="w1200 m0a">
  6. {{--<script type="text/javascript" src="{{static_url('js/dist/jquery.gcjs.js')}}"></script>--}}
  7. {{--<script type="text/javascript" src="{{static_url('js/dist/jquery.form.js')}}"></script>--}}
  8. {{--<script type="text/javascript" src="{{static_url('js/dist/tooltipbox.js')}}"></script>--}}
  9. <div class="rightlist">
  10. <!-- 新增加右侧顶部三级菜单 -->
  11. <div class="panel panel-default">
  12. <div class="panel-body">
  13. <div class="card">
  14. <div class="card-content">
  15. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  16. <div class='form-group col-xs-12 col-sm-6'>
  17. <div class="input-group">
  18. <span class="input-group-addon">
  19. <input type="checkbox" name="search[is_time]" value="1"
  20. @if($search['is_time'] == '1')checked="checked"@endif>
  21. </span>
  22. {!!app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  23. 'starttime'=>$search['time']['start'] ?: date('Y-m-d H:i:s'),
  24. 'endtime'=>$search['time']['end'] ?: date('Y-m-d H:i:s'),
  25. 'start'=>0,
  26. 'end'=>0
  27. ], true)!!}
  28. </div>
  29. </div>
  30. <div class="form-group col-xs-12 col-sm-4">
  31. <button class="btn btn-success" id="search"><i class="fa fa-search"></i> 搜索</button>
  32. <button type="submit" name="export" value="1" id="export" class="btn btn-default">导出 Excel</button>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="panel panel-default">
  40. <table class='table' style='float:left;margin-bottom:0;table-layout: fixed;line-height: 40px;height: 40px'>
  41. <tr class='trhead'>
  42. <td colspan='8' style="text-align: left;">
  43. 累计手续费: <span id="total">{{ $total['poundage'] }}元</span>&nbsp;&nbsp;&nbsp;累计劳务税: <span id="total">{{ $total['servicetax'] }}元</span>
  44. </td>
  45. </tr>
  46. </table>
  47. </div>
  48. <div class="panel panel-default">
  49. <div class=" order-info">
  50. <div class="table-responsive">
  51. <table class='table order-title table-hover table-striped'>
  52. <thead>
  53. <tr>
  54. <th class="col-md-2 text-center" style='width:80px;'>日期</th>
  55. <th class="col-md-2 text-center" style="white-space: pre-wrap;">手续费</th>
  56. <th class="col-md-2 text-center">劳务税</th>
  57. <th class="col-md-2 text-center">总计</th>
  58. <th class="col-md-2 text-center">查看明细</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. @foreach($list as $key => $row)
  63. <tr style="height: 40px; text-align: center">
  64. <td>{{ $row['date'] }}</td>
  65. <td>{{ $row['poundage'] ?: '0.00' }}</td>
  66. <td>{{ $row['servicetax'] ?: '0.00' }}</td>
  67. <td>{{ sprintf("%01.2f",($row['poundage'] + $row['servicetax'])) ?: '0.00' }}</td>
  68. <td>
  69. <a href="{!! yzWebFullUrl('charts.income.poundage.detail',['date' => $row['date']]) !!}" class="btn btn-primary">收入详情</a>
  70. </td>
  71. </tr>
  72. @endforeach
  73. </tbody>
  74. </table>
  75. </div>
  76. </div>
  77. @include('order.modals')
  78. <div id="pager">{!! $pager !!}</div>
  79. </div>
  80. </div>
  81. </div>
  82. <script>
  83. $(function () {
  84. $('#export').click(function () {
  85. $('#form1').attr('action', '{!! yzWebUrl('charts.income.poundage.export') !!}');
  86. $('#form1').submit();
  87. setTimeout(() =>{
  88. $('#form1').attr('action', " ");
  89. },0)
  90. });
  91. });
  92. </script>
  93. @endsection