| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612 |
- <!DOCTYPE html>
- <html lang="ko" xmlns:th="http://www.thymeleaf.org">
- <!--
- *******************************************************************************
- * @source : ExchangeRequestForm.html
- * @desc : 교환요청 화면
- *============================================================================
- * STYLE24
- * Copyright(C) 2021 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2021.01.15 card007 최초 작성
- *******************************************************************************
- -->
- <div class="modalPopup" data-width="1400" data-height="600">
- <div class="panelStyle">
- <div class="panelTitle">
- <h2>교환요청</h2>
- <button type="button" class="close" onclick="uifnPopupClose('popupExchangeRequestForm');"><i class="fa fa-times"></i></button>
- </div>
-
- <div class="panelContent" style="height:90%; overflow-y:auto; padding:0px 20px !important; ">
- <form id="exchangeRequestFrm" name="exchangeRequestFrm" action="/orderChange/exchange" method="post" target="hdFrameForOrderExchange">
- <input type="hidden" name="ordNo" th:value="${ordNo}"/>
- <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>
- <div id="delvCdList">
- <h4>배송정보</h4>
- <div id="gridDelvCdList" style="width:100%; height: 66px;" class="ag-theme-balham"></div>
- </div>
-
- <div style="text-align:right; padding-bottom:5px; padding-top:5px;">
- <button type="button" class="btn btn-success" th:unless="${ordChgSq > 0}" id="fnExchangeRequestSubmit" onclick="fnExchange()">교환요청</button>
- <!-- 2021.07.22 선발송 처리 시 교환철회 불가 처리 -->
- <th:block th:if="${wdBfSendYn == 'N'}">
- <!-- 2021.07.22 택배사 회수 불가 시 회수요청상태에서 교환철회 처리 -->
- <!-- 2021.10.01 card007 CS 요청으로 상품검수중까지 교환철회 오픈 처리 -->
- <!-- <button type="button" class="btn btn-success" th:if="${chgStat == 'G685_20' or chgStat == 'G685_21' or (recallExceptionInfo != null and (chgStat == 'G685_30' or chgStat == 'G685_31'))}" id="fnExchangeCancelRequestSubmit" onclick="fnExchangeCancel()">교환철회</button> -->
- <!-- <button type="button" class="btn btn-success" th:if="${chgStat == 'G685_20' or chgStat == 'G685_21' or chgStat == 'G685_22' or (chgStat == 'G685_30' and (canRequestCancelYn == 'Y' or recallExceptionInfo != null)) or (chgStat == 'G685_31' and recallExceptionInfo != null)}" id="fnExchangeCancelRequestSubmit" onclick="fnExchangeCancel()">교환철회</button> -->
- <button type="button" class="btn btn-success" th:if="${chgStat == 'G685_20' or chgStat == 'G685_21' or chgStat == 'G685_22' or chgStat == 'G685_30' or chgStat == 'G685_31'}" id="fnExchangeCancelRequestSubmit" onclick="fnExchangeCancel()">교환철회</button>
- </th:block>
- <th:block th:if="${ordChgSq > 0 and (ordChgGb == 'G681_20' or ordChgGb == 'G681_40')}">
- <!-- 선발송 처리 시 교TO교 접수 불가 처리 -->
- <button type="button" class="btn btn-success" th:unless="${ordChgGb == 'G681_20' and wdBfSendYn == 'Y'}" id="fnReturnToExchangeSubmit" onclick="fnExchange()">교환변경</button>
- </th:block>
- <th:block th:if="${ordChgSq > 0 and chgStat == 'G685_22'}">
- <!-- 네이버페이 주문형 교환승인 버튼 -->
- <button type="button" class="btn btn-success" id="fnExchangeApprovalSubmit" onclick="fnExchange()">교환승인</button>
- </th:block>
- <th:block th:if="${ordChgSq > 0 and chgStat != 'G685_40'}">
- <!-- 네이버페이 주문형 교환보류 버튼 -->
- <button type="button" class="btn btn-success" id="fnExchangeHold" npayChangeHoldYn="N" onclick="fnNpayExchangeHold(this)">교환보류</button>
- <button type="button" class="btn btn-success" id="fnReleaseExchangeHold" npayChangeHoldYn="Y" onclick="fnNpayExchangeHold(this)">교환보류해제</button>
- </th:block>
- </div>
-
- <table class="frmStyle">
- <colgroup>
- <col style="width:160px;" />
- <col style="width:320px;" />
- <col style="width:160px;" />
- <col style="width:320px;" />
- <col style="width:160px;" />
- <col />
- </colgroup>
- <tbody>
- <tr>
- <th>교환사유 <i class="star"></i></th>
- <td th:if="${ordChgSq <= 0 or ordChgGb == 'G681_40'}">
- <select name="selectChgReason" onchange="fnChangeChgReason($(this).val());">
- <option value="">[선택하세요]</option>
- <option th:if="${chgReasonList}" th:each="oneData, status : ${chgReasonList}" th:value="|${oneData.cd}:${oneData.cdNm}|" th:text="|[${oneData.cd}] ${oneData.cdNm}|"></option>
- </select>
- </td>
- <td th:if="${ordChgSq > 0 and ordChgGb != 'G681_40'}" th:id="chgReason"></td>
- <th>귀책사유</th>
- <td><span id="imputeReason"></span></td>
- <th>선발송</th>
- <td>
- <label class="chkBox">
- <input type="checkbox" name="wdBfSendYn" id="wdBfSendYn" disabled="disabled"/>
- </label>
- </td>
- </tr>
- <tr>
- <th>회수방법</th>
- <td>
- <label class="rdoBtn"><input type="radio" name="wdGb" th:id="wdGb" value="W" onclick="fnChangeWdGb(this)"/>회수요청<span></span></label>
- <label class="rdoBtn"><input type="radio" name="wdGb" th:id="wdGb" value="D" onclick="fnChangeWdGb(this)"/>직접발송<span></span></label>
- </td>
- <th>추가배송비</th>
- <td id="addDelvFee"></td>
- <th>알림톡미전송여부</th>
- <td>
- <label class="chkBox">
- <input type="checkbox" name="msgStat" id="msgStat" checked/>
- </label>
- </td>
- </tr>
- <tr>
- <th>요청메모<br/><span id="chgMemoCount">0</span>/1,000Byte</th>
- <td colspan="5">
- <textarea id="chgMemo" name="chgMemo" style="height:80px;" onkeyup="cfnGetTextLength(this, 1000, $('#chgMemoCount'));"></textarea>
- </td>
- </tr>
- </tbody>
- </table>
-
- <h4 class="chger">회수지 정보</h4>
- <button style="float: right" type="button" class="btn btn-success chger" id="chgerButton" onclick="fnChangeChgerInfo();">회수지 수정</button>
- <!-- <button style="float: right" type="button" class="btn btn-success chger" id="chgerButton" th:if="${(#strings.isEmpty(ordChgGb) or ordChgGb == 'G681_50') and ordChgSq > 0 and wdGb == 'W' and (chgStat == 'G685_20' or chgStat == 'G685_21')}" onclick="fnChangeChgerInfo();">회수지 수정</button>-->
- <table class="frmStyle chger">
- <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:if="${#strings.isEmpty(ordChgGb) and (ordChgSq == 0 or chgStat == 'G685_20' or chgStat == 'G685_21')}" onclick="fnOpenDaumAddr('withdraw');">우편번호찾기</button>-->
- <button type="button" class="btn btn-info" id="chgerFindAddr" onclick="fnOpenDaumAddr('withdraw');">우편번호찾기</button>
- <input type="text" name ="chgerBaseAddr" class="w300" readonly="readonly"/>
- <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>반품메모<br/><span id="chgerRtnMemoCount">0</span>/1,000Byte</th>
- <td colspan="3">
- <textarea id="chgerRtnMemo" name="chgerRtnMemo" style="height:80px;" onkeyup="cfnGetTextLength(this, 1000, $('#chgerRtnMemoCount'));"></textarea>
- </td>
- </tr>
- </tbody>
- </table>
- <h4>교환지 정보</h4>
- <button style="float: right" type="button" class="btn btn-success" id="recipButton" onclick="fnChangeRecipInfo();">교환지 수정</button>
- <!-- <button style="float: right" type="button" class="btn btn-success" th:unless="${ordChgSq == 0 or ordChgGb == 'G681_20' or (chgStat == 'G685_40' and (chgOrdDtlStat != 'G013_20' or chgOrdDtlStat != 'G013_30' or chgOrdDtlStat != 'G013_35'))}" onclick="fnChangeRecipInfo();">교환지 수정</button>-->
- <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 ="recipNm" class=""/></td>
- </tr>
- <tr>
- <th>교환지주소 <i class="star"></i></th>
- <td colspan="3">
- <input type="text" name ="recipZipcode" class="w100" readonly="readonly"/>
- <!-- <button type="button" class="btn btn-info" th:unless="${ordChgGb == 'G681_20' or (chgStat == 'G685_40' and (chgOrdDtlStat != 'G013_20' or chgOrdDtlStat != 'G013_30' or chgOrdDtlStat != 'G013_35')) or chgStat == 'G685_22'}" onclick="fnOpenDaumAddr('exchange');">우편번호찾기</button>-->
- <button type="button" class="btn btn-info" id="recipFindAddr" onclick="fnOpenDaumAddr('exchange');">우편번호찾기</button>
- <input type="text" name ="recipBaseAddr" class="w300" readonly="readonly"/>
- <input type="text" name ="recipDtlAddr" class="w300"/>
- </td>
- </tr>
- <tr>
- <th>일반전화</th>
- <td>
- <select name="recipTelno1" 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 ="recipTelno2" class="w60"/>
- - <input type="text" name ="recipTelno3" class="w60"/>
- </td>
- <th>휴대전화 <i class="star"></i></th>
- <td>
- <select name="recipPhnno1" 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 ="recipPhnno2" class="w60"/>
- - <input type="text" name ="recipPhnno3" class="w60"/>
- </td>
- </tr>
- <tr>
- <th>배송메모<br/><span id="delvMemoCount">0</span>/1,000Byte</th>
- <td colspan="3">
- <textarea id="delvMemo" name="delvMemo" style="height:80px;" onkeyup="cfnGetTextLength(this, 1000, $('#delvMemoCount'));"></textarea>
- </td>
- </tr>
- </tbody>
- </table>
-
- <h4>접수자 정보</h4>
- <table class="frmStyle">
- <colgroup>
- <col style="width:15%;" />
- <col style="width:35%;" />
- <col style="width:15%;" />
- <col />
- </colgroup>
- <tbody>
- <tr>
- <th>접수자</th>
- <td id="exchRequestRegNm"></td>
- <th>최종수정자</th>
- <td id="exchRequestUpdNm"></td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- </div>
- </div>
- <!-- data -->
- <script th:inline="javascript">
- /*<![CDATA[*/
- var cancelRequestTargetList = [[${cancelRequestTargetList}]]; // 교환대상목록
- var ordNo = [[${ordNo}]]; // 주문번호
- var ordChgSq = [[${ordChgSq}]]; // 주문변경번호
- var chgStat = [[${chgStat}]]; // 변경상태
- var orderInfoList = [[${orderInfoList}]]; // 주문기본정보
- var payMeans = orderInfoList[0].payMeans; // 결제수단
- var pgGb = orderInfoList[0].pgGb; // PG구분
- var orderDelvAddrInfo = [[${orderDelvAddrInfo}]]; // 회수지정보
- var recallExceptionInfo = [[${recallExceptionInfo}]]; // 회수 예외 정보
- var rtnLocInfo = [[${rtnLocInfo}]]; // 반송지주소정보
- var addPayCost = 0; // 추가배송비
- var addDelvFee = 0; // 추가배송비
- var exchangeRequestList = []; // 교환요청목록
- var exchangeInfoList; // 교환정보
- var wdGb; // 회수방법
- var ordChgGb = [[${ordChgGb}]]; // 변경요청변경구분
- var orderChangeDetailList; // 취소/반품/교환요청 정보
- var chgOrdDtlStat; // 교환상품상세상태값
- var delvAddrSq; // 교환상품배송지일련번호
- var npayChangeHoldYn = ''; // 네이버페이 주문형 반품/교환 보류 여부
- var selfGoodsYn = cancelRequestTargetList[0].selfGoodsYn; // 자사,입점여부
- var wdBfSendYn = "";
- var canDeliveryCancelYn = "";
- var temp1 = true;
- var temp2 = true;
- // 변경요청정보 승인, 철회
- if (ordChgSq > 0) {
- orderChangeDetailList = [[${orderChangeDetailList}]]; // 취소/반품/교환요청 정보
- exchangeInfoList = [[${exchangeInfoList}]]; // 교환정보
- npayChangeHoldYn = orderChangeDetailList[0].npayChangeHoldYn; // 네이버페이 주문형 반품/교환 보류 여부
- if (ordChgGb == 'G681_40') {
- chgReason = orderChangeDetailList[0].chgReason; // 변경사유코드
- chgReasonNm = orderChangeDetailList[0].chgReasonNm; // 변경사유코드명
- chgMemo = orderChangeDetailList[0].chgMemo; // 변경사유메모
- wdGb = orderChangeDetailList[0].wdGb; // 회수방법
- chgOrdDtlStat = ''; // 교환상품상세상태값
- delvAddrSq = ''; // 교환상품배송지일련번호
- } else {
- chgReason = exchangeInfoList[0].chgReason; // 변경사유코드
- chgReasonNm = exchangeInfoList[0].chgReasonNm; // 변경사유코드명
- chgMemo = exchangeInfoList[0].chgMemo; // 변경사유메모
- wdGb = exchangeInfoList[0].wdGb; // 회수방법
- chgOrdDtlStat = exchangeInfoList[0].ordDtlStat; // 교환상품상세상태값
- delvAddrSq = exchangeInfoList[0].delvAddrSq; // 교환상품배송지일련번호
- addPayCost = exchangeInfoList[0].addPayCost; // 추가배송비
- }
-
- wdBfSendYn = orderChangeDetailList[0].wdBfSendYn; // 선발송여부
- canDeliveryCancelYn = [[${canDeliveryCancelYn}]];
- }
- // 1. 주문정보(교환대상)
- var columnExchangeReqList = [
- {
- 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'},
- {headerName: "상품명" , field: "goodsNm" , width: 130 , cellClass: 'text-center'},
- {headerName: "상품타입" , field: "goodsTypeNm" , width: 100 , cellClass: 'text-center', hide: temp2}
- ]
- },
- {
- headerName : "주문상세단품정보",
- children : [
- {headerName: "단품번호" , field: "ordDtlItemSq" , width: 100 , cellClass: 'text-center', hide: temp2},
- {headerName: "단품코드" , field: "itemCd" , width: 100 , cellClass: 'text-center'},
- {headerName: "SKUCODE" , field: "optCd" , width: 100 , cellClass: 'text-center'},
- {headerName: "단품명" , field: "itemNm" , width: 130 , cellClass: 'text-center'},
- {headerName: "옵션1" , field: "optCd1" , width: 60 , cellClass: 'text-center'},
- {headerName: "옵션2" , field: "optCd2" , width: 60 , cellClass: 'text-center'},
- {
- headerName : "단품수량"
- , field : "itemQty"
- , width : 60
- , 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 : 90
- , cellClass : 'text-right'
- , cellRenderer : function (params) {
- return params.value.addComma();
- }
- }
- ]
- },
- {
- headerName : "주문상세수량",
- children : [
- {
- headerName : "주문"
- , field : "ordQty"
- , width : 70
- , cellClass : 'text-center'
- , cellRenderer : function (params) {
- return params.value.addComma();
- }
- },
- {
- headerName : "취소/요청"
- , field : "cnclRtnQty"
- , width : 70
- , cellClass : 'text-center'
- , cellRenderer : function (params) {
- var cnclRtnReqQty = parseInt(params.data.cnclRtnQty) + parseInt(params.data.ordReqChgQty);
- return cnclRtnReqQty;
- }
- , hide : temp1
- },
- {headerName: "교환가능옵션" , field: "optCd2s" , width: 200 , cellClass: 'text-center', hide: temp2},
- {
- headerName : "교환옵션"
- , field : "ordChgOpt"
- , width : 100
- , cellClass : "text-center"
- , cellRenderer : function (params) {
- if (ordChgSq > 0 && ordChgGb != 'G681_40' && chgStat != 'G685_22') {
- $.each(exchangeInfoList, function(idx, item) {
- if (params.data.itemCd == item.itemCd && params.data.optCd1 == item.optCd1) {
- strVal = item.optCd2;
- }
- });
- } else {
- var optCd2Arr = params.data.optCd2s.split(',');
- var optCdArr = params.data.optCds.split(',');
- var ordChgOpt = params.data.ordChgOpt;
- var ordQty = parseInt(params.data.ordQty);
- var cnclRtnQty = parseInt(params.data.cnclRtnQty);
- var ordReqChgQty = parseInt(params.data.ordReqChgQty);
- var ordCanChgQty = ordQty - (cnclRtnQty + ordReqChgQty);
- if (ordChgGb == 'G681_40' || chgStat == 'G685_22') {
- ordCanChgQty = params.data.chgQty;
- }
- var strVal = '';
- if (ordCanChgQty == 0) {
- strVal += '<select class="ordChgOpt" name="ordChgOpt" ordDtlNo="' + params.data.ordDtlNo + '" ordDtlItemSq="' + params.data.ordDtlItemSq + '" onchange="fnChangeOption(this)" disabled="disabled">';
- } else {
- strVal += '<select class="ordChgOpt" name="ordChgOpt" ordDtlNo="' + params.data.ordDtlNo + '" ordDtlItemSq="' + params.data.ordDtlItemSq + '" onchange="fnChangeOption(this)">';
- }
- if (gagajf.isNull(ordChgOpt)) {
- strVal += '<option value="">선택</option>';
- } else {
- strVal += '<option value="" selected>선택</option>';
- }
- $.each(optCdArr, function (idx, item) {
- // 2021.07.26 교환옵션 optCd2 -> optCd로 변경 처리
- if (ordChgOpt == item) {
- //strVal += '<option value="' + item + '" selected>' + item + '</option>';
- strVal += '<option value="' + item + '/' + optCd2Arr[idx] + '" selected>' + optCd2Arr[idx] + '</option>';
- } else {
- //strVal += '<option value="' + item + '">' + item + '</option>';
- strVal += '<option value="' + item + '/' + optCd2Arr[idx] + '">' + optCd2Arr[idx] + '</option>';
- }
- });
- }
- return strVal;
- }
- },
- {headerName: "재고수량" , field: "currStockQty" , width: 100 , cellClass: 'text-center', hide: temp2},
- {
- headerName : "교환신청수량"
- , field : "chgQty"
- , width : 100
- , cellClass : 'text-center'
- , cellRenderer : function (params) {
- if (ordChgSq > 0) {
- // 반품TO교환, 교환TO교환
- if (ordChgGb == 'G681_40' || ordChgGb == 'G681_20') {
- strVal = params.data.chgQty;
- }
- // 교환상세
- else {
- $.each(exchangeInfoList, function (idx, item) {
- if (params.data.itemCd == item.itemCd && params.data.optCd1 == item.optCd1) {
- strVal = item.chgQty;
- }
- });
- }
- } else {
- var ordQty = parseInt(params.data.ordQty);
- var cnclRtnQty = parseInt(params.data.cnclRtnQty);
- var ordReqChgQty = parseInt(params.data.ordReqChgQty);
- var ordCanChgQty = ordQty - (cnclRtnQty + ordReqChgQty);
-
- //// 교환TO교환
- //if (ordChgGb == 'G681_20') {
- // ordCanChgQty = parseInt(params.data.ordCanChgQty);
- //}
-
- var strVal = "";
- if (ordCanChgQty == 0) {
- strVal += '<select class="ordCanChgQty ' + params.data.ordDtlNo + '" name="chgQty" ordDtlNo="' + params.data.ordDtlNo + '" onchange="fnChangeQty(this)" disabled="disabled">';
- } else {
- strVal += '<select class="ordCanChgQty ' + params.data.ordDtlNo + '" name="chgQty" ordDtlNo="' + params.data.ordDtlNo + '" onchange="fnChangeQty(this)">';
- }
-
- for (i = 0; i <= ordCanChgQty; i++) {
- if (i == params.data.chgQty) {
- strVal += " <option value='" + i + "' selected>" + i + "</option>";
- } else {
- strVal += " <option value='" + i + "'>" + i + "</option>";
- }
- }
-
- strVal += "</select>";
- }
- return strVal;
- }
- }
- ]
- },
- {
- 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 : "주문배송비정보",
- 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) {
- if (params.data.delvFeeCrite == 'G078_30') {
- return 0;
- } else {
- 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},
- ]
- }
- ];
- var gridOptionsExchangeReqList = gagaAgGrid.getGridOptions(columnExchangeReqList);
- // Add on options
- gridOptionsExchangeReqList.suppressRowClickSelection = true;
- gridOptionsExchangeReqList.rowSelection = 'multiple';
- // 3. 배송정보(환불정보)
- var columnDelvCdList = [
- {headerName: "업체" , field: "supplyCompNm" , width: 100 , cellClass: 'text-center'},
- {headerName: "배송비코드" , field: "delvFeeCd" , width: 100 , cellClass: 'text-center'},
- {
- headerName : "추가배송비"
- , field : "addDelvFee"
- , width : 100
- , cellClass : 'text-right'
- , cellRenderer : function (params) {
- return params.value.addComma();
- }
- , hide : true
- },
- {headerName: "반품지명" , field: "rtnLocNm" , width: 100 , cellClass: 'text-center'},
- {headerName: "반품지전화번호" , field: "rtnLocTelno" , width: 100 , cellClass: 'text-center'},
- {headerName: "반품지우편번호" , field: "rtnLocZipcode" , width: 100 , cellClass: 'text-center'},
- {headerName: "반품지기본주소" , field: "rtnLocBaseAddr" , width: 300 , cellClass: 'text-center'},
- {headerName: "반품지상세주소" , field: "rtnLocDtlAddr" , width: 300 , cellClass: 'text-center'},
- ];
- var gridOptionsDelvCdList = gagaAgGrid.getGridOptions(columnDelvCdList);
- </script>
- <script>
- //현재 사유는 회사 입니다.
- var isCustomer = false;
- var exchangeChk = false;
- // 사유 변경
- var fnChangeChgReason = function(reasonCd){
- var arrReasonCd = reasonCd.split(":");
- var customerReasonArr = ['G689_10', 'G689_30', 'G688_10'];
-
- isCustomer = false;
- // 취소, 반품, 교환 사유 판단
- for (i=0 ; i<customerReasonArr.length ; i++) {
- if (customerReasonArr[i] == arrReasonCd[0]) {
- isCustomer = true;
- }
- }
-
- // 귀책사유설정 회사, 고객
- if (isCustomer) {
- $("#imputeReason").text("고객");
- if ($('#wdBfSendYn').is(':checked')) {
- $('#wdBfSendYn').prop('checked', false);
- }
-
- $('#wdBfSendYn').attr('disabled', true);
- } else {
- $("#imputeReason").text("회사");
-
- if (selfGoodsYn == 'Y' && (ordChgSq == null || ordChgSq <= 0)) {
- $('#wdBfSendYn').attr('disabled', false);
- }
- }
- $('#exchangeRequestFrm input[name=chgReason]').val(arrReasonCd[0]);
- $('#exchangeRequestFrm input[name=chgReasonDesc]').val(arrReasonCd[1]);
-
- // 추가배송비 설정
- fnChangeQty();
- }
- // 교환요청
- var fnExchange = function () {
- var qty = true;
- var opt = true;
- var wdGb = $('#wdGb:checked').val();
-
- // 교환신청 버튼 클릭 여부 체크
- if (exchangeChk) {
- return false;
- }
-
- if (ordChgGb == 'G681_50') {
- wdGb = 'D';
- }
- // 1. 교환수량 체크
- //$.each(cancelRequestTargetList, function(idx, item) {
- // if (item.chgQty > 0) {
- // qty = true;
- //
- // if (!gagajf.isNull(item.ordChgOpt)) {
- // opt = true;
- // }
- // }
- //});
- // 교환TO교환, 반품TO교환 신청 수량 설정
- if (ordChgGb == 'G681_20' || ordChgGb == 'G681_40') {
- exchangeRequestList = cancelRequestTargetList;
- //$.each(exchangeRequestList, function(idx, exchangeRequest) {
- // $.each(exchangeInfoList , function(idx2, exchangeInfo) {
- // if (exchangeRequest.itemCd == exchangeInfo.itemCd && exchangeRequest.optCd1 == exchangeInfo.optCd1) {
- // exchangeRequest.chgQty = exchangeInfo.chgQty;
- // }
- // });
- //});
- }
-
- $.each(exchangeRequestList, function(idx, item) {
- if (item.chgQty == null || item.chgQty == 0) {
- qty = false;
- }
- if (gagajf.isNull(item.ordChgOpt)) {
- opt = false;
- }
- });
- if (qty == false) {
- mcxDialog.alert('교환 할 수량을 입력하세요.');
- return;
- }
- if (opt == false) {
- mcxDialog.alert('교환옵션을 선택해주세요.');
- return;
- }
- // 2. 교환사유 체크
- var chgReason = $("#exchangeRequestFrm select[name=selectChgReason]").val();
-
- if (ordChgGb == 'G681_20' || chgStat == 'G685_22') {
- chgReason = $('#exchangeRequestFrm input[name=chgReason]').val();
- }
- //var chgReason = $('#exchangeRequestFrm input[name=chgReason]').val();
- if (gagajf.isNull(chgReason)) {
- mcxDialog.alert("교환사유를 입력하세요.");
- return;
- }
- // 5. 회수지정보설정
- var chgerNm = "";
- var chgerZipcode = "";
- var chgerBaseAddr = "";
- var chgerDtlAddr = "";
-
- var chgerPhnno1 = "";
- var chgerPhnno2 = "";
- var chgerPhnno3 = "";
-
- var chgerTelno1 = "";
- var chgerTelno2 = "";
- var chgerTelno3 = "";
-
- var chgerPhnno = "";
- var chgerTelno = "";
- var chgerEmail = "";
- var chgerRtnMemo = "";
- if (wdGb == 'W' && selfGoodsYn == 'Y') {
- chgerNm = $("#exchangeRequestFrm input[name=chgerNm]").val();
- chgerZipcode = $("#exchangeRequestFrm input[name=chgerZipcode]").val();
- chgerBaseAddr = $("#exchangeRequestFrm input[name=chgerBaseAddr]").val();
- chgerDtlAddr = $("#exchangeRequestFrm input[name=chgerDtlAddr]").val();
-
- chgerPhnno1 = $("#exchangeRequestFrm select[name=chgerPhnno1]").val();
- chgerPhnno2 = $("#exchangeRequestFrm input[name=chgerPhnno2]").val();
- chgerPhnno3 = $("#exchangeRequestFrm input[name=chgerPhnno3]").val();
-
- chgerTelno1 = $("#exchangeRequestFrm select[name=chgerTelno1]").val();
- chgerTelno2 = $("#exchangeRequestFrm input[name=chgerTelno2]").val();
- chgerTelno3 = $("#exchangeRequestFrm input[name=chgerTelno3]").val();
- chgerRtnMemo = $("#exchangeRequestFrm textarea[name=chgerRtnMemo]").val();
- if (gagajf.isNull(chgerZipcode)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerBaseAddr)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerDtlAddr)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
-
- if (gagajf.isNull(chgerPhnno1)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerPhnno2)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerPhnno3)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
-
- chgerPhnno = chgerPhnno1 + '-' + chgerPhnno2 + '-' + chgerPhnno3;
- chgerEmail = orderInfoList[0].ordEmail;
- if (gagajf.isNull(chgerTelno1) && gagajf.isNull(chgerTelno2) && gagajf.isNull(chgerTelno3)) {
- chgerTelno = '';
- } else {
- chgerTelno = chgerTelno1 + '-' + chgerTelno2 + '-' + chgerTelno3;
- }
- // 2021.11.09 card007 휴대폰번호 유효성검증 추가
- if (!gagajf.checkPhnno(chgerPhnno)) {
- mcxDialog.alert("회수지 휴대폰 번호가 유효하지 않습니다.");
- return false;
- }
- }
- // 교환지정보 설정
- var recipNm = $("#exchangeRequestFrm input[name=recipNm]").val();
- var recipZipcode = $("#exchangeRequestFrm input[name=recipZipcode]").val();
- var recipBaseAddr = $("#exchangeRequestFrm input[name=recipBaseAddr]").val();
- var recipDtlAddr = $("#exchangeRequestFrm input[name=recipDtlAddr]").val();
- var recipPhnno1 = $("#exchangeRequestFrm select[name=recipPhnno1]").val();
- var recipPhnno2 = $("#exchangeRequestFrm input[name=recipPhnno2]").val();
- var recipPhnno3 = $("#exchangeRequestFrm input[name=recipPhnno3]").val();
- var recipTelno1 = $("#exchangeRequestFrm select[name=recipTelno1]").val();
- var recipTelno2 = $("#exchangeRequestFrm input[name=recipTelno2]").val();
- var recipTelno3 = $("#exchangeRequestFrm input[name=recipTelno3]").val();
-
- if (gagajf.isNull(recipZipcode)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(recipBaseAddr)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(recipDtlAddr)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
-
- if (gagajf.isNull(recipPhnno1)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(recipPhnno2)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(recipPhnno3)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- var recipPhnno = recipPhnno1 + '-' + recipPhnno2 + '-' + recipPhnno3;
- var recipEmail = orderInfoList[0].ordEmail;
- var recipTelno;
- if (gagajf.isNull(recipTelno1) && gagajf.isNull(recipTelno2) && gagajf.isNull(recipTelno3)) {
- recipTelno = '';
- } else {
- recipTelno = recipTelno1 + '-' + recipTelno2 + '-' + recipTelno3;
- }
-
- // 2021.11.09 card007 휴대폰번호 유효성검증 추가
- if (!gagajf.checkPhnno(recipPhnno)) {
- mcxDialog.alert("교환배송지 휴대폰 번호가 유효하지 않습니다.");
-
- return false;
- }
-
- // 선발송 여부 설정
- let wdBfSendYn = $('#wdBfSendYn').is(':checked') ? 'Y' : 'N';
- var jsonObj = {
- "ordNo" : $('#exchangeRequestFrm input[name=ordNo]').val()
- ,"chgReason" : $('#exchangeRequestFrm input[name=chgReason]').val()
- ,"chgMemo" : $('#chgMemo').val()
- ,"cancelReqList" : exchangeRequestList
- ,"isCustomer" : isCustomer
- ,"wdGb" : wdGb
- ,"addPayCost" : addDelvFee
- ,"chgerNm" : chgerNm
- ,"chgerEmail" : chgerEmail
- ,"chgerZipcode" : chgerZipcode
- ,"chgerBaseAddr" : chgerBaseAddr
- ,"chgerDtlAddr" : chgerDtlAddr
- ,"chgerPhnno" : chgerPhnno
- ,"chgerTelno" : chgerTelno
- ,"chgerRtnMemo" : chgerRtnMemo
- ,"recipNm" : recipNm
- ,"recipEmail" : recipEmail
- ,"recipZipcode" : recipZipcode
- ,"recipBaseAddr" : recipBaseAddr
- ,"recipDtlAddr" : recipDtlAddr
- ,"recipPhnno" : recipPhnno
- ,"recipTelno" : recipTelno
- ,"delvMemo" : $("#exchangeRequestFrm textarea[name=delvMemo]").val()
- ,"ordChgSq" : ordChgSq
- ,"wdBfSendYn" : wdBfSendYn
- ,"ordChgGb" : ordChgGb
- ,"msgStat" : $('#msgStat').is(':checked') ? 'Y' : 'N'
- }
- // 주문번호, 교환사유, 교환메모, (취소, 반품, 교환 신청 정보 목록)
- var jsonData = JSON.stringify(jsonObj);
-
- // URL 설정
- var url;
- if (ordChgGb == 'G681_40') {
- url = '/orderChange/return/to/exchange/';
- } else if (ordChgGb == 'G681_20') {
- url = '/orderChange/exchange/to/exchange/';
- } else if (chgStat == 'G685_22') {
- url = '/orderChange/exchange/approval/';
- } else {
- url = '/orderChange/exchange/request/';
- }
- // 교환신청 버튼 클릭 여부 설정
- exchangeChk = true;
- mcxDialog.confirm('교환요청하시겠습니까?', {
- cancelBtnText : "취소",
- sureBtnClick : function(){
- // 교환 실행
- gagajf.ajaxJsonSubmit(
- url
- , jsonData
- , function() {
- if (chgStat == 'G685_22') {
- uifnPopupClose('popupExchangeRequestForm');
- fnSearchList();
- } else {
- uifnPopupClose('popupOrderDetail');
- fnReOpenOrderDetailPopup();
- uifnPopupClose('popupExchangeRequestForm');
- }
- }
- , function() {
- exchangeChk = false;
- }
- );
- }
- });
- }
- // 교환철회 처리
- var fnExchangeCancel = function() {
- let data = {};
- data.ordChgSq = ordChgSq;
- data.ordNo = ordNo;
- // 교환배송비 철회 가능여부 체크
- let message = '요청번호 [' + ordChgSq + '] 에 대한 요청철회 처리를 하시겠습니까?';
- if (canDeliveryCancelYn == 'N') {
- message = '교환배송비 [' + addPayCost.addComma() + '원] 취소불가로 PG점프 처리 됩니다. <br /> 요청번호 [' + ordChgSq + '] 에 대한 요청철회 처리를 하시겠습니까?';
- }
- let jsonData = JSON.stringify(data);
- mcxDialog.confirm(message, {
- cancelBtnText : "취소",
- sureBtnClick : function(){
- // 교환 실행
- gagajf.ajaxJsonSubmit(
- '/orderChange/exchangeCancelRequest/'
- , jsonData
- , function() {
- uifnPopupClose('popupOrderDetail');
- fnReOpenOrderDetailPopup();
- uifnPopupClose('popupExchangeRequestForm');
- }
- );
- }
- });
- }
- // 네이버페이 주문형 교환보류 버튼 클릭 이벤트
- var fnNpayExchangeHold = function(param) {
- let url = '/orderChange/nPay/order/exchange/hold';
- let npayChangeHoldYn = $(param).attr('npayChangeHoldYn');
-
- let data = {};
- data.cancelReqList = exchangeRequestList;
- data.npayChangeHoldYn = npayChangeHoldYn;
- data.ordChgSq = ordChgSq;
-
- let jsonData = JSON.stringify(data);
-
- gagajf.ajaxJsonSubmit(url, jsonData, function(result) {
- uifnPopupClose('popupOrderDetail');
- fnReOpenOrderDetailPopup();
- uifnPopupClose('popupExchangeRequestForm');
- });
- }
- // 우편번호 DAUM을 이용한 우편번호 팝업 레이어
- var fnOpenDaumAddr = function(loc) {
- let daumZip = new daum.Postcode({
- oncomplete: function(data) {
- // 우편번호와 주소 정보를 해당 필드에 넣는다.
- if (loc == 'withdraw') {
- $('#exchangeRequestFrm input[name=chgerZipcode]').val(data.zonecode);
- $('#exchangeRequestFrm input[name=chgerBaseAddr]').val(cfnGetDaumRoadAddr(data));
- $('#exchangeRequestFrm input[name=chgerDtlAddr]').focus();
- } else if (loc == 'exchange') {
- $('#exchangeRequestFrm input[name=recipZipcode]').val(data.zonecode);
- $('#exchangeRequestFrm input[name=recipBaseAddr]').val(cfnGetDaumRoadAddr(data));
- $('#exchangeRequestFrm input[name=recipDtlAddr]').focus();
- }
-
- cfnCloseDaumAddr();
- },
- width: '100%'
- });
-
- cfnOpenDaumAddr(daumZip);
- }
- // 회수지정보 설정
- var fnSetChger = function(){
- var data;
-
- if (ordChgSq > 0) {
- data = orderChangeDetailList[0];
- data.recipPhnno = data.chgerPhnno;
- data.recipTelno = data.chgerTelno;
- data.recipNm = data.chgerNm;
- data.recipZipcode = data.chgerZipcode;
- data.recipBaseAddr = data.chgerBaseAddr;
- data.recipDtlAddr = data.chgerDtlAddr;
- } else {
- data = orderDelvAddrInfo[0];
- }
-
- var spRecipPhnno = (data.recipPhnno != null) ? data.recipPhnno.split('-') : null;
- var spRecipTelno = (data.recipTelno != null) ? data.recipTelno.split('-') : null;
-
- $("#exchangeRequestFrm input[name=chgerNm]").val(data.recipNm);
- $("#exchangeRequestFrm input[name=chgerZipcode]").val(data.recipZipcode);
- $("#exchangeRequestFrm input[name=chgerBaseAddr]").val(data.recipBaseAddr);
- $("#exchangeRequestFrm input[name=chgerDtlAddr]").val(data.recipDtlAddr);
- $("#exchangeRequestFrm textarea[name=chgerRtnMemo]").val(data.chgerRtnMemo);
-
- if (spRecipPhnno) {
- $("#exchangeRequestFrm select[name=chgerPhnno1]").val(spRecipPhnno[0]);
- $("#exchangeRequestFrm input[name=chgerPhnno2]").val(spRecipPhnno[1]);
- $("#exchangeRequestFrm input[name=chgerPhnno3]").val(spRecipPhnno[2]);
- }
-
- if (spRecipTelno) {
- $("#exchangeRequestFrm select[name=chgerTelno1]").val(spRecipTelno[0]);
- $("#exchangeRequestFrm input[name=chgerTelno2]").val(spRecipTelno[1]);
- $("#exchangeRequestFrm input[name=chgerTelno3]").val(spRecipTelno[2]);
- }
- }
- // 교환지정보 설정
- var fnSetExchangeAddr = function(){
- var data;
-
- if (ordChgSq > 0 && ordChgGb != 'G681_40') {
- data = exchangeInfoList[0];
- } else {
- data = orderDelvAddrInfo[0];
- }
-
- var spRecipPhnno = (data.recipPhnno != null) ? data.recipPhnno.split('-') : null;
- var spRecipTelno = (data.recipTelno != null) ? data.recipTelno.split('-') : null;
-
- $("#exchangeRequestFrm input[name=recipNm]").val(data.recipNm);
- $("#exchangeRequestFrm input[name=recipZipcode]").val(data.recipZipcode);
- $("#exchangeRequestFrm input[name=recipBaseAddr]").val(data.recipBaseAddr);
- $("#exchangeRequestFrm input[name=recipDtlAddr]").val(data.recipDtlAddr);
- $("#exchangeRequestFrm textarea[name=delvMemo]").val(data.delvMemo);
-
- if (spRecipPhnno) {
- $("#exchangeRequestFrm select[name=recipPhnno1]").val(spRecipPhnno[0]);
- $("#exchangeRequestFrm input[name=recipPhnno2]").val(spRecipPhnno[1]);
- $("#exchangeRequestFrm input[name=recipPhnno3]").val(spRecipPhnno[2]);
- }
-
- if (spRecipTelno) {
- $("#exchangeRequestFrm select[name=recipTelno1]").val(spRecipTelno[0]);
- $("#exchangeRequestFrm input[name=recipTelno2]").val(spRecipTelno[1]);
- $("#exchangeRequestFrm input[name=recipTelno3]").val(spRecipTelno[2]);
- }
- }
- // 교환옵션 변경 이벤트
- var fnChangeOption = function(param) {
- var opt = $(param).val().split('/');
- var optCd = opt[0];
- var optCd2 = opt[1];
- var ordDtlNo = $(param).attr('ordDtlNo');
- var ordDtlItemSq = $(param).attr('ordDtlItemSq');
- $.each(cancelRequestTargetList, function(idx, item){
- if (item.ordDtlNo == ordDtlNo && item.ordDtlItemSq == ordDtlItemSq) {
- var stockQtyArr = item.currStockQtys.split(',');
- var sizeCdArr = item.optCd2s.split(',');
- var stockIdx = sizeCdArr.indexOf(optCd2);
- var stockQty = stockQtyArr[stockIdx];
-
- item.currStockQty = stockQty;
- item.ordChgOpt = optCd;
- }
- });
-
- fnChangeQty();
- }
- //환불예상금액계산
- var fnCalculateRefundAmt = function (obj) {
- if (obj != null) {
- for (i=0 ; i<cancelRequestTargetList.length ; i++) {
- var orDtlNo = $(obj).attr("ordDtlNo");
- var ordCanChgQty = $(obj).val();
-
- if (cancelRequestTargetList[i].ordDtlNo == orDtlNo) {
- cancelRequestTargetList[i].ordCanChgQty = ordCanChgQty;
- }
- }
- // 주문변경대상정보 재설정
- gridOptionsExchangeReqList.api.setRowData(cancelRequestTargetList);
- }
-
- if (cancelRequestTargetList.length == 0) {
- alert("요청 대상정보가 존재 하지 않습니다.");
- uifnPopupClose('popupCancelRequestForm');
- return false;
- }
-
- // 2021.05.25 수정
- var ordDtlNoArr = [];
- var cnclRtnReqQtyArr = [];
-
- // 1. 반품신청수량 체크
- for (i=0 ; i<cancelRequestTargetList.length ; i++) {
- if (cancelRequestTargetList[i].ordCanChgQty > 0) {
- // 반품신청값설정
- ordDtlNoArr.push(cancelRequestTargetList[i].ordDtlNo);
- cnclRtnReqQtyArr.push(cancelRequestTargetList[i].ordCanChgQty);
- }
- }
-
- // 2. 추가정보설정
- 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
- ,"ordDtlNoArr" : ordDtlNoArr
- ,"cnclRtnReqQtyArr" : cnclRtnReqQtyArr
- ,"isCustomer" : isCustomer
- ,"chgerNm" : chgerNm
- ,"chgerEmail" : chgerEmail
- ,"chgerPhnno" : chgerPhnno
- ,"custNo" : custNo
- ,"ordNm" : chgerNm
- ,"ordPhnno" : chgerPhnno
- ,"delvFeeCd" : delvFeeCd
- }
-
- var jsonData = JSON.stringify(jsonObj);
-
- gagajf.ajaxJsonSubmit(
- '/orderChange/cancel/refundAmt'
- , jsonData
- , function(result) {
-
- // 2021.12.01 취소금액설정
- if (result.cancelOrderRefundList != null && result.cancelOrderRefundList.length > 0) {
- for (i=0 ; i<result.cancelOrderRefundList.length ; i++) {
- for (j=0 ; j<cancelRequestTargetList.length ; j++) {
- if (result.cancelOrderRefundList[i].ordDtlNo == cancelRequestTargetList[j].ordDtlNo) {
- cancelRequestTargetList[j].cnclRtnAmt = result.cancelOrderRefundList[i].cnclRtnAmt; // 취소금액
- cancelRequestTargetList[j].cpn1DcAmt = result.cancelOrderRefundList[i].cpn1DcAmt; // 즉시할인쿠폰금액
- cancelRequestTargetList[j].tmtb1DcAmt = result.cancelOrderRefundList[i].tmtb1DcAmt; // 수량할인다다익선금액
- cancelRequestTargetList[j].tmtb2DcAmt = result.cancelOrderRefundList[i].tmtb2DcAmt; // 금액할인다다익선금액
- cancelRequestTargetList[j].goodsCpnDcAmt = result.cancelOrderRefundList[i].goodsCpnDcAmt; // 상품쿠폰금액
- cancelRequestTargetList[j].cartCpnDcAmt = result.cancelOrderRefundList[i].cartCpnDcAmt; // 장바구니쿠폰금액
- cancelRequestTargetList[j].pntDcAmt = result.cancelOrderRefundList[i].pntDcAmt; // 포인트금액
- cancelRequestTargetList[j].prePntDcAmt = result.cancelOrderRefundList[i].prePntDcAmt; // 선포인트금액
- cancelRequestTargetList[j].gfcdUseAmt = result.cancelOrderRefundList[i].gfcdUseAmt; // 상품권적용금액
- cancelRequestTargetList[j].realOrdAmt = result.cancelOrderRefundList[i].realOrdAmt; // 실결제금액
- }
- }
- }
-
- // 주문변경대상정보 재설정
- gridOptionsExchangeReqList.api.setRowData(cancelRequestTargetList);
- }
- }
- );
- }
- // 교환수량 변경 이벤트
- var fnChangeQty = function(param) {
- var chgQty = $(param).val(); // 변경수량
- var ordDtlNo = $(param).attr('ordDtlNo'); // 주문상세번호
- var exchangeRequestTargetList = [];
-
- var temp = true;
- $.each(cancelRequestTargetList, function(idx, item){
- if (item.ordDtlNo == ordDtlNo) {
- if (gagajf.isNull(item.ordChgOpt) && chgQty > 0) {
- temp = false;
- }
- item.chgQty = chgQty;
- if (chgQty > 0) {
- exchangeRequestTargetList.push(item);
- }
- } else if (item.chgQty > 0) {
- exchangeRequestTargetList.push(item);
- } else if (ordChgSq > 0 && item.ordCanChgQty > 0) {
- exchangeRequestTargetList.push(item);
- }
- });
-
- // 2021.12.02 소스수정
- if (temp == false) {
- mcxDialog.alert('교환옵션을 선택해주세요.');
- return false;
- }
- // 추가배송비 설정
- fnAddDelvFee(exchangeRequestTargetList);
- // 교환대상목록 설정
- exchangeRequestList = exchangeRequestTargetList;
- // 2021.12.02 교환취소금액계산
- fnCalculateRefundAmt(param);
- }
- // 추가배송비 설정
- var fnAddDelvFee = function (exchangeRequestTargetList) {
- var delvCdList = [];
- var delvFeeList = [];
- var delvFee = 0;
- // 고객 귀책사유에 한하여 추가배송비 설정
- $.each(exchangeRequestTargetList, function (idx, item) {
- if (!delvCdList.includes(item.delvFeeCd)) {
- if (isCustomer) {
- var delvFeeTmp = $('#wdGb:checked').val() == 'W' ? item.excDelvFee : item.rtnDelvFee;
- delvFee += delvFeeTmp;
- item.addDelvFeeYn = 'Y';
- item.addDelvFee = delvFeeTmp;
- } else {
- item.addDelvFeeYn = 'N';
- item.addDelvFee = 0;
- }
- delvCdList.push(item.delvFeeCd);
- delvFeeList.push(item);
- }
- });
- addDelvFee = delvFee;
- //addDelvFeeList = delvFeeList;
- // 회수방법 > 직접발송일 경우 그리드 표시
- // 2021.07.19 그리드 표시 여부 처리 변경
- //if ($('#wdGb:checked').val() == 'D') {
- // gridOptionsDelvCdList.api.setRowData(addDelvFeeList);
- //} else {
- // gridOptionsDelvCdList.api.setRowData();
- //}
-
- if (ordChgSq > 0) {
- $('#addDelvFee').text(addPayCost.addComma() + '원');
- } else {
- $('#addDelvFee').text(addDelvFee.addComma() + '원');
- }
- }
- // 회수방법 라디오 클릭 이벤트
- var fnChangeWdGb = function(param) {
- let wdGb = $(param).val();
- // 회수지정보 히든 처리
- if (wdGb == 'D') {
- $('.chger').css('display', 'none');
- $('#delvCdList').css('display', '');
- } else {
- $('.chger').css('display', '');
- $('#delvCdList').css('display', 'none');
-
- if (ordChgSq == 0) {
- $('#chgerButton').css('display', 'none');
- }
- }
- // 추가배송비 계산
- fnChangeQty();
- }
- // 회수지 정보 수정
- var fnChangeChgerInfo = function() {
- let url = '/orderChange/change/chger/addr';
- let chgerNm = $("#exchangeRequestFrm input[name=chgerNm]").val();
- let chgerZipcode = $("#exchangeRequestFrm input[name=chgerZipcode]").val();
- let chgerBaseAddr = $("#exchangeRequestFrm input[name=chgerBaseAddr]").val();
- let chgerDtlAddr = $("#exchangeRequestFrm input[name=chgerDtlAddr]").val();
- let chgerPhnno1 = $("#exchangeRequestFrm select[name=chgerPhnno1]").val();
- let chgerPhnno2 = $("#exchangeRequestFrm input[name=chgerPhnno2]").val();
- let chgerPhnno3 = $("#exchangeRequestFrm input[name=chgerPhnno3]").val();
- let chgerTelno1 = $("#exchangeRequestFrm select[name=chgerTelno1]").val();
- let chgerTelno2 = $("#exchangeRequestFrm input[name=chgerTelno2]").val();
- let chgerTelno3 = $("#exchangeRequestFrm input[name=chgerTelno3]").val();
-
- if (gagajf.isNull(chgerZipcode)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerBaseAddr)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerDtlAddr)) {
- mcxDialog.alert("회수지주소를 입력하세요."); return;
- }
-
- if (gagajf.isNull(chgerPhnno1)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerPhnno2)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(chgerPhnno3)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
-
- let chgerPhnno = chgerPhnno1 + '-' + chgerPhnno2 + '-' + chgerPhnno3;
- let chgerRtnMemo = $("#exchangeRequestFrm textarea[name=chgerRtnMemo]").val();
- let chgerTelno = '';
-
- if (!gagajf.isNull(chgerTelno1) && !gagajf.isNull(chgerTelno2) && !gagajf.isNull(chgerTelno3)) {
- chgerTelno = chgerTelno1 + '-' + chgerTelno2 + '-' + chgerTelno3;
- }
-
- // 2021.11.09 card007 휴대폰번호 유효성검증 추가
- if (!gagajf.checkPhnno(chgerPhnno)) {
- mcxDialog.alert("회수지 휴대폰 번호가 유효하지 않습니다.");
-
- return false;
- }
-
- let data = {};
- data.ordNo = ordNo;
- data.ordChgSq = ordChgSq;
- data.chgerNm = chgerNm;
- data.chgerPhnno = chgerPhnno;
- data.chgerZipcode = chgerZipcode;
- data.chgerBaseAddr = chgerBaseAddr;
- data.chgerDtlAddr = chgerDtlAddr;
- data.chgerRtnMemo = chgerRtnMemo;
-
- let jsonData = JSON.stringify(data);
-
- gagajf.ajaxJsonSubmit(url, jsonData, function(result){
-
- });
- }
- // 교환지 정보 수정
- var fnChangeRecipInfo = function() {
- let url = '/order/deliver/addr/update';
- var recipNm = $("#exchangeRequestFrm input[name=recipNm]").val();
- var recipZipcode = $("#exchangeRequestFrm input[name=recipZipcode]").val();
- var recipBaseAddr = $("#exchangeRequestFrm input[name=recipBaseAddr]").val();
- var recipDtlAddr = $("#exchangeRequestFrm input[name=recipDtlAddr]").val();
- var delvMemo = $("#exchangeRequestFrm textarea[name=delvMemo]").val();
-
- var recipPhnno1 = $("#exchangeRequestFrm select[name=recipPhnno1]").val();
- var recipPhnno2 = $("#exchangeRequestFrm input[name=recipPhnno2]").val();
- var recipPhnno3 = $("#exchangeRequestFrm input[name=recipPhnno3]").val();
-
- var recipTelno1 = $("#exchangeRequestFrm select[name=recipTelno1]").val();
- var recipTelno2 = $("#exchangeRequestFrm input[name=recipTelno2]").val();
- var recipTelno3 = $("#exchangeRequestFrm input[name=recipTelno3]").val();
-
- if (gagajf.isNull(recipZipcode)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(recipBaseAddr)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
- if (gagajf.isNull(recipDtlAddr)) {
- mcxDialog.alert("교환지주소를 입력하세요."); return;
- }
-
- if (gagajf.isNull(recipPhnno1)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(recipPhnno2)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
- if (gagajf.isNull(recipPhnno3)) {
- mcxDialog.alert("휴대전화를 입력하세요."); return;
- }
-
- var recipPhnno = recipPhnno1 + '-' + recipPhnno2 + '-' + recipPhnno3;
- var recipTelno;
- if (gagajf.isNull(recipTelno1) && gagajf.isNull(recipTelno2) && gagajf.isNull(recipTelno3)) {
- recipTelno = '';
- } else {
- recipTelno = recipTelno1 + '-' + recipTelno2 + '-' + recipTelno3;
- }
-
- // 2021.11.09 card007 휴대폰번호 유효성검증 추가
- if (!gagajf.checkPhnno(recipPhnno)) {
- mcxDialog.alert("교환배송지 휴대폰 번호가 유효하지 않습니다.");
-
- return false;
- }
-
- let data = {};
- data.ordNo = ordNo;
- data.delvAddrSq = delvAddrSq;
- data.recipNm = recipNm;
- data.recipPhnno = recipPhnno;
- data.recipZipcode = recipZipcode;
- data.recipBaseAddr = recipBaseAddr;
- data.recipDtlAddr = recipDtlAddr;
- data.delvMemo = delvMemo;
-
- let jsonData = JSON.stringify(data);
-
- gagajf.ajaxJsonSubmit(url, jsonData, function(result){
-
- });
- }
- $(document).ready(function() {
- // 1. 그리드생성
- gagaAgGrid.createGrid('gridOrderCancelRequestList' , gridOptionsExchangeReqList); // 주문정보
- gagaAgGrid.createGrid('gridDelvCdList' , gridOptionsDelvCdList); // 배송정보
- gridOptionsExchangeReqList.api.setRowData(cancelRequestTargetList);
- gridOptionsDelvCdList.api.setRowData(rtnLocInfo);
- // 2.1 TOTAL ROWS 없애기
- gagaAgGrid.hideStatusBar('gridOrderCancelRequestList');
- gagaAgGrid.hideStatusBar('gridOrderCancelRequestToBeList');
- gagaAgGrid.hideStatusBar('gridDelvCdList');
-
- // 3. 회수지정보설정
- fnSetChger();
-
- // 4. 교환지정보설정
- fnSetExchangeAddr();
- // 5. 회수방법 라디오 체크 처리
- if (ordChgGb == 'G681_50') {
- $('input:radio[name="wdGb"]:radio[value="D"]').prop('checked', true);
- $('.chger').css('display', 'none');
- $('input:radio[name=wdGb]').attr('disabled', true);
- $('#delvCdList').css('display', 'none');
- }
- // 2021.07.15 입점업체인 경우에는 회수요청만 해당
- else if (selfGoodsYn == "N") {
- $('input:radio[name="wdGb"]:radio[value="W"]').prop('checked', true);
- $('.chger').css('display', 'none');
- $('input:radio[name=wdGb]').attr('disabled', true);
- } else {
- if (wdGb == 'D') {
- $('input:radio[name="wdGb"]:radio[value="D"]').prop('checked', true);
- $('.chger').css('display', 'none');
- } else {
- $(' [name="wdGb"]:radio[value="W"]').prop('checked', true);
- $('#delvCdList').css('display', 'none');
- }
- }
- // 교환철회 처리
- if (ordChgSq > 0) {
- // 5. 교환사유설정
- $('#chgReason').text(chgReasonNm);
-
- // 6. 교환요청메모설정
- $('#chgMemo').text(chgMemo);
-
- // 7. 귀책사유 설정
- fnChangeChgReason(chgReason);
-
- // 8. 데이터 Disabled 처리
- $('input:radio[name=wdGb]').attr('disabled', true); // 8-1. 회수방법
- $('input[name=chgerBaseAddr]').attr('readOnly', true); // 8-4. 회수지정보 > 기본주소
- $('input[name=recipBaseAddr]').attr('readOnly', true); // 8-10. 교환지정보 > 기본주소
- $('#chgMemo').attr('readOnly', true); // 8-2. 요청메모
-
- // 2021.06.25 교환접수, 교환대기 상태에서는 회수지 정보 수정 가능
- if (!gagajf.isNull(ordChgGb) || (chgStat != 'G685_20' && chgStat != 'G685_21') || pgGb == 'NAVER_ORDER') {
- $('input[name=chgerNm]').attr('readOnly', true); // 8-3. 회수지정보 > 보내는사람
- $('input[name=chgerDtlAddr]').attr('readOnly', true); // 8-5. 회수지정보 > 상세주소
- $('select[name=chgerTelno1]').attr('disabled', true); // 8-6. 회수지정보 > 일반전화
- $('input[name=chgerTelno2]').attr('readOnly', true); // 8-6. 회수지정보 > 일반전화
- $('input[name=chgerTelno3]').attr('readOnly', true); // 8-6. 회수지정보 > 일반전화
- $('select[name=chgerPhnno1]').attr('disabled', true); // 8-7. 회수지정보 > 휴대전화
- $('input[name=chgerPhnno2]').attr('readOnly', true); // 8-7. 회수지정보 > 휴대전화
- $('input[name=chgerPhnno3]').attr('readOnly', true); // 8-7. 회수지정보 > 휴대전화
- $('#chgerRtnMemo').attr('readOnly', true); // 8-8. 회수지정보 > 반품메모
- $('#chgerButton').css('display', 'none'); // 회수지 수정 버튼
- $('#chgerFindAddr').css('display', 'none'); // 회수지 우편번호 찾기 버튼
- }
-
- // 2021.06.25 교환상품 배송중 상태 전까지 정보 수정 가능
- if (ordChgGb == 'G681_20' || (chgStat == 'G685_40' && (chgOrdDtlStat != 'G013_20' && chgOrdDtlStat != 'G013_30' && chgOrdDtlStat != 'G013_35')) || chgStat == 'G685_22' || pgGb == 'NAVER_ORDER') {
- $('input[name=recipNm]').attr('readOnly', true); // 8-9. 교환지정보 > 받는사람
- $('input[name=recipDtlAddr]').attr('readOnly', true); // 8-11. 교환지정보 > 상세주소
- $('select[name=recipTelno1]').attr('disabled', true); // 8-12. 교환지정보 > 일반전화
- $('input[name=recipTelno2]').attr('readOnly', true); // 8-12. 교환지정보 > 일반전화
- $('input[name=recipTelno3]').attr('readOnly', true); // 8-12. 교환지정보 > 일반전화
- $('select[name=recipPhnno1]').attr('disabled', true); // 8-13. 교환지정보 > 휴대전화
- $('input[name=recipPhnno2]').attr('readOnly', true); // 8-13. 교환지정보 > 휴대전화
- $('input[name=recipPhnno3]').attr('readOnly', true); // 8-13. 교환지정보 > 휴대전화
- $('#delvMemo').attr('readOnly', true); // 8-14. 교환지정보 > 배송메모
- $('#recipButton').css('display', 'none'); // 교환지 수정 버튼
- $('#recipFindAddr').css('display', 'none'); // 교환지 우편번호 찾기 버튼
- }
- // 반품TO교환
- if (ordChgGb == 'G681_40') {
- $('#recipButton').css('display', 'none'); // 교환지 수정 버튼
- }
-
- // 2021.10.14 선발송여부 체크
- if ("Y" == wdBfSendYn) {
- $('#wdBfSendYn').attr('checked', "checked");
- }
- // 네이버페이 주문형 보류 버튼 처리
- if (pgGb == 'NAVER_ORDER') {
- if (!gagajf.isNull(npayChangeHoldYn)) {
- if (npayChangeHoldYn == 'Y') {
- $('#fnExchangeHold').css('display', 'none');
- } else {
- $('#fnReleaseExchangeHold').css('display', 'none');
- }
- }
- } else {
- $('#fnExchangeHold').css('display', 'none');
- $('#fnReleaseExchangeHold').css('display', 'none');
- }
- } else {
- $('#chgerButton').css('display', 'none'); // 회수지 수정 버튼
- $('#recipButton').css('display', 'none'); // 교환지 수정 버튼
- }
-
- // 글자수 제한 byte 표기
- cfnGetTextLength($('#chgMemo'), 1000, $('#chgMemoCount'));
- cfnGetTextLength($('#chgerRtnMemo'), 1000, $('#chgerRtnMemoCount'));
- cfnGetTextLength($('#delvMemo'), 1000, $('#delvMemoCount'));
-
- // 수량체크
- fnChangeQty();
-
- if (orderChangeDetailList != null) {
- $('#exchRequestRegNm').text(orderChangeDetailList[0].regNm);
- $('#exchRequestUpdNm').text(orderChangeDetailList[0].updNm);
- }
- });
- </script>
- </html>
|