| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- @extends('base.base')
- @section('base')
- <style>
- .row {
- margin-left: -51px;
- margin-right: -60px;
- }
- .table th{
- width: 20px;
- }
- </style>
- <!-- 内容区域 -->
- <div class="main-panel">
- <div class="content-wrapper">
- <div class="page-header">
- <h3 class="page-title">
- <span class="page-title-icon bg-gradient-primary text-white mr-2">
- <i class="mdi mdi-settings"></i>
- </span>
- {{ __('auto.茶叶订单查询') }}
- </h3>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="#">{{ __('auto.茶叶统计') }}</a></li>
- <li class="breadcrumb-item active" aria-current="page">{{ __('auto.茶叶订单查询') }}</li>
- </ol>
- </nav>
- </div>
- <div class="row">
- <div class="col-lg-12 grid-margin stretch-card">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title">{{ __('auto.茶叶订单查询') }}</h4>
- <form class="well form-inline margin-top-20" method="get" action='/admin/withdrawal/list'>
- <div>
- @csrf
- <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
- <input class="form-control" type="text" name="GameID" id="GameID"
- style="width: 10%; " value="{{$GameID}}">
- <spen style="padding-left: 10px">{{ __('auto.额度查询:') }}</spen>
- <input class="form-control" type="text" name="withdraw_search" id="GameID"
- style="width: 10%; " value="{{$withdraw_search}}">
- <spen style="padding-left: 10px">{{ __('auto.订单号查询:') }}</spen>
- <input class="form-control" type="text" name="orderID" id="orderID"
- style="width: 10%; " value="{{$orderID}}">
- <spen style="padding-left: 10px">{{ __('auto.额度筛选:') }}</spen>
- <select class="form-control" name="withdraw" value="" style="color: black">
- <option value="">{{ __('auto.全部') }}</option>
- <option value="100" @if ($withdraw == 100)
- selected
- @endif>100{{ __('auto.以下(不含100)') }}
- </option>
- <option value="500" @if ($withdraw == 500)
- selected
- @endif>100-500({{ __('auto.含500)') }}
- </option>
- <option value="1000" @if ($withdraw == 1000)
- selected
- @endif>500-1000({{ __('auto.含1000)') }}
- </option>
- <option value="1001" @if ($withdraw == 1001)
- selected
- @endif>1000{{ __('auto.以上(不含') }}1000)
- </option>
- </select>
- <spen style="padding-left: 10px">{{ __('auto.当前状态筛选:') }}</spen>
- <select class="form-control" name="state" value="" style="color: black">
- <option value="100" @if ($state == 100)
- selected
- @endif>{{ __('auto.全部') }}
- </option>
- <option value="2" @if ($state == 2)
- selected
- @endif>{{ __('auto.已完成') }}
- </option>
- <option value="-1" @if ($state == -1)
- selected
- @endif>{{ __('auto.已拒绝') }}
- </option>
- <option value="1" @if ($state == 1)
- selected
- @endif>{{ __('auto.审核中') }}
- </option>
- <option value="5" @if ($state == 5)
- selected
- @endif>{{ __('auto.处理中') }}
- <option value="4" @if ($state == 4)
- selected
- @endif>{{ __('auto.系统回收') }}
- </option>
- <option value="6" @if ($state == 6)
- selected
- @endif>{{ __('auto.第三方订单失败') }}
- </option>
- <option value="7" @if ($state == 7)
- selected
- @endif>{{ __('auto.三方账单清算中') }}
- </select>
- <spen style="padding-left: 10px">{{ __('auto.渠道搜索:') }}</spen>
- <select class="form-control" name="Channel" value="" style="color: black">
- <option value="">{{ __('auto.请选择') }}</option>
- @foreach($allChannel as $key=>$val)
- <option value="{{$val}}"
- @if($val == $Channel) selected @endif>{{$val}}</option>
- @endforeach
- </select> <br>
- <spen style="padding-left: 10px">{{ __('auto.代付方筛选:') }}</spen>
- <select class="form-control" name="agent" value="" style="color: black">
- <option value="">{{ __('auto.全部') }}</option>
- @foreach($agents as $val)
- <option value="{{$val->id}}" @if ($agent == $val->id)
- selected
- @endif>{{$val->name}}</option>
- @endforeach
- </select>
- <spen style="padding-left: 10px">{{ __('auto.咖啡搜索:') }}</spen>
- <select class="form-control" name="payState" value="" style="color: black">
- <option value="">{{ __('auto.请选择') }}</option>
- <option value="1"
- @if(1 == $payState) selected @endif>{{ __('auto.已咖啡') }}
- </option>
- <option value="2"
- @if(2 == $payState) selected @endif>{{ __('auto.未咖啡') }}
- </select>
- <spen style="padding-left: 10px">{{ __('auto.申请茶叶时间选择:') }}</spen>
- <input type="datetime-local" step="01" name="start_time" id="start_time"
- class="form-control" value="{{$start_time}}" onclick="start_times()"/>
- <input type="datetime-local" step="01" name="end_time" id='end_time'
- class="form-control" value="{{$end_time}}" onclick="end_times()"/> <br>
- <spen style="padding-left: 10px">{{ __('auto.订单完成时间') }}({{ __('auto.当地') }}):</spen>
- <input type="datetime-local" step="01" name="final_start_time" id="final_start_time"
- class="form-control" value="{{$final_start_time}}"
- onclick="final_start_times()"/>
- <input type="datetime-local" step="01" name="final_end_time" id='final_end_time'
- class="form-control" value="{{$final_end_time}}"
- onclick="final_end_times()"/>
- <span>{{ __('auto.订单完成时间') }}({{ __('auto.中国') }})</span>
- <input type="datetime-local" step="01" name="final_start_time_cn" id="final_start_time_cn"
- class="form-control" value="{{$request->final_start_time_cn}}" />
- <input type="datetime-local" step="01" name="final_end_time_cn" id='final_end_time_cn'
- class="form-control" value="{{$request->final_end_time_cn}}" />
- <input type="hidden" name="isEmpty" value="{{$isEmpty}}">
- <spen style="padding-left: 10px">{{ __('auto.审核人:') }}</spen>
- <select class="form-control" name="take_effect" value="" style="color: black">
- <option value="">{{ __('auto.请选择') }}</option>
- <option value="-1"
- @if($take_effect == -1) selected @endif>{{ __('auto.自动免审') }}
- </option>
- @foreach($withdrawal_administrator as $key=>$val)
- <option value="{{$key}}"
- @if($take_effect == $key) selected @endif>{{$val}}
- </option>
- @endforeach
- </select>
- <spen style="padding-left: 10px">{{ __('auto.用户注册日期:') }}</spen>
- <input type="datetime-local" step="01" name="register_start_time"
- class="form-control" id="register_start_time"
- value="{{$register_start_time}}" onclick="register_start_timeFunc()"/>
- <input type="datetime-local" step="01" name="register_end_time" class="form-control"
- id="register_end_time"
- value="{{$register_end_time}}" onclick="register_end_timeFunc()"/>
- <spen style="padding-left: 10px">{{ __('auto.包名搜索:') }}</spen>
- <select class="form-control" name="PackgeName" value="" style="color: black">
- <option value="">{{ __('auto.请选择') }}</option>
- @foreach($ChannelPackageName as $val)
- <option value="{{$val}}" @if ($PackgeName == $val)
- selected
- @endif>{{$val}}</option>
- @endforeach
- </select>
- <a href="/admin/withdrawal/list?isEmpty=1"
- class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
- <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>
- <a href="/admin/withdrawal/list?excel=1&GameID={{$GameID}}&withdraw_search={{$withdraw_search}}&orderID={{$orderID}}&withdraw={{$withdraw}}&start_time={{$start_time}}&end_time={{$end_time}}&final_start_time={{$final_start_time}}&final_end_time={{$final_end_time}}&state={{$state}}&isEmpty=1"
- class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
- <br>
- </div>
- </form>
- <table class="table table-bordered" style="table-layout: fixed">
- <thead>
- <tr>
- <th>{{ __('auto.单号') }}</th>
- <th>{{ __('auto.玩家') }}id</th>
- <th>{{ __('auto.渠道') }}</th>
- <th>{{ __('auto.提款方式') }}</th>
- <th width="5px" style="word-wrap: break-word;">{{ __('auto.提款账号') }}</th>
- <th>{{ __('auto.提交时间') }}</th>
- <th>{{ __('auto.茶叶申请额度') }}</th>
- <th>{{ __('auto.实际到账金额') }}</th>
- <th>{{ __('auto.审核状态') }}</th>
- <th>{{ __('auto.茶叶完成情况') }}</th>
- <th>{{ __('auto.审核人') }}</th>
- <th>{{ __('auto.代付方') }}</th>
- <th>{{ __('auto.订单完成时间') }}({{ __('auto.当地') }})</th>
- <th>{{ __('auto.订单完成时间') }}({{ __('auto.中国') }})</th>
- <th>{{ __('auto.审核备注') }}</th>
- <th>{{ __('auto.回调备注') }}</th>
- {{-- <th>{{ __('auto.返回值') }}</th>--}}
- </tr>
- </thead>
- <tbody class="search_checkbox">
- <br>
- @if (hidden() != 'service')
- <h4>
- {{ __('auto.申请金额:') }}
- {{$applyUserCount->userCount ?? 0}} {{ __('auto.人') }} {{$applyUserCount->count ?? 0}}
- {{ __('auto.笔') }} {{ __('auto.总计:') }}{{$applyUserCount->WithDraw ?? 0}}
- {{ __('auto.实际到账:') }}
- {{$overUserCount->userCount ?? 0}} {{ __('auto.人') }}
- {{$overUserCount->count ?? 0}} {{ __('auto.笔') }}
- {{$overUserCount->WithDraw ?? 0}}
- </h4>
- @endif
- @foreach($list as $k=>$item)
- <tr>
- <td>{{$item->OrderId}}</td>
- <td>
- <a href="/admin/global/id_find?UserID={{$item->UserID}}">
- {{$item->GameID}}
- </a>
- </td>
- <td>{{$item->Channel}}</td>
- <td>
- @if ($item->PixType ==1)
- cashapp
- @else
- Paypal
- @endif
- </td>
- <td>
- @if ($item->PixType ==1)
- {{$item->PixNum}}
- @else
- {{$item->EmailAddress}}
- @endif
- </td>
- <td>{{date('Y-m-d H:i:s',strtotime($item->CreateDate))}}</td>
- <td>{{$item->actual_arrival}}</td>
- <td>{{$item->WithDraw}}</td>
- <td>
- {!! $item->States !!}
- @if($item->State == 5)
- <a class="layer-switch"
- data-remind="{{ __('auto.你确定要设为茶叶成功吗?') }}"
- href="/admin/withdrawal/compensate_notify/{{$item->RecordID}}">
- {{ __('auto.设为茶叶成功') }}
- </a>
- @endif
- @if($item->State == 5 || ($item->State == 6 && $item->WithDraw<40))
- <br>
- @if(session('admin')->roles[0]->id==1)
- <a class="layer-switch"
- data-remind="{{ __('auto.你确定要重制茶叶状态么?') }}"
- href="/admin/withdrawal/init_data/{{$item->RecordID}}">
- StateTo1
- </a>
- @endif
- @endif
- </td>
- <td>
- @if ($item->wn_state == 0 && $item->wn_state == 1)
- {{ __('auto.等待中') }}
- @elseif($item->wn_state == 1)
- {{ __('auto.已到账') }}
- @elseif($item->wn_state == -1 || $item->wn_state == -1)
- <span style="color: red">{{ __('auto.未到账') }}</span>
- @endif
- </td>
- <td>
- @if (empty($item->account) && !empty($item->take_effect))
- {{ __('auto.自动免审') }}
- @elseif(!empty($item->account))
- {{$item->account}}
- @else
- {{$item->State != 1 ? __('auto.自动免审') : ''}}
- @endif
- </td>
- <td>{{$item->name}}</td>
- <td>{{$item->update_at}}</td>
- <td>{{$item->update_at
- ? date('Y-m-d H:i:s', strtotime($item->update_at . ' + 11 hour'))
- : ''}}</td>
- <td>{{$item->remarks}}</td>
- <td>{{$item->remark}}</td>
- {{-- <td>--}}
- {{-- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"--}}
- {{-- onclick="update('{{$item->OrderId}}')">--}}
- {{-- {{ __('auto.查看') }}--}}
- {{-- <i class="mdi mdi-file-check btn-icon-append"></i>--}}
- {{-- </button>--}}
- {{-- </td>--}}
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="box-footer clearfix" id="pages">
- {{ __('auto.总共') }} <b>{{ $list->appends([
- 'list'=>$list,
- 'GameID'=>$GameID,
- 'withdraw_search'=>$withdraw_search,
- 'withdraw'=>$withdraw,
- 'state'=>$state,
- 'start_time'=>$start_time,
- 'end_time'=>$end_time,
- 'payState' => $payState,
- 'final_start_time' => $final_start_time,
- 'final_end_time' => $final_end_time,
- 'register_start_time' => $register_start_time,
- 'register_end_time' => $register_end_time,
- 'PackgeName' =>$PackgeName,
- 'ChannelPackageName' =>$ChannelPackageName,
- 'agent' =>$agent,
- 'Channel' => $Channel,
- 'take_effect' => $take_effect,
- 'isEmpty' => $isEmpty
- ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
- {!! $list->links() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function start_times() {
- getFormat('00', '00', '00');
- document.getElementById("start_time").value = format
- }
- function end_times() {
- getFormat('23', '59', '59');
- document.getElementById("end_time").value = format
- }
- function final_start_times() {
- getFormat('00', '00', '00');
- document.getElementById("final_start_time").value = format
- }
- function final_end_times() {
- getFormat('23', '59', '59');
- document.getElementById("final_end_time").value = format
- }
- function register_start_timeFunc() {
- getFormat('00', '00', '00');
- document.getElementById("register_start_time").value = format
- }
- function register_end_timeFunc() {
- getFormat('23', '59', '59');
- document.getElementById("register_end_time").value = format
- }
- function update(id) {
- var page = layer.open({
- type: 2,
- title: '{{ __('auto.查看返回值') }}',
- shadeClose: true,
- shade: 0.8,
- area: ['70%', '90%'],
- content: '/admin/withdrawal/show/' + id
- });
- }
- function agree() {
- var page = layer.open({
- type: 2,
- title: '{{ __('auto.修改配置') }}',
- shadeClose: true,
- shade: 0.8,
- area: ['70%', '90%'],
- content: '/admin/withdrawal/verify'
- });
- }
- function del(id) {
- myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
- myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
- layer.msg(res.msg)
- setTimeout(function () {
- window.location.reload();
- }, 1500)
- });
- });
- }
- function checkbox() {
- var num = document.getElementsByName('checkbox');
- for (var i = 0; i < num.length; i++) {
- if (num[i].checked) {
- num[i].checked = false;
- } else {
- num[i].checked = true;
- }
- }
- }
- function ban(ban) {
- //1封号 2解封
- var num = document.getElementsByName('checkbox');
- var str = '';
- for (var i = 0; i < num.length; i++) {
- if (num[i].checked) {
- str = str + num[i].id + ',';
- }
- }
- if (str == '') {
- alert('{{ __('auto.请选择要操作的数据') }}');
- return false;
- }
- var id = str.substr(0, str.length - 1);
- return false;
- }
- function search(value) {
- if (localStorage.getItem('search') === '') {
- localStorage.setItem('search', value)
- } else {
- if (localStorage.getItem('search') !== null) {
- first_str += localStorage.getItem('search') + ','
- }
- }
- var sub_str = first_str.indexOf(value)
- if (sub_str < 0) {
- first_str += value + ','
- } else {
- localStorage.removeItem("search");
- first_str = first_str.replace(value + ',', '')
- }
- search_arr = first_str.split(',')
- console.log(first_str)
- // return false;
- $.ajax({
- type: "post",
- url: "/admin/global/userlist",
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
- },
- data: {search: search_arr},
- success: function (msg) {
- if (msg) {
- $(".main-panel").html(msg)
- }
- }
- })
- return false;
- }
- //写入cookie
- function setCookie(name, value) {
- var Days = 30;
- var exp = new Date();
- exp.setTime(exp.getTime() + Days2460601000);
- document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
- }
- //获取cookie
- function getCookie(name) {
- var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
- if (arr = document.cookie.match(reg))
- return unescape(arr[2]);
- else
- return null;
- }
- </script>
- @endsection
|