| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- @extends('layouts.base')
- @section('title', '收银台提成明细')
- @section('content')
- <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
- <div class="rightlist">
- <!-- 新增加右侧顶部三级菜单 -->
- <div class="right-titpos">
- <div class="panel panel-info">
- <ul class="add-shopnav">
- <li>
- <a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.cashier-order')}}">收银台提成明细</a>
- </li>
- <li>
- <a href="{{yzWebFullUrl('plugin.hotel.admin.extract-records.hotel-order')}}">门店提成明细</a>
- </li>
- </ul>
- </div>
- </div>
- <!-- 新增加右侧顶部三级菜单结束 -->
- <div class="panel panel-info">
- <div class="panel-heading">筛选</div>
- <div class="panel-body">
- <form action="" method="post" class="form-horizontal" role="form" id="form1">
- <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
- <div class="">
- <input type="text" placeholder="门店ID" class="form-control" name="search[hotel_id]" value="{{$search['hotel_id']}}"/>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
- <div class="">
- <input type="text" placeholder="门店名称" class="form-control" name="search[hotel_name]" value="{{$search['hotel_name']}}"/>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
- <div class="">
- <input type="text" class="form-control" name="search[order_sn]" value="{{$search['order_sn']}}" placeholder="订单编号"/>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
- <div class="">
- <select name='search[status]' class='form-control'>
- <option value=''>提成状态</option>
- <option value='0' @if($search['status'] == '0') selected @endif>未结算</option>
- <option value='1' @if($search['status'] == '1') selected @endif>已结算</option>
- <option value='-1' @if($search['status'] == '-1') selected @endif>已失效</option>
- </select>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-5 col-lg-4">
- <div class="">
- <button type="submit" name="export" value="1" id="export" class="btn btn-default excel back ">导出Excel</button>
- <input type="hidden" name="token" value="{{$var['token']}}" />
- <button class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-6">
- <div class="time">
- <select name='search[search_time]' class='form-control'>
- <option value='0' @if($search['search_time']=='0') selected @endif>不搜索时间</option>
- <option value='1' @if($search['search_time']=='1') selected @endif>搜索时间</option>
- </select>
- </div>
- <div class="search-select">
- {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
- 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
- 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
- 'start'=>0,
- 'end'=>0
- ], true) !!}
- </div>
- </div>
- </form>
- </div>
-
- </div>
- <div class="clearfix">
- <div class="panel panel-default">
- <div class="panel-heading">总数:{{ $list['total'] }}</div>
- <div class="panel-body">
- <table class="table table-hover" style="overflow:visible;">
- <thead class="navbar-inner">
- <tr>
- <th style='text-align: center;'>ID</th>
- <th style='width:12%;text-align: center;'>提成时间</th>
- <th style=' width: 15%; text-align: center;'>订单号</th>
- <th style='text-align: center'>门店名称</th>
- <th style='text-align: center'>订单金额</th>
- <th style='text-align: center'>提成结算金额<br>插件分红</th>
- <th style='text-align: center'>平台提成比例</th>
- <th style='text-align: center'>提成金额</th>
- <th style='text-align: center'>结算期</th>
- <th style='text-align: center'>提成状态</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list['data'] as $item)
- <tr style="text-align: center">
- <td style="text-align: center;">{{ $item['has_one_cashier_order']['id'] }}</td>
- <td style="text-align: center;">{{ date('Y-m-d H:i:s', $item['created_at']) }}</td>
- <td style="text-align: center;">{{ $item['order_sn'] }}</td>
- <td style="text-align: center;">
- @if($item['has_one_cashier_order']['has_one_hotel']['hotel_name'] || $item['has_one_cashier_order']['has_one_hotel']['thumb'])
- <img src='{{ tomedia($item['has_one_cashier_order']['has_one_hotel']['thumb']) }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' /><br/>
- {{ $item['has_one_cashier_order']['has_one_hotel']['hotel_name'] }}
- @else
- {{ $item['has_one_cashier_order']['has_one_hotel']['hotel_name'] ?: '未更新' }}
- @endif
- </td>
- <td>{{ $item['price'] }} 元</td>
- <td>
- @if($hotel_set == 0)
- {{ $item['goods_price'] }} 元
- @else
- {{ $item['price'] }} 元
- @endif
- <br>
- {{ $item['plugin_bonus'] }}元
- </td>
- <td>{{ $item['has_one_cashier_order']['fee_percentage'] }}</td>
- <td>{{ $item['has_one_cashier_order']['amount'] }}</td>
- <td>{{ (int)$item['has_one_cashier_order']['settlement_days'] }}</td>
- <td>
- @if($item['has_one_cashier_order']['has_settlement'] == 0)
- 未结算
- @elseif($item['has_one_cashier_order']['has_settlement'] == 1)
- 已结算
- @else
- 已失效
- @endif
- </td>
- {{--<td style="overflow:visible;">--}}
- {{--<a class='btn btn-default' href="{{ yzWebUrl('finance.balance.lookBalanceDetail', array('id' => $list->id )) }}" style="margin-bottom: 2px">查看详情</a>--}}
- {{--</td>--}}
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $page !!}
- </div>
- </div>
- </div>
- </div>
- <script language='javascript'>
- $(function () {
- $('#export').click(function(){
- $('#form1').submit();
- });
- });
- </script>
- @endsection
|