|
|
@@ -2,7 +2,7 @@
|
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
|
|
<!--
|
|
|
*******************************************************************************
|
|
|
- * @source : CancelRequestForm.html
|
|
|
+ * @source : RtnReqForm.html
|
|
|
* @desc : 반품요청 화면
|
|
|
*============================================================================
|
|
|
* STYLE24
|
|
|
@@ -22,10 +22,11 @@
|
|
|
|
|
|
<div class="panelContent" style="height:90%; overflow-y:auto; padding:0px 20px !important; ">
|
|
|
<form id="cancelRequestFrm" name="cancelRequestFrm" action="/orderChange/return" method="post" target="hdFrameForOrderCancel">
|
|
|
- <input type="hidden" name="ordNo" th:value="${ordNo}"/>
|
|
|
- <input type="hidden" name="ordChgSq" th:value="${ordChgSq}"/>
|
|
|
- <input type="hidden" name="chgReason" value=""/>
|
|
|
- <input type="hidden" name="chgReasonDesc" value=""/>
|
|
|
+ <input type="hidden" name="ordNo" th:value="${ordNo}"/>
|
|
|
+ <input type="hidden" name="ordChgSq" th:value="${ordChgSq}"/>
|
|
|
+ <input type="hidden" name="delvFeeCd" th:value="${delvFeeCd}"/>
|
|
|
+ <input type="hidden" name="chgReason" value=""/>
|
|
|
+ <input type="hidden" name="chgReasonDesc" value=""/>
|
|
|
|
|
|
<h4>주문정보</h4>
|
|
|
<div id="gridOrderCancelRequestList" style="width:100%; height: 200px;" class="ag-theme-balham"></div>
|
|
|
@@ -39,7 +40,6 @@
|
|
|
<div style="text-align:right; padding-bottom:5px; padding-top:5px;">
|
|
|
<button type="button" class="btn btn-success" id="rtnReqBtn" onclick="fnCnclReq('rtnReq');">반품신청</button>
|
|
|
<button type="button" class="btn btn-success" id="rtnReqCancelBtn" onclick="fnCnclReq('rtnReqCancel');">반품철회</button>
|
|
|
- <!-- <button type="button" class="btn btn-success" id="rtnReqCancelBtn" onclick="fnCnclReq('rtnReqComplete');">반품승인</button> -->
|
|
|
</div>
|
|
|
|
|
|
<table class="frmStyle">
|
|
|
@@ -135,56 +135,60 @@
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
- <h4>회수지 정보</h4>
|
|
|
- <table class="frmStyle">
|
|
|
- <colgroup>
|
|
|
- <col style="width:160px;" />
|
|
|
- <col style="width:320px;" />
|
|
|
- <col style="width:160px;" />
|
|
|
- <col />
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th>보내는사람 <i class="star"></i></th>
|
|
|
- <td colspan="3"><input type="text" name ="chgerNm" class=""/></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>회수지주소 <i class="star"></i></th>
|
|
|
- <td colspan="3">
|
|
|
- <input type="text" name ="chgerZipcode" class="w100" readonly="readonly"/>
|
|
|
- <button type="button" class="btn btn-info" th:unless="${ordChgSq > 0}" onclick="fnOpenDaumAddr('delvLoc');">우편번호찾기</button>
|
|
|
- <input type="text" name ="chgerBaseAddr" class="w300"/>
|
|
|
- <input type="text" name ="chgerDtlAddr" class="w300"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>일반전화</th>
|
|
|
- <td>
|
|
|
- <select name="chgerTelno1" class="w100">
|
|
|
- <option value="">[선택하세요]</option>
|
|
|
- <option th:if="${TelExcNoList}" th:each="oneData, status : ${TelExcNoList}" th:value="${oneData.cd}" th:text="${oneData.cd}"></option>
|
|
|
- </select>
|
|
|
- - <input type="text" name ="chgerTelno2" class="w60"/>
|
|
|
- - <input type="text" name ="chgerTelno3" class="w60"/>
|
|
|
- </td>
|
|
|
- <th>휴대전화 <i class="star"></i></th>
|
|
|
- <td>
|
|
|
- <select name="chgerPhnno1" class="w100">
|
|
|
- <option value="">[선택하세요]</option>
|
|
|
- <option th:if="${PhnExcNoList}" th:each="oneData, status : ${PhnExcNoList}" th:value="${oneData.cd}" th:text="${oneData.cd}"></option>
|
|
|
- </select>
|
|
|
- - <input type="text" name ="chgerPhnno2" class="w60"/>
|
|
|
- - <input type="text" name ="chgerPhnno3" class="w60"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>반품메모</th>
|
|
|
- <td colspan="3">
|
|
|
- <textarea id="chgerRtnMemo" name="chgerRtnMemo" style="height:80px;" placeholder="반품메모(수거시요청사항)를 300자내외로 작성해 주세요"></textarea>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <!-- 회수지정보 -->
|
|
|
+ <div id="chgerAdress">
|
|
|
+ <h4>회수지 정보</h4>
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:160px;" />
|
|
|
+ <col style="width:320px;" />
|
|
|
+ <col style="width:160px;" />
|
|
|
+ <col />
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th>보내는사람 <i class="star"></i></th>
|
|
|
+ <td colspan="3"><input type="text" name ="chgerNm" class=""/></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>회수지주소 <i class="star"></i></th>
|
|
|
+ <td colspan="3">
|
|
|
+ <input type="text" name ="chgerZipcode" class="w100" readonly="readonly"/>
|
|
|
+ <button type="button" class="btn btn-info" th:unless="${ordChgSq > 0}" onclick="fnOpenDaumAddr('delvLoc');">우편번호찾기</button>
|
|
|
+ <input type="text" name ="chgerBaseAddr" class="w300"/>
|
|
|
+ <input type="text" name ="chgerDtlAddr" class="w300"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>일반전화</th>
|
|
|
+ <td>
|
|
|
+ <select name="chgerTelno1" class="w100">
|
|
|
+ <option value="">[선택하세요]</option>
|
|
|
+ <option th:if="${TelExcNoList}" th:each="oneData, status : ${TelExcNoList}" th:value="${oneData.cd}" th:text="${oneData.cd}"></option>
|
|
|
+ </select>
|
|
|
+ - <input type="text" name ="chgerTelno2" class="w60"/>
|
|
|
+ - <input type="text" name ="chgerTelno3" class="w60"/>
|
|
|
+ </td>
|
|
|
+ <th>휴대전화 <i class="star"></i></th>
|
|
|
+ <td>
|
|
|
+ <select name="chgerPhnno1" class="w100">
|
|
|
+ <option value="">[선택하세요]</option>
|
|
|
+ <option th:if="${PhnExcNoList}" th:each="oneData, status : ${PhnExcNoList}" th:value="${oneData.cd}" th:text="${oneData.cd}"></option>
|
|
|
+ </select>
|
|
|
+ - <input type="text" name ="chgerPhnno2" class="w60"/>
|
|
|
+ - <input type="text" name ="chgerPhnno3" class="w60"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>반품메모</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <textarea id="chgerRtnMemo" name="chgerRtnMemo" style="height:80px;" placeholder="반품메모(수거시요청사항)를 300자내외로 작성해 주세요"></textarea>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <!-- //회수지정보 -->
|
|
|
|
|
|
<div id="wrapRefundAccount" style="width:50%;">
|
|
|
<h4>환불계좌정보</h4>
|
|
|
@@ -203,10 +207,12 @@
|
|
|
var cancelRequestTargetList = [[${cancelRequestTargetList}]]; // 취소대상목록
|
|
|
var ordNo = [[${ordNo}]]; // 주문번호
|
|
|
var ordChgSq = [[${ordChgSq}]]; // 주문변경번호
|
|
|
+var delvFeeCd = [[${delvFeeCd}]]; // 배송정책코드
|
|
|
var orderInfoList = [[${orderInfoList}]]; // 주문기본정보
|
|
|
var orderDelvRtnAddrInfo = [[${orderDelvRtnAddrInfo}]]; // 회수지정보
|
|
|
var orderChangeDetailList = [[${orderChangeDetailList}]]; // 취소/반품/교환요청 정보
|
|
|
-var payMeans = orderInfoList[0].payMeans; // 결제수단
|
|
|
+var payGb = orderInfoList[0].payGb; // 결제수단
|
|
|
+var payMeans = orderInfoList[0].payMeans; // 결제방법
|
|
|
var chgReason = ""; // 변경사유코드
|
|
|
var chgMemo = ""; // 변경사유메모
|
|
|
var wdGb; // 회수방법
|
|
|
@@ -219,278 +225,233 @@ if (ordChgSq > 0) {
|
|
|
}
|
|
|
|
|
|
var temp1 = true;
|
|
|
-var temp2 = true;
|
|
|
+var temp2 = false;
|
|
|
+var temp3 = true;
|
|
|
|
|
|
-// 1. 주문정보(변경요청가능대상)
|
|
|
+//1. 주문정보(변경요청가능대상)
|
|
|
var columnCancelReqList = [
|
|
|
+ {headerName: "주문번호" , field: "ordNo" , width: 80 , cellClass: 'text-center' , hide: temp1},
|
|
|
+ {headerName: "주문상세" , field: "ordDtlNo" , width: 80 , cellClass: 'text-center'} ,
|
|
|
+ {headerName: "주문상세" , field: "ordDtlStat" , width: 80 , cellClass: 'text-center' , hide: temp1},
|
|
|
+ {headerName: "주문상세상태" , field: "ordDtlStatNm" , width: 100 , cellClass: 'text-center' , hide: temp1},
|
|
|
+ {headerName: "상품코드" , field: "goodsCd" , width: 100 , cellClass: 'text-left' , hide: temp2},
|
|
|
+ {headerName: "상품명" , field: "goodsNm" , width: 200 , cellClass: 'text-left' , hide: temp2},
|
|
|
+ {headerName: "상품타입" , field: "goodsTypeNm" , width: 100 , cellClass: 'text-center' , hide: temp2},
|
|
|
{
|
|
|
- headerName : "주문상세정보",
|
|
|
- children : [
|
|
|
- {headerName: "주문번호" , field: "ordNo" , width: 80 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "주문상세" , field: "ordDtlNo" , width: 80 , cellClass: 'text-center'},
|
|
|
- {headerName: "주문상세" , field: "ordDtlStat" , width: 80 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "주문상세상태" , field: "ordDtlStatNm" , width: 100 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "상품코드" , field: "goodsCd" , width: 100 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "상품명" , field: "goodsNm" , width: 200 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "상품타입" , field: "goodsTypeNm" , width: 100 , cellClass: 'text-center', hide: temp2}
|
|
|
- ]
|
|
|
+ headerName : "옵션금액"
|
|
|
+ , field : "optAddPrice"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
},
|
|
|
{
|
|
|
- headerName : "주문상세단품정보",
|
|
|
- children : [
|
|
|
- {headerName: "단품번호" , field: "ordDtlItemSq" , width: 100 , cellClass: 'text-center', hide: temp2},
|
|
|
- {headerName: "단품코드" , field: "itemCd" , width: 100 , cellClass: 'text-center', hide: temp2},
|
|
|
- {headerName: "단품명" , field: "itemNm" , width: 200 , cellClass: 'text-center', hide: temp2},
|
|
|
- {headerName: "옵션1" , field: "optCd1" , width: 80 , cellClass: 'text-center', hide: temp1},
|
|
|
- {headerName: "옵션2" , field: "optCd2" , width: 80 , cellClass: 'text-center', hide: temp2},
|
|
|
- {
|
|
|
- headerName : "단품수량"
|
|
|
- , field : "itemQty"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "단품금액"
|
|
|
- , field : "itemPrice"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "단품옵션금액"
|
|
|
- , field : "optAddPrice"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ headerName : "주문"
|
|
|
+ , field : "ordQty"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- headerName : "주문상세수량",
|
|
|
- children : [
|
|
|
- {
|
|
|
- headerName : "주문"
|
|
|
- , field : "ordQty"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "취소/요청"
|
|
|
- , field : "cnclRtnQty"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-center'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- var cnclRtnReqQty = parseInt(params.data.cnclRtnQty) + parseInt(params.data.ordReqChgQty);
|
|
|
- return cnclRtnReqQty;
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "취소/반품"
|
|
|
- , field : "ordCanChgQty"
|
|
|
- , width : 100
|
|
|
- , cellClass : 'text-center'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- var ordQty = parseInt(params.data.ordQty);
|
|
|
- var cnclRtnQty = parseInt(params.data.cnclRtnQty);
|
|
|
- var ordReqChgQty = parseInt(params.data.ordReqChgQty);
|
|
|
- var ordCanChgQty = parseInt(params.value);
|
|
|
- var rtnStr = "";
|
|
|
-
|
|
|
- // 취소신청가능수량있으면 수량만 표시 (취소,반품,교환 신청정보 처리)
|
|
|
- if (ordChgSq > 0) {
|
|
|
- rtnStr = ordCanChgQty;
|
|
|
+ headerName : "취소/요청"
|
|
|
+ , field : "cnclRtnQty"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ var cnclRtnReqQty = parseInt(params.data.cnclRtnQty) + parseInt(params.data.ordReqChgQty);
|
|
|
+ return cnclRtnReqQty;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "취소/반품"
|
|
|
+ , field : "ordCanChgQty"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ var ordQty = parseInt(params.data.ordQty);
|
|
|
+ var cnclRtnQty = parseInt(params.data.cnclRtnQty);
|
|
|
+ var ordReqChgQty = parseInt(params.data.ordReqChgQty);
|
|
|
+ var ordCanChgQty = parseInt(params.value);
|
|
|
+ var rtnStr = "";
|
|
|
+
|
|
|
+ // 취소신청가능수량있으면 수량만 표시 (취소,반품,교환 신청정보 처리)
|
|
|
+ if (ordChgSq > 0) {
|
|
|
+ rtnStr = ordCanChgQty;
|
|
|
+ } else {
|
|
|
+ ordCanChgQty = ordQty - (cnclRtnQty + ordReqChgQty);
|
|
|
+
|
|
|
+ rtnStr += "<select class='ordCanChgQty' name='ordCanChgQty' ordDtlNo='"+params.data.ordDtlNo+"' onChange='fnCalculateRefundAmt(this);'>";
|
|
|
+
|
|
|
+ for (i=0 ; i<=ordCanChgQty ; i++) {
|
|
|
+ if (i == params.data.ordCanChgQty) {
|
|
|
+ rtnStr += " <option value='"+i+"' selected>"+i+"</option>";
|
|
|
} else {
|
|
|
- ordCanChgQty = ordQty - (cnclRtnQty + ordReqChgQty);
|
|
|
-
|
|
|
- rtnStr += "<select class='ordCanChgQty' name='ordCanChgQty' ordDtlNo='"+params.data.ordDtlNo+"' onChange='fnCalculateRefundAmt(this);'>";
|
|
|
-
|
|
|
- for (i=0 ; i<=ordCanChgQty ; i++) {
|
|
|
- if (i == params.data.ordCanChgQty) {
|
|
|
- rtnStr += " <option value='"+i+"' selected>"+i+"</option>";
|
|
|
- } else {
|
|
|
- rtnStr += " <option value='"+i+"'>"+i+"</option>";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- rtnStr += "</select>";
|
|
|
+ rtnStr += " <option value='"+i+"'>"+i+"</option>";
|
|
|
}
|
|
|
- return rtnStr;
|
|
|
}
|
|
|
+
|
|
|
+ rtnStr += "</select>";
|
|
|
}
|
|
|
- ]
|
|
|
+
|
|
|
+ return rtnStr;
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- headerName : "주문단품금액",
|
|
|
- children : [
|
|
|
- {
|
|
|
- headerName : "주문"
|
|
|
- , field : "ordAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "취소"
|
|
|
- , field : "cnclRtnAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "즉시할인"
|
|
|
- , field : "cpn1DcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "다다익선1"
|
|
|
- , field : "tmtb1DcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "다다익선2"
|
|
|
- , field : "tmtb2DcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "상품쿠폰"
|
|
|
- , field : "goodsCpnDcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "장바구니쿠폰"
|
|
|
- , field : "cartCpnDcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "포인트"
|
|
|
- , field : "pntDcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "선포인트"
|
|
|
- , field : "prePntDcAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "상품권"
|
|
|
- , field : "gfcdUseAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "실결제금액"
|
|
|
- , field : "realOrdAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
+ headerName : "주문"
|
|
|
+ , field : "ordAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- headerName : "주문배송비정보",
|
|
|
- children : [
|
|
|
- {
|
|
|
- headerName : "배송비"
|
|
|
- , field : "delvFee"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- , hide : temp2
|
|
|
- },
|
|
|
- {headerName: "업체" , field: "supplyCompCd" , width: 100 , cellClass: 'text-center', hide: temp2},
|
|
|
- {headerName: "배송비코드" , field: "delvFeeCd" , width: 100 , cellClass: 'text-center', hide: temp2},
|
|
|
- {
|
|
|
- headerName : "무료배송비"
|
|
|
- , field : "minOrdAmt"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- , hide : temp2
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "기본배송비"
|
|
|
- , field : "orgDelvFee"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- , hide : temp2
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "반품배송비"
|
|
|
- , field : "rtnDelvFee"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- , hide : temp2
|
|
|
- },
|
|
|
- {
|
|
|
- headerName : "교환배송비"
|
|
|
- , field : "excDelvFee"
|
|
|
- , width : 80
|
|
|
- , cellClass : 'text-right'
|
|
|
- , cellRenderer : function (params) {
|
|
|
- return params.value.addComma();
|
|
|
- }
|
|
|
- , hide : temp2
|
|
|
- },
|
|
|
- {headerName: "전체취소가능" , field: "allCanYn" , width: 100 , cellClass: 'text-center', hide: temp2},
|
|
|
- ]
|
|
|
- }
|
|
|
+ headerName : "취소"
|
|
|
+ , field : "cnclRtnAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "즉시할인"
|
|
|
+ , field : "cpn1DcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "다다익선1"
|
|
|
+ , field : "tmtb1DcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "다다익선2"
|
|
|
+ , field : "tmtb2DcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "상품쿠폰"
|
|
|
+ , field : "goodsCpnDcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "장바구니쿠폰"
|
|
|
+ , field : "cartCpnDcAmt"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "포인트"
|
|
|
+ , field : "pntDcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "선포인트"
|
|
|
+ , field : "prePntDcAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "상품권"
|
|
|
+ , field : "gfcdUseAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "실결제금액"
|
|
|
+ , field : "realOrdAmt"
|
|
|
+ , width : 100
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "배송비"
|
|
|
+ , field : "delvFee"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
+ },
|
|
|
+ {headerName: "업체" , field: "supplyCompCd" , width: 100 , cellClass: 'text-center', hide: temp1},
|
|
|
+ {headerName: "배송비코드" , field: "delvFeeCd" , width: 100 , cellClass: 'text-center', hide: temp1},
|
|
|
+ {
|
|
|
+ headerName : "무료배송비"
|
|
|
+ , field : "minOrdAmt"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "기본배송비"
|
|
|
+ , field : "orgDelvFee"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "반품배송비"
|
|
|
+ , field : "rtnDelvFee"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ headerName : "교환배송비"
|
|
|
+ , field : "excDelvFee"
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-right'
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ return params.value.addComma();
|
|
|
+ }
|
|
|
+ , hide : temp1
|
|
|
+ },
|
|
|
+ {headerName: "전체취소가능" , field: "allCanYn" , width: 100 , cellClass: 'text-center', hide: temp1}
|
|
|
];
|
|
|
var gridOptionsCancelReqList = gagaAgGrid.getGridOptions(columnCancelReqList);
|
|
|
|
|
|
@@ -902,6 +863,14 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
var custNo = orderInfoList[0].custNo;
|
|
|
var delvFeeCd = orderInfoList[0].delvFeeCd;
|
|
|
|
|
|
+ // 5. 추가정보설정
|
|
|
+ var chgerNm = orderInfoList[0].ordNm;
|
|
|
+ var chgerEmail = orderInfoList[0].ordEmail;
|
|
|
+ var chgerPhnno = orderInfoList[0].ordPhnno;
|
|
|
+ var chgerTelno = orderInfoList[0].ordTelno;
|
|
|
+ var custNo = orderInfoList[0].custNo;
|
|
|
+ var delvFeeCd = orderInfoList[0].delvFeeCd;
|
|
|
+
|
|
|
// 환불금액계산호출
|
|
|
var jsonObj = {
|
|
|
"ordNo" : ordNo
|
|
|
@@ -915,9 +884,9 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
,"ordPhnno" : chgerPhnno
|
|
|
,"delvFeeCd" : delvFeeCd
|
|
|
}
|
|
|
-
|
|
|
- // 환불금액계산호출
|
|
|
+
|
|
|
var jsonData = JSON.stringify(jsonObj);
|
|
|
+
|
|
|
gagajf.ajaxJsonSubmit(
|
|
|
'/orderChange/cancel/refundAmt'
|
|
|
, jsonData
|
|
|
@@ -977,7 +946,7 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
|
|
|
// 사유
|
|
|
var fnChangeChgReason = function(reasonCd){
|
|
|
- var customerReasonArr = ['G688_10', 'G688_11', 'G688_12', 'G688_13', 'G688_15' , 'G688_21', 'G688_30'];
|
|
|
+ var customerReasonArr = ['G688_10'];
|
|
|
|
|
|
isCustomer = false;
|
|
|
|
|
|
@@ -1056,7 +1025,6 @@ var fnCnclReq = function (reqGbn) {
|
|
|
|
|
|
// 3. 취소사유 체크
|
|
|
var chgReason = $("#cancelRequestFrm select[name=selectChgReason]").val();
|
|
|
-
|
|
|
if (gagajf.isNull(chgReason)) {
|
|
|
mcxDialog.alert("취소사유를 입력하세요.");
|
|
|
return ;
|
|
|
@@ -1142,37 +1110,39 @@ var fnCnclReq = function (reqGbn) {
|
|
|
}
|
|
|
|
|
|
var jsonObj = {
|
|
|
- "ordNo" : $('#cancelRequestFrm input[name=ordNo]').val()
|
|
|
- ,"chgReason" : $('#cancelRequestFrm input[name=chgReason]').val()
|
|
|
- ,"chgMemo" : $('#chgMemo').val()
|
|
|
- ,"cancelReqList" : cancelRequestTargetList
|
|
|
- ,"custNo" : custNo
|
|
|
- ,"accountNo" : accountNo
|
|
|
- ,"accountNm" : accountNm
|
|
|
- ,"bankCd" : bankCd
|
|
|
- ,"allCanYn" : allCanYn
|
|
|
- ,"isCustomer" : isCustomer
|
|
|
- ,"chgerNm" : chgerNm
|
|
|
- ,"chgerEmail" : chgerEmail
|
|
|
- ,"chgerZipcode" : chgerZipcode
|
|
|
- ,"chgerBaseAddr" : chgerBaseAddr
|
|
|
- ,"chgerDtlAddr" : chgerDtlAddr
|
|
|
- ,"chgerPhnno" : chgerPhnno
|
|
|
- ,"chgerTelno" : chgerTelno
|
|
|
- ,"chgerRtnMemo" : chgerRtnMemo
|
|
|
- ,"ordChgSq" : ordChgSq
|
|
|
- ,"wdGb" : $('#wdGb:checked').val()
|
|
|
+ "ordNo" : $('#cancelRequestFrm input[name=ordNo]').val()
|
|
|
+ ,"chgReason" : $('#cancelRequestFrm input[name=chgReason]').val()
|
|
|
+ ,"chgMemo" : $('#chgMemo').val()
|
|
|
+ ,"cancelReqList" : cancelRequestTargetList
|
|
|
+ ,"accountNo" : accountNo
|
|
|
+ ,"accountNm" : accountNm
|
|
|
+ ,"bankCd" : bankCd
|
|
|
+ ,"allCanYn" : allCanYn
|
|
|
+ ,"allCanYnBeforePayment" : allCanYnBeforePayment
|
|
|
+ ,"isCustomer" : isCustomer
|
|
|
+ ,"chgerNm" : chgerNm
|
|
|
+ ,"chgerEmail" : chgerEmail
|
|
|
+ ,"chgerZipcode" : chgerZipcode
|
|
|
+ ,"chgerBaseAddr" : chgerBaseAddr
|
|
|
+ ,"chgerDtlAddr" : chgerDtlAddr
|
|
|
+ ,"chgerPhnno" : chgerPhnno
|
|
|
+ ,"chgerTelno" : chgerTelno
|
|
|
+ ,"chgerRtnMemo" : chgerRtnMemo
|
|
|
+ ,"ordChgSq" : ordChgSq
|
|
|
+ ,"wdGb" : $('#wdGb:checked').val()
|
|
|
+ ,"delvFeeCd" : delvFeeCd
|
|
|
}
|
|
|
|
|
|
// 주문번호, 취소사유, 취소메모, (취소, 반품, 교환 신청 정보 목록), 환불계좌
|
|
|
var jsonData = JSON.stringify(jsonObj);
|
|
|
|
|
|
mcxDialog.confirm('반품요청하시겠습니까?', {
|
|
|
- cancelBtnText : "반품",
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
sureBtnClick : function(){
|
|
|
// 취소 실행
|
|
|
gagajf.ajaxJsonSubmit(
|
|
|
- cnclUrl
|
|
|
+ cnclUrl
|
|
|
, jsonData
|
|
|
, function() {
|
|
|
uifnPopupClose('popupOrderDetail');
|
|
|
@@ -1323,7 +1293,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
|
|
|
// debug mode 해제
|
|
|
- if (temp2) {
|
|
|
+ if (temp3) {
|
|
|
$("#h4OrderCancelRequestToBeList").css("display", "none");
|
|
|
$("#gridOrderCancelRequestToBeList").css("display", "none");
|
|
|
$("#h4DelvCdList").css("display", "none");
|