renew_summary.blade.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
  4. <style>
  5. .btn-danger, .btn-primary, .btn-info {
  6. background: #2a94e0 !important;
  7. border-color: #2a94e0 !important;
  8. }
  9. .table-striped > tbody > tr:nth-of-type(odd) {
  10. background: #f8f8f8 !important;
  11. }
  12. .table-striped > tbody > tr .btn {
  13. background: none !important;
  14. }
  15. .table-striped > tbody > tr td {
  16. font-size: 14px !important;
  17. }
  18. .table-striped > tbody > tr:hover {
  19. background: #ffebd8 !important;
  20. }
  21. .table-striped > tbody > tr:hover .btn {
  22. background: #2a94e0 !important;
  23. color: #fff !important;
  24. }
  25. .table-striped > tbody > tr:hover .btn .glyphicon {
  26. color: #fff !important;
  27. }
  28. </style>
  29. @endsection
  30. @section('content')
  31. @php $authUser=auth()->user() @endphp
  32. <body class="gray-bg">
  33. <div class="wrapper wrapper-content animated fadeInRight">
  34. <div class="row">
  35. <div class="col-sm-12">
  36. <div class="ibox float-e-margins">
  37. <div class="ibox-content">
  38. <form class="row" id="searchForm" onsubmit="units.search();return false;">
  39. <div class="input-group">
  40. <select name="sellerId" id="sellerId" title="" class="form-control"
  41. style="width: 150px;float: right" onchange="units.selectPage();">
  42. <option value="">请选择销售</option>
  43. @foreach($sellerUsers as $item)
  44. <option value="{{$item->id}}">{{$item->nickname}}</option>
  45. @endforeach
  46. </select>
  47. <select name="serverId" id="serverId" title="" class="form-control"
  48. style="width: 150px;float: right" onchange="units.selectPage();">
  49. <option value="">请选择客服</option>
  50. @foreach($services as $item)
  51. <option value="{{$item->id}}">{{$item->nickname}}</option>
  52. @endforeach
  53. </select>
  54. <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
  55. name="keyword"
  56. id="keyword" style="width: 200px;float: right">
  57. <span class="input-group-btn">
  58. <button type="button" class="btn btn-md btn-primary"
  59. onclick="units.search()"> 搜索</button>
  60. <button type="button" class="btn btn-md" style="margin-left: 10px"
  61. name="btnReset"> 重置</button>
  62. </span>
  63. </div>
  64. </form>
  65. <hr>
  66. <div class="table-responsive">
  67. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </body>
  75. @endsection
  76. @section('footer')
  77. <script>
  78. var units = {
  79. selectPage: function () {
  80. tips.selectPage();
  81. },
  82. search: function () {
  83. tips.selectPage();
  84. },
  85. openDetail: function (id, title) {
  86. tips.page('/admin/sites/' + id + '/overview', title);
  87. }
  88. };
  89. var config = {};
  90. config.url = '/admin/witness-project/renew-summary';
  91. config.pageSize = 20;
  92. config.showColumns = true;
  93. config.columns = [
  94. {
  95. title: '序号', align: 'center', formatter: function (value, item, index) {
  96. return index + 1;
  97. },
  98. width: '10px'
  99. },
  100. {title: '项目', field: 'site', align: 'center'},
  101. {title: '客户姓名', field: 'customer_name', align: 'center'},
  102. {title: '职位', field: 'position', align: 'center'},
  103. {title: '电话', field: 'tel', align: 'center'},
  104. {title: '续费次数', field: 'number_renewals', align: 'center'},
  105. {title: '续费时长', field: 'duration_renewals', align: 'center'},
  106. {title: '礼品名称', field: 'gift_name', align: 'center'},
  107. {title: '礼品金额(元)', field: 'gift_amount', align: 'center'},
  108. {title: '送礼时间', field: 'gift_time', align: 'center'},
  109. {title: '备注', field: 'remark', align: 'center'},
  110. {
  111. title: '操作', field: 'site_id', align: 'center',
  112. formatter: function (value, row) {
  113. return '<button onclick="units.openDetail(' + value + ',\'' + row.site + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
  114. }
  115. }
  116. ];
  117. tips.bootstrapTable(config);
  118. </script>
  119. @endsection