MypageOrderDetailFormWeb.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org"
  4. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  5. layout:decorator="web/common/layout/MypageLayoutWeb">
  6. <!--
  7. *******************************************************************************
  8. * @source : MypageOrderDetailFormWeb.html
  9. * @desc : 마이페이지 > 주문상세 Page
  10. *============================================================================
  11. * STYLE24
  12. * Copyright(C) 2021 TSIT, All rights reserved.
  13. *============================================================================
  14. * VER DATE AUTHOR DESCRIPTION
  15. * === =========== ========== =============================================
  16. * 1.0 2021.02.16 card007 최초 작성
  17. * 1.1 2021.03.23 card007 퍼블 수정
  18. *******************************************************************************
  19. -->
  20. <body>
  21. <th:block layout:fragment="content">
  22. <div class="content myOrderView">
  23. <div class="cont_body">
  24. <!-- CONT-BODY -->
  25. <div class="lnb">
  26. <div class="lnb_tit">
  27. <h2>마이페이지</h2>
  28. </div>
  29. <div class="lnb_list">
  30. <ul id="mypageLnbList"></ul>
  31. </div>
  32. </div>
  33. <div class="cont">
  34. <form id="orderDetailForm">
  35. <div class="sec_head">
  36. <h3 class="subH1">주문상세</h3>
  37. <span class="order_number">주문번호&nbsp;:&nbsp;<em th:text="${ordNo}"></em></span>
  38. <button type="button" id="btn_order_cancel" class="btn_underline" onclick="fnDeleteOrder()"><span>삭제하기</span></button>
  39. </div>
  40. <div class="sec_body">
  41. <th:block th:if="${orderList}" th:each="order, status : ${orderList}">
  42. <input type="hidden" name="accountNo" th:value="${order.oneData.accountNo}"/>
  43. <input type="hidden" name="accountNm" th:value="${order.oneData.accountNm}"/>
  44. <input type="hidden" name="bankCd" th:value="${order.oneData.bankCd}"/>
  45. <input type="hidden" name="delvMemo" th:value="${deliveryAddrInfo.delvMemo}"/>
  46. <div class="part_goods">
  47. <div class="goods_head">
  48. <p th:unless="${order.giftPackYn == 'Y'}">주문일 <span th:text="${order.ordDt}"></span></p>
  49. <p th:if="${order.giftPackYn == 'Y'}">선물일 <span th:text="${order.ordDt}"></span></p>
  50. <li><a href="javascript:void(0)" th:if="${allCanYn == 'Y' and order.ordReqChgQty == 0}" onclick="fnAllCancel();">주문전체취소</a></li>
  51. <li><a href="javascript:void(0)" th:if="${allDecideYn == 'Y' and order.ordReqChgQty == 0}" th:attr="ordNo=${ordNo}" onclick="fnAllDecideOrder(this);">전체구매확정</a></li>
  52. </div>
  53. <div class="goods_cont">
  54. <!-- 주문상품 -->
  55. <th:block th:if="${order.ordDtlList}" th:each="ordDtl, status : ${order.ordDtlList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
  56. <div class="goods_info">
  57. <div class="order_desc">
  58. <div class="goods_box">
  59. <input type="hidden" name="ordDtlNoArr" th:value="${ordDtl.ordDtlNo}"/>
  60. <input type="hidden" name="cnclRtnReqQtyArr" th:value="${ordDtl.ordQty - ordDtl.cnclRtnQty}"/>
  61. <div class="gd_item">
  62. <a href="javascript:void(0)" th:attr="goodsCd=${ordDtl.goodsCd}" onclick="fnGoToGoodsDetail(this)">
  63. <span class="thumb">
  64. <img th:src="${imageUrl + '/' + ordDtl.sysImgNm}" width="100%" alt="">
  65. </span>
  66. <p>
  67. <span class="brand" th:text="${ordDtl.brandNm}"></span>
  68. <span class="tag primary" th:if="${ordDtl.shotDelvYn == 'Y'}">총알배송</span>
  69. <span class="tag" th:if="${ordDtl.shotDelvYn == 'N' and ordDtl.selfGoodsYn == 'Y'}">STYLE24 일반배송</span>
  70. <span class="tag" th:if="${ordDtl.selfGoodsYn == 'N'}">업체직배송</span>
  71. </p>
  72. <p>
  73. <span class="name" th:text="${ordDtl.goodsNm}"></span>
  74. </p>
  75. </a>
  76. </div>
  77. <div class="gd_opt">
  78. <div class="option_wrap">
  79. <span class="title sr-only">주문 옵션</span>
  80. <span class="option" th:if="${ordDtl.goodsType == 'G056_S'}" th:each="option, status : ${ordDtl.colorNmArr}" th:text="|${ordDtl.itemNmArr[status.index]} / ${option} / ${ordDtl.optCd2Arr[status.index]}|"></span>
  81. <span class="option" th:unless="${ordDtl.goodsType == 'G056_S'}" th:text="|${ordDtl.colorNm} / ${ordDtl.optCd2}|"></span>
  82. </div>
  83. </div>
  84. <div class="gd_calc">
  85. <p>
  86. <span class="count"><em th:text="${ordDtl.ordQty - ordDtl.cnclRtnQty}"></em>개</span>
  87. </p>
  88. <p>
  89. <span class="price_org" th:if="${(ordDtl.ordAmt - ordDtl.cnclRtnAmt) > (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt)}"><em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt, 1, 'COMMA')}"></em>원</span>
  90. <span class="price_sale"><em th:text="${#numbers.formatInteger(ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt, 1, 'COMMA')}"></em>원</span>
  91. </p>
  92. <p>
  93. <span class="point"><em th:text="${#numbers.formatInteger(ordDtl.savePntAmt, 1, 'COMMA')}"></em><stong>P</stong>&nbsp;적립예정</span>
  94. </p>
  95. </div>
  96. </div>
  97. <div class="status_box">
  98. <!-- 선물 -->
  99. <th:block th:if="${order.giftPackYn == 'Y'}">
  100. <p th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">주소 입력 대기중</p>
  101. <p th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">선물 완료</p>
  102. <p th:if="${ordDtl.ordDtlStat == 'G013_98' or ordDtl.ordDtlStat == 'G013_99'}">선물 취소</p>
  103. </th:block>
  104. <!-- 주문 -->
  105. <th:block th:unless="${order.giftPackYn == 'Y'}">
  106. <p th:if="${ordDtl.ordDtlStat == 'G013_10'}">주문접수</p>
  107. <p th:unless="${ordDtl.ordDtlStat == 'G013_10'}" th:text="${ordDtl.ordDtlStatNm}"></p>
  108. </th:block>
  109. </div>
  110. <div class="button_box">
  111. <!-- 선물 -->
  112. <th:block th:if="${order.giftPackYn == 'Y'}">
  113. <!-- SMS 재발송 버튼 -->
  114. <th:block th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">
  115. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}" onclick="fnReSendSms(this);"><span>SMS 재발송</span></button></p>
  116. </th:block>
  117. <!-- 주문취소 버튼(결제완료, 상품준비중, 출고처지정) -->
  118. <th:block th:if="${ordDtl.ordDtlStat == 'G013_20' or ordDtl.ordDtlStat == 'G013_30' or ordDtl.ordDtlStat == 'G013_35'}">
  119. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'cancel');"><span>주문 취소</span></button></p>
  120. </th:block>
  121. <!-- 리뷰 쓰기 버튼 -->
  122. <th:block th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99' and ordDtl.reviewableYn == 'Y' and ordDtl.reviewSq == null}">
  123. <p><button type="button" class="btn btn_primary_line btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, goodsCd=${ordDtl.goodsCd}" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>
  124. </th:block>
  125. <!-- 쇼핑백담기 버튼(구매확정) -->
  126. <th:block th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">
  127. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>
  128. </th:block>
  129. </th:block>
  130. <!-- 주문 -->
  131. <th:block th:unless="${order.giftPackYn == 'Y'}">
  132. <!-- 주문취소 버튼(결제완료, 상품준비중, 출고처지정) -->
  133. <th:block th:if="${ordDtl.ordDtlStat == 'G013_20' or ordDtl.ordDtlStat == 'G013_30' or ordDtl.ordDtlStat == 'G013_35'}">
  134. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'cancel');"><span>주문 취소</span></button></p>
  135. </th:block>
  136. <!-- 교환/반품 신청 버튼(배송중, 출고완료, 배송완료) -->
  137. <th:block th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55' or ordDtl.ordDtlStat == 'G013_60'}">
  138. <!-- 교환/반품 가능한 상품 -->
  139. <th:block th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'Y'}">
  140. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');"><span>교환 신청</span></button></p>
  141. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');"><span>반품 신청</span></button></p>
  142. </th:block>
  143. <!-- 교환 신청 불가 상품 -->
  144. <th:block th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'Y'}">
  145. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  146. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');"><span>반품 신청</span></button></p>
  147. </th:block>
  148. <!-- 반품 신청 불가 상품 -->
  149. <th:block th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'N'}">
  150. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');"><span>교환 신청</span></button></p>
  151. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  152. </th:block>
  153. <!-- 교환/반품 신청 불가 상품 -->
  154. <th:block th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'N'}">
  155. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  156. </th:block>
  157. </th:block>
  158. <!-- 배송조회 버튼(배송중) -->
  159. <th:block th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55'}">
  160. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, shipCompCd=${ordDtl.shipCompCd}, invoiceNo=${ordDtl.invoiceNo}" onclick="fnGoToDelivery(this);"><span>배송 조회</span></button></p>
  161. </th:block>
  162. <!-- 구매확정 버튼(배송완료) -->
  163. <th:block th:if="${ordDtl.ordDtlStat == 'G013_60' and ordDtl.ordReqChgQty == 0}">
  164. <p><button type="button" class="btn btn_primary_line btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnDecideOrder(this);"><span>구매 확정</span></button></p>
  165. </th:block>
  166. <!-- 리뷰작성 버튼(구매확정) -->
  167. <th:block th:if="${(ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55' or ordDtl.ordDtlStat == 'G013_60' or ordDtl.ordDtlStat == 'G013_70') and ordDtl.reviewableYn == 'Y' and ordDtl.reviewSq == null}">
  168. <p><button type="button" class="btn btn_primary_line btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, goodsCd=${ordDtl.goodsCd}" onclick="fnCreateReview(this);"><span>리뷰 쓰기</span></button></p>
  169. </th:block>
  170. <!-- 쇼핑백담기 버튼(입금대기, 배송준비중, 구매확정) -->
  171. <th:block th:if="${ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_40' or ordDtl.ordDtlStat == 'G013_70'}">
  172. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></p>
  173. </th:block>
  174. <!-- 1:1문의 버튼(입금대기, 배송준비중, 구매확정) -->
  175. <th:block th:if="${ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_40' or (ordDtl.ordDtlStat == 'G013_70' and (ordDtl.reviewableYn == 'N' or ordDtl.reviewSq > 0))}">
  176. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  177. </th:block>
  178. </th:block>
  179. </div>
  180. </div>
  181. <!-- 선물 -->
  182. <th:block th:if="${order.giftPackYn == 'Y'}">
  183. <!-- 주소 입력 대기중 -->
  184. <div class="order_text" th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">
  185. <p th:text="|${ordDtl.recipNm}님이 주소를 입력하기 전입니다. (입력기한 ${ordDtl.giftLimitDt})|"></p>
  186. </div>
  187. <!-- 선물 완료 -->
  188. <div class="order_text" th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">
  189. <p th:text="|${ordDtl.recipNm}님께 선물이 발송되었습니다.|"></p>
  190. </div>
  191. <!-- 선물 취소 -->
  192. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_98' and ordDtl.ordDtlStat == 'G013_99'}">
  193. <p th:text="|주소 입력 기한이 경과되어 선물이 취소 되었습니다.|"></p>
  194. </div>
  195. </th:block>
  196. <!-- 주문 -->
  197. <th:block th:unless="${order.giftPackYn == 'Y'}">
  198. <!-- 주문 접수 -->
  199. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_10'}">
  200. <p>주문 완료/결제를 기다리고 있습니다.</p>
  201. <!-- 예약 상품 -->
  202. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  203. </div>
  204. <!-- 상품준비중 -->
  205. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_30'}">
  206. <p>배송할 상품을 준비 중입니다.</p>
  207. <!-- 예약 상품 -->
  208. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  209. </div>
  210. <!-- 배송준비중 -->
  211. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_40'}">
  212. <p>상품 준비가 완료되어 곧 배송될 예정입니다.</p>
  213. <!-- 예약 상품 -->
  214. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  215. </div>
  216. <!-- 배송중, 배송완료 -->
  217. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55' or ordDtl.ordDtlStat == 'G013_60'}">
  218. <p th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'Y'}">해당 상품은 교환이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  219. <p th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'N'}">해당 상품은 반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  220. <p th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'N'}">해당 상품은 교환/반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  221. <p th:if="${ordDtl.ordDtlStat == 'G013_60'}">15일 후 자동으로 구매확정됩니다.</p>
  222. </div>
  223. <!-- 구매확정 -->
  224. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_70' and ordDtl.reviewableYn == 'Y' and ordDtl.reviewSq == null}">
  225. <p>리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</p>
  226. </div>
  227. </th:block>
  228. </div>
  229. </th:block>
  230. <!-- //주문상품 -->
  231. </div>
  232. <div class="goods_foot" th:if="${order.freeGiftList.size() > 0}">
  233. <div class="order_gift">
  234. <span class="title">사은품</span>
  235. <ul>
  236. <li th:each="freeGift, status : ${order.freeGiftList}">
  237. <th:block th:text="${freeGift.goodsNm}"></th:block>
  238. <span th:if="${freeGift.usePoint > 0}" th:text="|(-${#numbers.formatInteger(freeGift.usePoint, 1, 'COMMA')}P)|"></span>
  239. </li>
  240. </ul>
  241. </div>
  242. </div>
  243. </div>
  244. </th:block>
  245. <th:block th:if="${paymentInfo.payMeans == 'G014_20'}">
  246. <h4 class="subH3">무통장 입금 정보</h4>
  247. <div class="tbl type1">
  248. <table>
  249. <colgroup>
  250. <col width="210">
  251. <col width="*">
  252. </colgroup>
  253. <tbody><tr>
  254. <th>
  255. 계좌정보/입금기한
  256. </th>
  257. <td>
  258. <div class="single_line">
  259. <ul>
  260. <li><span th:text="${paymentInfo.vaBank}"></span>&nbsp;<span th:text="|(${paymentInfo.vaNm})|"></span></li>
  261. <li><span th:text="${paymentInfo.vaNo}"></span></li>
  262. <li><span th:text="${paymentInfo.vaDeadlineYmd}"></span>&nbsp;<span th:text="${paymentInfo.vaDeadlineHms}"></span>&nbsp;까지</li>
  263. </ul>
  264. </div>
  265. </td>
  266. </tr>
  267. </tbody></table>
  268. </div>
  269. </th:block>
  270. <!-- 선물 -->
  271. <h4 class="subH3" th:if="${oneData.giftPackYn == 'Y'}">주문자 정보</h4>
  272. <!-- 주문 -->
  273. <h4 class="subH3" th:unless="${oneData.giftPackYn == 'Y'}">주문자/배송지 정보</h4>
  274. <div class="tbl type1">
  275. <table>
  276. <colgroup>
  277. <col width="210">
  278. <col width="*">
  279. </colgroup>
  280. <tbody>
  281. <tr>
  282. <th>
  283. 주문 고객
  284. </th>
  285. <td>
  286. <div class="single_line">
  287. <ul>
  288. <li><span th:text="${orderInfo.ordNm}"></span></li>
  289. <li><span th:text="${orderInfo.ordEmail}"></span></li>
  290. <li><span th:text="${orderInfo.ordPhnno}"></span></li>
  291. </ul>
  292. </div>
  293. </td>
  294. </tr>
  295. <!-- 선물 -->
  296. <tr th:if="${oneData.giftPackYn == 'Y'}">
  297. <th>
  298. 선물 받으실 분
  299. </th>
  300. <td>
  301. <div class="single_line">
  302. <ul>
  303. <li><span th:text="${deliveryAddrInfo.recipNm}"></span></li>
  304. <li><span th:text="${deliveryAddrInfo.recipPhnno}"></span></li>
  305. </ul>
  306. </div>
  307. </td>
  308. </tr>
  309. <tr th:if="${oneData.giftPackYn == 'Y'}">
  310. <th>
  311. 선물 메세지
  312. </th>
  313. <td th:text="${orderInfo.giftMsg}" id="giftMsg"></td>
  314. </tr>
  315. <!-- 주문 -->
  316. <tr th:unless="${oneData.giftPackYn == 'Y'}">
  317. <th>
  318. 배송지 정보
  319. </th>
  320. <td>
  321. <div class="block_line">
  322. <ul>
  323. <li>
  324. <span th:text="${deliveryAddrInfo.recipNm}" id="recipNm"></span>
  325. </li>
  326. <li>
  327. <span th:text="${deliveryAddrInfo.recipPhnno}" id="recipPhnno"></span>
  328. </li>
  329. <li>
  330. <span th:text="|${deliveryAddrInfo.recipBaseAddr} ${deliveryAddrInfo.recipDtlAddr}|" id="recipAddr"></span>
  331. <button type="button" class="btn btn_default btn_sm" th:if="${allCanYn == 'Y'}" onclick="fnChangeDeliveryAddr()"><span>배송지 변경</span></button>
  332. </li>
  333. <li>
  334. 배송요청 사항&nbsp;:&nbsp;<span id="delvMemo" th:text="${deliveryAddrInfo.delvMemo}"></span>
  335. <button type="button" class="btn_underline" th:if="${allCanYn == 'Y'}" onclick="fnChangeDeliveryMemo(this)"><span>변경하기</span></button>
  336. </li>
  337. </ul>
  338. </div>
  339. </td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. </div>
  344. <h4 class="subH3">결제정보</h4>
  345. <div class="tbl type6">
  346. <table>
  347. <colgroup>
  348. <col width="50%">
  349. <col width="50%">
  350. </colgroup>
  351. <tbody><tr>
  352. <td>
  353. <dl>
  354. <div>
  355. <dt>총 주문금액 (상품금액+배송비+추가비용)</dt>
  356. <dd>
  357. <div class="price">
  358. <span class="order_total_price"><em th:text="${#numbers.formatInteger((orderAmtInfo.ordAmt + orderAmtInfo.cpn1DcAmt) - orderAmtInfo.cnclRtnAmt + orderAmtInfo.realDelvAmt, 1, 'COMMA')}"></em>원</span>
  359. </div>
  360. </dd>
  361. </div>
  362. <div class="include_item" th:if="${orderAmtInfo.cpn1DcAmt > 0}"> <!-- 할인항목 표기 class명 include_item -->
  363. <dt>즉시할인</dt>
  364. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.cpn1DcAmt, 1, 'COMMA')}|"></em>원</dd>
  365. </div>
  366. <div class="include_item" th:if="${orderAmtInfo.tmtb1DcAmt + orderAmtInfo.tmtb2DcAmt > 0}">
  367. <dt>다다익선 할인</dt>
  368. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.tmtb1DcAmt + orderAmtInfo.tmtb2DcAmt, 1, 'COMMA')}|"></em>원</dd>
  369. </div>
  370. <div class="include_item" th:if="${orderAmtInfo.cartCpnDcAmt + orderAmtInfo.goodsCpnDcAmt + orderAmtInfo.delvCpnDcAmt > 0}">
  371. <dt>쿠폰할인</dt>
  372. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.cartCpnDcAmt + orderAmtInfo.goodsCpnDcAmt + orderAmtInfo.delvCpnDcAmt, 1, 'COMMA')}|"></em>원</dd>
  373. </div>
  374. <div class="include_item" th:if="${orderAmtInfo.prePntDcAmt > 0}">
  375. <dt>선포인트 할인</dt>
  376. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.prePntDcAmt, 1, 'COMMA')}|"></em>원</dd>
  377. </div>
  378. <div class="include_item" th:if="${orderAmtInfo.pntDcAmt > 0}">
  379. <dt>포인트 사용</dt>
  380. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.pntDcAmt, 1, 'COMMA')}|"></em>원</dd>
  381. </div>
  382. <div class="include_item" th:if="${orderAmtInfo.gfcdUseAmt > 0}">
  383. <dt>상품권 사용</dt>
  384. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.gfcdUseAmt, 1, 'COMMA')}|"></em>원</dd>
  385. </div>
  386. <div class="include_item" th:if="${paymentInfo.npayPntAmt > 0}">
  387. <dt>마일리지 사용</dt>
  388. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.npayPntAmt, 1, 'COMMA')}|"></em>원</dd>
  389. </div>
  390. <div class="include_item" th:if="${orderAmtInfo.pgCpnAmt > 0}">
  391. <dt>제휴할인</dt>
  392. <dd><em th:text="|- ${#numbers.formatInteger(orderAmtInfo.pgCpnAmt, 1, 'COMMA')}|"></em>원</dd>
  393. </div>
  394. </dl>
  395. </td>
  396. <td>
  397. <dl>
  398. <div>
  399. <dt>결제 금액</dt>
  400. <dd>
  401. <div class="price">
  402. <span class="pay_total_price"><em th:text="${#numbers.formatInteger(orderAmtInfo.payAmt - orderAmtInfo.npayPntAmt - orderAmtInfo.pgCpnAmt, 1, 'COMMA')}"></em>원</span>
  403. </div>
  404. </dd>
  405. </div>
  406. <div>
  407. <dt class="sr-only">결제방법</dt>
  408. <!-- TODO -->
  409. <!-- Style24 간편결제 처리 (STYLE24 간편결제 : STYLE24 간편결제명 / 카드사명 / 할부개월(일시불)) -->
  410. <dd th:if="${paymentInfo.pgGb == 'NAVER'}">네이버 페이</dd>
  411. <dd th:if="${paymentInfo.pgGb == 'KAKAO'}">카카오 페이</dd>
  412. <dd th:if="${paymentInfo.pgGb == 'PAYCO'}">PAYCO</dd>
  413. <dd th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_10'}">실시간계좌이체</dd>
  414. <dd th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_20'}">무통장입금</dd>
  415. <dd th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_30'}" th:text="|${paymentInfo.cardNm}/${paymentInfo.cardMips}|"></dd>
  416. <dd th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_60'}">휴대폰결제</dd>
  417. </div>
  418. <div>
  419. <dt class="sr-only">영수증 확인</dt>
  420. <dd>
  421. <button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_30'}" onclick="fnReceipt('card')"><span>신용카드 전표</span></button>
  422. <button type="button" class="btn btn_default btn_sm" th:if="${paymentInfo.pgGb == 'KCP' and not #strings.isEmpty(paymentInfo.cashAuthNo) and (paymentInfo.payMeans == 'G014_10' or paymentInfo.payMeans == 'G014_20')}" onclick="fnReceipt('cash')"><span>현금 영수증</span></button>
  423. <button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and (cashReceiptsInfo == null or #strings.isEmpty(cashReceiptsInfo.authNo))}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
  424. </dd>
  425. </div>
  426. </dl>
  427. <dl>
  428. <div>
  429. <dt>적립 예정 포인트</dt>
  430. <dd>
  431. <span class="save_point"><em th:text="|${#numbers.formatInteger(orderAmtInfo.savePntAmt, 1, 'COMMA')}P|"></em></span>
  432. </dd>
  433. </div>
  434. </dl>
  435. </td>
  436. </tr>
  437. </tbody>
  438. </table>
  439. </div>
  440. <div class="btn_footer_area">
  441. <button type="button" class="btn btn_dark btn_md" onclick="cfnGoToPage(_PAGE_MYPAGE_ORDER_LIST);"><span>확인</span></button>
  442. </div>
  443. </div>
  444. </form>
  445. </div>
  446. <form id="exchangeForm" name="exchangeForm" th:action="@{'/mypage/exchange/form'}" th:method="post">
  447. <input type="hidden" name="ordNo"/>
  448. <input type="hidden" name="ordDtlNo"/>
  449. <input type="hidden" name="delvFeeCd"/>
  450. </form>
  451. <form id="returnForm" name="returnForm" th:action="@{'/mypage/return/form'}" th:method="post">
  452. <input type="hidden" name="ordNo"/>
  453. <input type="hidden" name="ordDtlNo"/>
  454. <input type="hidden" name="delvFeeCd"/>
  455. </form>
  456. <form id="cancelForm" name="cancelForm" th:action="@{'/mypage/cancel/form'}" th:method="post">
  457. <input type="hidden" name="ordNo"/>
  458. <input type="hidden" name="ordDtlNo"/>
  459. <input type="hidden" name="delvFeeCd"/>
  460. </form>
  461. <!-- // CONT-BODY -->
  462. </div>
  463. <!-- 환불계좌 등록 팝업 -->
  464. <div class="modal fade refund_pop" id="refundPop" tabindex="-1" role="dialog" aria-labelledby="refundLabel" aria-hidden="true">
  465. <div class="modal-dialog" role="document">
  466. <div class="modal-content"></div>
  467. </div>
  468. <a href="#close-modal" rel="modal:close" id="refundPop_close" class="close-modal">Close</a>
  469. <a href="#close-modal" rel="modal:close" class="close-modal ">Close</a>
  470. </div>
  471. <!-- //환불계좌 등록 팝업 -->
  472. </div>
  473. <script src="/ux/plugins/gaga/gaga.paging.js"></script>
  474. <script th:inline="javascript">
  475. let ordNo = [[${ordNo}]];
  476. var isLogin = [[${isLogin}]];
  477. let orderList = [[${orderList}]];
  478. let oneData = [[${oneData}]];
  479. let paymentInfo = [[${paymentInfo}]];
  480. let orderAmtInfo = [[${orderAmtInfo}]];
  481. let deliveryAddrInfo = [[${deliveryAddrInfo}]];
  482. let kcpReceiptUrl = [[${@environment.getProperty('pg.kcp.receipt.url')}]];
  483. let giftMsg = [[${orderInfo.giftMsg}]];
  484. let jsonObj = {};
  485. $(document).ready(function() {
  486. // 마이페이지 LNB 설정
  487. fnSetMypageLnbList(1);
  488. // 마이페이지 location 설정
  489. fnSetMypageLocation('주문확인/배송조회', '_PAGE_MYPAGE_ORDER_LIST', '주문상세');
  490. // 선물메시지
  491. if ($("#giftMsg").html() != null) {
  492. $("#giftMsg").html(giftMsg.replaceAll("\n", "</br>"));
  493. }
  494. });
  495. // 전체취소 버튼 클릭 이벤트
  496. var fnAllCancel = function() {
  497. // 환불계좌 체크
  498. let accountNo = $('#orderDetailForm input[name=accountNo]').val();
  499. let accountNm = $('#orderDetailForm input[name=accountNm]').val();
  500. let bankCd = $('#orderDetailForm input[name=bankCd]').val();
  501. if (paymentInfo.payMeans == 'G014_20' && paymentInfo.payStat == 'G016_30' && (gagajf.isNull(accountNo) || gagajf.isNull(accountNm) || gagajf.isNull(bankCd))) {
  502. let data = {};
  503. data.ordNo = oneData.ordNo;
  504. data.accountNm = oneData.accountNm;
  505. let jsonData = JSON.stringify(data);
  506. $.ajax( {
  507. type : "POST",
  508. url : '/mypage/refund/account/register/popup/form',
  509. data : jsonData,
  510. dataType : 'html',
  511. beforeSend : function(xhr, settings) {
  512. xhr.setRequestHeader("AJAX" , "true");
  513. xhr.setRequestHeader('Accept' , 'application/json');
  514. xhr.setRequestHeader('Content-Type' , 'application/json');
  515. },
  516. success : function(result) {
  517. $("#refundPop .modal-dialog .modal-content").html(result);
  518. $("#refundPop").modal("show");
  519. }
  520. });
  521. return false;
  522. }
  523. mcxDialog.confirm('전체취소 처리하시겠습니까?', {
  524. cancelBtnText: "취소",
  525. sureBtnText: "확인",
  526. sureBtnClick: function(){
  527. // 취소요청 데이터 설정
  528. let url = '/mypage/cancel';
  529. // 주문상세번호 설정
  530. let ordDtlNoArr = [];
  531. $.each($('#orderDetailForm input[name=ordDtlNoArr]'), function(idx, item) {
  532. ordDtlNoArr.push($(item).val());
  533. });
  534. // 취소 수량 설정
  535. let cnclRtnReqQtyArr = [];
  536. $.each($('#orderDetailForm input[name=cnclRtnReqQtyArr]'), function(idx, item) {
  537. cnclRtnReqQtyArr.push($(item).val());
  538. });
  539. // 전체 취소 처리
  540. let data = {};
  541. data.ordNo = ordNo;
  542. data.chgReason = 'G686_10';
  543. data.chgReasonNm = '고객변심';
  544. data.accountNo = accountNo;
  545. data.accountNm = accountNm;
  546. data.bankCd = bankCd;
  547. data.isCustomer = 'Y';
  548. data.reqGbn = 'cnclComplete';
  549. data.ordDtlNoArr = ordDtlNoArr;
  550. data.cnclRtnReqQtyArr = cnclRtnReqQtyArr;
  551. let jsonData = JSON.stringify(data);
  552. // 취소 처리 가능 여부 조회
  553. gagajf.ajaxJsonSubmit('/mypage/wms/cancel/available', jsonData, function(result) {
  554. let cancelYn = result.cancelYn;
  555. if (cancelYn == 'Y') {
  556. // 전체취소 처리
  557. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  558. cfnGoToPage(_PAGE_MYPAGE_ORDER_LIST);
  559. }, true);
  560. } else {
  561. mcxDialog.alert('이미 배송처리 되어 전체취소 처리에 실패 하였습니다.');
  562. }
  563. });
  564. }
  565. });
  566. }
  567. // 배송지 정보 설정
  568. var delvAddrSet = function(delvObj) {
  569. let delvAddrSq = deliveryAddrInfo.delvAddrSq;
  570. let recipNm = delvObj.recipNm;
  571. let recipPhnno = delvObj.recipPhnno;
  572. let recipZipcode = delvObj.recipZipcode;
  573. let recipBaseAddr = delvObj.recipBaseAddr;
  574. let recipDtlAddr = delvObj.recipDtlAddr;
  575. let delvMemo = delvObj.delvMemo;
  576. $('#recipNm').text(recipNm);
  577. $('#recipPhnno').text(recipPhnno);
  578. $('#recipAddr').text(recipBaseAddr + ' ' + recipDtlAddr);
  579. $('#delvMemo').text(delvMemo);
  580. let url = '/mypage/change/delvery/addr';
  581. let data = {};
  582. data.delvAddrSq = delvAddrSq;
  583. data.recipNm = recipNm;
  584. data.recipPhnno = recipPhnno;
  585. data.recipZipcode = recipZipcode;
  586. data.recipBaseAddr = recipBaseAddr;
  587. data.recipDtlAddr = recipDtlAddr;
  588. data.delvMemo = delvMemo;
  589. let jsonData = JSON.stringify(data);
  590. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  591. })
  592. }
  593. // 배송메모 설정
  594. var delvMemoSet = function(delvMemoObj) {
  595. let url = '/mypage/change/delvery/memo';
  596. let delvMemo = delvMemoObj.delvMemo;
  597. let data = {};
  598. data.delvMemo = delvMemo;
  599. data.delvAddrSq = oneData.delvAddrSq;
  600. let jsonData = JSON.stringify(data);
  601. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  602. })
  603. $("#delvMemo").text(delvMemo);
  604. }
  605. // 환불계좌 등록 콜백 처리
  606. var fnRegisterAccountCallback = function(result) {
  607. // 환불계좌 정보 설정
  608. $('#orderDetailForm input[name=accountNo]').val(result.accountNo);
  609. $('#orderDetailForm input[name=accountNm]').val(result.accountNm);
  610. $('#orderDetailForm input[name=bankCd]').val(result.bankCd);
  611. // 반품처리
  612. fnAllCancel();
  613. }
  614. // 상품권 현금영수증 신청 처리
  615. var fnRequestCashReceipt = function(param) {
  616. let url = '/mypage/cash/receipts/request';
  617. let ordNo = $(param).attr('ordNo');
  618. let data = {};
  619. data.ordNo = ordNo;
  620. let jsonData = JSON.stringify(data);
  621. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  622. cfnGoToPage(_PAGE_MYPAGE_ORDER_DETAIL + ordNo);
  623. });
  624. }
  625. // 전체구매확정 버튼 클릭 이벤트
  626. var fnAllDecideOrder = function(param) {
  627. let orderDecisionArr = [];
  628. let ordNo = $(param).attr('ordNo');
  629. // 주문상세번호 설정
  630. $.each($('#orderDetailForm input[name=ordDtlNoArr]'), function(idx, item) {
  631. orderDecisionArr.push($(item).val());
  632. });
  633. if (orderDecisionArr.length == 0) {
  634. mcxDialog.alert('구매확정 가능한 상품이 없습니다.');
  635. return false;
  636. }
  637. mcxDialog.confirm('구매확정 후에는 반품/교환이 불가합니다. 구매확정하시겠습니까?', {
  638. cancelBtnText: "취소",
  639. sureBtnText: "확인",
  640. sureBtnClick: function(){
  641. let data = {};
  642. data.ordNo = ordNo;
  643. data.ordDtlNoArr = orderDecisionArr;
  644. var jsonData = JSON.stringify(data);
  645. gagajf.ajaxJsonSubmit('/mypage/order/decision'
  646. , jsonData
  647. , function() {
  648. if (typeof(fnReloadStatusCount) == 'function') {
  649. fnReloadStatusCount();
  650. } else {
  651. cfnGoToPage(_PAGE_MYPAGE_ORDER_DETAIL + ordNo);
  652. }
  653. });
  654. }
  655. });
  656. }
  657. </script>
  658. </th:block>
  659. </body>
  660. </html>