verify_finish.blade.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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. @if($item->State == 5 || ($item->State == 6 && $item->WithDraw<40))
  250. <br>
  251. @if(session('admin')->roles[0]->id==1)
  252. <a class="layer-switch"
  253. data-remind="{{ __('auto.你确定要重制茶叶状态么?') }}"
  254. href="/admin/withdrawal/init_data/{{$item->RecordID}}">
  255. StateTo1
  256. </a>
  257. @endif
  258. @endif
  259. </td>
  260. <td>
  261. @if ($item->wn_state == 0 && $item->wn_state == 1)
  262. {{ __('auto.等待中') }}
  263. @elseif($item->wn_state == 1)
  264. {{ __('auto.已到账') }}
  265. @elseif($item->wn_state == -1 || $item->wn_state == -1)
  266. <span style="color: red">{{ __('auto.未到账') }}</span>
  267. @endif
  268. </td>
  269. <td>
  270. @if (empty($item->account) && !empty($item->take_effect))
  271. {{ __('auto.自动免审') }}
  272. @elseif(!empty($item->account))
  273. {{$item->account}}
  274. @else
  275. {{$item->State != 1 ? __('auto.自动免审') : ''}}
  276. @endif
  277. </td>
  278. <td>{{$item->name}}</td>
  279. <td>{{$item->update_at}}</td>
  280. <td>{{$item->update_at
  281. ? date('Y-m-d H:i:s', strtotime($item->update_at . ' + 11 hour'))
  282. : ''}}</td>
  283. <td>{{$item->remarks}}</td>
  284. <td>{{$item->remark}}</td>
  285. {{-- <td>--}}
  286. {{-- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"--}}
  287. {{-- onclick="update('{{$item->OrderId}}')">--}}
  288. {{-- {{ __('auto.查看') }}--}}
  289. {{-- <i class="mdi mdi-file-check btn-icon-append"></i>--}}
  290. {{-- </button>--}}
  291. {{-- </td>--}}
  292. </tr>
  293. @endforeach
  294. </tbody>
  295. </table>
  296. <div class="box-footer clearfix" id="pages">
  297. {{ __('auto.总共') }} <b>{{ $list->appends([
  298. 'list'=>$list,
  299. 'GameID'=>$GameID,
  300. 'withdraw_search'=>$withdraw_search,
  301. 'withdraw'=>$withdraw,
  302. 'state'=>$state,
  303. 'start_time'=>$start_time,
  304. 'end_time'=>$end_time,
  305. 'payState' => $payState,
  306. 'final_start_time' => $final_start_time,
  307. 'final_end_time' => $final_end_time,
  308. 'register_start_time' => $register_start_time,
  309. 'register_end_time' => $register_end_time,
  310. 'PackgeName' =>$PackgeName,
  311. 'ChannelPackageName' =>$ChannelPackageName,
  312. 'agent' =>$agent,
  313. 'Channel' => $Channel,
  314. 'take_effect' => $take_effect,
  315. 'isEmpty' => $isEmpty
  316. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  317. {!! $list->links() !!}
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. <script>
  326. function start_times() {
  327. getFormat('00', '00', '00');
  328. document.getElementById("start_time").value = format
  329. }
  330. function end_times() {
  331. getFormat('23', '59', '59');
  332. document.getElementById("end_time").value = format
  333. }
  334. function final_start_times() {
  335. getFormat('00', '00', '00');
  336. document.getElementById("final_start_time").value = format
  337. }
  338. function final_end_times() {
  339. getFormat('23', '59', '59');
  340. document.getElementById("final_end_time").value = format
  341. }
  342. function register_start_timeFunc() {
  343. getFormat('00', '00', '00');
  344. document.getElementById("register_start_time").value = format
  345. }
  346. function register_end_timeFunc() {
  347. getFormat('23', '59', '59');
  348. document.getElementById("register_end_time").value = format
  349. }
  350. function update(id) {
  351. var page = layer.open({
  352. type: 2,
  353. title: '{{ __('auto.查看返回值') }}',
  354. shadeClose: true,
  355. shade: 0.8,
  356. area: ['70%', '90%'],
  357. content: '/admin/withdrawal/show/' + id
  358. });
  359. }
  360. function agree() {
  361. var page = layer.open({
  362. type: 2,
  363. title: '{{ __('auto.修改配置') }}',
  364. shadeClose: true,
  365. shade: 0.8,
  366. area: ['70%', '90%'],
  367. content: '/admin/withdrawal/verify'
  368. });
  369. }
  370. function del(id) {
  371. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?", function () {
  372. myRequest("/admin/accusation/del/" + id, "post", {}, function (res) {
  373. layer.msg(res.msg)
  374. setTimeout(function () {
  375. window.location.reload();
  376. }, 1500)
  377. });
  378. });
  379. }
  380. function checkbox() {
  381. var num = document.getElementsByName('checkbox');
  382. for (var i = 0; i < num.length; i++) {
  383. if (num[i].checked) {
  384. num[i].checked = false;
  385. } else {
  386. num[i].checked = true;
  387. }
  388. }
  389. }
  390. function ban(ban) {
  391. //1封号 2解封
  392. var num = document.getElementsByName('checkbox');
  393. var str = '';
  394. for (var i = 0; i < num.length; i++) {
  395. if (num[i].checked) {
  396. str = str + num[i].id + ',';
  397. }
  398. }
  399. if (str == '') {
  400. alert('{{ __('auto.请选择要操作的数据') }}');
  401. return false;
  402. }
  403. var id = str.substr(0, str.length - 1);
  404. return false;
  405. }
  406. function search(value) {
  407. if (localStorage.getItem('search') === '') {
  408. localStorage.setItem('search', value)
  409. } else {
  410. if (localStorage.getItem('search') !== null) {
  411. first_str += localStorage.getItem('search') + ','
  412. }
  413. }
  414. var sub_str = first_str.indexOf(value)
  415. if (sub_str < 0) {
  416. first_str += value + ','
  417. } else {
  418. localStorage.removeItem("search");
  419. first_str = first_str.replace(value + ',', '')
  420. }
  421. search_arr = first_str.split(',')
  422. console.log(first_str)
  423. // return false;
  424. $.ajax({
  425. type: "post",
  426. url: "/admin/global/userlist",
  427. headers: {
  428. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  429. },
  430. data: {search: search_arr},
  431. success: function (msg) {
  432. if (msg) {
  433. $(".main-panel").html(msg)
  434. }
  435. }
  436. })
  437. return false;
  438. }
  439. //写入cookie
  440. function setCookie(name, value) {
  441. var Days = 30;
  442. var exp = new Date();
  443. exp.setTime(exp.getTime() + Days2460601000);
  444. document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
  445. }
  446. //获取cookie
  447. function getCookie(name) {
  448. var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
  449. if (arr = document.cookie.match(reg))
  450. return unescape(arr[2]);
  451. else
  452. return null;
  453. }
  454. </script>
  455. @endsection