NoMemberOrderDetailFormMob.html 33 KB

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