NoMemberOrderDetailFormMob.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <!DOCTYPE html>
  2. <html lang="ko" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorator="mob/common/layout/NoMemberLayoutMob">
  3. <!--
  4. *******************************************************************************
  5. * @source : NoMemberOrderDetailFormMob.html
  6. * @desc : 비회원 > 주문상세 Page
  7. *============================================================================
  8. * STYLE24
  9. * Copyright(C) 2021 TSIT, All rights reserved.
  10. *============================================================================
  11. * VER DATE AUTHOR DESCRIPTION
  12. * === =========== ========== =============================================
  13. * 1.0 2021.05.16 card007 최초 작성
  14. *******************************************************************************
  15. -->
  16. <body>
  17. <th:block layout:fragment="content">
  18. <main role="" id="mypageOrderDetailForm" class="container my">
  19. <section class="content my_order">
  20. <div class="inner wide bg_beige">
  21. <div class="order_number">
  22. <dl class="clear">
  23. <dt>주문번호</dt>
  24. <dd th:text="${ordNo}"></dd>
  25. </dl>
  26. <a href="javascript:void(0);" class="delete" onclick="fnDeleteOrder('noMember')">주문 내역 삭제</a>
  27. </div>
  28. </div>
  29. <div class="inner">
  30. <th:block th:if="${orderList}" th:each="order, status : ${orderList}">
  31. <div class="part_goods">
  32. <div class="goods_top">
  33. <div class="goods_date">주문일<span class="date" th:text="${order.ordDt}"></span></div>
  34. <th:block th:if="${order.allCanYn == 'Y' and order.ordReqChgQty == 0}">
  35. <!-- 2021.09.01 card007 AS-IS Data 취소처리 못하게 처리 -->
  36. <!-- 2021.09.13 card007 AS-IS Data 취소처리 -->
  37. <!-- <th:block th:if="${#numbers.formatInteger(#strings.replace(order.ordDt, '.', ''), 1)} >= 20210901">-->
  38. <a href="javascript:void(0);" id="btn_all_delete" class="delete_btn" onclick="fnAllCancel();">주문 전체 취소</a> <!-- 210409_추가 : btn_all_delete id 추가 -->
  39. <!-- </th:block>-->
  40. </th:block>
  41. <th:block th:if="${allDecideYn == 'Y' and order.ordReqChgQty == 0}">
  42. <a href="javascript:void(0)" id="btn_all_confirm" class="purchase_btn" th:attr="ordNo=${ordNo}" onclick="fnAllDecideOrder(this);">전체구매확정</a></li>
  43. </th:block>
  44. <!--<a href="javascript:;" id="btn_all_confirm" class="purchase_btn">전체 구매 확정</a> 전체 구매확정 버튼. --> <!-- 210409_추가 : btn_all_confirm id 추가 -->
  45. </div>
  46. <th:block th:if="${order.ordDtlList}" th:each="ordDtl, status : ${order.ordDtlList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
  47. <div class="goods_section">
  48. <div class="goods_status">
  49. <th:block th:unless="${order.giftPackYn == 'Y'}">
  50. <p class="dlvr_staus" th:if="${ordDtl.ordDtlStat == 'G013_10'}">주문접수</p>
  51. <p class="dlvr_staus" th:if="${ordDtl.ordDtlStat == 'G013_35'}">상품준비중</p>
  52. <p class="dlvr_staus" th:unless="${ordDtl.ordDtlStat == 'G013_10' or ordDtl.ordDtlStat == 'G013_35'}" th:text="${ordDtl.ordDtlStatNm}"></p>
  53. </th:block>
  54. </div>
  55. <div class="goods_detail">
  56. <input type="hidden" name="ordDtlNoArr" th:value="${ordDtl.ordDtlNo}"/>
  57. <input type="hidden" name="cnclRtnReqQtyArr" th:value="${ordDtl.ordQty - ordDtl.cnclRtnQty}"/>
  58. <a href="javascript:void(0)" th:attr="goodsCd=${ordDtl.goodsCd}, optCd1=${ordDtl.goodsType == 'G056_N' ? ordDtl.optCd1 : ''}, ithrCd='IN20_02'" onclick="fnGoToGoodsDetail(this)">
  59. <div class="thumb_box">
  60. <img th:src="${imageUrl + '/' + ordDtl.sysImgNm + '?RS=90'}" width="100%" alt="">
  61. </div>
  62. <div class="info_box">
  63. <div class="od_name">
  64. <div class="brand">
  65. <span th:text="${ordDtl.brandNm}"></span>
  66. <div class="badge_wrap">
  67. <em class="order_badge order_bullet_badge" th:if="${ordDtl.shotDelvYn == 'Y'}">총알배송</em>
  68. <em class="order_badge" th:if="${ordDtl.shotDelvYn == 'N' and ordDtl.selfGoodsYn == 'Y'}">STYLE24 일반배송</em>
  69. <em class="order_badge" th:if="${ordDtl.selfGoodsYn == 'N'}">업체직배송</em>
  70. </div>
  71. </div>
  72. <div class="name" th:text="${ordDtl.goodsNm}"></div>
  73. </div>
  74. <div class="od_opt">
  75. <!-- 세트상품 -->
  76. <th:block th:if="${ordDtl.goodsType == 'G056_S'}">
  77. <th:block th:each="option, status : ${ordDtl.colorNmArr}">
  78. <div class="option">
  79. <em th:text="${option}"></em>
  80. <em th:text="${ordDtl.optCd2Arr[status.index]}"></em>
  81. </div>
  82. </th:block>
  83. </th:block>
  84. <!-- //세트상품 -->
  85. <!-- 일반상품 -->
  86. <th:block th:unless="${ordDtl.goodsType == 'G056_S'}">
  87. <th:block th:each="option, status : ${ordDtl.colorNmArr}">
  88. <div class="option">
  89. <em th:text="${ordDtl.colorNm}"></em>
  90. <em th:text="${ordDtl.optCd2}"></em>
  91. </div>
  92. </th:block>
  93. </th:block>
  94. <!-- //일반상품 -->
  95. </div>
  96. <div class="od_calc">
  97. <p class="sale_price" th:if="${(ordDtl.ordAmt - ordDtl.cnclRtnAmt) > (ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt)}">
  98. <del>
  99. <em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt, 1, 'COMMA')}"></em>원
  100. </del>
  101. </p>
  102. <p class="price">
  103. <span class="selling_price">
  104. <em th:text="${#numbers.formatInteger(ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt, 1, 'COMMA')}"></em>원
  105. </span>
  106. <span class="count">
  107. <em th:text="${ordDtl.ordQty - ordDtl.cnclRtnQty}"></em>개
  108. </span>
  109. </p>
  110. </div>
  111. </div>
  112. </a>
  113. </div>
  114. <!-- 주문상태별 버튼기능 정의 -->
  115. <!-- 일반주문 -->
  116. <th:block th:unless="${ordDtl.giftPackYn} == 'Y'">
  117. <!-- 입금대기 (1:1문의, 쇼핑백 담기) -->
  118. <th:block th:if="${ordDtl.ordDtlStat == 'G013_10'}">
  119. <div class="goods_btn_wrap btn_group_flex">
  120. <div><button type="button" class="btn btn_default btn_cart_save" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>
  121. </div>
  122. </th:block>
  123. <!-- //입금대기 (1:1문의, 쇼핑백 담기) -->
  124. <!-- 결제완료, 상품준비중, 출고처지정 (주문취소) -->
  125. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_20' or ${ordDtl.ordDtlStat} == 'G013_30' or ${ordDtl.ordDtlStat} == 'G013_35'">
  126. <th:block th:if="${ordDtl.ordExchGb == 'O'}">
  127. <!-- 2021.09.01 card007 AS-IS Data 취소처리 못하게 처리 -->
  128. <!-- 2021.09.13 card007 AS-IS Data 취소처리 -->
  129. <!-- <th:block th:if="${#numbers.formatInteger(#strings.replace(ordDtl.ordDt, '.', ''), 1)} >= 20210901">-->
  130. <div class="goods_btn_wrap btn_group_flex">
  131. <div><button type="button" class="btn btn_default btn_cncl_complete" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, delvFeeCd=${ordDtl.delvFeeCd}, ordCanChgQty=${ordDtl.ordCanChgQty}" onclick="fnCreateChange(this, 'cancel', 'noMember');"><span>주문 취소</span></button></div>
  132. </div>
  133. <!-- </th:block>-->
  134. </th:block>
  135. <th:block th:unless="${ordDtl.ordExchGb == 'O'}">
  136. <div class="goods_btn_wrap btn_group_flex">
  137. <div>
  138. <button type="button" class="btn btn_default btn_cart_save" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);">
  139. <span>쇼핑백 담기</span>
  140. </button>
  141. </div>
  142. </div>
  143. </th:block>
  144. </th:block>
  145. <!-- //결제완료, 상품준비중, 출고처지정 (주문취소) -->
  146. <!-- 배송준비중-->
  147. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_40'">
  148. <div class="goods_btn_wrap btn_group_flex">
  149. <div>
  150. <button type="button" class="btn btn_default btn_cart_save" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);">
  151. <span>쇼핑백 담기</span>
  152. </button>
  153. </div>
  154. </div>
  155. </th:block>
  156. <!-- //배송준비중-->
  157. <!-- 배송중 (교환가능, 반품가능) -->
  158. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55'">
  159. <div class="goods_btn_wrap btn_group_flex btn_count">
  160. <!-- 교환불가 -->
  161. <th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
  162. </th:block>
  163. <!-- //교환불가 -->
  164. <!-- 교환가능 -->
  165. <th:block th:if="${ordDtl.changeableYn} == 'Y'">
  166. <div>
  167. <button type="button" class="btn btn_default btn_exch_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');">
  168. <span>교환 신청</span>
  169. </button>
  170. </div>
  171. </th:block>
  172. <!-- //교환가능 -->
  173. <!-- 반품가능 -->
  174. <th:block th:if="${ordDtl.returnableYn} == 'Y'">
  175. <div>
  176. <button type="button" class="btn btn_default btn_rtn_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');">
  177. <span>반품 신청</span>
  178. </button>
  179. </div>
  180. </th:block>
  181. <!-- 반품가능 -->
  182. <!-- 반품불가 -->
  183. <th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
  184. </th:block>
  185. <!-- //반품불가 -->
  186. <!-- 교환불가, 반품불가 -->
  187. <th:block th:if="${ordDtl.returnableYn} == 'N' and ${ordDtl.changeableYn} == 'N'">
  188. </th:block>
  189. <!-- //교환불가, 반품불가 -->
  190. <div><button type="button" class="btn btn_default btn_delv_sch" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}, shipCompCd=${ordDtl.shipCompCd}, invoiceNo=${ordDtl.invoiceNo}" onclick="fnGoToDelivery(this, 'noMember');"><span>배송 조회</span></button></div>
  191. </div>
  192. </th:block>
  193. <!-- //배송중 (교환가능, 반품가능) -->
  194. <!-- 배송완료 (교환가능, 반품가능) -->
  195. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_60'">
  196. <div class="goods_btn_wrap btn_group_flex btn_count">
  197. <!-- 교환불가 -->
  198. <th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
  199. </th:block>
  200. <!-- //교환불가 -->
  201. <!-- 교환가능 -->
  202. <th:block th:if="${ordDtl.changeableYn} == 'Y'">
  203. <div>
  204. <button type="button" class="btn btn_default btn_exch_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'exchange');">
  205. <span>교환 신청</span>
  206. </button>
  207. </div>
  208. </th:block>
  209. <!-- //교환가능 -->
  210. <!-- 반품가능 -->
  211. <th:block th:if="${ordDtl.returnableYn} == 'Y'">
  212. <div>
  213. <button type="button" class="btn btn_default btn_rtn_req" th:ordNo="${ordDtl.ordNo}" th:ordDtlNo="${ordDtl.ordDtlNo}" th:ordCanChgQty="${ordDtl.ordCanChgQty}" th:delvFeeCd="${ordDtl.delvFeeCd}" onclick="fnCreateChange(this, 'return');">
  214. <span>반품 신청</span>
  215. </button>
  216. </div>
  217. </th:block>
  218. <!-- //반품가능 -->
  219. <!-- 반품불가 -->
  220. <th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
  221. </th:block>
  222. <!-- //반품불가 -->
  223. <!-- 교환불가, 반품불가 -->
  224. <th:block th:if="${ordDtl.returnableYn} == 'N' and ${ordDtl.changeableYn} == 'N'">
  225. </th:block>
  226. <!-- //교환불가, 반품불가 -->
  227. </div>
  228. </th:block>
  229. <!-- //배송완료 (교환가능, 반품가능) -->
  230. <!-- 구매확정 -->
  231. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_70'">
  232. <div class="goods_btn_wrap btn_group_flex">
  233. <div><button type="button" class="btn btn_default btn_cart_save" th:attr="ordNo=${ordDtl.ordNo}, ordDtlNo=${ordDtl.ordDtlNo}" onclick="fnCreateCart(this);"><span>쇼핑백 담기</span></button></div>
  234. </div>
  235. </th:block>
  236. <!-- //구매확정 -->
  237. </th:block>
  238. <!-- //일반주문 -->
  239. <!-- //주문상태별 버튼기능 정의 -->
  240. <!-- 주문상태별 문구정보 정의 -->
  241. <th:block th:unless="${ordDtl.giftPackYn} == 'Y'">
  242. <div class="goods_alert">
  243. <!-- 배송중, 배송완료 상태 교환, 반품 가능 상태 체크 -->
  244. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_50' or ${ordDtl.ordDtlStat} == 'G013_55' or ${ordDtl.ordDtlStat} == 'G013_60'">
  245. <!-- 교환불가능, 반품불가능 -->
  246. <th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'N'">
  247. <p class="cf_txt cf_desc">해당 상품은 교환/반품이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
  248. </th:block>
  249. <!-- //교환불가능, 반품불가능 -->
  250. <!-- 교환불가능 -->
  251. <th:block th:if="${ordDtl.changeableYn} == 'N' and ${ordDtl.returnableYn} == 'Y'">
  252. <p class="cf_txt cf_desc">해당 상품은 교환이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
  253. </th:block>
  254. <!-- //교환불가능 -->
  255. <!-- 반품불가능 -->
  256. <th:block th:if="${ordDtl.changeableYn} == 'Y' and ${ordDtl.returnableYn} == 'N'">
  257. <p class="cf_txt cf_desc">해당 상품은 반품이 불가능한 상품입니다.<br>문의사항은 1:1 문의를 이용해 주세요.</p>
  258. </th:block>
  259. <!-- //반품불가능 -->
  260. </th:block>
  261. <!-- //배송중, 배송완료 상태 -->
  262. </div>
  263. <!-- 주문접수 -->
  264. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_10'">
  265. <div class="goods_txt">
  266. <p class="cf_txt cf_desc">주문 완료 / 결제를 기다리고 있습니다.</p>
  267. <th:block th:if="${ordDtl.delvResDt} != null">
  268. <p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  269. </th:block>
  270. </div>
  271. </th:block>
  272. <!-- //주문접수 -->
  273. <!-- 결제완료, 예약배송상품 -->
  274. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_20'">
  275. <th:block th:if="${ordDtl.delvResDt} != null">
  276. <div class="goods_txt">
  277. <p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  278. </div>
  279. </th:block>
  280. </th:block>
  281. <!-- //결제완료, 예약배송상품 -->
  282. <!-- 상품준비중 -->
  283. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_30' or ${ordDtl.ordDtlStat} == 'G013_35'">
  284. <div class="goods_txt">
  285. <p class="cf_txt cf_desc">배송할 상품을 준비 중입니다.</p>
  286. <th:block th:if="${ordDtl.delvResDt} != null">
  287. <p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  288. </th:block>
  289. </div>
  290. </th:block>
  291. <!-- //상품준비중 -->
  292. <!-- 배송준비중 -->
  293. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_40'">
  294. <div class="goods_txt">
  295. <p class="cf_txt cf_desc">상품 준비가 완료되어 곧 배송될 예정입니다.</p>
  296. <th:block th:if="${ordDtl.delvResDt} != null">
  297. <p class="cf_txt cf_desc" th:text="|예약판매 상품으로 ${ordDtl.delvResDt} 출고 예정입니다.|"></p>
  298. </th:block>
  299. </div>
  300. </th:block>
  301. <!-- //배송준비중 -->
  302. <!-- 배송완료 -->
  303. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_60'">
  304. <div class="goods_txt">
  305. <p class="cf_txt cf_desc" th:if="${ordDtl.ordReqChgQty == 0}" th:text="|${ordDtl.autoDecideLeftDay}일 후 자동으로 구매확정됩니다.|"></p>
  306. <p class="cf_txt cf_desc" th:unless="${ordDtl.ordReqChgQty == 0}" th:text="|반품/교환이 진행 중입니다.|"></p>
  307. </div>
  308. </th:block>
  309. <!-- //배송완료 -->
  310. <!-- 구매확정 -->
  311. <th:block th:if="${ordDtl.ordDtlStat} == 'G013_70'">
  312. <!-- 리뷰사용가능, 리뷰등록전일때 -->
  313. <th:block th:if="${ordDtl.reviewableYn} == 'Y' and ${ordDtl.reviewSq} == null">
  314. <div class="goods_txt">
  315. <p class="cf_txt cf_desc">리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다</p>
  316. </div>
  317. </th:block>
  318. <!-- //리뷰사용가능, 리뷰등록전일때 -->
  319. </th:block>
  320. <!-- //구매확정 -->
  321. </th:block>
  322. <!-- //주문상태별 문구정보 정의 -->
  323. <!-- 사은품 영역 -->
  324. <th:block th:if="${#lists.size(order.ordDtlList) == status.count}">
  325. <th:block th:if="${order.freeGiftList != null and #lists.size(order.freeGiftList) > 0}">
  326. <div class="goods_gift">
  327. <div class="gift_wrap">
  328. <div class="title">사은품</div>
  329. <div class="li_gift">
  330. <ul>
  331. <th:block th:each="freeGift , j : ${order.freeGiftList}">
  332. <li>
  333. <span class="gift_name" th:text="${freeGift.goodsNm}"></span>
  334. <th:block th:if="${freeGift.usePoint} > 0">
  335. <span class="deduct_p" th:text="|(-${#numbers.formatInteger(freeGift.usePoint, 1, 'COMMA')}P)|"></span>
  336. </th:block>
  337. </li>
  338. </th:block>
  339. </ul>
  340. </div>
  341. </div>
  342. </div>
  343. </th:block>
  344. </th:block>
  345. <!-- //사은품 영역 -->
  346. </div>
  347. </th:block>
  348. </div>
  349. <input type="hidden" name="accountNo" th:value="${order.oneData.accountNo}"/>
  350. <input type="hidden" name="accountNm" th:value="${order.oneData.accountNm}"/>
  351. <input type="hidden" name="bankCd" th:value="${order.oneData.bankCd}"/>
  352. <input type="hidden" name="delvMemo" th:value="${deliveryAddrInfo.delvMemo}"/>
  353. </th:block>
  354. </div>
  355. <!-- 무통장입금정보 -->
  356. <th:block th:if="${paymentInfo.payMeans == 'G014_20'}">
  357. <div class="inner">
  358. <div class="tbl_wrap">
  359. <div class="tbl_tit">
  360. <h3>무통장 입금 정보</h3>
  361. </div>
  362. <div class="tbl type1">
  363. <table>
  364. <colgroup>
  365. <col width="107">
  366. <col width="*">
  367. </colgroup>
  368. <tr>
  369. <th>은행명/명의자</th>
  370. <td><div><span th:text="${paymentInfo.vaBank}"></span>/<span th:text="|(${paymentInfo.vaNm})|"></span></div></td>
  371. </tr>
  372. <tr>
  373. <th>계좌번호</th>
  374. <td><div><span th:text="${paymentInfo.vaNo}"></span></div></td>
  375. </tr>
  376. <tr>
  377. <th>입금기한</th>
  378. <td><div><span th:text="${paymentInfo.vaDeadlineYmd}"></span>&nbsp;<span th:text="${paymentInfo.vaDeadlineHms}"></span> 까지</div></td>
  379. </tr>
  380. </table>
  381. </div>
  382. </div>
  383. </div>
  384. </th:block>
  385. <!-- //무통장입금정보 -->
  386. <div class="inner wide">
  387. <!-- 폴딩리스트 -->
  388. <div class="ui_row">
  389. <div class="foldGroup customerfold">
  390. <ul>
  391. <li>
  392. <div class="fold_head">
  393. <a href="javascript:void(0)">
  394. <div>
  395. <div class="fold_tit">
  396. <div class="lap2"><span >주문고객</span></div>
  397. <span class="fold_txt" th:text="${orderInfo.ordNm}"></span>
  398. </div>
  399. </div>
  400. </a>
  401. </div>
  402. <div class="fold_cont">
  403. <div class="customer_info">
  404. <dl>
  405. <div>
  406. <dt><span class="sr-only">주문자명</span></dt>
  407. <dd th:text="${orderInfo.ordNm}"></dd>
  408. </div>
  409. <div>
  410. <dt><span class="sr-only">이메일</span></dt>
  411. <dd th:text="${orderInfo.ordEmail}"></dd>
  412. </div>
  413. <div>
  414. <dt><span class="sr-only">휴대폰 번호</span></dt>
  415. <dd th:text="${orderInfo.ordPhnno}"></dd>
  416. </div>
  417. </dl>
  418. </div>
  419. </div>
  420. </li>
  421. </ul>
  422. </div>
  423. </div>
  424. <!-- 폴딩리스트 -->
  425. </div>
  426. <div class="inner wide">
  427. <!-- 폴딩리스트 -->
  428. <div class="ui_row">
  429. <div class="foldGroup shipfold">
  430. <ul>
  431. <li>
  432. <div class="fold_head">
  433. <a href="javascript:void(0)">
  434. <div>
  435. <div class="fold_tit">
  436. <div class="lap2"><span>배송지 정보</span></div>
  437. <span class="fold_txt recipNm" th:text="${deliveryAddrInfo.recipNm}"></span>
  438. </div>
  439. </div>
  440. </a>
  441. </div>
  442. <div class="fold_cont">
  443. <div class="ship_info ship_edit">
  444. <!-- 배송비정보변경가능 -->
  445. <th:block th:if="${canChgAddr == 'Y'}">
  446. <button type="button" id="btn_adrsChange_pop" class="btn_popup" onclick="fnChangeDeliveryAddr();">
  447. <span>배송지 변경</span>
  448. </button>
  449. </th:block>
  450. <!-- //배송비정보변경가능 -->
  451. <dl>
  452. <div class="company">
  453. <dt><span class="sr-only">배송지명</span></dt>
  454. <dd>
  455. <span th:text="${deliveryAddrInfo.recipNm}" id="recipNm"></span>
  456. <div class="badge_wrap">
  457. <th:block th:if="${deliveryAddrInfo.defaultYn} == 'Y'">
  458. <em class="order_badge defaultYn">기본 배송지</em>
  459. </th:block>
  460. <em class="order_badge order_bullet_badge" style="display:none">총알배송</em>
  461. </div>
  462. </dd>
  463. </div>
  464. <div class="addr">
  465. <dt><span class="sr-only">배송주소</span></dt>
  466. <dd th:text="|${deliveryAddrInfo.recipBaseAddr} ${deliveryAddrInfo.recipDtlAddr}|" id="recipAddr"></dd>
  467. </div>
  468. <div class="phone">
  469. <dt><span class="sr-only">휴대폰 번호</span></dt>
  470. <dd th:text="${deliveryAddrInfo.recipPhnno}" id="recipPhnno"></dd>
  471. </div>
  472. <div class="ship_request">
  473. <dt>배송요청 사항</dt>
  474. <dd th:text="${deliveryAddrInfo.delvMemo}" id="delvMemo"></dd>
  475. </div>
  476. </dl>
  477. </div>
  478. </div>
  479. </li>
  480. </ul>
  481. </div>
  482. </div>
  483. <!-- 폴딩리스트 -->
  484. </div>
  485. <div class="inner">
  486. <div class="tbl_wrap pay_wrap">
  487. <div class="tbl_tit">
  488. <h3>결제 정보</h3>
  489. <!-- <strong class="pay"><span th:text="${#numbers.formatInteger(orderAmtInfo.ordAmt - orderAmtInfo.cnclRtnAmt + orderAmtInfo.realDelvAmt, 1, 'COMMA')}"></span>원</strong>-->
  490. <strong class="pay"><span th:text="${#numbers.formatInteger(orderAmtInfo.payAmt - orderAmtInfo.npayPntAmt - orderAmtInfo.pgCpnAmt, 1, 'COMMA')}"></span>원</strong>
  491. </div>
  492. <div class="tbl type1">
  493. <table>
  494. <colgroup>
  495. <col width="227">
  496. <col width="*">
  497. </colgroup>
  498. <tr>
  499. <td>
  500. <dl>
  501. <div>
  502. <dt>총주문금액(상품금액+배송비)</dt>
  503. <dd><div><span th:text="${#numbers.formatInteger((orderAmtInfo.ordAmt + orderAmtInfo.cpn1DcAmt) - orderAmtInfo.cnclRtnAmt + orderAmtInfo.realDelvAmt, 1, 'COMMA')}"></span>원</div></dd>
  504. </div>
  505. <th:block th:if="${orderAmtInfo.cpn1DcAmt} > 0">
  506. <div>
  507. <dt>즉시할인</dt>
  508. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.cpn1DcAmt, 1, 'COMMA')}|"></span>원</div></dd>
  509. </div>
  510. </th:block>
  511. <th:block th:if="${orderAmtInfo.tmtb1DcAmt} + ${orderAmtInfo.tmtb2DcAmt} > 0">
  512. <div>
  513. <dt>다다익선 할인</dt>
  514. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.tmtb1DcAmt + orderAmtInfo.tmtb2DcAmt, 1, 'COMMA')}|"></span>원</div></dd>
  515. </div>
  516. </th:block>
  517. <th:block th:if="${orderAmtInfo.cartCpnDcAmt} + ${orderAmtInfo.goodsCpnDcAmt} > 0">
  518. <div>
  519. <dt>쿠폰할인</dt>
  520. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.cartCpnDcAmt + orderAmtInfo.goodsCpnDcAmt, 1, 'COMMA')}|"></span>원</div></dd>
  521. </div>
  522. </th:block>
  523. <th:block th:if="${orderAmtInfo.prePntDcAmt} > 0">
  524. <div>
  525. <dt>선 포인트 사용</dt>
  526. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.prePntDcAmt, 1, 'COMMA')}|"></span>P</div></dd>
  527. </div>
  528. </th:block>
  529. <th:block th:if="${orderAmtInfo.pntDcAmt} > 0">
  530. <div>
  531. <dt>포인트 사용</dt>
  532. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.pntDcAmt, 1, 'COMMA')}|"></span>P</div></dd>
  533. </div>
  534. </th:block>
  535. <th:block th:if="${orderAmtInfo.gfcdUseAmt} > 0">
  536. <div>
  537. <dt>상품권 사용</dt>
  538. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.gfcdUseAmt, 1, 'COMMA')}|"></span>원</div></dd>
  539. </div>
  540. </th:block>
  541. <th:block th:if="${orderAmtInfo.npayPntAmt} > 0">
  542. <div>
  543. <dt>마일리지 사용</dt>
  544. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.npayPntAmt, 1, 'COMMA')}|"></span>원</div></dd>
  545. </div>
  546. </th:block>
  547. <th:block th:if="${orderAmtInfo.pgCpnAmt} > 0">
  548. <div>
  549. <dt>제휴 할인</dt>
  550. <dd><div><span th:text="|- ${#numbers.formatInteger(orderAmtInfo.pgCpnAmt, 1, 'COMMA')}|"></span>원</div></dd>
  551. </div>
  552. </th:block>
  553. <th:block th:if="${orderAmtInfo.savePntAmt} > 0">
  554. <div>
  555. <dt>적립예정 포인트</dt>
  556. <dd><div><span th:text="|${#numbers.formatInteger(orderAmtInfo.savePntAmt, 1, 'COMMA')}|"></span>P</div></dd>
  557. </div>
  558. </th:block>
  559. <div>
  560. <dt>결제수단</dt>
  561. <dd>
  562. <div>
  563. <span th:if="${paymentInfo.pgGb == 'NAVER'}">네이버 페이</span>
  564. <span th:if="${paymentInfo.pgGb == 'KAKAO'}">카카오 페이</span>
  565. <span th:if="${paymentInfo.pgGb == 'PAYCO'}">PAYCO</span>
  566. <span th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_10'}">실시간계좌이체</span>
  567. <span th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_20'}">무통장입금</span>
  568. <span th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_30'}" th:text="|${paymentInfo.cardNm}/${paymentInfo.cardMips}|"></span>
  569. <span th:if="${paymentInfo.pgGb == 'KCP' and paymentInfo.payMeans == 'G014_60'}">휴대폰결제</span>
  570. </div>
  571. </dd>
  572. </div>
  573. </dl>
  574. </td>
  575. </tr>
  576. </table>
  577. <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>
  578. <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>
  579. <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>
  580. <!--
  581. <button type="button" class="btn btn_default btn_sm" th:if="${orderAmtInfo.gfcdUseAmt > 0 and #strings.isEmpty(paymentInfo.cashAuthNo)}" th:attr="ordNo=${ordNo}" onclick="fnRequestCashReceipt(this);"><span>상품권 현금 영수증 신청</span></button>
  582. -->
  583. </div>
  584. <!-- 210415_ 추가 : 결제정보 안내 텍스트 추가 -->
  585. <p class="txt_ref">NPAY등의 대체결제수단으로 결제 시 해당 결제 플랫폼에서 영수증 확인이 가능합니다.</p>
  586. </div>
  587. <div class="btn_group btn_group_flex">
  588. <div>
  589. <button type="button" class="btn btn_dark" onclick="cfnGoToPage(_PAGE_NOMEMBER_ORDER_LIST);"><span>확인</span></button>
  590. </div>
  591. </div>
  592. </div>
  593. </section>
  594. </main>
  595. <script src="/ux/plugins/gaga/gaga.paging.js"></script>
  596. <script th:inline="javascript">
  597. let ordNo = [[${ordNo}]];
  598. var isLogin = [[${isLogin}]];
  599. let orderList = [[${orderList}]];
  600. let oneData = [[${oneData}]];
  601. let paymentInfo = [[${paymentInfo}]];
  602. let orderAmtInfo = [[${orderAmtInfo}]];
  603. let deliveryAddrInfo = [[${deliveryAddrInfo}]];
  604. //let kcpReceiptUrl = [[${@environment.getProperty('pg.kcp.receipt.url')}]];
  605. let kcpReceiptUrl = [[${kcpReceiptUrl}]];
  606. let jsonObj = {};
  607. //let delvMemo = [[${deliveryAddrInfo.delvMemo}]];
  608. $(document).ready(function() {
  609. // 타이틀명
  610. $('#htopTitle').text('주문상세');
  611. });
  612. // 2.1 회원 배송지변경 팝업열기
  613. //$('#btn_adrsChange_pop').on("click", function(){
  614. // // 회원인경우
  615. // if (isLogin == true) {
  616. // $.ajax( {
  617. // type : "POST",
  618. // url : '/common/delvAddrChangePop',
  619. // data : JSON.stringify(jsonObj),
  620. // dataType : 'html',
  621. // beforeSend : function(xhr, settings) {
  622. // xhr.setRequestHeader("AJAX" , "true");
  623. // xhr.setRequestHeader('Accept' , 'application/json');
  624. // xhr.setRequestHeader('Content-Type' , 'application/json');
  625. // },
  626. // success : function(result) {
  627. // $("#adrsChangePop .modal-dialog .modal-content").html(result);
  628. // $("#adrsChangePop").modal("show");
  629. // return false;
  630. // }
  631. // });
  632. // }
  633. // // 비회원인경우
  634. // else {
  635. // $.ajax( {
  636. // type : "POST",
  637. // url : '/common/delvAddrAddPop',
  638. // data : JSON.stringify(jsonObj),
  639. // dataType : 'html',
  640. // beforeSend : function(xhr, settings) {
  641. // xhr.setRequestHeader("AJAX" , "true");
  642. // xhr.setRequestHeader('Accept' , 'application/json');
  643. // xhr.setRequestHeader('Content-Type' , 'application/json');
  644. // },
  645. // success : function(result) {
  646. // $("#adrsAddPop .modal-dialog .modal-content").html(result);
  647. // $("#adrsAddPop").modal("show");
  648. // }
  649. // });
  650. // }
  651. //});
  652. // 전체취소 버튼 클릭 이벤트
  653. var fnAllCancel = function() {
  654. // 환불계좌 체크
  655. let accountNo = $('#mypageOrderDetailForm input[name=accountNo]').val();
  656. let accountNm = $('#mypageOrderDetailForm input[name=accountNm]').val();
  657. let bankCd = $('#mypageOrderDetailForm input[name=bankCd]').val();
  658. if (paymentInfo.payMeans == 'G014_20' && paymentInfo.payStat == 'G016_30' && (gagajf.isNull(accountNo) || gagajf.isNull(accountNm) || gagajf.isNull(bankCd))) {
  659. let data = {};
  660. data.ordNo = oneData.ordNo;
  661. data.accountNm = oneData.accountNm;
  662. let jsonData = JSON.stringify(data);
  663. $.ajax( {
  664. type : "POST",
  665. url : '/noMember/refund/account/register/popup/form',
  666. data : jsonData,
  667. dataType : 'html',
  668. beforeSend : function(xhr, settings) {
  669. xhr.setRequestHeader("AJAX" , "true");
  670. xhr.setRequestHeader('Accept' , 'application/json');
  671. xhr.setRequestHeader('Content-Type' , 'application/json');
  672. },
  673. success : function(result) {
  674. $("#refundPop .modal-dialog .modal-content").html(result);
  675. $("#refundPop").modal("show");
  676. }
  677. });
  678. return false;
  679. }
  680. mcxDialog.confirm('전체취소 처리하시겠습니까?', {
  681. cancelBtnText: "취소",
  682. sureBtnText: "확인",
  683. sureBtnClick: function(){
  684. // 취소요청 데이터 설정
  685. let url = '/noMember/cancel';
  686. // 주문상세번호 설정
  687. let ordDtlNoArr = [];
  688. $.each($('#mypageOrderDetailForm input[name=ordDtlNoArr]'), function(idx, item) {
  689. ordDtlNoArr.push($(item).val());
  690. });
  691. // 취소 수량 설정
  692. let cnclRtnReqQtyArr = [];
  693. $.each($('#mypageOrderDetailForm input[name=cnclRtnReqQtyArr]'), function(idx, item) {
  694. cnclRtnReqQtyArr.push($(item).val());
  695. });
  696. // 전체 취소 처리
  697. let data = {};
  698. data.ordNo = ordNo;
  699. data.chgReason = 'G686_10';
  700. data.chgReasonNm = '고객변심';
  701. data.accountNo = accountNo;
  702. data.accountNm = accountNm;
  703. data.bankCd = bankCd;
  704. data.isCustomer = true;
  705. data.reqGbn = 'cnclComplete';
  706. data.ordDtlNoArr = ordDtlNoArr;
  707. data.cnclRtnReqQtyArr = cnclRtnReqQtyArr;
  708. let jsonData = JSON.stringify(data);
  709. // 취소 처리 가능 여부 조회
  710. gagajf.ajaxJsonSubmit('/mypage/wms/cancel/available', jsonData, function(result) {
  711. let cancelYn = result.cancelYn;
  712. if (cancelYn == 'Y') {
  713. // 전체취소 처리
  714. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  715. cfnGoToPage(_PAGE_MYPAGE_CRE_LIST);
  716. }, true);
  717. } else {
  718. mcxDialog.alert('이미 배송처리 되어 전체취소 처리에 실패 하였습니다.');
  719. }
  720. });
  721. }
  722. });
  723. }
  724. // 배송지 정보 설정
  725. var delvAddrSet = function(delvObj) {
  726. let delvAddrSq = deliveryAddrInfo.delvAddrSq;
  727. let recipNm = delvObj.recipNm;
  728. let recipPhnno = delvObj.recipPhnno;
  729. let recipZipcode = delvObj.recipZipcode;
  730. let recipBaseAddr = delvObj.recipBaseAddr;
  731. let recipDtlAddr = delvObj.recipDtlAddr;
  732. let delvMemo = delvObj.delvMemo;
  733. $('#recipNm').text(recipNm);
  734. $('#recipPhnno').text(recipPhnno);
  735. $('#recipAddr').text(recipBaseAddr + ' ' + recipDtlAddr);
  736. $('#delvMemo').text(delvMemo);
  737. $('#mypageOrderDetailForm .recipNm').text(recipNm);
  738. let url = '/noMember/change/delvery/addr';
  739. let data = {};
  740. data.ordNo = ordNo;
  741. data.delvAddrSq = delvAddrSq;
  742. data.recipNm = recipNm;
  743. data.recipPhnno = recipPhnno;
  744. data.recipZipcode = recipZipcode;
  745. data.recipBaseAddr = recipBaseAddr;
  746. data.recipDtlAddr = recipDtlAddr;
  747. data.delvMemo = delvMemo;
  748. let jsonData = JSON.stringify(data);
  749. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  750. })
  751. }
  752. // 환불계좌 등록 콜백 처리
  753. var fnRegisterAccountCallback = function(result) {
  754. // 환불계좌 정보 설정
  755. $('#mypageOrderDetailForm input[name=accountNo]').val(result.accountNo);
  756. $('#mypageOrderDetailForm input[name=accountNm]').val(result.accountNm);
  757. $('#mypageOrderDetailForm input[name=bankCd]').val(result.bankCd);
  758. // 전체취소 처리
  759. fnAllCancel();
  760. }
  761. // 상품권 현금영수증 신청 처리
  762. var fnRequestCashReceipt = function(param) {
  763. let url = '/noMember/cash/receipts/request';
  764. let ordNo = $(param).attr('ordNo');
  765. let data = {};
  766. data.ordNo = ordNo;
  767. let jsonData = JSON.stringify(data);
  768. gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
  769. cfnGoToPage(_PAGE_NOMEMBER_ORDER_DETAIL);
  770. }, true);
  771. }
  772. </script>
  773. </th:block>
  774. </body>
  775. </html>