waitWithdrawal.blade.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. @extends('base.base')
  2. @section('base')
  3. <style>
  4. </style>
  5. <!-- 内容区域 -->
  6. <div class="main-panel">
  7. <div class="content-wrapper">
  8. <div class="page-header">
  9. <h3 class="page-title">
  10. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  11. <i class="mdi mdi-settings"></i>
  12. </span>
  13. {{ __('auto.茶叶订单审核') }}
  14. </h3>
  15. <nav aria-label="breadcrumb">
  16. <ol class="breadcrumb">
  17. <li class="breadcrumb-item"><a href="#">{{ __('auto.茶叶统计') }}</a></li>
  18. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.茶叶订单审核') }}</li>
  19. </ol>
  20. </nav>
  21. </div>
  22. <div class="row">
  23. <div class="col-lg-12 grid-margin stretch-card">
  24. <div class="card">
  25. <div class="card-body">
  26. <h4 class="card-title">{{ __('auto.茶叶订单审核') }}</h4>
  27. @if ($specialCs)
  28. &nbsp;&nbsp;{{ __('auto.全员可审核新订单状态:') }}{{$normalCsOpen=="open"?__('auto.开启'):__('auto.关闭')}}
  29. <button class="btn btn-gradient-dark btn-sm"
  30. onclick="switchNormalCs()">{{ __('auto.切换') }}
  31. </button>
  32. @endif
  33. <form class="well form-inline margin-top-20" method="get"
  34. action='{{$api_url}}'>
  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="Channel" value="" style="color: black">
  68. <option value="">{{ __('auto.请选择') }}</option>
  69. @foreach($allChannel as $key=>$val)
  70. <option value="{{$val}}"
  71. @if($val == $Channel) selected @endif>{{$val}}</option>
  72. @endforeach
  73. </select>
  74. <spen style="padding-left: 10px">{{ __('auto.当前状态筛选:') }}</spen>
  75. <select class="form-control" name="state" value="" style="color: black">
  76. <option value="100" @if ($state == 100)
  77. selected
  78. @endif>{{ __('auto.全部') }}
  79. </option>
  80. <option value="2" @if ($state == 2)
  81. selected
  82. @endif>{{ __('auto.已完成') }}
  83. </option>
  84. <option value="-1" @if ($state == -1)
  85. selected
  86. @endif>{{ __('auto.已拒绝') }}
  87. </option>
  88. <option value="1" @if ($state == 1)
  89. selected
  90. @endif>{{ __('auto.审核中') }}
  91. </option>
  92. <option value="5" @if ($state == 5)
  93. selected
  94. @endif>{{ __('auto.处理中') }}
  95. <option value="6" @if ($state == 6)
  96. selected
  97. @endif>{{ __('auto.第三方订单失败') }}
  98. </option>
  99. <option value="7" @if ($state == 7)
  100. selected
  101. @endif>{{ __('auto.三方账单清算中') }}
  102. <option value="4" @if ($state == 4)
  103. selected
  104. @endif>{{ __('auto.系统回收') }}
  105. </select><br>
  106. <spen style="padding-left: 10px">{{ __('auto.咖啡搜索:') }}</spen>
  107. <select class="form-control" name="payState" value="" style="color: black">
  108. <option value="">{{ __('auto.请选择') }}</option>
  109. <option value="1"
  110. @if(1 == $payState) selected @endif>{{ __('auto.已咖啡') }}
  111. </option>
  112. <option value="2"
  113. @if(2 == $payState) selected @endif>{{ __('auto.未咖啡') }}
  114. </select>
  115. <spen style="padding-left: 10px">{{ __('auto.申请茶叶时间选择:') }}</spen>
  116. <input type="datetime-local" step="01" name="start_time" id="start_time"
  117. class="form-control" value="{{$start_time}}" onclick="start_times()"/>
  118. <input type="datetime-local" step="01" name="end_time" id='end_time'
  119. class="form-control" value="{{$end_time}}" onclick="end_times()"/>
  120. <spen style="padding-left: 10px">{{ __('auto.订单完成时间选择:') }}</spen>
  121. <input type="datetime-local" step="01" name="final_start_time" id="final_start_time"
  122. class="form-control" value="{{$final_start_time}}"
  123. onclick="final_start_times()"/>
  124. <input type="datetime-local" step="01" name="final_end_time" id='final_end_time'
  125. class="form-control" value="{{$final_end_time}}"
  126. onclick="final_end_times()"/>
  127. <spen style="padding-left: 10px">{{ __('auto.包名搜索:') }}</spen>
  128. <select class="form-control" name="PackgeName" value="" style="color: black">
  129. <option value="">{{ __('auto.请选择') }}</option>
  130. @foreach($ChannelPackageName as $val)
  131. <option value="{{$val}}" @if ($PackgeName == $val)
  132. selected
  133. @endif>{{$val}}</option>
  134. @endforeach
  135. </select>
  136. <a href="{{$api_url}}"
  137. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  138. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  139. <a href="{{$api_url}}?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}}"
  140. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  141. </div>
  142. </form>
  143. <table class="table table-bordered" style="table-layout: fixed">
  144. <thead>
  145. <tr>
  146. <th width="10%">{{ __('auto.单号') }}</th>
  147. <th width="10%">{{ __('auto.玩家') }}id</th>
  148. <th width=6%">{{ __('auto.渠道') }}</th>
  149. <th width="10%">{{ __('auto.提款名字') }}</th>
  150. <th width="15%">{{ __('auto.邮箱') }}</th>
  151. <th width="10%">CPF/MAC</th>
  152. <th width="10%">{{ __('auto.电话') }}</th>
  153. {{-- <th width="10%">{{ __('auto.银行卡') }}/clabe</th>--}}
  154. <th width="6%">IP</th>
  155. <th width="10%">
  156. <span id="create_time">{{ __('auto.提交时间') }}</span>
  157. <svg t="1611284352657" class="icon2" onclick="create_times(this,'asc')"
  158. viewBox="0 0 1024 1024" version="1.1"
  159. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  160. <path
  161. d="M541.866667 285.866667l345.6 345.6c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866667 12.8H168.533333c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-10.666667 4.266667-21.333333 12.8-29.866666l343.466666-345.6c17.066667-17.066667 42.666667-17.066667 59.733334 0z"
  162. p-id="4119" fill="#707072">
  163. </path>
  164. </svg>
  165. <svg t="1611283709864" class="icon1" onclick="create_times(this,'desc')"
  166. viewBox="0 0 1024 1024" version="1.1"
  167. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  168. <path
  169. d="M482.133333 738.133333L136.533333 392.533333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 8.533333-8.533333 19.2-12.8 29.866667-12.8h689.066667c23.466667 0 42.666667 19.2 42.666666 42.666667 0 10.666667-4.266667 21.333333-12.8 29.866666L541.866667 738.133333c-17.066667 17.066667-42.666667 17.066667-59.733334 0z"
  170. p-id="3149" fill="#707071">
  171. </path>
  172. </svg>
  173. </th>
  174. <th width="9%">{{ __('auto.茶叶申请额度') }}</th>
  175. <th width="9%">{{ __('auto.实际到账金额') }}</th>
  176. <th width="9%">{{ __('auto.扣除手续费用') }}</th>
  177. <th width="10%">{{ __('auto.审核状态') }}</th>
  178. <th width="10%">{{ __('auto.风险提示') }}</th>
  179. <th width="10%">{{ __('auto.风险评估') }}</th>
  180. <th width="5%">{{ __('auto.备注') }}</th>
  181. <th width="10%">{{ __('auto.审核操作') }}</th>
  182. </tr>
  183. </thead>
  184. <tbody class="search_checkbox">
  185. {{-- <h4>--}}
  186. {{-- {{ __('auto.申请金额:') }}--}}
  187. {{-- {{$applyUserCount->userCount ?? 0}} {{ __('auto.人') }} {{$applyUserCount->count ?? 0}}--}}
  188. {{-- {{ __('auto.笔') }}&nbsp;&nbsp;{{ __('auto.总计:') }}{{$applyUserCount->WithDraw ?? 0}} &nbsp;&nbsp;--}}
  189. {{-- {{ __('auto.实际到账:') }}--}}
  190. {{-- {{$overUserCount->userCount ?? 0}} {{ __('auto.人') }}&nbsp;&nbsp;--}}
  191. {{-- {{$overUserCount->count ?? 0}} {{ __('auto.笔') }}&nbsp;&nbsp;--}}
  192. {{-- {{$overUserCount->WithDraw ?? 0}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--}}
  193. {{-- </h4>--}}
  194. @foreach($list as $k=>$item)
  195. <tr>
  196. <td>{{$item->OrderId}}</td>
  197. <td>
  198. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  199. {{$item->GameID}}
  200. </a>
  201. </td>
  202. <td>{{$item->Channel}}</td>
  203. <td>
  204. @if ($item->PixType < 10)
  205. {{$item->BankUserName}}<span style="color: red">{{$item->sameNameNum>1?"[".$item->sameNameNum."]":""}}</span>
  206. @else
  207. {{ $item->AccountsBank }}
  208. @endif
  209. </td>
  210. <td>
  211. @if ($item->PixType < 10)
  212. {{$item->EmailAddress}}<span style="color: red">{{$item->sameEmailNum>1?"[".$item->sameEmailNum."]":""}}</span>
  213. @else
  214. {{ $item->AdhaarNumber }}
  215. @endif
  216. </td>
  217. <td>
  218. <span style="color: red">{{$item->sameCpfCount>1?"[".$item->sameCpfCount."]":""}}</span>
  219. /
  220. <span style="color: red">{{$item->sameMac>1?"[".$item->sameMac."]":""}}</span>
  221. </td>
  222. <td>
  223. @if ($item->PixType < 10)
  224. {{$item->PhoneNumber}}
  225. @else
  226. {{ $item->IFSCNumber }}
  227. @endif
  228. </td>
  229. <td>
  230. <span style="color: red">{{$item->sameIP>1?"[".$item->sameIP."]":""}}</span>
  231. </td>
  232. <td>{{date('Y-m-d H:i:s',strtotime($item->CreateDate))}}</td>
  233. <td>{{$item->actual_arrival}}</td>
  234. <td>{{$item->WithDraw}}</td>
  235. <td>{{$item->ServiceFee}}</td>
  236. <td>
  237. {!! $item->States !!}
  238. </td>
  239. <td>
  240. @if ($item->gear == '低')
  241. <span style="color: green">{{__('auto.低')}}</span>
  242. @elseif($item->gear == '普通')
  243. {{__('auto.普通')}}
  244. @elseif($item->gear == '较高')
  245. <span style="color: red">{{__('auto.较高')}}</span>
  246. @elseif($item->gear == '高')
  247. <span style="color: red">{{__('auto.高')}}</span>
  248. @endif
  249. <br>
  250. {{$item->assessment}}
  251. </td>
  252. <td>
  253. <button class="btn btn-gradient-dark btn-sm"
  254. onclick="show('{{$item->gear}}',{{$item->UserID}})">{{ __('auto.查看') }}
  255. </button>
  256. </td>
  257. <td contentEditable="true"
  258. onblur="remarks(this,{{$item->RecordID}})"
  259. style="vertical-align: top">{{$item->remarks}}</td>
  260. <td>
  261. {{-- @if (empty(hidden()) || hidden() == 'general_administrator' || hidden() == 'customer_service1' || hidden() == 'customer_service2')--}}
  262. @if ($item->State == 1)
  263. <button type="button"
  264. class="btn btn-sm btn-gradient-success btn-icon-text"
  265. onclick="update({{$item->RecordID}},'agree')">
  266. {{ __('auto.通过') }}
  267. <i class="mdi mdi-file-check btn-icon-append"></i>
  268. </button>
  269. <button type="button"
  270. class="btn btn-sm btn-gradient-dark btn-icon-text"
  271. onclick="update({{$item->RecordID}},'turn_down')">
  272. {{ __('auto.拒绝') }}
  273. <i class="mdi mdi-file-check btn-icon-append"></i>
  274. </button>
  275. <button type="button" class="btn btn-sm btn-dribbble btn-icon-text"
  276. onclick="update({{$item->RecordID}},'refuse')">
  277. {{ __('auto.清退') }}
  278. <i class="mdi mdi-file-check btn-icon-append"></i>
  279. </button>
  280. <button type="button"
  281. class="btn btn-sm btn-gradient-dark btn-icon-text"
  282. onclick="recovery({{$item->RecordID}},'recovery')">
  283. {{ __('auto.回收') }}
  284. <i class="mdi mdi-file-check btn-icon-append"></i>
  285. </button>
  286. @if ($item->locking == 1)
  287. <button type="button"
  288. class="btn btn-sm btn-facebook btn-icon-text"
  289. onclick="locking({{$item->RecordID}})">
  290. {{ __('auto.解锁') }}
  291. <i class="mdi mdi-file-check btn-icon-append"></i>
  292. </button>
  293. @else
  294. <button type="button"
  295. class="btn btn-sm btn-google btn-icon-text"
  296. onclick="locking({{$item->RecordID}})">
  297. {{ __('auto.锁定') }}
  298. <i class="mdi mdi-file-check btn-icon-append"></i>
  299. </button>
  300. @endif
  301. @endif
  302. {{-- @endif--}}
  303. </td>
  304. </tr>
  305. @endforeach
  306. </tbody>
  307. </table>
  308. <div class="box-footer clearfix" id="pages">
  309. {{ __('auto.总共') }} <b>{{ $list->appends([
  310. 'list'=>$list,
  311. 'GameID'=>$GameID,
  312. 'withdraw_search'=>$withdraw_search,
  313. 'withdraw'=>$withdraw,
  314. 'state'=>$state,
  315. 'payState' => $payState,
  316. 'start_time'=>$start_time,
  317. 'end_time'=>$end_time,
  318. 'payState' => $payState,
  319. 'final_start_time' => $final_start_time,
  320. 'final_end_time' => $final_end_time,
  321. 'agent' =>$agent,
  322. 'Channel' => $Channel
  323. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  324. {!! $list->links() !!}
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. <script>
  333. function start_times() {
  334. getFormat('00', '00', '00');
  335. document.getElementById("start_time").value = format
  336. }
  337. function end_times() {
  338. getFormat('23', '59', '59');
  339. document.getElementById("end_time").value = format
  340. }
  341. function final_start_times() {
  342. getFormat('00', '00', '00');
  343. document.getElementById("final_start_time").value = format
  344. }
  345. function final_end_times() {
  346. getFormat('23', '59', '59');
  347. document.getElementById("final_end_time").value = format
  348. }
  349. function recovery(id) {
  350. myConfirm("{{ __('auto.是否继续') }}?", function () {
  351. myRequest("/admin/withdrawal/recovery/" + id, "post", {}, function (res) {
  352. layer.msg(res.msg)
  353. setTimeout(function () {
  354. window.location.reload();
  355. }, 2000)
  356. });
  357. });
  358. }
  359. function switchNormalCs() {
  360. let opstatus='{{$normalCsOpen=="open"?"close":"open"}}';
  361. myConfirm("{{ __('auto.是否继续') }}?", function () {
  362. myRequest("/admin/withdrawal/switchCs" , "post", {normalCsOpen:opstatus}, function (res) {
  363. layer.msg(res.msg)
  364. setTimeout(function () {
  365. window.location.reload();
  366. }, 2000)
  367. });
  368. });
  369. }
  370. function locking(id) {
  371. myConfirm("{{ __('auto.是否继续') }}?", function () {
  372. myRequest("/admin/withdrawal/locking/" + id, "post", {}, function (res) {
  373. layer.msg(res.msg)
  374. setTimeout(function () {
  375. window.location.reload();
  376. }, 2000)
  377. });
  378. });
  379. }
  380. // 提交时间排序
  381. var create_time = '{{$create_time ?? ''}}'
  382. if (create_time !== '') {
  383. document.getElementById("create_time").style.color = "blue";
  384. if (create_time == 'asc') {
  385. $(".create_time svg:eq(0)").children('path').attr('fill', 'red');
  386. } else {
  387. $(".create_time svg:eq(1)").children('path').attr('fill', 'red');
  388. }
  389. }
  390. function remarks(obj, RecordID) {
  391. remark = $(obj).html();
  392. myRequest("/admin/withdrawal/remarks/" + RecordID, "post", {remark}, function (res) {
  393. layer.msg(res.msg)
  394. setTimeout(function () {
  395. window.location.reload();
  396. }, 1500)
  397. });
  398. }
  399. // 提交时间排序
  400. function create_times(obj, val) {
  401. document.getElementById("create_time").style.color = "blue";
  402. if (val == 'asc') {
  403. $(obj).children('path').attr('fill', 'red')
  404. $(".create_time svg:eq(1)").children('path').attr('fill', '#707071');
  405. } else {
  406. $(obj).children('path').attr('fill', 'red')
  407. $(".create_time svg:eq(0)").children('path').attr('fill', '#707071');
  408. }
  409. $.ajax({
  410. type: "get",
  411. url: "{{$api_url}}",
  412. headers: {
  413. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  414. },
  415. data: {create_time_sort: val},
  416. success: function (msg) {
  417. if (msg) {
  418. $(".main-panel").html(msg)
  419. }
  420. }
  421. })
  422. }
  423. function show(gear, UserID) {
  424. var page = layer.open({
  425. type: 2,
  426. title: '{{ __('auto.风险评估等级') }}',
  427. shadeClose: true,
  428. shade: 0.8,
  429. area: ['80%', '98%'],
  430. content: '/admin/withdrawal/risk_assessment/' + UserID + '?gear=' + gear
  431. });
  432. }
  433. function update(id, type) {
  434. if (id === 0) {
  435. var num = document.getElementsByName('checkbox');
  436. var str = '';
  437. for (var i = 0; i < num.length; i++) {
  438. if (num[i].checked) {
  439. str = str + num[i].id + ',';
  440. }
  441. }
  442. if (str == '') {
  443. alert('{{ __('auto.请选择要操作的数据') }}');
  444. return false;
  445. }
  446. id = str.substr(0, str.length - 1);
  447. }
  448. var page = layer.open({
  449. type: 2,
  450. title: '{{ __('auto.修改配置') }}',
  451. shadeClose: true,
  452. shade: 0.8,
  453. area: ['70%', '90%'],
  454. content: '/admin/withdrawal/verify?ids=' + id + '&type=' + type
  455. });
  456. }
  457. function refuse() {
  458. var page = layer.open({
  459. type: 2,
  460. title: '{{ __('auto.修改配置') }}',
  461. shadeClose: true,
  462. shade: 0.8,
  463. area: ['70%', '90%'],
  464. content: '/admin/withdrawal/verify'
  465. });
  466. }
  467. function checkbox() {
  468. var num = document.getElementsByName('checkbox');
  469. for (var i = 0; i < num.length; i++) {
  470. if (num[i].checked) {
  471. num[i].checked = false;
  472. } else {
  473. num[i].checked = true;
  474. }
  475. }
  476. }
  477. </script>
  478. @endsection