|
|
@@ -25,7 +25,7 @@
|
|
|
<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="chgReason" th:value="${orderChangeDetailList[0].chgReason}"/>
|
|
|
<input type="hidden" name="chgReasonDesc" value=""/>
|
|
|
|
|
|
<div id="orderInfoList" style="display:none;">
|
|
|
@@ -119,7 +119,7 @@
|
|
|
<select name="selectChgReason" onchange="fnChangeChgReason($(this).val());">
|
|
|
<option value="">[선택하세요]</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">
|
|
|
+ <th:block th:if="${ordChgSq > 0} or ${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>
|
|
|
@@ -1242,16 +1242,16 @@ $(document).ready(function() {
|
|
|
if(pgGb == "NAVER_ORDER") {
|
|
|
$("#cnclReqBtn").css("display", "none");
|
|
|
$("#cnclCompleteBtn").css("display", "none");
|
|
|
- $("#orderInfoTitle").append('<span style="color: red; margin-left: 20px;">네이버페이 주문형은 취소 철회시 네이버페이센터에서도 철회해주셔야합니다.</span>');
|
|
|
}
|
|
|
|
|
|
// 6. 취소사유 선택
|
|
|
if (ordChgSq > 0 && chgStat != 'G685_40') {
|
|
|
- $("select[name='selectChgReason']").val(chgReason); // 변경사유코드
|
|
|
+ let chgReasonTmp = $('#cancelRequestFrm input[name=chgReason]').val();
|
|
|
+ $("select[name='selectChgReason']").val(chgReasonTmp); // 변경사유코드
|
|
|
$("select[name='selectChgReason']").attr("disabled", "true"); // 변경사유 비활성화
|
|
|
$("#chgMemo").text(chgMemo); // 변경사유메모
|
|
|
$("#chgMemo").attr("disabled", "true"); // 변경사유메모 비활성화
|
|
|
- fnChangeChgReason(chgReason); // 귀책사유
|
|
|
+ fnChangeChgReason(chgReasonTmp); // 귀책사유
|
|
|
}
|
|
|
|
|
|
// 2021.06.21 교환배송미출고대상
|