item.blade.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!--- item-search --->
  2. @php $modalClassName = $modalClassName ?? ''; @endphp
  3. <div class="modal fade modal-cyan {{ $modalClassName }}" id="modal-item" aria-hidden="true" data-backdrop="static" style="display: none; z-index: 1060;">
  4. <div class="modal-dialog m-auto pt-4" style="max-width: 1280px !important;">
  5. <div class="modal-content">
  6. <div class="modal-header bg-primary">
  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. {{-- 기본 텍스트 --}}
  13. <div class="col-lg-3 col-md-6 col-12">
  14. <div class="d-flex flex-column mb-2" style="height: 50px;">
  15. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['ItemCode'] }}</label>
  16. <input type="text" class="rounded w-100 item-code filter" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['ItemCode'] }}>
  17. </div>
  18. </div>
  19. <div class="col-lg-3 col-md-6 col-12">
  20. <div class="d-flex flex-column mb-2" style="height: 50px;">
  21. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['ItemName'] }}</label>
  22. <input type="text" class="rounded w-100 item-name filter" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['ItemName'] }}>
  23. </div>
  24. <div class="{{ $moealSetFile['FormVars']['Display']['FilterOption'] }} flex-column mb-2">
  25. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['FilterOption'] }}</label>
  26. <div class="row">
  27. <div class="col-5 pr-1">
  28. <select class="rounded w-100" id="filter-name-select" onchange="chagne_item_modal_filter_name_select(this)">
  29. @foreach ($moealSetFile['FilterSelectOptions'] as $key => $popupOption)
  30. <option value="{{ $popupOption['Value'] }}" data-reverse="{{ $popupOption['Reverse'] ?? '' }}">
  31. {{ $popupOption['Caption'] }}
  32. </option>
  33. @endforeach
  34. </select>
  35. </div>
  36. <div class="col pl-0">
  37. <input class="rounded w-100" type="text" id="filter-value-txt" hidden onkeydown="override_enter_pressed_item_modal_auto_search(event)">
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col-lg-3 col-md-6 col-12">
  43. <div class="d-flex flex-column mb-2" style="height: 50px;">
  44. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['SubName'] }}</label>
  45. <input type="text" class="rounded w-100 sub-name filter" autocomplete="off" {{ $moealSetFile['FormVars']['Hidden']['SubName'] }}>
  46. </div>
  47. <div class="{{ $moealSetFile['FormVars']['Display']['SimpleOption'] }} flex-column">
  48. <label class="m-0">{{ $moealSetFile['FormVars']['Title']['SimpleOption'] }}</label>
  49. <select class="rounded w-100" id="simple-filter-select" onchange="$('#modal-item.show').find('.modal-search').trigger('click')">
  50. @foreach ($moealSetFile['SimpleSelectOptions'] as $key => $popupOption)
  51. <option value="{{ $popupOption['Value'] }}">
  52. {{ DataConverter::execute(null, $popupOption['Caption']) ?? $popupOption['Caption'] }}
  53. </option>
  54. @endforeach
  55. </select>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="position-absolute d-flex" style="top: 32px; right: 16px;">
  60. <button type="button" class="btn btn-sm btn-primary icon-search4 modal-search mr-1" style="top: unset; right: unset;" data-target="item" data-class="{{ $modalClassName }}">
  61. </button>
  62. <div class="btn-group">
  63. <button type="button" class="btn btn-sm btn-primary item-search-act save-button" onclick="item_search_multi_select()" data-value="multi-select" {{ $moealSetFile['FormVars']['Hidden']['SelectButton'] }}>
  64. {{ $moealSetFile['FormVars']['Title']['SelectButton'] }}
  65. </button>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="modal-footer">
  70. <div class="col-10 mt-2 mb-2 table-responsive" style="height: 400px;">
  71. <table class="table-row">
  72. <thead id="table-head">
  73. </thead>
  74. <tbody id="table-body">
  75. </tbody>
  76. </table>
  77. </div>
  78. <div class="col-2" style="height: 400px;">
  79. <div class="d-flex flex-column mb-2" style="height: 50px;" {{ $moealSetFile['FormVars']['Hidden']['CurrStockQty'] }}>
  80. <label class="m-0 overflow-hidden text-nowrap">{{ $moealSetFile['FormVars']['Title']['CurrStockQty'] }}</label>
  81. <input type="text" class="rounded w-100 curr-stock-qty text-{{ $moealSetFile['FormVars']['Align']['CurrStockQty'] }}" autocomplete="off" disabled>
  82. </div>
  83. <div class="d-flex flex-column mb-2" style="height: 50px;" {{ $moealSetFile['FormVars']['Hidden']['PurchPrc'] }}>
  84. <label class="m-0 overflow-hidden text-nowrap">{{ $moealSetFile['FormVars']['Title']['PurchPrc'] }}</label>
  85. <div class="d-flex">
  86. <input type="text" class="rounded w-100 radius-r0 purch-prc border-right-0 text-{{ $moealSetFile['FormVars']['Align']['PurchPrc'] }}" autocomplete="off" disabled>
  87. <span class="input-group-text w-100 rounded radius-l0 col-3 p-0 count-unit d-inline-block text-{{ $moealSetFile['FormVars']['Align']['CountUnit'] }} align-middle overflow-hidden text-nowrap"></span>
  88. </div>
  89. </div>
  90. <div class="d-flex flex-column mb-2" style="height: 50px;" {{ $moealSetFile['FormVars']['Hidden']['SalesPrc'] }}>
  91. <label class="m-0 overflow-hidden text-nowrap">{{ $moealSetFile['FormVars']['Title']['SalesPrc'] }}</label>
  92. <div class="d-flex">
  93. <input type="text" class="rounded w-100 radius-r0 sales-prc border-right-0 text-{{ $moealSetFile['FormVars']['Align']['SalesPrc'] }}" autocomplete="off" disabled>
  94. <span class="input-group-text w-100 rounded radius-l0 col-3 p-0 count-unit d-inline-block text-{{ $moealSetFile['FormVars']['Align']['CountUnit'] }} align-middle overflow-hidden text-nowrap"></span>
  95. </div>
  96. </div>
  97. <div class="d-flex flex-column" {{ $moealSetFile['FormVars']['Hidden']['ItemDesc'] }}>
  98. <label class="m-0 overflow-hidden text-nowrap">{{ $moealSetFile['FormVars']['Title']['ItemDesc'] }}</label>
  99. <textarea style="height: 85px" class="rounded w-100 item-desc text-{{ $moealSetFile['FormVars']['Align']['ItemDesc'] }}" disabled></textarea>
  100. </div>
  101. </div>
  102. <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">
  103. <select class="modal-line-select mb-md-0 mb-2 rounded" data-target="item" data-class="{{ $modalClassName }}">
  104. @include('front.outline.moption')
  105. </select>
  106. <div class="d-flex mb-md-0 mb-2 flex-column flex-md-row align-items-stretch align-items-md-center">
  107. <label class="m-0 mr-1 w-20 font-weight-bold" id="oderby-label"></label>
  108. <select class="modal-order-by-select w-100 rounded" data-target="item" data-class="{{ $modalClassName }}">
  109. </select>
  110. </div>
  111. <ul class="pagination pagination-sm"></ul>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. @once
  118. <script src="{{ csset('/js/modals-controller/a-type/item.js') }}"></script>
  119. @endonce