환불 등록 기능 추가
This commit is contained in:
parent
1b6dab9a6c
commit
2f84d4a7ff
@ -1012,14 +1012,8 @@ public class RefundController {
|
||||
return ResponseEntity.ok().body(refundService.insertPayCanAjax(userInfoAdd(refundVO)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 환불요청 등록 Ajax
|
||||
* @param RefundVO
|
||||
* @param model
|
||||
* @return modelAndView
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = {"/uss/ion/pay/refMonInsAjax.do"})
|
||||
|
||||
@RequestMapping(value = {"/uss/ion/msg/refMonInsAjax.do"})
|
||||
public ModelAndView refMonInsAjax(final MultipartHttpServletRequest multiRequest
|
||||
, RefundVO refundVO , HttpServletRequest request) throws Exception {
|
||||
|
||||
@ -1060,6 +1054,7 @@ public class RefundController {
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 환불신청금액(환불요청 상태) Ajax
|
||||
* @param RefundVO
|
||||
|
||||
@ -322,9 +322,9 @@ function fnSelectMber(mberId) {
|
||||
</table>
|
||||
</div>
|
||||
<div class="btnWrap">
|
||||
<%--
|
||||
|
||||
<input type="button" class="btnType1" value="환불 등록" onclick="fn_refundRegist(); return false;" >
|
||||
--%>
|
||||
|
||||
<input type="button" class="btnType1" value="결제취소 등록" onclick="fn_insert(); return false;" >
|
||||
<input type="button" class="btnType2" value="삭제" onclick="fn_delete(); return false;">
|
||||
</div>
|
||||
|
||||
@ -94,7 +94,6 @@ function fn_refundIdChk(){
|
||||
$('#mberNm').val(refundVO.mberNm);
|
||||
$('#dpsitPhoneNo').val(refundVO.mberPhoneNo);
|
||||
$('#mberMoneyTxt').text(fn_unitChanges(refundVO.mberMoney));
|
||||
$('#mberMoney').val(refundVO.mberMoney);
|
||||
|
||||
// 환불가능금액
|
||||
mberRefundMaxMoney = refundVO.mberMoney;
|
||||
@ -229,6 +228,7 @@ var _fileIdx = 0;
|
||||
var _fileForm2 = new Array();
|
||||
|
||||
function fn_refund_insert() {
|
||||
|
||||
if($("input[name=reason]:checked").val() == "999"){
|
||||
document.listForm.refundReason.value = document.listForm.reason.value;
|
||||
document.listForm.refundReasonEtc.value = document.listForm.reasonEtc.value;
|
||||
@ -266,10 +266,14 @@ function fn_refund_insert() {
|
||||
}
|
||||
});
|
||||
|
||||
//for(var key of data.keys()){
|
||||
// console.log(key);
|
||||
//}
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
enctype: 'multipart/form-data',
|
||||
url: "/uss/ion/pay/refMonInsAjax.do",
|
||||
url: "/uss/ion/msg/refMonInsAjax.do",
|
||||
data: data,
|
||||
dataType:'json',
|
||||
async: false,
|
||||
@ -387,6 +391,13 @@ function comma(num){
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.refund_reason {overflow:hidden;}
|
||||
.refund_reason > div {float:left;margin:0 0 10px;}
|
||||
|
||||
.tbType2_title {font-size: 20px; font-weight: 600; position: relative; height: 40px;}
|
||||
.tbType2_title button {position: absolute;top: 22%; right: 0; transform: translateY(-50%); background-color: #002c9a; height: 40px; padding: 0 15px; color: #fff;}
|
||||
.tbType2_title>span {font-size: 16px; font-weight: 300; color: #666;}
|
||||
|
||||
.calBtn {
|
||||
border: none;
|
||||
background-color: transparent !important;
|
||||
@ -406,22 +417,17 @@ function comma(num){
|
||||
<form name="listForm" id="listForm" method="post">
|
||||
<input type="hideen" name="mberId" id="mberId" value=""/> <!-- 회원 ID -->
|
||||
<input type="hideen" name="mberNm" id="mberNm" value=""/> <!-- 회원 이름 -->
|
||||
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>"/>
|
||||
<input type="hidden" name="delFlag" value="Y" />
|
||||
<input type="hidden" name="selectedId" />
|
||||
<input type="hidden" name="refundDivision" value="1"/>
|
||||
<input type="hidden" name="limitcount" value="<c:out value='3'/>" />
|
||||
<input type="hidden" name="atchFileNece" id="atchFileNece" value="N" /> <!-- 첨부파일 필수체크 -->
|
||||
<input type="hidden" name="mberMoney" id="mberMoney" />
|
||||
<input type="hidden" name="refundReason" id="refundReason" value=""/>
|
||||
<input type="hidden" name="refundReasonEtc" id="refundReasonEtc" value=""/>
|
||||
|
||||
<div class="contWrap">
|
||||
<div class="pageTitle">
|
||||
<div class="pageIcon"><img src="/pb/img/pageTitIcon4.png" alt=""></div>
|
||||
<h2 class="titType1 c_222222 fwBold">결제취소 등록</h2>
|
||||
<p class="tType6 c_999999">결제취소 등록 페이지 입니다.</p>
|
||||
<h2 class="titType1 c_222222 fwBold">환불 등록</h2>
|
||||
<p class="tType6 c_999999">환불등록 페이지 입니다.</p>
|
||||
</div>
|
||||
<div class="pageCont">
|
||||
<p class="tbType2_title">환불 금액 입력</p>
|
||||
@ -454,9 +460,7 @@ function comma(num){
|
||||
<th scope="row">환불 신청 금액</th>
|
||||
<td>
|
||||
<input type="text" name="refundMoney" id="refundMoney" style="width:330px;margin-right:5px;" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
|
||||
<label for="refundMoney" class="price_input" style="left:300px;">원</label>
|
||||
<input type="checkbox" id="allmoney" name="allmoney" class="re">
|
||||
<label for="allmoney" class="alarm label">선택</label>
|
||||
<span class="text_req">전액환불(10,000원 이하 환불 불가)</span>
|
||||
</td>
|
||||
</tr>
|
||||
@ -483,7 +487,6 @@ function comma(num){
|
||||
<tr>
|
||||
<th scope="row">연락처</th>
|
||||
<td>
|
||||
<label for="dpsitPhoneNo" class="label">연락처 입력</label>
|
||||
<input type="text" name="dpsitPhoneNo" id="dpsitPhoneNo" style="width:380px;"
|
||||
oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"
|
||||
maxlength="12">
|
||||
@ -502,29 +505,20 @@ function comma(num){
|
||||
<tr>
|
||||
<th scope="row">통장사본</th>
|
||||
<td class="attachedFile_wrap">
|
||||
<label for="" class="label">통장사본 파일첨부</label>
|
||||
<!-- <input type="text" placeholder="* 첨부가능 파일 jpg, gif, png 각 2MB 이내" readonly size="36">
|
||||
<button type="button" class="btnType btnType9">파일첨부</button>
|
||||
<span class="reqTxt6">※ 파일첨부가 안되시는 경우, 메일 help@iten.co.kr로 보내주세요</span> -->
|
||||
|
||||
<div>
|
||||
<input type="text" readonly="readonly" disabled id="atFileBasicWrite" placeholder="* 첨부가능 파일 jpg, gif, png 각 2MB 이내" style="width:380px;">
|
||||
<input type="file" name="bank" id="bank" style="display:none" onchange="changeValue(this); return false;"/>
|
||||
<button onclick="document.all.bank.click(); return false;" class="btnType btnType9">파일선택</button>
|
||||
<span class="reqTxt6">※ 파일첨부가 안되시는 경우, 메일 help@iten.co.kr로 보내주세요</span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">증빙서류</th>
|
||||
<td class="attachedFile_wrap">
|
||||
<label for="" class="label">증빙서류</label>
|
||||
<div>
|
||||
<input type="text" readonly="readonly" disabled id="atFileBasicWrite2" placeholder="* 첨부가능 파일 jpg, gif, png 각 2MB 이내" style="width:380px;">
|
||||
<input type="file" name="docu" id="docu" style="display:none" onchange="changeValue2(this); return false;"/>
|
||||
<button onclick="document.all.docu.click(); return false;" class="btnType btnType9">파일선택</button>
|
||||
<span class="reqTxt6">※이체확인증 또는 휴대폰 납부 영수증을 첨부해주세요</span>
|
||||
</div>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user