slip.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!--- slip-search --->
  2. @php $modalClassName = $modalClassName ?? ''; @endphp
  3. <div class="modal fade modal-brown {{ $modalClassName }}" id="modal-slip" aria-hidden="true" data-backdrop="static" style="display: none; z-index: 1060;">
  4. <div class="modal-dialog m-auto pt-4" style="max-width: 1250px !important;">
  5. <div class="modal-content">
  6. <div class="modal-header bg-primary"><!--p-2-->
  7. <h4 class="modal-title text-white" id="myModalLabel"></h4>
  8. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fas fa-times"></i></button>
  9. </div>
  10. <div class="modal-body">
  11. <div class="row p-0 mt-2 m-auto">
  12. <div class="col-lg-4 col-md-6 col-12">
  13. <div class="{{ $moealSetFile['FormVars']['Display']['DateNavi'] }} flex-column mb-2" style="height: 50px;">
  14. <div>
  15. <button class="btn-light btn-light-100 mr-1 px-1 py-0 rounded text-grey btn-xxs line-height-1" id="slip-date-navi-prev-btn"
  16. onclick="calc_slip_date_rang('#{{ $modalClassName }}slip-date-navi-div', $('input:radio[name={{ $modalClassName }}date-navi]:checked').val(), -1)">
  17. <i class="fas fa-angle-left"></i>
  18. </button>
  19. <button class="btn-light btn-light-100 rounded text-grey btn-xxs line-height-2"
  20. onclick="first_slip_date_rang('#{{ $modalClassName }}slip-date-navi-div', false)">
  21. {{ $moealSetFile['FormVars']['Title']['DateNavi'] }}
  22. </button>
  23. <button class="btn-light btn-light-100 ml-1 px-1 py-0 rounded text-grey btn-xxs line-height-1" id="slip-date-navi-next-btn"
  24. onclick="calc_slip_date_rang('#{{ $modalClassName }}slip-date-navi-div', $('input:radio[name={{ $modalClassName }}date-navi]:checked').val(), 1)">
  25. <i class="fas fa-angle-right"></i>
  26. </button>
  27. </div>
  28. <div class="d-flex align-items-center" style="height: 28px;" id="{{ $modalClassName }}slip-date-navi-div">
  29. @foreach ($moealSetFile['DateNaviOptions'] ?? [] as $key => $option)
  30. <input autocomplete="off" name="{{ $modalClassName }}date-navi" type="radio" class="slip-date-navi"
  31. value="{{ $option['Value'] }}" id="{{ $modalClassName.'date-navi-'.($key+1) }}">
  32. <label for="{{ $modalClassName.'date-navi-'.($key+1) }}" class="w-100 rounded overflow-hidden mr-0 text-nowrap">{{ $option['Caption'] }}
  33. </label>
  34. @endforeach
  35. </div>
  36. </div>
  37. <div class="{{ $moealSetFile['FormVars']['Display']['DateRange'] }} flex-column mb-2" style="height: 50px;">
  38. <label class="m-0 ">{{ $moealSetFile['FormVars']['Title']['DateRange'] }}</label>
  39. <div class="d-flex align-items-center" style="height: 28px;" id="slip-date-rang-div">
  40. @foreach ($moealSetFile['DateRangeOptions'] ?? [] as $key => $option)
  41. <input autocomplete="off" name="{{ $modalClassName }}date-range" type="radio" class="slip-date-range"
  42. value="{{ $option['Value'] }}" id="{{ $modalClassName.'date-range-'.($key+1) }}"
  43. {{ $option['Value'] == 'day' ? 'checked' : ''}}>
  44. <label for="{{ $modalClassName.'date-range-'.($key+1) }}" class="w-100 rounded overflow-hidden mr-0 text-nowrap">{{ $option['Caption'] }}
  45. </label>
  46. @endforeach
  47. </div>
  48. </div>
  49. <div class="{{ $moealSetFile['FormVars']['Display']['Date'] }} flex-column mb-2" style="height: 50px;">
  50. <label class="m-0 ">{{ $moealSetFile['FormVars']['Title']['Date'] }}</label>
  51. <div class="d-flex">
  52. {{-- <input class="rounded overflow-hidden w-100 text-nowrap start-date" type="date" value="1990-01-01">--}}
  53. {{-- <button class="btn disabled p-1 text-center">~</button>--}}
  54. {{-- <input class="rounded overflow-hidden w-100 text-nowrap end-date" type="date" value="3000-12-31">--}}
  55. <input class="rounded overflow-hidden w-100 text-nowrap start-date" type="date" value="">
  56. <button class="btn p-1 text-center" onclick="click_slip_equal_btn()">=</button>
  57. <input class="rounded overflow-hidden w-100 text-nowrap end-date" type="date" value="">
  58. </div>
  59. </div>
  60. <div class="{{ $moealSetFile['FormVars']['Display']['QuerySpeed'] }} flex-column mb-2" style="height: 50px;">
  61. <label class="m-0 ">{{ $moealSetFile['FormVars']['Title']['QuerySpeed'] }}</label>
  62. <div class="d-flex align-items-center" style="height: 28px;">
  63. @foreach($moealSetFile['QuerySpeedOptions'] as $index => $option)
  64. <input name="{{ $modalClassName }}query-speed" type="radio" value="{{ $option['Value'] }}" id="{{ $modalClassName.'query-speed-'.$index }}"
  65. checked onchange="change_slip_query_speed()">
  66. <label class="w-100 rounded overflow-hidden mr-0 text-nowrap" for="{{ $modalClassName.'query-speed-'.$index }}">{{ $option['Caption'] }}</label>
  67. @endforeach
  68. </div>
  69. </div>
  70. </div>
  71. <div class="col-lg-4 col-md-6 col-12">
  72. <div class="{{ $moealSetFile['FormVars']['Display']['SlipNo'] }} flex-column mb-2" style="height: 50px;">
  73. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['SlipNo'] }}</label>
  74. <input type="text" class="rounded w-100 slip-no filter" autocomplete="off">
  75. </div>
  76. <div class="{{ $moealSetFile['FormVars']['Display']['CompanyName'] }} flex-column mb-2" style="height: 50px;">
  77. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['CompanyName'] }}</label>
  78. <input type="text" class="rounded w-100 company-name filter" autocomplete="off">
  79. </div>
  80. <div class="{{ $moealSetFile['FormVars']['Display']['ItemCode'] }} flex-column mb-2" style="height: 50px;">
  81. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['ItemCode'] }}</label>
  82. <input type="text" class="rounded w-100 item-code filter" autocomplete="off">
  83. </div>
  84. <div class="{{ $moealSetFile['FormVars']['Display']['FilterOption'] }} flex-column mb-2">
  85. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['FilterOption'] }}</label>
  86. <div class="row">
  87. <div class="col-5 pr-1">
  88. <select class="rounded w-100" id="filter-name-select" onchange="chagne_slip_modal_filter_name_select(this)">
  89. @foreach ($moealSetFile['FilterSelectOptions'] ?? [] as $key => $popupOption)
  90. <option value="{{ $popupOption['Value'] }}" data-reverse="{{ $popupOption['Reverse'] ?? '' }}">
  91. {{ $popupOption['Caption'] }}
  92. </option>
  93. @endforeach
  94. </select>
  95. </div>
  96. <div class="col pl-0">
  97. <input class="rounded w-100" type="text" id="filter-value-txt" hidden onkeydown="override_enter_pressed_slip_modal_auto_search(event)">
  98. </div>
  99. </div>
  100. </div>
  101. <div class="{{ $moealSetFile['FormVars']['Display']['SimpleOption'] }} flex-column">
  102. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['SimpleOption'] }}</label>
  103. <select class="rounded w-100" id="simple-filter-select" onchange="$('#modal-slip.show').find('.modal-search').trigger('click')">
  104. @foreach ($moealSetFile['SimpleSelectOptions'] ?? [] as $key => $popupOption)
  105. <option value="{{ $popupOption['Value'] }}">
  106. {{ DataConverter::execute(null, $popupOption['Caption']) ?? $popupOption['Caption'] }}
  107. </option>
  108. @endforeach
  109. </select>
  110. </div>
  111. </div>
  112. </div>
  113. <button type="button" class="btn btn-dark btn-sm modal-search position-absolute slip-save-spinner-btn" disabled>
  114. <span class="save-spinner spinner-border spinner-border-sm text-center" role="status" aria-hidden="true"></span>
  115. Loading...
  116. </button>
  117. <button type="button" class="btn btn-dark btn-sm icon-search4 modal-search position-absolute slip-search-btn" data-target="slip" data-class="{{ $modalClassName }}"></button>
  118. </div>
  119. <div class="modal-footer">
  120. <div class="col-12 mt-2 mb-2 table-responsive" style="height: 400px;">
  121. <table class="table-row">
  122. <thead id="table-head">
  123. </thead>
  124. <tbody id="table-body">
  125. </tbody>
  126. </table>
  127. </div>
  128. <div class="px-md-0 px-1 w-100 d-flex justify-content-around align-items-stretch align-items-md-center flex-column flex-md-row btn_wrap">
  129. <select class="modal-line-select mb-md-0 mb-2 rounded" data-target="slip" data-class="{{ $modalClassName }}">
  130. @include('front.outline.moption')
  131. </select>
  132. <div class="d-flex mb-md-0 mb-2 flex-column flex-md-row align-items-stretch align-items-md-center">
  133. <label class="m-0 mr-1 w-20 " id="oderby-label"></label>
  134. <select class="modal-order-by-select w-100 rounded" data-target="slip" data-class="{{ $modalClassName }}">
  135. </select>
  136. </div>
  137. <ul class="pagination pagination-sm"></ul>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. @once
  144. <script src="{{ csset('/js/modals-controller/b-type/slip.js') }}"></script>
  145. @endonce