cashier-order.blade.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. @extends('layouts.base')
  2. @section('title', '收银台提成明细')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="rightlist">
  6. <!-- 新增加右侧顶部三级菜单 -->
  7. <div class="right-titpos">
  8. <div class="panel panel-info">
  9. <ul class="add-shopnav">
  10. <li>
  11. <a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.cashier-order')}}">收银台提成明细</a>
  12. </li>
  13. <li>
  14. <a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.hotel-order')}}">门店提成明细</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <!-- 新增加右侧顶部三级菜单结束 -->
  20. <div class="panel panel-info">
  21. <div class="panel-heading">筛选</div>
  22. <div class="panel-body">
  23. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  24. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  25. <div class="">
  26. <input type="text" placeholder="门店ID" class="form-control" name="search[hotel_id]" value="{{$search['hotel_id']}}"/>
  27. </div>
  28. </div>
  29. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  30. <div class="">
  31. <input type="text" placeholder="门店名称" class="form-control" name="search[hotel_name]" value="{{$search['hotel_name']}}"/>
  32. </div>
  33. </div>
  34. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  35. <div class="">
  36. <input type="text" class="form-control" name="search[order_sn]" value="{{$search['order_sn']}}" placeholder="订单编号"/>
  37. </div>
  38. </div>
  39. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  40. <div class="">
  41. <select name='search[status]' class='form-control'>
  42. <option value=''>提成状态</option>
  43. <option value='0' @if($search['status'] == '0') selected @endif>未结算</option>
  44. <option value='1' @if($search['status'] == '1') selected @endif>已结算</option>
  45. <option value='-1' @if($search['status'] == '-1') selected @endif>已失效</option>
  46. </select>
  47. </div>
  48. </div>
  49. <div class="form-group col-xs-12 col-sm-5 col-lg-4">
  50. <div class="">
  51. <button type="submit" name="export" value="1" id="export" class="btn btn-default excel back ">导出Excel</button>
  52. <input type="hidden" name="token" value="{{$var['token']}}" />
  53. <button class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  54. </div>
  55. </div>
  56. <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-6">
  57. <div class="time">
  58. <select name='search[search_time]' class='form-control'>
  59. <option value='0' @if($search['search_time']=='0') selected @endif>不搜索时间</option>
  60. <option value='1' @if($search['search_time']=='1') selected @endif>搜索时间</option>
  61. </select>
  62. </div>
  63. <div class="search-select">
  64. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  65. 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
  66. 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
  67. 'start'=>0,
  68. 'end'=>0
  69. ], true) !!}
  70. </div>
  71. </div>
  72. </form>
  73. </div>
  74. </div>
  75. <div class="clearfix">
  76. <div class="panel panel-default">
  77. <div class="panel-heading">总数:{{ $list['total'] }}</div>
  78. <div class="panel-body">
  79. <table class="table table-hover" style="overflow:visible;">
  80. <thead class="navbar-inner">
  81. <tr>
  82. <th style='text-align: center;'>ID</th>
  83. <th style='width:12%;text-align: center;'>提成时间</th>
  84. <th style=' width: 15%; text-align: center;'>订单号</th>
  85. <th style='text-align: center'>门店名称</th>
  86. <th style='text-align: center'>订单金额</th>
  87. <th style='text-align: center'>提成结算金额<br>插件分红</th>
  88. <th style='text-align: center'>平台提成比例</th>
  89. <th style='text-align: center'>提成金额</th>
  90. <th style='text-align: center'>结算期</th>
  91. <th style='text-align: center'>提成状态</th>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. @foreach($list['data'] as $item)
  96. <tr style="text-align: center">
  97. <td style="text-align: center;">{{ $item['has_one_cashier_order']['id'] }}</td>
  98. <td style="text-align: center;">{{ date('Y-m-d H:i:s', $item['created_at']) }}</td>
  99. <td style="text-align: center;">{{ $item['order_sn'] }}</td>
  100. <td style="text-align: center;">
  101. @if($item['has_one_cashier_order']['has_one_hotel']['hotel_name'] || $item['has_one_cashier_order']['has_one_hotel']['thumb'])
  102. <img src='{{ tomedia($item['has_one_cashier_order']['has_one_hotel']['thumb']) }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' /><br/>
  103. {{ $item['has_one_cashier_order']['has_one_hotel']['hotel_name'] }}
  104. @else
  105. {{ $item['has_one_cashier_order']['has_one_hotel']['hotel_name'] ?: '未更新' }}
  106. @endif
  107. </td>
  108. <td>{{ $item['price'] }} 元</td>
  109. <td>
  110. @if($hotel_set == 0)
  111. {{ $item['goods_price'] }} 元
  112. @else
  113. {{ $item['price'] }} 元
  114. @endif
  115. <br>
  116. {{ $item['plugin_bonus'] }}元
  117. </td>
  118. <td>{{ $item['has_one_cashier_order']['fee_percentage'] }}</td>
  119. <td>{{ $item['has_one_cashier_order']['amount'] }}</td>
  120. <td>{{ (int)$item['has_one_cashier_order']['settlement_days'] }}</td>
  121. <td>
  122. @if($item['has_one_cashier_order']['has_settlement'] == 0)
  123. 未结算
  124. @elseif($item['has_one_cashier_order']['has_settlement'] == 1)
  125. 已结算
  126. @else
  127. 已失效
  128. @endif
  129. </td>
  130. {{--<td style="overflow:visible;">--}}
  131. {{--<a class='btn btn-default' href="{{ yzWebUrl('finance.balance.lookBalanceDetail', array('id' => $list->id )) }}" style="margin-bottom: 2px">查看详情</a>--}}
  132. {{--</td>--}}
  133. </tr>
  134. @endforeach
  135. </tbody>
  136. </table>
  137. {!! $page !!}
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <script language='javascript'>
  143. $(function () {
  144. $('#export').click(function(){
  145. $('#form1').submit();
  146. });
  147. });
  148. </script>
  149. @endsection