MypageOrderDetailFormWeb.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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="${order.allCanYn == 'Y' and order.ordReqChgQty == 0}" onclick="fnAllCancel();">주문전체취소</a></li>
  51. </div>
  52. <div class="goods_cont">
  53. <!-- 주문상품 -->
  54. <th:block th:if="${order.ordDtlList}" th:each="ordDtl, status : ${order.ordDtlList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
  55. <div class="goods_info">
  56. <div class="order_desc">
  57. <div class="goods_box">
  58. <input type="hidden" name="ordDtlNoArr" th:value="${ordDtl.ordDtlNo}"/>
  59. <input type="hidden" name="cnclRtnReqQtyArr" th:value="${ordDtl.ordQty - ordDtl.cnclRtnQty}"/>
  60. <div class="gd_item">
  61. <a href="javascript:void(0)" th:attr="goodsCd=${ordDtl.goodsCd}" onclick="fnGoToGoodsDetail(this)">
  62. <span class="thumb">
  63. <img th:src="${imageUrl + '/' + ordDtl.sysImgNm}" width="100%" alt="">
  64. </span>
  65. <p>
  66. <span class="brand" th:text="${ordDtl.brandNm}"></span>
  67. <span class="tag primary" th:if="${ordDtl.shotDelvYn == 'Y'}">총알배송</span>
  68. <span class="tag" th:if="${ordDtl.shotDelvYn == 'N' and ordDtl.selfGoodsYn == 'Y'}">STYLE24 일반배송</span>
  69. <span class="tag" th:if="${ordDtl.selfGoodsYn == 'N'}">업체직배송</span>
  70. </p>
  71. <p>
  72. <span class="name" th:text="${ordDtl.goodsNm}"></span>
  73. </p>
  74. </a>
  75. </div>
  76. <div class="gd_opt">
  77. <div class="option_wrap">
  78. <span class="title sr-only">주문 옵션</span>
  79. <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>
  80. <span class="option" th:unless="${ordDtl.goodsType == 'G056_S'}" th:text="|${ordDtl.colorNm} / ${ordDtl.optCd2}|"></span>
  81. </div>
  82. </div>
  83. <div class="gd_calc">
  84. <p>
  85. <span class="count"><em th:text="${ordDtl.ordQty - ordDtl.cnclRtnQty}"></em>개</span>
  86. </p>
  87. <p>
  88. <span class="price_org" th:if="${(ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt) > (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt)}"><em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt, 1, 'COMMA')}"></em>원</span>
  89. <span class="price_sale"><em th:text="${#numbers.formatInteger(ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt, 1, 'COMMA')}"></em>원</span>
  90. </p>
  91. <p>
  92. <span class="point"><em th:text="${#numbers.formatInteger(ordDtl.savePntAmt, 1, 'COMMA')}"></em><stong>P</stong>&nbsp;적립예정</span>
  93. </p>
  94. </div>
  95. </div>
  96. <div class="status_box">
  97. <!-- 선물 -->
  98. <th:block th:if="${order.giftPackYn == 'Y'}">
  99. <p th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">주소 입력 대기중</p>
  100. <p th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">선물 완료</p>
  101. <p th:if="${ordDtl.ordDtlStat == 'G013_98' or ordDtl.ordDtlStat == 'G013_99'}">선물 취소</p>
  102. </th:block>
  103. <!-- 주문 -->
  104. <th:block th:unless="${order.giftPackYn == 'Y'}">
  105. <p th:text="${ordDtl.ordDtlStatNm}"></p>
  106. </th:block>
  107. </div>
  108. <div class="button_box">
  109. <!-- 선물 -->
  110. <th:block th:if="${order.giftPackYn == 'Y'}">
  111. <!-- SMS 재발송 버튼 -->
  112. <th:block th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">
  113. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}" onclick="fnReSendSms(this);"><span>SMS 재발송</span></button></p>
  114. </th:block>
  115. <!-- 주문취소 버튼(입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중) -->
  116. <th:block th:if="${ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_20' or ordDtl.ordDtlStat == 'G013_30' or ordDtl.ordDtlStat == 'G013_35' or ordDtl.ordDtlStat == 'G013_40'}">
  117. <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>
  118. </th:block>
  119. <!-- 리뷰 쓰기 버튼 -->
  120. <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}">
  121. <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>
  122. </th:block>
  123. <!-- 쇼핑백담기 버튼(구매확정) -->
  124. <th:block th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">
  125. <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>
  126. </th:block>
  127. </th:block>
  128. <!-- 주문 -->
  129. <th:block th:unless="${order.giftPackYn == 'Y'}">
  130. <!-- 주문취소 버튼(입금대기, 결제완료, 상품준비중, 출고처지정, 배송준비중) -->
  131. <th:block th:if="${ordDtl.payStat != 'G016_00' && (ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_20' or ordDtl.ordDtlStat == 'G013_30' or ordDtl.ordDtlStat == 'G013_35' or ordDtl.ordDtlStat == 'G013_40')}">
  132. <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>
  133. </th:block>
  134. <!-- 교환/반품 신청 버튼(배송중, 출고완료, 배송완료) -->
  135. <th:block th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55' or ordDtl.ordDtlStat == 'G013_60'}">
  136. <!-- 교환/반품 가능한 상품 -->
  137. <th:block th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'Y'}">
  138. <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>
  139. <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>
  140. </th:block>
  141. <!-- 교환 신청 불가 상품 -->
  142. <th:block th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'Y'}">
  143. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  144. <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>
  145. </th:block>
  146. <!-- 반품 신청 불가 상품 -->
  147. <th:block th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'N'}">
  148. <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>
  149. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  150. </th:block>
  151. <!-- 교환/반품 신청 불가 상품 -->
  152. <th:block th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'N'}">
  153. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  154. </th:block>
  155. </th:block>
  156. <!-- 배송조회 버튼(배송중) -->
  157. <th:block th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55'}">
  158. <p><button type="button" class="btn btn_default btn_sm" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnGoToDelivery(this);"><span>배송 조회</span></button></p>
  159. </th:block>
  160. <!-- 구매확정 버튼(배송완료) -->
  161. <th:block th:if="${ordDtl.ordDtlStat == 'G013_60'}">
  162. <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>
  163. </th:block>
  164. <!-- 리뷰작성 버튼(구매확정) -->
  165. <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}">
  166. <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>
  167. </th:block>
  168. <!-- 쇼핑백담기 버튼(구매확정) -->
  169. <th:block th:if="${ordDtl.ordDtlStat == 'G013_70'}">
  170. <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>
  171. </th:block>
  172. <!-- 1:1문의 버튼(구매확정) -->
  173. <th:block th:if="${ordDtl.ordDtlStat == 'G013_70' and (ordDtl.reviewableYn == 'N' or ordDtl.reviewSq > 0)}">
  174. <p><button type="button" class="btn btn_default btn_sm" onclick="cfnGoToPage(_PAGE_ONETOONE_QNA_REG);"><span>1:1 문의</span></button></p>
  175. </th:block>
  176. </th:block>
  177. </div>
  178. </div>
  179. <!-- 선물 -->
  180. <th:block th:if="${order.giftPackYn == 'Y'}">
  181. <!-- 주소 입력 대기중 -->
  182. <div class="order_text" th:if="${#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.giftLimitDay >= 0}">
  183. <p th:text="|${ordDtl.recipNm}님이 주소를 입력하기 전입니다. (입력기한 ${ordDtl.giftLimitDt})|"></p>
  184. </div>
  185. <!-- 선물 완료 -->
  186. <div class="order_text" th:if="${!#strings.isEmpty(ordDtl.recipBaseAddr) and ordDtl.ordDtlStat != 'G013_98' and ordDtl.ordDtlStat != 'G013_99'}">
  187. <p th:text="|${ordDtl.recipNm}님께 선물이 발송되었습니다.|"></p>
  188. </div>
  189. <!-- 선물 취소 -->
  190. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_98' and ordDtl.ordDtlStat == 'G013_99'}">
  191. <p th:text="|주소 입력 기한이 경과되어 선물이 취소 되었습니다.|"></p>
  192. </div>
  193. </th:block>
  194. <!-- 주문 -->
  195. <th:block th:unless="${order.giftPackYn == 'Y'}">
  196. <!-- 주문 접수 -->
  197. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_10'}">
  198. <p>주문이 완료되어 결제를 기다리고 있습니다.</p>
  199. <!-- 예약 상품 -->
  200. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  201. </div>
  202. <!-- 상품준비중 -->
  203. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_30'}">
  204. <p>배송할 상품을 준비 중입니다.</p>
  205. <!-- 예약 상품 -->
  206. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  207. </div>
  208. <!-- 배송준비중 -->
  209. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_40'}">
  210. <p>상품 준비가 완료되어 곧 배송될 예정입니다.</p>
  211. <!-- 예약 상품 -->
  212. <p th:if="${!#strings.isEmpty(ordDtl.delvResDt)}" th:text="|예약판매 상품으로${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  213. </div>
  214. <!-- 배송중, 배송완료 -->
  215. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_50' or ordDtl.ordDtlStat == 'G013_55' or ordDtl.ordDtlStat == 'G013_60'}">
  216. <p th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'Y'}">해당 상품은 교환이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  217. <p th:if="${ordDtl.changeableYn == 'Y' and ordDtl.returnableYn == 'N'}">해당 상품은 반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  218. <p th:if="${ordDtl.changeableYn == 'N' and ordDtl.returnableYn == 'N'}">해당 상품은 교환/반품이 불가능한 상품입니다. 문의사항은 1:1문의를 이용해주세요.</p>
  219. <p th:if="${ordDtl.ordDtlStat == 'G013_60'}">15일 후 자동으로 구매확정됩니다.</p>
  220. </div>
  221. <!-- 구매확정 -->
  222. <div class="order_text" th:if="${ordDtl.ordDtlStat == 'G013_70' and ordDtl.reviewableYn == 'Y' and ordDtl.reviewSq == null}">
  223. <p>리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</p>
  224. </div>
  225. </th:block>
  226. </div>
  227. </th:block>
  228. <!-- //주문상품 -->
  229. </div>
  230. <div class="goods_foot" th:if="${order.freeGiftList.size() > 0}">
  231. <div class="order_gift">
  232. <span class="title">사은품</span>
  233. <ul>
  234. <li th:each="freeGift, status : ${order.freeGiftList}">
  235. <th:block th:text="${freeGift.goodsNm}"></th:block>
  236. <span th:if="${freeGift.usePoint > 0}" th:text="|(-${#numbers.formatInteger(freeGift.usePoint, 1, 'COMMA')}P)|"></span>
  237. </li>
  238. </ul>
  239. </div>
  240. </div>
  241. </div>
  242. </th:block>
  243. <th:block th:if="${paymentInfo.payMeans == 'G014_20'}">
  244. <h4 class="subH3">무통장 입금 정보</h4>
  245. <div class="tbl type1">
  246. <table>
  247. <colgroup>
  248. <col width="210">
  249. <col width="*">
  250. </colgroup>
  251. <tbody><tr>
  252. <th>
  253. 계좌정보/입금기한
  254. </th>
  255. <td>
  256. <div class="single_line">
  257. <ul>
  258. <li><span th:text="${paymentInfo.vaBank}"></span>&nbsp;<span th:text="|(${paymentInfo.vaNm})|"></span></li>
  259. <li><span th:text="${paymentInfo.vaNo}"></span></li>
  260. <li><span th:text="${paymentInfo.vaDeadlineYmd}"></span>&nbsp;<span th:text="${paymentInfo.vaDeadlineHms}"></span>&nbsp;까지</li>
  261. </ul>
  262. </div>
  263. </td>
  264. </tr>
  265. </tbody></table>
  266. </div>
  267. </th:block>
  268. <!-- 선물 -->
  269. <h4 class="subH3" th:if="${oneData.giftPackYn == 'Y'}">주문자 정보</h4>
  270. <!-- 주문 -->
  271. <h4 class="subH3" th:unless="${oneData.giftPackYn == 'Y'}">주문자/배송지 정보</h4>
  272. <div class="tbl type1">
  273. <table>
  274. <colgroup>
  275. <col width="210">
  276. <col width="*">
  277. </colgroup>
  278. <tbody>
  279. <tr>
  280. <th>
  281. 주문 고객
  282. </th>
  283. <td>
  284. <div class="single_line">
  285. <ul>
  286. <li><span th:text="${orderInfo.ordNm}"></span></li>
  287. <li><span th:text="${orderInfo.ordEmail}"></span></li>
  288. <li><span th:text="${orderInfo.ordPhnno}"></span></li>
  289. </ul>
  290. </div>
  291. </td>
  292. </tr>
  293. <!-- 선물 -->
  294. <tr th:if="${oneData.giftPackYn == 'Y'}">
  295. <th>
  296. 선물 받으실 분
  297. </th>
  298. <td>
  299. <div class="single_line">
  300. <ul>
  301. <li><span th:text="${deliveryAddrInfo.recipNm}"></span></li>
  302. <li><span th:text="${deliveryAddrInfo.recipPhnno}"></span></li>
  303. </ul>
  304. </div>
  305. </td>
  306. </tr>
  307. <tr th:if="${oneData.giftPackYn == 'Y'}">
  308. <th>
  309. 선물 메세지
  310. </th>
  311. <!-- TODO -->
  312. <!-- 선물 메세지 처리 -->
  313. <td></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.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="${paymentInfo.pgCpnAmt > 0}">
  391. <dt>제휴할인</dt>
  392. <dd><em th:text="|- ${#numbers.formatInteger(paymentInfo.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, 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 jsonObj = {};
  484. $(document).ready(function() {
  485. // 마이페이지 LNB 설정
  486. fnSetMypageLnbList(1);
  487. // 마이페이지 location 설정
  488. fnSetMypageLocation('주문확인/배송조회', '_PAGE_MYPAGE_ORDER_LIST', '주문상세');
  489. });
  490. // 전체취소 버튼 클릭 이벤트
  491. var fnAllCancel = function() {
  492. // 환불계좌 체크
  493. let accountNo = $('#orderDetailForm input[name=accountNo]').val();
  494. let accountNm = $('#orderDetailForm input[name=accountNm]').val();
  495. let bankCd = $('#orderDetailForm input[name=bankCd]').val();
  496. if (paymentInfo.payMeans == 'G014_20' && paymentInfo.payStat == 'G016_30' && (gagajf.isNull(accountNo) || gagajf.isNull(accountNm) || gagajf.isNull(bankCd))) {
  497. let data = {};
  498. data.ordNo = oneData.ordNo;
  499. data.accountNm = oneData.accountNm;
  500. let jsonData = JSON.stringify(data);
  501. $.ajax( {
  502. type : "POST",
  503. url : '/mypage/refund/account/register/popup/form',
  504. data : jsonData,
  505. dataType : 'html',
  506. beforeSend : function(xhr, settings) {
  507. xhr.setRequestHeader("AJAX" , "true");
  508. xhr.setRequestHeader('Accept' , 'application/json');
  509. xhr.setRequestHeader('Content-Type' , 'application/json');
  510. },
  511. success : function(result) {
  512. $("#refundPop .modal-dialog .modal-content").html(result);
  513. $("#refundPop").modal("show");
  514. }
  515. });
  516. return false;
  517. }
  518. mcxDialog.confirm('전체취소 처리하시겠습니까?', {
  519. cancelBtnText: "취소",
  520. sureBtnText: "확인",
  521. sureBtnClick: function(){
  522. // 취소요청 데이터 설정
  523. let url = '/mypage/cancel';
  524. // 주문상세번호 설정
  525. let ordDtlNoArr = [];
  526. $.each($('#orderDetailForm input[name=ordDtlNoArr]'), function(idx, item) {
  527. ordDtlNoArr.push($(item).val());
  528. });
  529. // 취소 수량 설정
  530. let cnclRtnReqQtyArr = [];
  531. $.each($('#orderDetailForm input[name=cnclRtnReqQtyArr]'), function(idx, item) {
  532. cnclRtnReqQtyArr.push($(item).val());
  533. });
  534. // 전체 취소 처리
  535. let data = {};
  536. data.ordNo = ordNo;
  537. data.chgReason = 'G686_10';
  538. data.chgReasonNm = '고객변심';
  539. data.accountNo = accountNo;
  540. data.accountNm = accountNm;
  541. data.bankCd = bankCd;
  542. data.isCustomer = 'Y';
  543. data.reqGbn = 'cnclComplete';
  544. data.ordDtlNoArr = ordDtlNoArr;
  545. data.cnclRtnReqQtyArr = cnclRtnReqQtyArr;
  546. let jsonData = JSON.stringify(data);
  547. // 취소 처리 가능 여부 조회
  548. gagajf.ajaxJsonSubmit('/mypage/wms/cancel/available', jsonData, function(result) {
  549. let cancelYn = result.cancelYn;
  550. if (cancelYn == 'Y') {
  551. // 전체취소 처리
  552. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  553. cfnGoToPage(_PAGE_MYPAGE_ORDER_LIST);
  554. }, true);
  555. } else {
  556. mcxDialog.alert('이미 배송처리 되어 전체취소 처리에 실패 하였습니다.');
  557. }
  558. });
  559. }
  560. });
  561. }
  562. // 배송지 정보 설정
  563. var delvAddrSet = function(delvObj) {
  564. let delvAddrSq = deliveryAddrInfo.delvAddrSq;
  565. let recipNm = delvObj.recipNm;
  566. let recipPhnno = delvObj.recipPhnno;
  567. let recipZipcode = delvObj.recipZipcode;
  568. let recipBaseAddr = delvObj.recipBaseAddr;
  569. let recipDtlAddr = delvObj.recipDtlAddr;
  570. let delvMemo = delvObj.delvMemo;
  571. $('#recipNm').text(recipNm);
  572. $('#recipPhnno').text(recipPhnno);
  573. $('#recipAddr').text(recipBaseAddr + ' ' + recipDtlAddr);
  574. $('#delvMemo').text(delvMemo);
  575. let url = '/mypage/change/delvery/addr';
  576. let data = {};
  577. data.delvAddrSq = delvAddrSq;
  578. data.recipNm = recipNm;
  579. data.recipPhnno = recipPhnno;
  580. data.recipZipcode = recipZipcode;
  581. data.recipBaseAddr = recipBaseAddr;
  582. data.recipDtlAddr = recipDtlAddr;
  583. data.delvMemo = delvMemo;
  584. let jsonData = JSON.stringify(data);
  585. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  586. })
  587. }
  588. // 배송메모 설정
  589. var delvMemoSet = function(delvMemoObj) {
  590. let url = '/mypage/change/delvery/memo';
  591. let delvMemo = delvMemoObj.delvMemo;
  592. let data = {};
  593. data.delvMemo = delvMemo;
  594. data.delvAddrSq = oneData.delvAddrSq;
  595. let jsonData = JSON.stringify(data);
  596. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  597. })
  598. $("#delvMemo").text(delvMemo);
  599. }
  600. // 환불계좌 등록 콜백 처리
  601. var fnRegisterAccountCallback = function(result) {
  602. // 환불계좌 정보 설정
  603. $('#orderDetailForm input[name=accountNo]').val(result.accountNo);
  604. $('#orderDetailForm input[name=accountNm]').val(result.accountNm);
  605. $('#orderDetailForm input[name=bankCd]').val(result.bankCd);
  606. // 반품처리
  607. fnAllCancel();
  608. }
  609. // 상품권 현금영수증 신청 처리
  610. var fnRequestCashReceipt = function(param) {
  611. let url = '/mypage/cash/receipts/request';
  612. let ordNo = $(param).attr('ordNo');
  613. let data = {};
  614. data.ordNo = ordNo;
  615. let jsonData = JSON.stringify(data);
  616. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  617. cfnGoToPage(_PAGE_MYPAGE_ORDER_DETAIL + ordNo);
  618. });
  619. }
  620. </script>
  621. </th:block>
  622. </body>
  623. </html>