AriesCount.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. @extends('base.base')
  2. @section('base')
  3. <style>
  4. .form-inline .form-group {
  5. margin-bottom: 10px;
  6. }
  7. </style>
  8. <!-- 内容区域 -->
  9. <div class="main-panel">
  10. <div class="content-wrapper">
  11. <div class="page-header">
  12. <h3 class="page-title">
  13. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  14. <i class="mdi mdi-settings"></i>
  15. </span>
  16. 阿瑞结算
  17. </h3>
  18. <nav aria-label="breadcrumb">
  19. <ol class="breadcrumb">
  20. <li class="breadcrumb-item"><a href="#">阿瑞结算</a></li>
  21. <li class="breadcrumb-item active" aria-current="page">阿瑞结算</li>
  22. </ol>
  23. </nav>
  24. </div>
  25. <div class="row">
  26. <div class="col-lg-12 grid-margin stretch-card">
  27. <div class="card">
  28. <div class="card-body">
  29. <h4 class="card-title">阿瑞结算</h4>
  30. {{-- <form class="well form-group margin-top-20" method="get" action='/admin/recharge/list'>--}}
  31. <form class="well form-inline margin-top-20" method="get">
  32. <div>
  33. <div class="form-group">
  34. <span style="padding-left: 10px">选择日期(当地):</span>
  35. <input type="date" step="01" name="start_time" class="form-control" id="start_time"
  36. value="{{$start_time}}" onclick="start_times('start_time')"/>&nbsp;&nbsp;
  37. <input type="date" step="01" name="end_time" class="form-control" id="end_time"
  38. value="{{$end_time}}" onclick="end_times('end_time')"/>&nbsp;&nbsp;
  39. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="搜索"/>&nbsp;&nbsp;
  40. </div>
  41. </div>
  42. </form>
  43. <table class="table table-bordered" id="tables">
  44. <thead>
  45. <tr>
  46. <th >货号</th>
  47. <th >牌子</th>
  48. <th >酱油</th>
  49. <th >打包</th>
  50. <th >去包装</th>
  51. <th >水量</th>
  52. <th >水杂</th>
  53. <th >净重</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. @foreach($res as $k=>$v)
  58. <tr >
  59. <td>{{ $v->Channel }}</td>
  60. <td>{{ $v->Remarks }}</td>
  61. <td>{{ $v->amount }}</td>
  62. <td>{{ $v->payment_fee }}</td>
  63. <td>{{ $v->amountReal }}</td>
  64. <td>{{ $v->WithDraw }}</td>
  65. <td>{{ $v->withdraw_fee }}</td>
  66. <td>{{$v->NetAmount}}</td>
  67. </tr>
  68. @endforeach
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script>
  78. var params = {
  79. 'start_time' : '{{$start_time}}',
  80. 'end_time':'{{$end_time}}',
  81. }
  82. function start_times(id) {
  83. // getFormat('00', '00', '00');
  84. // document.getElementById(id).value = format
  85. }
  86. function end_times(id) {
  87. // getFormat('00', '00', '00');
  88. // document.getElementById(id).value = format
  89. }
  90. function create_start_times() {
  91. getFormat('00', '00', '00');
  92. document.getElementById("create_start_time").value = format
  93. }
  94. function create_end_times() {
  95. getFormat('00', '00', '00');
  96. document.getElementById("create_end_time").value = format
  97. }
  98. function register_start_timeFunc(){
  99. getFormat('00', '00', '00');
  100. document.getElementById("register_start_time").value = format
  101. }
  102. function register_end_timeFunc(){
  103. getFormat('23', '59', '59');
  104. document.getElementById("register_end_time").value = format
  105. }
  106. function sort_money_func(obj, val) {
  107. if (val == 'asc') {
  108. $(".sort_money svg:eq(1)").children('path').attr('fill', '#707071');
  109. $(obj).children('path').attr('fill', 'red')
  110. } else {
  111. $(obj).children('path').attr('fill', 'red')
  112. $(".sort_money svg:eq(0)").children('path').attr('fill', '#707071');
  113. }
  114. params.amountSort = val
  115. $.ajax({
  116. type: "get",
  117. url: "/admin/recharge/list",
  118. headers: {
  119. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  120. },
  121. data: params,
  122. success: function (msg) {
  123. if (msg) {
  124. $(".main-panel").html(msg)
  125. }
  126. }
  127. })
  128. }
  129. $(function () {
  130. cutStr(50);
  131. });
  132. </script>
  133. @endsection