fix : 1:1문의 사용자 조회/수정
This commit is contained in:
@@ -192,11 +192,15 @@
|
||||
/*상품 상세 등록시 qna 목록 재조회*/
|
||||
if ($("#listAt").val() === 'list') {
|
||||
fn_select_qna(1);
|
||||
}else if ($("#listAt").val() === 'm2m') {
|
||||
/*1:1 문의*/
|
||||
setMenuCode('39','/sopmal/mpage/act/selectM2mQnaInqire?bbsId=mbrqna');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
/*********************************************************
|
||||
* 게시글 등록
|
||||
*********************************************************/
|
||||
@@ -243,6 +247,7 @@
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function (result) {
|
||||
console.log(result);
|
||||
enableButton("#regBtn");
|
||||
$("#resultAlert").text("<spring:message code="success.common.insert"/>");
|
||||
$("#result-alert-regist").modal();
|
||||
@@ -278,6 +283,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="table-wrapper">
|
||||
<form id="bbsRegForm">
|
||||
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
||||
<table class="table write">
|
||||
<caption>게시글 등록</caption>
|
||||
<colgroup>
|
||||
@@ -301,6 +307,13 @@
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- 1:1 문의--%>
|
||||
<c:if test="${bbsInfo.bbsTyCd eq '12'}">
|
||||
<tr>
|
||||
<th>주문번호<span class="required-asterisk">*</span></th>
|
||||
<td><c:out value="${bbscttVO.ordrInnb}"/><input type='hidden' name='ordrInnb' value='<c:out value="${bbscttVO.ordrInnb}"/>'></td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:if test="${bbsInfo.answRegist eq 'Y'&& bbsInfo.bbscttSndngMthCd ne '03'}"><%--답변사용여부와 게시글 문자사용여부 체크--%>
|
||||
<tr>
|
||||
<th>답변수신</th>
|
||||
@@ -595,7 +608,6 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="alert-btn-container">
|
||||
<a href="#" rel="modal:close" class="btn large outline close"><spring:message code="button.close"/></a>
|
||||
<button class="alert-btn alert-btn--confirm" id="alertBtn"><spring:message code="button.ok"/></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1002,6 +1002,28 @@
|
||||
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
listAt: "m2m",
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
/*모달중복제거*/
|
||||
fn_close_modal("qna-pop-regist");
|
||||
$("#modalDiv").html(data);
|
||||
$("#qna-pop-regist").modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -90,7 +90,8 @@
|
||||
<c:when test="${order.ordrSttusCd > 54 && order.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" class="btn outline sm full">배송조회</a>
|
||||
<c:if test="${ order.purchsDcsnAt eq 'Y' }">
|
||||
<a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${order.ordrRceptDt}"/>', '<c:out value="${order.setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||
<%-- <a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${order.ordrRceptDt}"/>', '<c:out value="${order.setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>--%>
|
||||
<a href="javascript:void(0);" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||
</c:if>
|
||||
<c:if test="${ order.reviewAt eq 'Y' }">
|
||||
<a href="<c:url value="/sopmal/mpage/act/selectMyRvwInqireForm"/>" class="btn-ordr-sttus btn theme sm full">리뷰작성</a>
|
||||
|
||||
@@ -798,9 +798,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* 반품/환불 신청 */
|
||||
const fn_post_return_regist = function(data) {
|
||||
if (!confirm("반품신청을 하시겠습니까?")) {
|
||||
@@ -1084,6 +1081,29 @@
|
||||
window.open(url, "", status);
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
listAt: "m2m",
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
/*모달중복제거*/
|
||||
fn_close_modal("qna-pop-regist");
|
||||
$("#modalDiv").html(data);
|
||||
$("#qna-pop-regist").modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1289,7 +1309,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" id="inqireDlvy" class="btn-ordr-sttus btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
@@ -1443,7 +1463,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" id="inqireDlvy" class="btn-ordr-sttus btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
|
||||
Reference in New Issue
Block a user