|
|
@@ -14,6 +14,7 @@
|
|
|
* VER DATE AUTHOR DESCRIPTION
|
|
|
* === =========== ========== =============================================
|
|
|
* 1.0 2021.02.16 card007 최초 작성
|
|
|
+ * 1.1 2021.03.23 card007 퍼블 수정
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
<body>
|
|
|
@@ -38,11 +39,14 @@
|
|
|
</div>
|
|
|
<div class="sec_body">
|
|
|
<th:block th:if="${orderList}" th:each="order, status : ${orderList}">
|
|
|
+ <input type="hidden" name="accountNo" th:value="${order.oneData.accountNo}"/>
|
|
|
+ <input type="hidden" name="accountNm" th:value="${order.oneData.accountNm}"/>
|
|
|
+ <input type="hidden" name="bankCd" th:value="${order.oneData.bankCd}"/>
|
|
|
<div class="part_goods">
|
|
|
<div class="goods_head">
|
|
|
<p th:unless="${order.giftPackYn == 'Y'}">주문일 <span th:text="${order.ordDt}"></span></p>
|
|
|
<p th:if="${order.giftPackYn == 'Y'}">선물일 <span th:text="${order.ordDt}"></span></p>
|
|
|
- <a href="javascript:void(0)" th:if="${allCanYn == 'Y'}" th:onclick="fnAllCancel([[${order.ordNo}]])">주문전체취소</a>
|
|
|
+ <li><a href="javascript:void(0)" th:if="${order.allCanYn == 'Y' and order.ordReqChgQty == 0}" onclick="fnAllCancel();">주문전체취소</a></li>
|
|
|
</div>
|
|
|
<div class="goods_cont">
|
|
|
<!-- 주문상품 -->
|
|
|
@@ -77,8 +81,8 @@
|
|
|
<span class="count"><em th:text="${ordDtl.ordQty - ordDtl.cnclRtnQty}"></em>개</span>
|
|
|
</p>
|
|
|
<p>
|
|
|
- <span class="price_org"><em th:text="${#numbers.formatInteger(ordDtl.listPrice * (ordDtl.ordQty - ordDtl.cnclRtnQty), 1, 'COMMA')}"></em>원</span>
|
|
|
- <span class="price_sale"><em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt, 1, 'COMMA')}"></em>원</span>
|
|
|
+ <span class="price_org"><em th:text="${#numbers.formatInteger(ordDtl.ordAmt - ordDtl.cnclRtnAmt - ordDtl.cpn1DcAmt, 1, 'COMMA')}"></em>원</span>
|
|
|
+ <span class="price_sale"><em th:text="${#numbers.formatInteger(ordDtl.realOrdAmt + ordDtl.pntDcAmt + ordDtl.gfcdUseAmt, 1, 'COMMA')}"></em>원</span>
|
|
|
</p>
|
|
|
<p>
|
|
|
<span class="point"><em th:text="${#numbers.formatInteger(ordDtl.savePntAmt, 1, 'COMMA')}"></em><stong>P</stong> 적립예정</span>
|
|
|
@@ -436,395 +440,14 @@
|
|
|
<input type="hidden" name="ordNo"/>
|
|
|
<input type="hidden" name="ordDtlNo"/>
|
|
|
</form>
|
|
|
- <!--<div class="my_cont">
|
|
|
- <div class="sec_head">
|
|
|
- <h3>주문상세</h3>
|
|
|
- <div class="od_detail">
|
|
|
- (주문번호 : <span class="num" th:text="${ordNo}"></span>)
|
|
|
- </div>
|
|
|
- <button type="button" class="btn btn_default od_del_btn" onclick="fnDeleteOrder()"><span>주문 내역 삭제</span></button>
|
|
|
- </div>
|
|
|
- <div class="sec_body">
|
|
|
- <div class="order_list" id="orderList">
|
|
|
- <section class="order_row">
|
|
|
- <th:block th:if="${orderList}" th:each="oneData, status : ${orderList}">
|
|
|
- <div class="part_deliver">
|
|
|
- <div class="tbl_tit">
|
|
|
- <!– 주문일/선물일 설정 –>
|
|
|
- <span class="start_t" th:unless="${oneData.giftPackYn == 'Y'}">주문일</span>
|
|
|
- <span class="gift_t" th:if="${oneData.giftPackYn == 'Y'}">선물일</span>
|
|
|
- <!– //주문일/선물일 설정 –>
|
|
|
-
|
|
|
- <span class="order_date" th:text="${oneData.ordDt}"></span>
|
|
|
-
|
|
|
- <!– 배송구분 설정 –>
|
|
|
- <span class="order_label02" th:if="${oneData.shotDelv}">총알배송</span>
|
|
|
- <span class="order_label01" th:if="${oneData.selfMall}">STYLE24 일반배송</span>
|
|
|
- <span class="order_label01" th:if="${oneData.supplyMall}">업체직배송</span>
|
|
|
- <!– //배송구분 설정 –>
|
|
|
- <!– <a href="javascript:void(0)" class="detail_btn" th:attr="ordNo=${oneData.ordNo}" onclick="fnGoToOrderDetail(this)">주문상세보기</a>–>
|
|
|
- </div>
|
|
|
- <th:block th:if="${oneData.orderList}" th:each="order, status : ${oneData.orderList}">
|
|
|
- <div class="tbl type2">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="1020">
|
|
|
- <col width="180">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <th:block th:if="${order.ordDtlList}" th:each="ordDtl, status : ${order.ordDtlList}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
|
|
|
- <input type="hidden" name="ordDtlNo" th:value="${ordDtl.ordDtlNo}"/>
|
|
|
- <input type="hidden" name="ordDtlStat" th:value="${ordDtl.ordDtlStat}"/>
|
|
|
- <input type="hidden" name="reviewSq" th:value="${ordDtl.reviewSq}"/>
|
|
|
- <tr class="bundle_row">
|
|
|
- <td>
|
|
|
- <div class="info_item">
|
|
|
- <div class="thumb_box">
|
|
|
- <a href="">
|
|
|
- <img th:src="${imageUrl + '/' + ordDtl.sysImgNm}" width="100%" alt="">
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="info_box">
|
|
|
- <p class="od_name">
|
|
|
- <a href="">
|
|
|
- <span class="brand" th:text="${ordDtl.brandNm}"></span>
|
|
|
- <span class="name" th:text="${ordDtl.goodsNm}"></span>
|
|
|
- </a>
|
|
|
- </p>
|
|
|
- <p class="od_opt">
|
|
|
- <span class="option"><em th:text="${ordDtl.optCd1}"></em><em th:text="${ordDtl.optCd2}"></em></span>
|
|
|
- <span class="count">수량 <em th:text="${ordDtl.ordQty}"></em>개</span>
|
|
|
- </p>
|
|
|
- <button type="button" class="btn btn_dark cart_btn" onclick="fnCreateCart(this);">쇼핑백 담기</button>
|
|
|
- </div>
|
|
|
- <div class="info_calc">
|
|
|
- <p class="price">
|
|
|
- <span class="selling_price" th:text="|${#numbers.formatInteger(ordDtl.ordAmt, 1, 'COMMA')}원|"></span>
|
|
|
- </p>
|
|
|
- <p class="point"><span th:text="${#numbers.formatInteger(ordDtl.savePntAmt, 1, 'COMMA')}"></span>p</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <!– 주문 –>
|
|
|
- <td class="merge_row" th:unless="${oneData.giftPackYn == 'Y'}">
|
|
|
- <div class="delivery">
|
|
|
- <p class="dlvr_staus" th:text="${ordDtl.ordDtlStatNm}"></p>
|
|
|
- <p class="dlvr_desc" th:if="${ordDtl.delvEddt}" th:text="|${ordDtl.delvEddt}일 도착|"></p>
|
|
|
- </div>
|
|
|
- <div class="tbl_btn_wrap case02">
|
|
|
- <button type="button" class="btn btn_default btn_sm" onclick="fnCreateExchange(this, 'exchange');"><span>교환</span></button>
|
|
|
- <button type="button" class="btn btn_default btn_sm" onclick="fnCreateCancel(this, 'cancel');"><span>반품/취소</span></button>
|
|
|
- <!– <button type="button" class="btn btn_default btn_sm" th:if="${ordDtl.reviewSq == 0}" th:attr="ordNo=${oneData.ordNo}" onclick="fnCreateReview(this);"><span>리뷰작성</span></button>–>
|
|
|
- <button type="button" class="btn btn_default btn_sm" th:if="${!order.review}" th:attr="ordNo=${oneData.ordNo}" onclick="fnCreateReview(this);"><span>리뷰작성</span></button>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and #strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
|
- <div class="delivery">
|
|
|
- <p class="dlvr_staus c_primary">주소 입력 대기</p>
|
|
|
- <p class="dlvr_desc" th:text="|남은 기간 ${ordDtl.giftLimitDay}일|"></p>
|
|
|
- <p class="dlvr_desc" th:text="|(${ordDtl.giftLimitDt}까지)|"></p>
|
|
|
- </div>
|
|
|
- <div class="tbl_btn_wrap case02">
|
|
|
- <button type="button" class="btn btn_dark btn_sm" onclick="fnReSendSms(this);"><span>SMS 재전송</span></button>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="merge_row" th:if="${oneData.giftPackYn == 'Y' and !#strings.isEmpty(ordDtl.recipBaseAddr)}">
|
|
|
- <div class="delivery">
|
|
|
- <p class="dlvr_staus c_primary">선물 완료</p>
|
|
|
- <p class="dlvr_desc" th:text="|(${ordDtl.giftCompleteDt})|"></p>
|
|
|
- </div>
|
|
|
- <div class="tbl_btn_wrap case02">
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </th:block>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <!– 주문 –>
|
|
|
- <th:block th:unless="${oneData.giftPackYn == 'Y'}">
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_00' or order.ordDtlStat == 'G013_10' or order.ordDtlStat == 'G013_11'}">
|
|
|
- <span class="cf_txt">주문 완료 / 결제를 기다리고 있습니다.</span>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_20' or order.ordDtlStat == 'G013_30' or order.ordDtlStat == 'G013_35'}">
|
|
|
- <span class="cf_txt">배송할 상품을 준비 중입니다.</span>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_40'}">
|
|
|
- <span class="cf_txt">상품준비가 완료되어 곧 배송될 예정입니다.</span>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_50' or order.ordDtlStat == 'G013_55'}">
|
|
|
- <span class="cf_txt" th:text="|${order.shipCompNm} / ${order.invoiceNo}|"></span>
|
|
|
- <button type="button" class="btn btn_primary" th:attr="ordNo=${oneData.ordNo}, invoiceNo=${order.invoiceNo}, shipCompCd=${order.shipCompCd}" onclick="fnGetDeliveryInfo(this)">배송조회</button>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_60'}">
|
|
|
- <span class="cf_txt" th:text="|${order.purchaseConfirmDay}일 후 자동으로 구매확정|"></span>
|
|
|
- <button type="button" class="btn btn_primary" onclick="fnDecideOrder(this);">구매확정 하기</button>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq == 0}">
|
|
|
- <span class="cf_txt">리뷰를 작성하면 다른 구매자에게 도움이 될 수 있습니다.</span>
|
|
|
- <button type="button" class="btn btn_primary" banner="banner" onclick="fnCreateReview(this, 'Y');">리뷰작성</button>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${order.ordDtlStat == 'G013_70' and order.reviewSq > 0}">
|
|
|
- <span class="cf_txt">주문내역 다시 구매하기 위해</span>
|
|
|
- <button type="button" class="btn btn_primary" onclick="fnCreateCart(this, 'Y');">장바구니 담기</button>
|
|
|
- </div>
|
|
|
- </th:block>
|
|
|
-
|
|
|
- <!– 선물 –>
|
|
|
- <th:block th:if="${oneData.giftPackYn == 'Y'}">
|
|
|
- <div class="order_confirm" th:if="${#strings.isEmpty(order.recipBaseAddr) and order.giftLimitDay >= 0}">
|
|
|
- <span class="cf_txt" th:text="|${order.recipNm}님이 주소를 입력하기 전입니다. (입력기한 ${order.giftLimitDt})|"></span>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:unless="${#strings.isEmpty(order.recipBaseAddr)}">
|
|
|
- <span class="cf_txt" th:text="|${order.recipNm}님께 선물이 발송되었습니다.|"></span>
|
|
|
- </div>
|
|
|
- <div class="order_confirm" th:if="${#strings.isEmpty(order.recipBaseAddr) and order.giftLimitDay < 0}">
|
|
|
- <span class="cf_txt">주소입력 기한이 경과되어 선물이 취소 되었습니다.</span>
|
|
|
- </div>
|
|
|
- </th:block>
|
|
|
- </th:block>
|
|
|
- </div>
|
|
|
- </th:block>
|
|
|
-
|
|
|
- <!– 주문 없을 때 –>
|
|
|
- <th:block th:unless="${orderList}" th:each="oneData, status : ${orderList}">
|
|
|
-
|
|
|
- </th:block>
|
|
|
- </section>
|
|
|
- <section class="order_row" th:if="${paymentInfo.payMeans == 'G014_20'}">
|
|
|
- <div class="order_tit">
|
|
|
- <h3 class="subH3">무통장 입금 정보</h3>
|
|
|
- </div>
|
|
|
- <div class="tbl type1 row_tbl">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- <span th:text="${paymentInfo.vaBank}"></span>(<span th:text="${paymentInfo.vaNm}"></span>)
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <span th:text="${paymentInfo.vaNo}"></span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <span th:text="${paymentInfo.vaDeadlineYmd}"></span><span th:text="${paymentInfo.vaDeadlineHms}"></span> 까지
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- <section class="order_row">
|
|
|
- <div class="order_tit">
|
|
|
- <h3 class="subH3">주문 고객</h3>
|
|
|
- </div>
|
|
|
- <div class="tbl type1 row_tbl">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- <span th:text="${orderInfo.ordNm}"></span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <span th:text="${orderInfo.ordEmail}"></span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <span th:text="${orderInfo.ordPhnno}"></span>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- <section class="order_row">
|
|
|
- <div class="order_tit">
|
|
|
- <h3 class="subH3">배송지 정보</h3>
|
|
|
- </div>
|
|
|
- <div class="tbl type1 row_tbl">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr th:if="${deliveryAddrInfo.recipNm}">
|
|
|
- <td th:text="${deliveryAddrInfo.recipNm}"><span class="sr-only">배송지명</span></td>
|
|
|
- </tr>
|
|
|
- <tr th:if="${${deliveryAddrInfo.recipBaseAddr}}">
|
|
|
- <td th:text="|${deliveryAddrInfo.recipBaseAddr} ${deliveryAddrInfo.recipDtlAddr}|"><span class="sr-only">배송 주소</span></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td th:text="${deliveryAddrInfo.recipPhnno}"><span class="sr-only">휴대폰 번호</span></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <span class="tit c_primary">배송요청 사항</span>
|
|
|
- <th:block th:text="${deliveryAddrInfo.delvMemo}"></th:block>
|
|
|
- <button type="button" class="btn_popup" id="btn_rqstModify_pop" onclick="fnChangeDelvMemo();"><span>변경하기</span></button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- <section class="order_row">
|
|
|
- <div class="order_tit">
|
|
|
- <h3 class="subH3">결제정보</h3>
|
|
|
- </div>
|
|
|
- <div class="order_amount">
|
|
|
- <div class="tbl type3">
|
|
|
- <table>
|
|
|
- <colgroup>
|
|
|
- <col width="33.33%">
|
|
|
- <col width="33.33%">
|
|
|
- <col width="*">
|
|
|
- </colgroup>
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>
|
|
|
- <dl>
|
|
|
- <dt>총 주문금액</dt>
|
|
|
- <dd class="price" th:text="|${#numbers.formatInteger(orderAmtInfo.ordAmt + orderAmtInfo.delvFee, 1, 'COMMA')}원|"></dd>
|
|
|
- </dl>
|
|
|
- <i class="ico_calc minus"></i>
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- <dl>
|
|
|
- <dt>총 할인금액</dt>
|
|
|
- <dd class="price" th:text="|- ${#numbers.formatInteger(orderAmtInfo.totalDcAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </dl>
|
|
|
- <i class="ico_calc result"></i>
|
|
|
- </th>
|
|
|
- <th>
|
|
|
- <dl>
|
|
|
- <dt>결제금액</dt>
|
|
|
- <dd class="price" data-weight="price" data-font="lato">
|
|
|
- <span class="oder_total_price" th:text="${#numbers.formatInteger(orderAmtInfo.realOrdAmt, 1, 'COMMA')}"></span>원
|
|
|
- </dd>
|
|
|
- </dl>
|
|
|
- </th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <dl>
|
|
|
- <div>
|
|
|
- <dt>상품금액</dt>
|
|
|
- <dd th:text="|${#numbers.formatInteger(orderAmtInfo.ordAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.delvFee > 0}">
|
|
|
- <dt>배송비</dt>
|
|
|
- <dd th:text="|${#numbers.formatInteger(orderAmtInfo.delvFee, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- </dl>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <dl>
|
|
|
- <div th:if="${orderAmtInfo.cpn1DcAmt > 0}">
|
|
|
- <dt>상품 할인(즉시 할인)</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.cpn1DcAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.tmtb1DcAmt + orderAmtInfo.tmtb2DcAmt > 0}">
|
|
|
- <dt>다다익선 할인</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.tmtb1DcAmt + orderAmtInfo.tmtb2DcAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.cartCpnDcAmt + orderAmtInfo.goodsCpnDcAmt > 0}">
|
|
|
- <dt>쿠폰 할인</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.cartCpnDcAmt + orderAmtInfo.goodsCpnDcAmt, 1, 'COMMA')}원|">- 30,000원</dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.prePntDcAmt > 0}">
|
|
|
- <dt>선 포인트 할인</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.prePntDcAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.pntDcAmt > 0}">
|
|
|
- <dt>포인트 사용</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.pntDcAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${orderAmtInfo.gfcdUseAmt > 0}">
|
|
|
- <dt>상품권 사용</dt>
|
|
|
- <dd th:text="|- ${#numbers.formatInteger(orderAmtInfo.gfcdUseAmt, 1, 'COMMA')}원|"></dd>
|
|
|
- </div>
|
|
|
- <!–
|
|
|
- <div th:if="${}">
|
|
|
- <dt>마일리지 사용</dt>
|
|
|
- <dd></dd>
|
|
|
- </div>
|
|
|
- <div th:if="${}">
|
|
|
- <dt>제휴 할인</dt>
|
|
|
- <dd></dd>
|
|
|
- </div>
|
|
|
- –>
|
|
|
- </dl>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <dl>
|
|
|
- <div th:if="${orderAmtInfo.savePntAmt > 0}">
|
|
|
- <dt>적립 예정 포인트</dt>
|
|
|
- <dd th:text="|${#numbers.formatInteger(orderAmtInfo.savePntAmt, 1, 'COMMA')}P|"></dd>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <dt>결제방법</dt>
|
|
|
- <dd>
|
|
|
- <!– TODO –>
|
|
|
- <!– Style24 간편결제 처리 (STYLE24 간편결제 : STYLE24 간편결제명 / 카드사명 / 할부개월(일시불)) –>
|
|
|
- <!– 실시간계좌이체, 무통장입금 현금영수증 신청여부 추가 –>
|
|
|
- <!– 네이버페이 처리 (네이버 페이 : 네이버 페이) –>
|
|
|
- <!– 카카오페이 처리 (카카오 페이 : 카카오 페이) –>
|
|
|
- <!– PAYCO 처리 (PAYCO : PAYCO) –>
|
|
|
- <span class="paymethod" th:if="${paymentInfo.payMeans == 'G014_10'}" th:text="|실시간계좌이체|"></span>
|
|
|
- <span class="paymethod" th:if="${paymentInfo.payMeans == 'G014_20'}" th:text="|무통장입금|"></span>
|
|
|
- <span class="paymethod" th:if="${paymentInfo.payMeans == 'G014_30'}" th:text="|${paymentInfo.cardNm}/${paymentInfo.cardMips}|"></span>
|
|
|
- <span class="paymethod" th:if="${paymentInfo.payMeans == 'G014_60'}">휴대폰결제</span>
|
|
|
- </dd>
|
|
|
- </div>
|
|
|
- <th:block th:if="${paymentInfo.pgGb == 'KCP'}">
|
|
|
- <!– 신용카드 결제시 –>
|
|
|
- <div th:if="${paymentInfo.payMeans == 'G014_30'}">
|
|
|
- <dt> </dt>
|
|
|
- <dd>
|
|
|
- <button type="button" class="btn btn_default" onclick="fnReceipt('card');"><span>신용카드 전표</span></button>
|
|
|
- </dd>
|
|
|
- </div>
|
|
|
- <!– //무통장 결제시 –>
|
|
|
- <!– 무통장 결제시 –>
|
|
|
- <div th:if="${paymentInfo.payMeans == 'G014_10' or paymentInfo.payMeans == 'G014_20'}">
|
|
|
- <dt> </dt>
|
|
|
- <dd>
|
|
|
- <button type="button" class="btn btn_default" onclick="fnReceipt('cash');"><span>현금영수증</span></button>
|
|
|
- </dd>
|
|
|
- </div>
|
|
|
- <!– //무통장 결제시 –>
|
|
|
- </th:block>
|
|
|
- <th:block th:unless="${paymentInfo.pgGb == 'KCP'}">
|
|
|
- <dt></dt>
|
|
|
- <dd>NPAY등의 대체결제수단으로 결제시 해당 결제 플롯폼에서 영수증 확인이 가능합니다.</dd>
|
|
|
- </th:block>
|
|
|
- </dl>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>-->
|
|
|
<!-- // CONT-BODY -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="/ux/plugins/gaga/gaga.paging.js"></script>
|
|
|
<script th:inline="javascript">
|
|
|
let ordNo = [[${ordNo}]];
|
|
|
+ let orderList = [[${orderList}]];
|
|
|
+ let paymentInfo = [[${paymentInfo}]];
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
// 마이페이지 LNB 설정
|
|
|
@@ -834,6 +457,54 @@
|
|
|
fnSetMypageLocation('주문확인/배송조회', '_PAGE_MYPAGE_ORDER_LIST', '주문상세');
|
|
|
});
|
|
|
|
|
|
+ // 전체취소 버튼 클릭 이벤트
|
|
|
+ var fnAllCancel = function() {
|
|
|
+ let cancelRequestList = [];
|
|
|
+
|
|
|
+ $.each(orderList[0].ordDtlList, function(idx, item) {
|
|
|
+ item.ordCanChgQty = (item.ordQty - item.cnclRtnQty);
|
|
|
+ cancelRequestList.push(item);
|
|
|
+ });
|
|
|
+
|
|
|
+ // 환불계좌 체크
|
|
|
+ let accountNo = $('input[name=accountNo]').val();
|
|
|
+ let accountNm = $('input[name=accountNm]').val();
|
|
|
+ let bankCd = $('input[name=bankCd]').val();
|
|
|
+
|
|
|
+ if (paymentInfo.payMeans == 'G014_20' && paymentInfo.payStat == 'G016_00' && (gagajf.isNull(accountNo) || gagajf.isNull(accountNm) || gagajf.isNull(bankCd))) {
|
|
|
+ // TODO
|
|
|
+ // 환불계좌 등록 팝업
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 취소요청 데이터 설정
|
|
|
+ let url = '/mypage/cancel';
|
|
|
+
|
|
|
+ let allCanYn = '';
|
|
|
+ if (paymentInfo.payMeans == 'G014_20' && paymentInfo.payStat == 'G016_00') {
|
|
|
+ allCanYn = 'Y';
|
|
|
+ }
|
|
|
+
|
|
|
+ let data = {};
|
|
|
+ data.ordNo = ordNo;
|
|
|
+ data.chgReason = 'G686_10';
|
|
|
+ data.accountNo = accountNo;
|
|
|
+ data.accountNm = accountNm;
|
|
|
+ data.bankCd = bankCd;
|
|
|
+ data.allCanYn = allCanYn;
|
|
|
+ data.isCustomer = 'Y';
|
|
|
+ data.reqGbn = 'cnclComplete';
|
|
|
+ data.cancelReqList = cancelRequestList;
|
|
|
+
|
|
|
+ let jsonData = JSON.stringify(data);
|
|
|
+ console.log(jsonData);
|
|
|
+ gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
|
|
|
+ // TODO
|
|
|
+ // 주문취소 콜백처리
|
|
|
+ console.log(result);
|
|
|
+ });
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
</th:block>
|