|
@@ -56,7 +56,11 @@
|
|
|
<td>
|
|
<td>
|
|
|
<select name="selectChgReason" onchange="fnChangeChgReason($(this).val());">
|
|
<select name="selectChgReason" onchange="fnChangeChgReason($(this).val());">
|
|
|
<option value="">[선택하세요]</option>
|
|
<option value="">[선택하세요]</option>
|
|
|
- <option th:if="${chgReasonList}" th:each="oneData, status : ${chgReasonList}" th:value="|${oneData.cd}|" th:text="|${oneData.cdNm}|"></option>
|
|
|
|
|
|
|
+ <th:block th:each="oneData, status : ${chgReasonList}">
|
|
|
|
|
+ <th:block th:if="${oneData.cd} == G686_10 or ${oneData.cd} == G686_20 or ${oneData.cd} == G686_30">
|
|
|
|
|
+ <option th:if="${chgReasonList}" th:value="|${oneData.cd}|" th:text="|${oneData.cdNm}|"></option>
|
|
|
|
|
+ </th:block>
|
|
|
|
|
+ </th:block>
|
|
|
</select>
|
|
</select>
|
|
|
</td>
|
|
</td>
|
|
|
<th>귀책사유</th>
|
|
<th>귀책사유</th>
|
|
@@ -85,38 +89,38 @@
|
|
|
<td colspan="3"><span id="spanPayAmt"></span>원 (상품 실결제 금액 : <span id="spanSumRealOrdAmt"></span>원, 배송금액 : <span id="spanSumDeliveryFee"></span>원) </td>
|
|
<td colspan="3"><span id="spanPayAmt"></span>원 (상품 실결제 금액 : <span id="spanSumRealOrdAmt"></span>원, 배송금액 : <span id="spanSumDeliveryFee"></span>원) </td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>주문 상품 금액</th>
|
|
|
|
|
|
|
+ <th>상품 주문 금액</th>
|
|
|
<td><span id="spanOrdAmt"></span>원</td>
|
|
<td><span id="spanOrdAmt"></span>원</td>
|
|
|
- <th>취소 상품 금액</th>
|
|
|
|
|
|
|
+ <th>상품 취소 금액</th>
|
|
|
<td><span id="spanCnclRtnAmt"></span>원</td>
|
|
<td><span id="spanCnclRtnAmt"></span>원</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>취소 사용 포인트</th>
|
|
|
|
|
|
|
+ <th>포인트 취소 금액</th>
|
|
|
<td colspan="3"><span id="spanTotPntDcAmt"></span>원 (고객 포인트 : <span id="spanPntDcAmt"></span>원 + 상품 선포인트 : <span id="spanPrePntDcAmt"></span>원) </td>
|
|
<td colspan="3"><span id="spanTotPntDcAmt"></span>원 (고객 포인트 : <span id="spanPntDcAmt"></span>원 + 상품 선포인트 : <span id="spanPrePntDcAmt"></span>원) </td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>취소 사용 쿠폰금액</th>
|
|
|
|
|
|
|
+ <th>쿠폰 취소 금액</th>
|
|
|
<td colspan="3"><span id="spanCpnDcAmt"></span>원 (즉시할인쿠폰 : <span id="spanCpn1DcAmt"></span>원 + 상품쿠폰 : <span id="spanGoodsCpnDcAmt"></span>원 + 장바구니쿠폰 : <span id="spanCartCpnDcAmt"></span>원)</td>
|
|
<td colspan="3"><span id="spanCpnDcAmt"></span>원 (즉시할인쿠폰 : <span id="spanCpn1DcAmt"></span>원 + 상품쿠폰 : <span id="spanGoodsCpnDcAmt"></span>원 + 장바구니쿠폰 : <span id="spanCartCpnDcAmt"></span>원)</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>취소 다다익선 금액</th>
|
|
|
|
|
|
|
+ <th>다다익선 취소 금액</th>
|
|
|
<td colspan="3"><span id="spanTmtbDcAmt"></span>원 (수량할인 : <span id="spanTmtb1DcAmt"></span>원 + 금액할인 : <span id="spanTmtb2DcAmt"></span>원)</td>
|
|
<td colspan="3"><span id="spanTmtbDcAmt"></span>원 (수량할인 : <span id="spanTmtb1DcAmt"></span>원 + 금액할인 : <span id="spanTmtb2DcAmt"></span>원)</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>취소 고객 상품권 금액</th>
|
|
|
|
|
|
|
+ <th>상품권 취소 금액</th>
|
|
|
<td colspan="3"><span id="spanGfcdUseAmt"></span>원</td>
|
|
<td colspan="3"><span id="spanGfcdUseAmt"></span>원</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>취소 상품 실결제 금액</th>
|
|
|
|
|
|
|
+ <th>상품 실결제 취소 금액</th>
|
|
|
<td><span id="spanRealCnclRtnAmt"></span>원</td>
|
|
<td><span id="spanRealCnclRtnAmt"></span>원</td>
|
|
|
- <th>추가 배송 금액</th>
|
|
|
|
|
|
|
+ <th>추가 배송비 금액</th>
|
|
|
<td><span id="spanTotDeliveryFee"></span>원 </td>
|
|
<td><span id="spanTotDeliveryFee"></span>원 </td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th>환불 금액 합계</th>
|
|
|
|
|
|
|
+ <th>환불 예정 금액</th>
|
|
|
<td colspan="3"><span id="spanRefundAmt"></span>원</td>
|
|
<td colspan="3"><span id="spanRefundAmt"></span>원</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
@@ -144,6 +148,7 @@ var orderChangeDetailList = [[${orderChangeDetailList}]]; // 취소/반품/
|
|
|
var payMeans = orderInfoList[0].payMeans; // 결제수단
|
|
var payMeans = orderInfoList[0].payMeans; // 결제수단
|
|
|
var chgReason = ""; // 변경사유코드
|
|
var chgReason = ""; // 변경사유코드
|
|
|
var chgMemo = ""; // 변경사유메모
|
|
var chgMemo = ""; // 변경사유메모
|
|
|
|
|
+var cancelRequestTargetCnt = [[${cancelRequestTargetList.size()}]]; // 환불정보
|
|
|
|
|
|
|
|
// 변경요청정보 승인, 철회
|
|
// 변경요청정보 승인, 철회
|
|
|
if (ordChgSq > 0) {
|
|
if (ordChgSq > 0) {
|
|
@@ -152,279 +157,233 @@ if (ordChgSq > 0) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var temp1 = true;
|
|
var temp1 = true;
|
|
|
-var temp2 = true;
|
|
|
|
|
|
|
+var temp2 = false;
|
|
|
|
|
+var temp3 = true;
|
|
|
|
|
|
|
|
// 1. 주문정보(변경요청가능대상)
|
|
// 1. 주문정보(변경요청가능대상)
|
|
|
var columnCancelReqList = [
|
|
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 {
|
|
} 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);
|
|
var gridOptionsCancelReqList = gagaAgGrid.getGridOptions(columnCancelReqList);
|
|
|
|
|
|
|
@@ -839,7 +798,6 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
|
|
|
|
|
$("#spanPayAmt").text(result.spanPayAmt.addComma()); //총 결제 금액
|
|
$("#spanPayAmt").text(result.spanPayAmt.addComma()); //총 결제 금액
|
|
|
$("#spanSumRealOrdAmt").text(result.spanSumRealOrdAmt.addComma()); //상품 실결제 금액
|
|
$("#spanSumRealOrdAmt").text(result.spanSumRealOrdAmt.addComma()); //상품 실결제 금액
|
|
|
- $("#spanSumDeliveryFee").text(result.spanSumDeliveryFee.addComma()); //배송금액
|
|
|
|
|
|
|
|
|
|
$("#spanOrdAmt").text(result.spanOrdAmt.addComma()); //주문 상품 금액
|
|
$("#spanOrdAmt").text(result.spanOrdAmt.addComma()); //주문 상품 금액
|
|
|
$("#spanCnclRtnAmt").text(result.spanCnclRtnAmt.addComma()); //취소 상품 금액
|
|
$("#spanCnclRtnAmt").text(result.spanCnclRtnAmt.addComma()); //취소 상품 금액
|
|
@@ -873,6 +831,8 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
// 회사사유 : 환불금액계산 = (취소금액 + 배송비)
|
|
// 회사사유 : 환불금액계산 = (취소금액 + 배송비)
|
|
|
else {
|
|
else {
|
|
|
result.spanRefundAmt = (result.spanRealCnclRtnAmt + result.sumDeliveryFee);
|
|
result.spanRefundAmt = (result.spanRealCnclRtnAmt + result.sumDeliveryFee);
|
|
|
|
|
+ // 2021.05.13 추가배송비금액 수정
|
|
|
|
|
+ $("#spanTotDeliveryFee").text(0); //배송금액
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -883,7 +843,7 @@ var fnCalculateRefundAmt = function (obj) {
|
|
|
|
|
|
|
|
// 사유
|
|
// 사유
|
|
|
var fnChangeChgReason = function(reasonCd){
|
|
var fnChangeChgReason = function(reasonCd){
|
|
|
- var customerReasonArr = ['G686_10'];
|
|
|
|
|
|
|
+ var customerReasonArr = ['G686_10', 'G686_20'];
|
|
|
|
|
|
|
|
isCustomer = false;
|
|
isCustomer = false;
|
|
|
|
|
|
|
@@ -919,6 +879,7 @@ var fnCnclReq = function (reqGbn) {
|
|
|
var bankCd = "";
|
|
var bankCd = "";
|
|
|
|
|
|
|
|
if (reqGbn == "cnclReq" || reqGbn == "cnclComplete") {
|
|
if (reqGbn == "cnclReq" || reqGbn == "cnclComplete") {
|
|
|
|
|
+
|
|
|
// 1. 취소수량 체크
|
|
// 1. 취소수량 체크
|
|
|
for (i=0 ; i<cancelRequestTargetList.length ; i++) {
|
|
for (i=0 ; i<cancelRequestTargetList.length ; i++) {
|
|
|
if (cancelRequestTargetList[i].ordCanChgQty > 0) {
|
|
if (cancelRequestTargetList[i].ordCanChgQty > 0) {
|
|
@@ -1104,12 +1065,16 @@ $(document).ready(function() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// debug mode 해제
|
|
// debug mode 해제
|
|
|
- if (temp2) {
|
|
|
|
|
|
|
+ if (temp3) {
|
|
|
$("#h4OrderCancelRequestToBeList").css("display", "none");
|
|
$("#h4OrderCancelRequestToBeList").css("display", "none");
|
|
|
$("#gridOrderCancelRequestToBeList").css("display", "none");
|
|
$("#gridOrderCancelRequestToBeList").css("display", "none");
|
|
|
$("#h4DelvCdList").css("display", "none");
|
|
$("#h4DelvCdList").css("display", "none");
|
|
|
$("#gridDelvCdList").css("display", "none");
|
|
$("#gridDelvCdList").css("display", "none");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 2021.05.13 높이자동조절
|
|
|
|
|
+ var cancelRequestTargetHeight = 50 + (40 * cancelRequestTargetCnt);
|
|
|
|
|
+ $("#gridOrderCancelRequestList").css("height" , cancelRequestTargetHeight+"px");
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
</html>
|
|
</html>
|