GoodsSettleForm.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : GoodsSettleForm.html
  7. * @desc : 상품정산 Page
  8. *============================================================================
  9. * STYLE24
  10. * Copyright(C) 2020 TSIT, All rights reserved.
  11. *============================================================================
  12. * VER DATE AUTHOR DESCRIPTION
  13. * === =========== ========== =============================================
  14. * 1.0 2020.10.22 gagamel 최초 작성
  15. *******************************************************************************
  16. -->
  17. <div id="main">
  18. <!-- 메인타이틀 영역 -->
  19. <div class="main-title">
  20. </div>
  21. <!-- //메인타이틀 영역 -->
  22. <!-- 메뉴 설명 -->
  23. <div class="infoBox menu-desc">
  24. </div>
  25. <!-- //메뉴 설명 -->
  26. <!-- 검색조건 영역 -->
  27. <div class="panelStyle">
  28. <form id="searchForm" name="searchForm" action="#" th:action="@{'/settle/goods/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
  29. <table class="frmStyle" aria-describedby="검색조건">
  30. <colgroup>
  31. <col style="width:10%;"/>
  32. <col style="width:60%;"/>
  33. <col style="width:10%;"/>
  34. <col/>
  35. </colgroup>
  36. <tr>
  37. <th>출고기간<i class="required" title="필수" aria-hidden="true"></i></th>
  38. <td id="terms">
  39. </td>
  40. <th>유통구분</th>
  41. <td>
  42. <select name="distributionGb">
  43. <option value="">[전체]</option>
  44. <option th:if="${distributionGbList}" th:each="oneData, status : ${distributionGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
  45. </select>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th>공급업체/브랜드</th>
  50. <td colspan="3">
  51. <select name="supplyCompCd">
  52. <option value="">[전체]</option>
  53. <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
  54. </select>
  55. /
  56. <select name="brandCd">
  57. <option value="">[전체]</option>
  58. </select>
  59. </td>
  60. </tr>
  61. </table>
  62. <ul class="panelBar">
  63. <li class="center">
  64. <button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
  65. <button type="button" class="btn btn-gray btn-lg" onclick="$('#searchForm')[0].reset();">초기화</button>
  66. </li>
  67. </ul>
  68. </form>
  69. </div>
  70. <!-- 검색조건 영역 -->
  71. <!-- 리스트 영역 -->
  72. <div class="panelStyle">
  73. <!-- 버튼 배치 영역 -->
  74. <ul class="panelBar">
  75. <li class="right">
  76. <button type="button" class="btn btn-default btn-lg" id="btnExcel">엑셀다운로드</button>
  77. </li>
  78. </ul>
  79. <!-- //버튼 배치 영역 -->
  80. <div id="gridList" style="width: 100%; height: 470px" class="ag-theme-balham"></div>
  81. </div>
  82. <!-- //리스트 영역 -->
  83. </div>
  84. <script th:inline="javascript">
  85. /*<![CDATA[*/
  86. let supplyCompList = gagajf.convertToArray([[${supplyCompList}]]);
  87. let distributionGbList = gagajf.convertToArray([[${distributionGbList}]]);
  88. let columnDefs = [
  89. { headerName: "주문번호", field: "ordNo", width: 100, cellClass: 'text-center' },
  90. {
  91. headerName: "공급업체", field: "supplyCompCd", width: 100, cellClass: 'text-center',
  92. valueGetter: function (params) {
  93. return gagaAgGrid.lookupValue(supplyCompList, params.data.supplyCompCd);
  94. }
  95. },
  96. {
  97. headerName: "유통구분", field: "distributionGb", width: 100, cellClass: 'text-center',
  98. valueGetter: function (params) {
  99. return gagaAgGrid.lookupValue(distributionGbList, params.data.distributionGb);
  100. }
  101. },
  102. { headerName: "정산주기", field: "usacPeriod", width: 100, cellClass: 'text-center' },
  103. { headerName: "주문일시", field: "ordDt", width: 150, cellClass: 'text-center' },
  104. {
  105. headerName: "정산구분", field: "usacGb", width: 100, cellClass: 'text-center'/* ,
  106. valueGetter: function (params) {
  107. return gagaAgGrid.lookupValue(usacGbList, params.data.usacGb);
  108. } */
  109. },
  110. {
  111. headerName: "환입구분", field: "prtnGb", width: 100, cellClass: 'text-center'/* ,
  112. valueGetter: function (params) {
  113. return gagaAgGrid.lookupValue(prtnGbList, params.data.prtnGb);
  114. } */
  115. },
  116. { headerName: "상품코드", field: "goodsCd", width: 120, cellClass: 'text-center' },
  117. { headerName: "상품명", field: "goodsNm", width: 150, cellClass: 'text-center' },
  118. { headerName: "브랜드", field: "brandEnm", width: 100, cellClass: 'text-center' },
  119. { headerName: "담당MD", field: "mdNm", width: 100, cellClass: 'text-center' },
  120. { headerName: "단품코드", field: "itemCd", width: 120, cellClass: 'text-center' },
  121. { headerName: "사이즈", field: "sizeCd", width: 100, cellClass: 'text-center' },
  122. { headerName: "판매가", field: "currPrice", width: 100, cellClass: 'text-right' },
  123. { headerName: "판매수량", field: "sellQty", width: 100, cellClass: 'text-center' },
  124. { headerName: "판매총액", field: "sellAmt", width: 100, cellClass: 'text-right' },
  125. { headerName: "즉시사용쿠폰금액", field: "duseCpnDcAmt", width: 100, cellClass: 'text-right' },
  126. { headerName: "상품쿠폰사용금액", field: "goodsCpnDcAmt", width: 100, cellClass: 'text-right' },
  127. { headerName: "주문서쿠폰사용금액", field: "cartCpnDcAmt", width: 100, cellClass: 'text-right' },
  128. { headerName: "포인트사용금액", field: "pntDcAmt", width: 100, cellClass: 'text-right' },
  129. { headerName: "다다익선할인금액", field: "multiDcAmt", width: 100, cellClass: 'text-right' },
  130. { headerName: "자사쿠폰분담액", field: "selfCpnDcAmt", width: 100, cellClass: 'text-right' },
  131. { headerName: "입점쿠폰분담액", field: "supplyCompCpnDcAmt", width: 100, cellClass: 'text-right' }
  132. ];
  133. let gridOptions = gagaAgGrid.getGridOptions(columnDefs);
  134. // 검색
  135. $('#btnSearch').on('click', function() {
  136. gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptions, '#searchForm');
  137. });
  138. // 엑셀다운로드
  139. $('#btnExcel').on('click', function() {
  140. gagaAgGrid.exportToExcel('상품정산 목록', gridOptions);
  141. });
  142. $(document).ready(function() {
  143. cfnCreateCalendar('#terms', 'startDt', 'endDt', true, '출고');
  144. $('.btnToday').trigger('click');
  145. // Create a agGrid
  146. gagaAgGrid.createGrid('gridList', gridOptions);
  147. });
  148. /*]]>*/
  149. </script>
  150. </html>