verify_finish.blade.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. @extends('base.base')
  2. @section('base')
  3. <style>
  4. .row {
  5. margin-left: -51px;
  6. margin-right: -60px;
  7. }
  8. .table th{
  9. width: 20px;
  10. }
  11. </style>
  12. <!-- 内容区域 -->
  13. <div class="main-panel">
  14. <div class="content-wrapper">
  15. <div class="page-header">
  16. <h3 class="page-title">
  17. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  18. <i class="mdi mdi-settings"></i>
  19. </span>
  20. {{ __('auto.茶叶订单查询') }}
  21. </h3>
  22. <nav aria-label="breadcrumb">
  23. <ol class="breadcrumb">
  24. <li class="breadcrumb-item"><a href="#">{{ __('auto.茶叶统计') }}</a></li>
  25. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.茶叶订单查询') }}</li>
  26. </ol>
  27. </nav>
  28. </div>
  29. <div class="row">
  30. <div class="col-lg-12 grid-margin stretch-card">
  31. <div class="card">
  32. <div class="card-body">
  33. <h4 class="card-title">{{ __('auto.茶叶订单查询') }}</h4>
  34. <form class="well form-inline margin-top-20" method="get" action='/admin/withdrawal/list'>
  35. <div>
  36. @csrf
  37. <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
  38. <input class="form-control" type="text" name="GameID" id="GameID"
  39. style="width: 10%; " value="{{$GameID}}">
  40. <spen style="padding-left: 10px">{{ __('auto.额度查询:') }}</spen>
  41. <input class="form-control" type="text" name="withdraw_search" id="GameID"
  42. style="width: 10%; " value="{{$withdraw_search}}">
  43. <spen style="padding-left: 10px">{{ __('auto.订单号查询:') }}</spen>
  44. <input class="form-control" type="text" name="orderID" id="orderID"
  45. style="width: 10%; " value="{{$orderID}}">
  46. <spen style="padding-left: 10px">{{ __('auto.额度筛选:') }}</spen>
  47. <select class="form-control" name="withdraw" value="" style="color: black">
  48. <option value="">{{ __('auto.全部') }}</option>
  49. <option value="100" @if ($withdraw == 100)
  50. selected
  51. @endif>100{{ __('auto.以下(不含100)') }}
  52. </option>
  53. <option value="500" @if ($withdraw == 500)
  54. selected
  55. @endif>100-500({{ __('auto.含500)') }}
  56. </option>
  57. <option value="1000" @if ($withdraw == 1000)
  58. selected
  59. @endif>500-1000({{ __('auto.含1000)') }}
  60. </option>
  61. <option value="1001" @if ($withdraw == 1001)
  62. selected
  63. @endif>1000{{ __('auto.以上(不含') }}1000)
  64. </option>
  65. </select>
  66. <spen style="padding-left: 10px">{{ __('auto.当前状态筛选:') }}</spen>
  67. <select class="form-control" name="state" value="" style="color: black">
  68. <option value="100" @if ($state == 100)
  69. selected
  70. @endif>{{ __('auto.全部') }}
  71. </option>
  72. <option value="2" @if ($state == 2)
  73. selected
  74. @endif>{{ __('auto.已完成') }}
  75. </option>
  76. <option value="-1" @if ($state == -1)
  77. selected
  78. @endif>{{ __('auto.已拒绝') }}
  79. </option>
  80. <option value="1" @if ($state == 1)
  81. selected
  82. @endif>{{ __('auto.审核中') }}
  83. </option>
  84. <option value="5" @if ($state == 5)
  85. selected
  86. @endif>{{ __('auto.处理中') }}
  87. <option value="4" @if ($state == 4)
  88. selected
  89. @endif>{{ __('auto.系统回收') }}
  90. </option>
  91. <option value="6" @if ($state == 6)
  92. selected
  93. @endif>{{ __('auto.第三方订单失败') }}
  94. </option>
  95. <option value="7" @if ($state == 7)
  96. selected
  97. @endif>{{ __('auto.三方账单清算中') }}
  98. </select>
  99. <spen style="padding-left: 10px">{{ __('auto.渠道搜索:') }}</spen>
  100. <select class="form-control" name="Channel" value="" style="color: black">
  101. <option value="">{{ __('auto.请选择') }}</option>
  102. @foreach($allChannel as $key=>$val)
  103. <option value="{{$val}}"
  104. @if($val == $Channel) selected @endif>{{$val}}</option>
  105. @endforeach
  106. </select> <br>
  107. <spen style="padding-left: 10px">{{ __('auto.代付方筛选:') }}</spen>
  108. <select class="form-control" name="agent" value="" style="color: black">
  109. <option value="">{{ __('auto.全部') }}</option>
  110. @foreach($agents as $val)
  111. <option value="{{$val->id}}" @if ($agent == $val->id)
  112. selected
  113. @endif>{{$val->name}}</option>
  114. @endforeach
  115. </select>
  116. <spen style="padding-left: 10px">{{ __('auto.咖啡搜索:') }}</spen>
  117. <select class="form-control" name="payState" value="" style="color: black">
  118. <option value="">{{ __('auto.请选择') }}</option>
  119. <option value="1"
  120. @if(1 == $payState) selected @endif>{{ __('auto.已咖啡') }}
  121. </option>
  122. <option value="2"
  123. @if(2 == $payState) selected @endif>{{ __('auto.未咖啡') }}
  124. </select>
  125. <spen style="padding-left: 10px">{{ __('auto.申请茶叶时间选择:') }}</spen>
  126. <input type="datetime-local" step="01" name="start_time" id="start_time"
  127. class="form-control" value="{{$start_time}}" onclick="start_times()"/>
  128. <input type="datetime-local" step="01" name="end_time" id='end_time'
  129. class="form-control" value="{{$end_time}}" onclick="end_times()"/> <br>
  130. <spen style="padding-left: 10px">{{ __('auto.订单完成时间') }}({{ __('auto.当地') }}):</spen>
  131. <input type="datetime-local" step="01" name="final_start_time" id="final_start_time"
  132. class="form-control" value="{{$final_start_time}}"
  133. onclick="final_start_times()"/>
  134. <input type="datetime-local" step="01" name="final_end_time" id='final_end_time'
  135. class="form-control" value="{{$final_end_time}}"
  136. onclick="final_end_times()"/>
  137. <span>{{ __('auto.订单完成时间') }}({{ __('auto.中国') }})</span>
  138. <input type="datetime-local" step="01" name="final_start_time_cn" id="final_start_time_cn"
  139. class="form-control" value="{{$request->final_start_time_cn}}" />
  140. <input type="datetime-local" step="01" name="final_end_time_cn" id='final_end_time_cn'
  141. class="form-control" value="{{$request->final_end_time_cn}}" />
  142. <input type="hidden" name="isEmpty" value="{{$isEmpty}}">
  143. <spen style="padding-left: 10px">{{ __('auto.审核人:') }}</spen>
  144. <select class="form-control" name="take_effect" value="" style="color: black">
  145. <option value="">{{ __('auto.请选择') }}</option>
  146. <option value="-1"
  147. @if($take_effect == -1) selected @endif>{{ __('auto.自动免审') }}
  148. </option>
  149. @foreach($withdrawal_administrator as $key=>$val)
  150. <option value="{{$key}}"
  151. @if($take_effect == $key) selected @endif>{{$val}}
  152. </option>
  153. @endforeach
  154. </select>
  155. <spen style="padding-left: 10px">{{ __('auto.用户注册日期:') }}</spen>
  156. <input type="datetime-local" step="01" name="register_start_time"
  157. class="form-control" id="register_start_time"
  158. value="{{$register_start_time}}" onclick="register_start_timeFunc()"/>&nbsp;&nbsp;
  159. <input type="datetime-local" step="01" name="register_end_time" class="form-control"
  160. id="register_end_time"
  161. value="{{$register_end_time}}" onclick="register_end_timeFunc()"/>
  162. <spen style="padding-left: 10px">{{ __('auto.包名搜索:') }}</spen>
  163. <select class="form-control" name="PackgeName" value="" style="color: black">
  164. <option value="">{{ __('auto.请选择') }}</option>
  165. @foreach($ChannelPackageName as $val)
  166. <option value="{{$val}}" @if ($PackgeName == $val)
  167. selected
  168. @endif>{{$val}}</option>
  169. @endforeach
  170. </select>
  171. <a href="/admin/withdrawal/list?isEmpty=1"
  172. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  173. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  174. <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"
  175. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  176. <br>
  177. </div>
  178. </form>
  179. <table class="table table-bordered" style="table-layout: fixed">
  180. <thead>
  181. <tr>
  182. <th>{{ __('auto.单号') }}</th>
  183. <th>{{ __('auto.玩家') }}id</th>
  184. <th>{{ __('auto.渠道') }}</th>
  185. <th>{{ __('auto.提款方式') }}</th>
  186. <th width="5px" style="word-wrap: break-word;">{{ __('auto.提款账号') }}</th>
  187. <th>{{ __('auto.提交时间') }}</th>
  188. <th>{{ __('auto.茶叶申请额度') }}</th>
  189. <th>{{ __('auto.实际到账金额') }}</th>
  190. <th>{{ __('auto.审核状态') }}</th>
  191. <th>{{ __('auto.茶叶完成情况') }}</th>
  192. <th>{{ __('auto.审核人') }}</th>
  193. <th>{{ __('auto.代付方') }}</th>
  194. <th>{{ __('auto.订单完成时间') }}({{ __('auto.当地') }})</th>
  195. <th>{{ __('auto.订单完成时间') }}({{ __('auto.中国') }})</th>
  196. <th>{{ __('auto.审核备注') }}</th>
  197. <th>{{ __('auto.回调备注') }}</th>
  198. {{-- <th>{{ __('auto.返回值') }}</th>--}}
  199. </tr>
  200. </thead>
  201. <tbody class="search_checkbox">
  202. <br>
  203. @if (hidden() != 'service')
  204. <h4>
  205. {{ __('auto.申请金额:') }}
  206. {{$applyUserCount->userCount ?? 0}} {{ __('auto.人') }} {{$applyUserCount->count ?? 0}}
  207. {{ __('auto.笔') }}&nbsp;&nbsp;{{ __('auto.总计:') }}{{$applyUserCount->WithDraw ?? 0}} &nbsp;&nbsp;
  208. {{ __('auto.实际到账:') }}
  209. {{$overUserCount->userCount ?? 0}} {{ __('auto.人') }}&nbsp;&nbsp;
  210. {{$overUserCount->count ?? 0}} {{ __('auto.笔') }}&nbsp;&nbsp;
  211. {{$overUserCount->WithDraw ?? 0}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  212. </h4>
  213. @endif
  214. @foreach($list as $k=>$item)
  215. <tr>
  216. <td>{{$item->OrderId}}</td>
  217. <td>
  218. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  219. {{$item->GameID}}
  220. </a>
  221. </td>
  222. <td>{{$item->Channel}}</td>
  223. <td>
  224. @if ($item->PixType ==1)
  225. cashapp
  226. @else
  227. Paypal
  228. @endif
  229. </td>
  230. <td>
  231. @if ($item->PixType ==1)
  232. {{$item->PixNum}}
  233. @else
  234. {{$item->EmailAddress}}
  235. @endif
  236. </td>
  237. <td>{{date('Y-m-d H:i:s',strtotime($item->CreateDate))}}</td>
  238. <td>{{$item->actual_arrival}}</td>
  239. <td>{{$item->WithDraw}}</td>
  240. <td>
  241. {!! $item->States !!}
  242. @if($item->State == 5)
  243. <a class="layer-switch"
  244. data-remind="{{ __('auto.你确定要设为茶叶成功吗?') }}"
  245. href="/admin/withdrawal/compensate_notify/{{$item->RecordID}}">
  246. {{ __('auto.设为茶叶成功') }}
  247. </a>
  248. @endif
  249. <br>
  250. @if(session('admin')->roles[0]->id==1)
  251. <a class="layer-switch"
  252. data-remind="{{ __('auto.你确定要重制茶叶状态么?') }}"
  253. href="/admin/withdrawal/init_data/{{$item->RecordID}}">
  254. StateTo1
  255. </a>
  256. @endif
  257. </td>
  258. <td>
  259. @if ($item->wn_state == 0 && $item->wn_state == 1)
  260. {{ __('auto.等待中') }}
  261. @elseif($item->wn_state == 1)
  262. {{ __('auto.已到账') }}
  263. @elseif($item->wn_state == -1 || $item->wn_state == -1)
  264. <span style="color: red">{{ __('auto.未到账') }}</span>
  265. @endif
  266. </td>
  267. <td>
  268. @if (empty($item->account) && !empty($item->take_effect))
  269. {{ __('auto.自动免审') }}
  270. @elseif(!empty($item->account))
  271. {{$item->account}}
  272. @else
  273. {{$item->State != 1 ? __('auto.自动免审') : ''}}
  274. @endif
  275. </td>
  276. <td>{{$item->name}}</td>
  277. <td>{{$item->update_at}}</td>
  278. <td>{{$item->update_at
  279. ? date('Y-m-d H:i:s', strtotime($item->update_at . ' + 11 hour'))
  280. : ''}}</td>
  281. <td>{{$item->remarks}}</td>
  282. <td>{{$item->remark}}</td>
  283. {{-- <td>--}}
  284. {{-- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"--}}
  285. {{-- onclick="update('{{$item->OrderId}}')">--}}
  286. {{-- {{ __('auto.查看') }}--}}
  287. {{-- <i class="mdi mdi-file-check btn-icon-append"></i>--}}
  288. {{-- </button>--}}
  289. {{-- </td>--}}
  290. </tr>
  291. @endforeach
  292. </tbody>
  293. </table>
  294. <div class="box-footer clearfix" id="pages">
  295. {{ __('auto.总共') }} <b>{{ $list->appends([
  296. 'list'=>$list,
  297. 'GameID'=>$GameID,
  298. 'withdraw_search'=>$withdraw_search,
  299. 'withdraw'=>$withdraw,
  300. 'state'=>$state,
  301. 'start_time'=>$start_time,
  302. 'end_time'=>$end_time,
  303. 'payState' => $payState,
  304. 'final_start_time' => $final_start_time,
  305. 'final_end_time' => $final_end_time,
  306. 'register_start_time' => $register_start_time,
  307. 'register_end_time' => $register_end_time,
  308. 'PackgeName' =>$PackgeName,
  309. 'ChannelPackageName' =>$ChannelPackageName,
  310. 'agent' =>$agent,
  311. 'Channel' => $Channel,
  312. 'take_effect' => $take_effect,
  313. 'isEmpty' => $isEmpty
  314. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  315. {!! $list->links() !!}
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <script>
  324. function start_times() {
  325. getFormat('00', '00', '00');
  326. document.getElementById("start_time").value = format
  327. }
  328. function end_times() {
  329. getFormat('23', '59', '59');
  330. document.getElementById("end_time").value = format
  331. }
  332. function final_start_times() {
  333. getFormat('00', '00', '00');
  334. document.getElementById("final_start_time").value = format
  335. }
  336. function final_end_times() {
  337. getFormat('23', '59', '59');
  338. document.getElementById("final_end_time").value = format
  339. }
  340. function register_start_timeFunc() {
  341. getFormat('00', '00', '00');
  342. document.getElementById("register_start_time").value = format
  343. }
  344. function register_end_timeFunc() {
  345. getFormat('23', '59', '59');
  346. document.getElementById("register_end_time").value = format
  347. }
  348. function update(id) {
  349. var page = layer.open({
  350. type: 2,
  351. title: '{{ __('auto.查看返回值') }}',
  352. shadeClose: true,
  353. shade: 0.8,
  354. area: ['70%', '90%'],
  355. content: '/admin/withdrawal/show/' + id
  356. });
  357. }
  358. function agree() {
  359. var page = layer.open({
  360. type: 2,
  361. title: '{{ __('auto.修改配置') }}',
  362. shadeClose: true,
  363. shade: 0.8,
  364. area: ['70%', '90%'],
  365. content: '/admin/withdrawal/verify'
  366. });
  367. }
  368. function del(id) {
  369. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
  370. myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
  371. layer.msg(res.msg)
  372. setTimeout(function () {
  373. window.location.reload();
  374. }, 1500)
  375. });
  376. });
  377. }
  378. function checkbox() {
  379. var num = document.getElementsByName('checkbox');
  380. for (var i = 0; i < num.length; i++) {
  381. if (num[i].checked) {
  382. num[i].checked = false;
  383. } else {
  384. num[i].checked = true;
  385. }
  386. }
  387. }
  388. function ban(ban) {
  389. //1封号 2解封
  390. var num = document.getElementsByName('checkbox');
  391. var str = '';
  392. for (var i = 0; i < num.length; i++) {
  393. if (num[i].checked) {
  394. str = str + num[i].id + ',';
  395. }
  396. }
  397. if (str == '') {
  398. alert('{{ __('auto.请选择要操作的数据') }}');
  399. return false;
  400. }
  401. var id = str.substr(0, str.length - 1);
  402. return false;
  403. }
  404. function search(value) {
  405. if (localStorage.getItem('search') === '') {
  406. localStorage.setItem('search', value)
  407. } else {
  408. if (localStorage.getItem('search') !== null) {
  409. first_str += localStorage.getItem('search') + ','
  410. }
  411. }
  412. var sub_str = first_str.indexOf(value)
  413. if (sub_str < 0) {
  414. first_str += value + ','
  415. } else {
  416. localStorage.removeItem("search");
  417. first_str = first_str.replace(value + ',', '')
  418. }
  419. search_arr = first_str.split(',')
  420. console.log(first_str)
  421. // return false;
  422. $.ajax({
  423. type: "post",
  424. url: "/admin/global/userlist",
  425. headers: {
  426. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  427. },
  428. data: {search: search_arr},
  429. success: function (msg) {
  430. if (msg) {
  431. $(".main-panel").html(msg)
  432. }
  433. }
  434. })
  435. return false;
  436. }
  437. //写入cookie
  438. function setCookie(name, value) {
  439. var Days = 30;
  440. var exp = new Date();
  441. exp.setTime(exp.getTime() + Days2460601000);
  442. document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
  443. }
  444. //获取cookie
  445. function getCookie(name) {
  446. var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
  447. if (arr = document.cookie.match(reg))
  448. return unescape(arr[2]);
  449. else
  450. return null;
  451. }
  452. </script>
  453. @endsection