supplier.blade.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @extends('layouts.base')
  2. @section('content')
  3. <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
  4. <link href="{{static_url('yunshop/css/order.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="w1200 m0a">
  6. <div class="rightlist" id="member-blade">
  7. @include('layouts.tabs')
  8. @if(app('plugins')->isEnabled('supplier'))
  9. <div class="panel panel-default">
  10. <div class="panel-body">
  11. <div class='alert alert-info'>
  12. <p>1.按照供应商/门店/收银台完成订单金额进行排序;</p>
  13. <p>2.未提现收入:供应商/门店/收银台可提现金额</p>
  14. <p>3.提现中收入:处于待审核、待打款、打款中的提现记录</p>
  15. <p>4.已打款收入:已成功提现打款到账的收入</p>
  16. </div>
  17. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  18. <div class="form-group col-sm-6 col-lg-6 col-xs-12">
  19. <div class="input-group">
  20. <span class="input-group-addon">
  21. <input type="checkbox" name="search[is_time]" value="1"
  22. @if($search['is_time'] == '1')checked="checked"@endif>
  23. </span>
  24. {!!app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  25. 'starttime'=>$search['time']['start'] ?: date('Y-m-d H:i:s'),
  26. 'endtime'=>$search['time']['end'] ?: date('Y-m-d H:i:s'),
  27. 'start'=>0,
  28. 'end'=>0
  29. ])!!}
  30. </div>
  31. </div>
  32. <div class="form-group col-xs-12 col-sm-4">
  33. <button class="btn btn-success" type="submit" id="search"><i class="fa fa-search"></i> 搜索</button>
  34. <button type="submit" name="export" value="1" id="export" class="btn btn-default">导出 Excel</button>
  35. </div>
  36. </form>
  37. </div>
  38. <div class="panel panel-default">
  39. <table class='table' style='float:left;margin-bottom:0;table-layout: fixed;line-height: 40px;height: 40px'>
  40. <tr class='trhead'>
  41. <td colspan='8' style="text-align: left;">
  42. 供应商数量: <span id="total">{{ $supplierTotal }}个</span>&nbsp;&nbsp;&nbsp;未提现收入: <span id="total">{{ $unWithdrawTotal }}元</span>&nbsp;&nbsp;&nbsp;提现中收入: <span id="total">{{ $withdrawingTotal }}元</span>&nbsp;&nbsp;&nbsp;已提现收入: <span id="total">{{ $withdrawTotal }}元</span>
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. <div class='panel-body'>
  48. <table class="table table-hover">
  49. <thead>
  50. <tr>
  51. <th style='width:80px;'>排行</th>
  52. <th>供应商</th>
  53. <th>交易完成总额</th>
  54. <th>未提现收入</th>
  55. <th>提现中收入</th>
  56. <th>已提现收入</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. @foreach($list as $key => $item)
  61. <tr>
  62. <td>
  63. @if($key <= 2)
  64. <label class='label label-danger' style='padding:8px;'>&nbsp;{{ $key + 1 }}&nbsp;</label>
  65. @else
  66. <label class='label label-default' style='padding:8px;'>&nbsp;{{ $key + 1 }}&nbsp;</label>
  67. @endif
  68. </td>
  69. <td>{{ $item['name'] }}</td>
  70. <td>{{ $item['price'] ?: '0.00' }}</td>
  71. <td>{{ $item['un_withdraw'] ?: '0.00' }}</td>
  72. <td>{{ $item['withdrawing'] ?: '0.00' }}</td>
  73. <td>{{ $item['withdraw'] ?: '0.00' }} </td>
  74. </tr>
  75. @endforeach
  76. </table>
  77. {{--{!! $page !!}--}}
  78. </div>
  79. </div>
  80. @else
  81. 未开启供应商插件
  82. @endif
  83. </div>
  84. </div>
  85. <script>
  86. $(function () {
  87. $('#export').click(function () {
  88. $('#form1').attr('action', '{!! yzWebUrl('charts.merchant.supplier-income.export') !!}');
  89. $('#form1').submit();
  90. setTimeout(() =>{
  91. $('#form1').attr('action', " ");
  92. },0)
  93. });
  94. });
  95. </script>
  96. @endsection