sales_volume_count.blade.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <div class="panel panel-default">
  9. <div class="panel-body">
  10. <div class='alert alert-info'>
  11. <p>1.按照商品销量进行排序;</p>
  12. </div>
  13. {{--<form action="" method="post" class="form-horizontal" role="form" id="form1">--}}
  14. {{--<div class="form-group col-sm-6 col-lg-6 col-xs-12">--}}
  15. {{--<div class="input-group">--}}
  16. {{--<span class="input-group-addon">--}}
  17. {{--<input type="checkbox" name="search[is_time]" value="1"--}}
  18. {{--@if($search['is_time'] == '1')checked="checked"@endif>--}}
  19. {{--</span>--}}
  20. {{--{!!app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [--}}
  21. {{--'starttime'=>$search['time']['start'] ?: date('Y-m-d H:i:s'),--}}
  22. {{--'endtime'=>$search['time']['end'] ?: date('Y-m-d H:i:s'),--}}
  23. {{--'start'=>0,--}}
  24. {{--'end'=>0--}}
  25. {{--])!!}--}}
  26. {{--</div>--}}
  27. {{--</div>--}}
  28. {{--<div class="form-group col-xs-12 col-sm-4">--}}
  29. {{--<button class="btn btn-success" type="submit" id="search"><i class="fa fa-search"></i> 搜索</button>--}}
  30. {{--<button type="submit" name="export" value="1" id="export" class="btn btn-default">导出 Excel</button>--}}
  31. {{--</div>--}}
  32. {{--</form>--}}
  33. </div>
  34. {{--<div class="panel panel-default">--}}
  35. {{--<table class='table' style='float:left;margin-bottom:0;table-layout: fixed;line-height: 40px;height: 40px'>--}}
  36. {{--<tr class='trhead'>--}}
  37. {{--<td colspan='8' style="text-align: left;">--}}
  38. {{--供应商数量: <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>--}}
  39. {{--</td>--}}
  40. {{--</tr>--}}
  41. {{--</table>--}}
  42. {{--</div>--}}
  43. <div class='panel-body'>
  44. <table class="table table-hover">
  45. <thead>
  46. <tr>
  47. <th style='width:80px;'>排行</th>
  48. <th>商品名称</th>
  49. <th>商品实际销量</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. @foreach($list as $key => $item)
  54. <tr>
  55. <td>
  56. @if($item['ranking'] <= 3)
  57. <label class='label label-danger' style='padding:8px;'>&nbsp;{{ $item['ranking'] }}&nbsp;</label>
  58. @else
  59. <label class='label label-default' style='padding:8px;'>&nbsp;{{ $item['ranking'] }}&nbsp;</label>
  60. @endif
  61. </td>
  62. <td>{{ $item['title'] }}</td>
  63. <td>{{ $item['total_sum'] }}</td>
  64. </tr>
  65. @endforeach
  66. </table>
  67. {!! $pager !!}
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <script>
  73. $(function () {
  74. $('#export').click(function () {
  75. $('#form1').attr('action', '{!! yzWebUrl('charts.goods.sales-volume-count.export') !!}');
  76. $('#form1').submit();
  77. });
  78. });
  79. </script>
  80. @endsection