浏览代码

반품/교환 철회 기능 오픈 커밋

card007 4 年之前
父节点
当前提交
bcb438fd2a

+ 3 - 1
src/main/webapp/WEB-INF/views/order/ExchangeRequestForm.html

@@ -39,8 +39,10 @@
 					<!-- 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' 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교 접수 불가 처리 -->

+ 10 - 4
src/main/webapp/WEB-INF/views/order/RtnReqForm.html

@@ -1770,6 +1770,7 @@ $(document).ready(function() {
 	// 5. 반품신청, 반품철회 버튼 제어
 	if (ordChgSq > 0) {
 		$("#rtnReqBtn").css("display", "none");
+		$("#rtnReqCancelBtn").css("display", "none");
 		
 		// 2021.05.25 반품접수, 반품대기 상태에서만 철회가능
 		// 2021.07.13 회수예외정보가 있고 회수요청, 상품검수중 상태에서 철회 가능 처리
@@ -1782,12 +1783,17 @@ $(document).ready(function() {
 		//}
 		
 		// 회수요청 상태에서 택배사 회수 불가 or 회수예외정보 존재 시 반품철회 가능
-		if (chgStat == 'G685_30' && (recallExceptionInfo != null || canRequestCancelYn == 'Y')) {
-			$("#rtnReqCancelBtn").css("display", "");
-		}
+		//if (chgStat == 'G685_30' && (recallExceptionInfo != null || canRequestCancelYn == 'Y')) {
+		//	$("#rtnReqCancelBtn").css("display", "");
+		//}
 		
 		// 상품검수중 상태에서 회수예외정보 존재 시 반품철회 가능
-		if (chgStat == 'G685_31' && recallExceptionInfo != null) {
+		//if (chgStat == 'G685_31' && recallExceptionInfo != null) {
+		//	$("#rtnReqCancelBtn").css("display", "");
+		//}
+		
+		// 2021.10.01 card007 CS요청으로 반품접수, 반품대기, 회수요청, 상품검수중 상태에서 반품철회 가능
+		if (chgStat == 'G685_50' || chgStat == 'G685_51' || chgStat == 'G685_30' || chgStat == 'G685_31') {
 			$("#rtnReqCancelBtn").css("display", "");
 		}