NoMemberOrderDetailFormMob.html 34 KB

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