|
|
@@ -211,6 +211,42 @@
|
|
|
<h4 style="width:85%;">회수대상 상품 정보</h4>
|
|
|
<div id="refundGridList" style="width: 100%; height: 200px; padding-top:10PX;" class="ag-theme-balham"></div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="refundAccount" style="width:100%">
|
|
|
+ <h4>환불계좌정보</h4>
|
|
|
+ <button type="button" id="btnSaveAccount" class="btn btnRight btn-base btn-sm" style="margin-left:10px;" onclick="fnCreateOrderRfAccount();">등록</button>
|
|
|
+
|
|
|
+ <!-- TABLE -->
|
|
|
+ <table class="tableStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col width="">
|
|
|
+ <col width="">
|
|
|
+ <col width="">
|
|
|
+ <col width="">
|
|
|
+ <col width="">
|
|
|
+ </colgroup>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>은행명</th>
|
|
|
+ <th>은행코드</th>
|
|
|
+ <th>계좌번호</th>
|
|
|
+ <th>예금주</th>
|
|
|
+ <th>기본여부</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr style="height:30px;">
|
|
|
+ <td class="bankNm"></td>
|
|
|
+ <td class="bankCd"></td>
|
|
|
+ <td class="accountNo"></td>
|
|
|
+ <td class="accountNm"></td>
|
|
|
+ <td class="defaultYn"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
@@ -408,6 +444,7 @@
|
|
|
var fnWithdrawDetailCallback = function(result) {
|
|
|
reFundInfo = result.refundConfirmPreInfo; // 환불 컨펌 환불 정보
|
|
|
returnOrderInfo = result.returnOrderInfo;
|
|
|
+ payMeans = reFundInfo.payMeans;
|
|
|
|
|
|
if (result.dataList.length < 1) {
|
|
|
mcxDialog.alert('회수데이터 오류입니다. 운영팀에 문의 해주세요! ');
|
|
|
@@ -425,7 +462,6 @@
|
|
|
|
|
|
// 전체 회수 완료 일 때
|
|
|
if (result.dataList.length == confirmCnt ) {
|
|
|
- //setReadOnly(true);
|
|
|
$('#pgBtn').hide();
|
|
|
$('#divRefundInfo').hide();
|
|
|
$('#divRefundInfo2').show();
|
|
|
@@ -515,25 +551,24 @@
|
|
|
reFundInfo.cardGbNm = cardGbNm;
|
|
|
|
|
|
// 환불컨펌 상세
|
|
|
- $("#wdGbNm").text(data.wdGbNm); // 회수구분
|
|
|
+ $("#wdGbNm").text(data.wdGbNm); // 회수구분
|
|
|
$("#arriValDt").text(data.arrivalDt); // arriValDt 도착일
|
|
|
- //$("#chgReasonNm").text(data.chgReasonNm); // 최종요청사유
|
|
|
- $("#chgReasonText").text(data.chgReasonText); // 귀책사유
|
|
|
- $("#withdrawDetailForm input[name=encloseFee]").val(data.encloseFee); // 동봉비
|
|
|
- $("#withdrawDetailForm input[name=codFee]").val(data.codFee); // 착불비
|
|
|
- $("#withdrawDetailForm input[name=addPayCost]").val(data.addPayCost); // 추가결제비
|
|
|
- $("#chgMemo").text(data.chgMemo); // 클레임메모
|
|
|
+ $("#chgReasonText").text(data.chgReasonText); // 귀책사유
|
|
|
+ $("#withdrawDetailForm input[name=encloseFee]").val(data.encloseFee); // 동봉비
|
|
|
+ $("#withdrawDetailForm input[name=codFee]").val(data.codFee); // 착불비
|
|
|
+ $("#withdrawDetailForm input[name=addPayCost]").val(data.addPayCost); // 추가결제비
|
|
|
+ $("#chgMemo").text(data.chgMemo); // 클레임메모
|
|
|
$("#wdMemo").text(data.wdMemo); // 회수메모
|
|
|
|
|
|
// 2021.11.15 사유변경설정
|
|
|
$("#withdrawDetailForm select[name=selectChgReason]").val(data.chgReason);
|
|
|
|
|
|
// 2021.11.15 동봉비, 착불비 칼럼 전체 허용 (CS 개선업무)
|
|
|
- //if(delvExpnYn == "Y"){
|
|
|
+ //if (delvExpnYn == "Y") {
|
|
|
//$('#withdrawDetailForm input[name=codFee]').attr('readonly', 'readonly');
|
|
|
//$('#withdrawDetailForm input[name=encloseFee]').attr('readonly', 'readonly');
|
|
|
//} else {
|
|
|
- //if(wdGb == "W"){
|
|
|
+ //if (wdGb == "W") {
|
|
|
//$('#withdrawDetailForm input[name=codFee]').attr('readonly', 'readonly');
|
|
|
//} else {
|
|
|
//$('#withdrawDetailForm input[name=codFee]').remove('readonly');
|
|
|
@@ -541,6 +576,13 @@
|
|
|
//}
|
|
|
|
|
|
fnSetTotRefundData();
|
|
|
+
|
|
|
+ // 3. 무통장입금아닐때 환불계좌 목록 숨김처리 (무통장, 휴대폰번호)
|
|
|
+ if (payMeans !== 'G014_20'&& payMeans !== 'G014_60') {
|
|
|
+ $('#withdrawDetailForm .refundAccount').addClass("off");
|
|
|
+ } else {
|
|
|
+ fnBindOrderRfAccountInfo();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
var addDeliveryFee = 0;
|
|
|
@@ -945,6 +987,36 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 환불계좌 등록
|
|
|
+ var fnCreateOrderRfAccount = function () {
|
|
|
+ var actionUrl = "/orderChange/refund/account/create/form?ordNo=" + ordNo + "&ordChgSq=" + ordChgSq ;
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupCreateRefundAccount');
|
|
|
+ };
|
|
|
+
|
|
|
+ // 환불계좌 정보
|
|
|
+ var fnBindOrderRfAccountInfo = function () {
|
|
|
+ var jsonObj = {
|
|
|
+ "ordNo" : ordNo
|
|
|
+ , "ordChgSq" : ordChgSq
|
|
|
+ }
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(jsonObj);
|
|
|
+
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ '/orderChange/refund/account/info/list'
|
|
|
+ , jsonData
|
|
|
+ , function (result) {
|
|
|
+ if (result.orderRfAccountInfo[0].bankNm != null && result.orderRfAccountInfo[0].bankNm != '') {
|
|
|
+ $("#withdrawDetailForm .refundAccount .bankNm").text(result.orderRfAccountInfo[0].bankNm);
|
|
|
+ $("#withdrawDetailForm .refundAccount .bankCd").text(result.orderRfAccountInfo[0].bankCd);
|
|
|
+ $("#withdrawDetailForm .refundAccount .accountNo").text(result.orderRfAccountInfo[0].accountNo);
|
|
|
+ $("#withdrawDetailForm .refundAccount .accountNm").text(result.orderRfAccountInfo[0].accountNm);
|
|
|
+ $("#withdrawDetailForm .refundAccount .defaultYn").text(result.orderRfAccountInfo[0].defaultYn);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ };
|
|
|
+
|
|
|
/*************************************************************************
|
|
|
* init
|
|
|
**************************************************************************/
|