list.blade.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @extends('layouts.base')
  2. @section('title','收银台订单')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/order.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="w1200 m0a">
  6. <script type="text/javascript" src="{{static_url('js/dist/jquery.gcjs.js')}}"></script>
  7. <script type="text/javascript" src="{{static_url('js/dist/jquery.form.js')}}"></script>
  8. <script type="text/javascript" src="{{static_url('js/dist/tooltipbox.js')}}"></script>
  9. <div class="rightlist">
  10. <div class="right-titpos">
  11. <ul class="add-snav">
  12. <li class="active"><a href="#">订单管理</a></li>
  13. </ul>
  14. </div>
  15. <div class="panel panel-info">
  16. <div class="panel-body">
  17. @include('Yunshop\Hotel::admin.order.list_tpl.form')
  18. </div>
  19. </div>
  20. <div class="panel panel-default">
  21. @include('Yunshop\Hotel::admin.order.list_tpl.statistics')
  22. @include('Yunshop\Hotel::admin.order.list_tpl.foreach')
  23. @include('order.modals')
  24. <div id="pager">{!! $pager !!}</div>
  25. </div>
  26. </div>
  27. </div>
  28. <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
  29. <script>
  30. function search_members() {
  31. if ($('#search-kwd-notice').val() == '') {
  32. Tip.focus('#search-kwd-notice', '请输入关键词');
  33. return;
  34. }
  35. $("#module-menus-notice").html("正在搜索....");
  36. $.get("{!! yzWebUrl('plugin.hotel.admin.hotel.query') !!}", {
  37. keyword: $.trim($('#search-kwd-notice').val())
  38. }, function (dat) {
  39. $('#module-menus-notice').html(dat);
  40. });
  41. }
  42. function select_member(o) {
  43. $("#noticeopenid").val(o.cashier_id);
  44. $("#saleravatar").show();
  45. $("#saleravatar").find('img').attr('src', o.thumb);
  46. $("#saler").val(o.hotel_name);
  47. $("#modal-module-menus-notice .close").click();
  48. }
  49. function remove_member(obj) {
  50. $(obj).parent().remove();
  51. refresh_members();
  52. }
  53. function refresh_members() {
  54. var nickname = "";
  55. $('.multi-item').each(function () {
  56. nickname += " " + $(this).find('.img-nickname').html() + "; ";
  57. });
  58. $('#salers').val(nickname);
  59. }
  60. $(function () {
  61. $("#ambiguous-field").on('change', function () {
  62. $(this).next('input').attr('placeholder', $(this).find(':selected').text().trim())
  63. });
  64. })
  65. $(function () {
  66. $('#search').click(function(){
  67. $('#route').val("plugin.hotel.admin.order.index");
  68. });
  69. });
  70. $(function () {
  71. $('#export').click(function(){
  72. $('#hotel_id').val({!! \Yunshop\Hotel\admin\OrderController::$export_param !!});
  73. $('#route').val("{{$export_url}}");
  74. });
  75. });
  76. $(function () {
  77. $('#search').click(function(){
  78. $('#route').val("{!! \Yunshop\Hotel\admin\OrderController::INDEX_URL !!}");
  79. });
  80. });
  81. function getStatistic() {
  82. $('#get_statistic').val("正在加载...")
  83. $.ajax({
  84. url: "{!! yzWebUrl('plugin.hotel.admin.order.get-statistics') !!}",
  85. type: "get",
  86. data: {},
  87. success: function (result) {
  88. $('.has_settlement').html(result.data.has_settlement)
  89. $('.no_settlement').html(result.data.no_settlement)
  90. $('.deduct_point').html(result.data.deduct_point)
  91. $('.deduct_love').html(result.data.deduct_love)
  92. $('.deduct_coupon').html(result.data.deduct_coupon)
  93. $('.remard_buyer_point').html(result.data.remard_buyer_point)
  94. $('.remard_buyer_love').html(result.data.remard_buyer_love)
  95. $('.remard_buyer_coupon').html(result.data.remard_buyer_coupon)
  96. $('.remard_hotel_point').html(result.data.remard_hotel_point)
  97. $('.remard_hotel_love').html(result.data.remard_hotel_love)
  98. $("#statistics").show();
  99. $('#get_statistic').val("加载成功...")
  100. }
  101. })
  102. }
  103. </script>
  104. @endsection('content')