발신번호 관리 등록

This commit is contained in:
2023-04-26 16:43:28 +09:00
parent eaa47d4c3c
commit 4309fc009a

View File

@@ -82,11 +82,11 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th>사업자 등록증</th> <th><span class="required">*</span>사업자 등록증</th>
<td v-show="bizrAuthYn !== 'Y'"> <td v-show="bizrAuthYn !== 'Y'">
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p> <p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach" v-show="fileType === 1"> <div class="attach">
<p class="essential list"><span>*</span>사업자등록증</p> <p class="essential list">사업자등록증</p>
<input <input
type="file" type="file"
ref="businessFile" ref="businessFile"
@@ -98,7 +98,7 @@
<p class="file" id="businessNm"></p> <p class="file" id="businessNm"></p>
</div> </div>
<div class="attach" v-show="fileType === 2"> <!-- 2023.04.25 공통으로 처리<div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>사업자등록증</p> <p class="essential list"><span>*</span>사업자등록증</p>
<input <input
type="file" type="file"
@@ -109,17 +109,18 @@
/> />
<button class="button grey" @click="$refs.otherBusinessFile.click()">파일업로드</button> <button class="button grey" @click="$refs.otherBusinessFile.click()">파일업로드</button>
<p class="file" id="otherBusinessNm"></p> <p class="file" id="otherBusinessNm"></p>
</div> </div> -->
</td> </td>
<td class="red" v-show="bizrAuthYn === 'Y'">인증 완료</td> <td class="red" v-show="bizrAuthYn === 'Y'">인증 완료</td>
</tr> </tr>
<tr> <tr>
<th>통신서비스 이용증명원</th> <th><span class="required">*</span>통신서비스 이용증명원</th>
<td> <td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach"> <div class="attach">
<p v-if="fileType === 1" class="essential list"><span>*</span>통신서비스 이용증명원</p> <p class="essential list">통신서비스 이용증명원</p>
<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p> <!-- 2023.04.25 공통처리<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p> -->
<input <input
type="file" type="file"
ref="communicationFile" ref="communicationFile"
@@ -135,6 +136,7 @@
<tr> <tr>
<th>재직증명서(임직원 신청시)</th> <th>재직증명서(임직원 신청시)</th>
<td> <td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach"> <div class="attach">
<p class="essential list"><span></span>재직증명서</p> <p class="essential list"><span></span>재직증명서</p>
<input <input
@@ -154,7 +156,7 @@
<td> <td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p> <p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach" v-show="fileType === 2"> <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임장</p> <p class="essential list"><span class="required">*</span>위임장</p>
<input <input
type="file" type="file"
ref="attorneyFile" ref="attorneyFile"
@@ -166,7 +168,7 @@
<p class="file" id="attorneyNm"></p> <p class="file" id="attorneyNm"></p>
</div> </div>
<div class="attach" v-show="fileType === 2"> <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임-수임업체 관계 확인 문서</p> <p class="essential list"><span class="required">*</span>위임-수임업체 관계 확인 문서</p>
<input <input
type="file" type="file"
ref="delegationFile" ref="delegationFile"
@@ -188,7 +190,7 @@
</div> --> </div> -->
<div class="attach" v-show="fileType === 2"> <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임업체 사업자등록증</p> <p class="essential list"><span class="required">*</span>위임업체 사업자등록증</p>
<input <input
type="file" type="file"
ref="delegatedBusinessFile" ref="delegatedBusinessFile"
@@ -335,17 +337,17 @@ export default {
saveSendNums: [], saveSendNums: [],
fileType: 1, fileType: 1,
communicationFile: null, communicationFile: null,
tenureFile: null, // tenureFile: null, 2023.04.25 삭제
delegationFile: null, delegationFile: null,
attorneyFile: null, attorneyFile: null,
businessFile: null, businessFile: null,
otherBusinessFile: null, // otherBusinessFile: null, 2023.04.25 삭제(공통으로 처리)
delegatedIdentificationFile: null, delegatedIdentificationFile: null,
delegateCertificateFile: null, delegateCertificateFile: null,
delegatedBusinessFile: null, delegatedBusinessFile: null,
authorizedBusinessFile: null, // authorizedBusinessFile: null, 2023.04.25 삭제(공통으로 처리)
//corporateCertificateFile: null, //corporateCertificateFile: null,
identificationCardFile: null, // identificationCardFile: null, 2023.04.25 삭제
identificationEvidenceFile: null, identificationEvidenceFile: null,
commDeputyCertificateFile: null, commDeputyCertificateFile: null,
commDeputyIdFile: null, commDeputyIdFile: null,
@@ -427,76 +429,6 @@ export default {
dimmed[i].style.display = 'none'; dimmed[i].style.display = 'none';
} }
// 위임-수임사간 관계 확인 문서 초기화
this.$refs.delegationFile.value = null;
var element = document.getElementById('delegationNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 위임장 문서 초기화
this.$refs.attorneyFile.value = null;
element = document.getElementById('attorneyNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 법인인감증명서 초기화
/* this.$refs.corporateCertificateFile.value = null;
element = document.getElementById('corporateCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
} */
// 위임사 사업자 등록증 초기화
this.$refs.delegatedBusinessFile.value = null;
element = document.getElementById('delegatedBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임사 사업자 등록증
this.$refs.authorizedBusinessFile.value = null;
element = document.getElementById('authorizedBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 위임사 재직증명서(임직원 신청시)
this.$refs.delegateCertificateFile.value = null;
element = document.getElementById('delegateCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 위임사 신분증(임직원 신청시)
this.$refs.delegatedIdentificationFile.value = null;
element = document.getElementById('delegatedIdentificationNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임사 대리인 재직증명서(임직원 신청시)
this.$refs.commDeputyCertificateFile.value = null;
element = document.getElementById('commDeputyCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임사 대리인 신분증(임직원 신청시)
this.$refs.commDeputyIdFile.value = null;
element = document.getElementById('commDeputyIdNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 재직
this.$refs.tenureFile.value = null;
element = document.getElementById('tenureNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 사업자 등록증. // 사업자 등록증.
this.$refs.delegatedBusinessFile.value = null; this.$refs.delegatedBusinessFile.value = null;
element = document.getElementById('businessNm'); element = document.getElementById('businessNm');
@@ -504,20 +436,6 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
// 신분증 (본인확인)
/*this.$refs.identificationCardFile.value = null;
element = document.getElementById('identificationCardNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
// 재직증명서 (본인확인)
this.$refs.identificationEvidenceFile.value = null;
element = document.getElementById('identificationEvidenceNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 통신서비스 증명원 // 통신서비스 증명원
this.$refs.communicationFile.value = null; this.$refs.communicationFile.value = null;
element = document.getElementById('communicationNm'); element = document.getElementById('communicationNm');
@@ -525,20 +443,105 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
// 타사업자 등록증 // 재직증명서 (본인확인)
this.$refs.otherBusinessFile.value = null; this.$refs.identificationEvidenceFile.value = null;
element = document.getElementById('otherBusinessNm'); element = document.getElementById('identificationEvidenceNm');
while (element.firstChild) { while (element.firstChild) {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
// 타사업자 등록증 // 위임장 문서 초기화
this.$refs.otherBusinessFile.value = null; this.$refs.attorneyFile.value = null;
element = document.getElementById('otherBusinessNm'); element = document.getElementById('attorneyNm');
while (element.firstChild) { while (element.firstChild) {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
// 위임-수임업체 관계 확인 문서 초기화
this.$refs.delegationFile.value = null;
var element = document.getElementById('delegationNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 법인인감증명서 초기화
/* this.$refs.corporateCertificateFile.value = null;
element = document.getElementById('corporateCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
} */
// 위임업체 사업자 등록증 초기화
this.$refs.delegatedBusinessFile.value = null;
element = document.getElementById('delegatedBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임사 사업자 등록증 2023.04.25 삭제
/*this.$refs.authorizedBusinessFile.value = null;
element = document.getElementById('authorizedBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
// 위임업체 대리인 신분증 사본(임직원 신청시)
this.$refs.delegatedIdentificationFile.value = null;
element = document.getElementById('delegatedIdentificationNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임업체 대리인 신분증 사본(임직원 신청시)
this.$refs.commDeputyIdFile.value = null;
element = document.getElementById('commDeputyIdNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 위임업체 재직증명서(임직원 신청시)
this.$refs.delegateCertificateFile.value = null;
element = document.getElementById('delegateCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 수임업체 대리인 재직증명서(임직원 신청시)
this.$refs.commDeputyCertificateFile.value = null;
element = document.getElementById('commDeputyCertificateNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}
// 재직 (2023.04.25)
/*this.$refs.tenureFile.value = null;
element = document.getElementById('tenureNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
// 신분증 (본인확인) 2023.04.25 삭제
/*this.$refs.identificationCardFile.value = null;
element = document.getElementById('identificationCardNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
// 타사업자 등록증 2023.04.25 공통으로 처리
/*this.$refs.otherBusinessFile.value = null;
element = document.getElementById('otherBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
// 타사업자 등록증 2023.04.25 공통으로 처리
/*this.$refs.otherBusinessFile.value = null;
element = document.getElementById('otherBusinessNm');
while (element.firstChild) {
element.removeChild(element.firstChild);
}*/
this.$refs.admnListPop.adminNmPopClose(); this.$refs.admnListPop.adminNmPopClose();
}, },
@@ -692,8 +695,8 @@ export default {
this.delegatedBusinessFile = null; this.delegatedBusinessFile = null;
}, },
// 수임사 사업자 등록증 // 수임사 사업자 등록증 2023.04.25 삭제
readAuthorizedBusinessFile(event) { /*readAuthorizedBusinessFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
if (this.fileExtCheck(file)) { if (this.fileExtCheck(file)) {
if (file != null) { if (file != null) {
@@ -713,8 +716,8 @@ export default {
root.appendChild(button); root.appendChild(button);
this.authorizedBusinessFile = file; this.authorizedBusinessFile = file;
} }
}, },*/
delAuthorizedBusinessFile(event) { /*delAuthorizedBusinessFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
this.$refs.authorizedBusinessFile.value = null; this.$refs.authorizedBusinessFile.value = null;
let element = document.getElementById('authorizedBusinessNm'); let element = document.getElementById('authorizedBusinessNm');
@@ -722,7 +725,7 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
this.authorizedBusinessFile = null; this.authorizedBusinessFile = null;
}, },*/
// 위임사 재직증명서(임직원 신청시) // 위임사 재직증명서(임직원 신청시)
readDelegateCertificateFile(event) { readDelegateCertificateFile(event) {
@@ -853,7 +856,7 @@ export default {
}, },
// 재직 // 재직
readTenureFile(event) { /*readTenureFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
if (this.fileExtCheck(file)) { if (this.fileExtCheck(file)) {
if (file != null) { if (file != null) {
@@ -873,8 +876,8 @@ export default {
root.appendChild(button); root.appendChild(button);
this.tenureFile = file; this.tenureFile = file;
} }
}, },2023.04.25 삭제*/
delTenureFile(event) { /*delTenureFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
this.$refs.tenureFile.value = null; this.$refs.tenureFile.value = null;
let element = document.getElementById('tenureNm'); let element = document.getElementById('tenureNm');
@@ -882,7 +885,7 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
this.tenureFile = null; this.tenureFile = null;
}, },2023.04.25 삭제*/
//사업자 등록증. //사업자 등록증.
readBusinessFile(event) { readBusinessFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
@@ -914,8 +917,8 @@ export default {
} }
this.businessFile = null; this.businessFile = null;
}, },
//신분증 (본인확인) //신분증 (본인확인) 2023.04.25 삭제
readIdentificationCardFile(event) { /*readIdentificationCardFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
if (this.fileExtCheck(file)) { if (this.fileExtCheck(file)) {
if (file != null) { if (file != null) {
@@ -935,8 +938,8 @@ export default {
root.appendChild(button); root.appendChild(button);
this.identificationCardFile = file; this.identificationCardFile = file;
} }
}, },*/
delIdentificationCardFile(event) { /*delIdentificationCardFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
this.$refs.identificationCardFile.value = null; this.$refs.identificationCardFile.value = null;
let element = document.getElementById('identificationCardNm'); let element = document.getElementById('identificationCardNm');
@@ -944,7 +947,7 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
this.identificationCardFile = null; this.identificationCardFile = null;
}, },*/
//재직증명서 (본인확인) //재직증명서 (본인확인)
readIdentificationEvidenceFile(event) { readIdentificationEvidenceFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
@@ -1009,8 +1012,8 @@ export default {
} }
this.communicationFile = null; this.communicationFile = null;
}, },
// 타사업자 등록증 // 타사업자 등록증 2023.04.25 공통으로 처리
readOtherBusinessFile(event) { /*readOtherBusinessFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
if (this.fileExtCheck(file)) { if (this.fileExtCheck(file)) {
if (file != null) { if (file != null) {
@@ -1030,8 +1033,8 @@ export default {
root.appendChild(button); root.appendChild(button);
this.otherBusinessFile = file; this.otherBusinessFile = file;
} }
}, },*/
delOtherBusinessFile(event) { /*delOtherBusinessFile(event) {
const file = event.target.files[0]; const file = event.target.files[0];
this.$refs.otherBusinessFile.value = null; this.$refs.otherBusinessFile.value = null;
let element = document.getElementById('otherBusinessNm'); let element = document.getElementById('otherBusinessNm');
@@ -1039,7 +1042,7 @@ export default {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
} }
this.otherBusinessFile = null; this.otherBusinessFile = null;
}, },*/
/** 저장 */ /** 저장 */
async saveSendNum() { async saveSendNum() {
@@ -1064,13 +1067,13 @@ export default {
if (this.doValidate()) { if (this.doValidate()) {
if (this.bizrAuthYn !== 'Y') { if (this.bizrAuthYn !== 'Y') {
if (this.nmineeDivCd === '01') { if (this.nmineeDivCd === '01') {
// 사업자 // 사업자 필수 서류 : 사업자 등록증, 통신서비스 이용증명원
const response = await sendNumMgtApi.insertNumber1( const response = await sendNumMgtApi.insertNumber1(
this.communicationFile, this.communicationFile, //통신서비스 이용 증명원
this.tenureFile, // this.tenureFile, //재직증명서 2023.04.25 삭제
this.businessFile, this.businessFile, //사업자 등록증
// this.identificationCardFile, // this.identificationCardFile, //신분증 2023.04.25 삭제
this.identificationEvidenceFile, this.identificationEvidenceFile, //재직증명서 (임직원 신청시)
this.adminId, this.adminId,
this.custNm, this.custNm,
this.bRegNo, this.bRegNo,
@@ -1110,21 +1113,22 @@ export default {
return false; return false;
} }
} else if (this.nmineeDivCd === '02') { } else if (this.nmineeDivCd === '02') {
// 타사업자 // 타사업자 필수 서류 : 사업자 등록증, 통신서비스 이용증명원, 위임장, 위임-수입업체 관계 확인 문서, 위임업체 사업자등록증
const response = await sendNumMgtApi.insertNumber2( const response = await sendNumMgtApi.insertNumber2(
this.communicationFile, this.businessFile, //사업자 등록증
this.delegationFile, /*this.otherBusinessFile, 2023.04.25 공통으로 처리*/
this.attorneyFile, this.communicationFile, //통신서비스 이용 증명원
this.otherBusinessFile, this.identificationEvidenceFile, //재직증명서(임직원 신청시)
this.delegatedIdentificationFile, this.attorneyFile, //위임장
this.delegateCertificateFile, this.delegationFile, //위임-수입업체 관계 확인 문서
this.delegatedBusinessFile, this.delegatedBusinessFile, //위임업체 사업자 등록중
this.authorizedBusinessFile, /*this.authorizedBusinessFile, 2023.04.25 수임업체 사업자 등록증 삭제*/
this.delegatedIdentificationFile, //위임업체 대리인 신분증 사본
this.commDeputyIdFile, //수임업체 대리인 신분증 사본
this.delegateCertificateFile, //위임업체 대리인 재직증명서
this.commDeputyCertificateFile, //수임업체 대리인 재직증명서
/*this.identificationCardFile, 2023.04.25 신분증 삭제*/
/* this.corporateCertificateFile, */ /* this.corporateCertificateFile, */
this.identificationCardFile,
this.identificationEvidenceFile,
this.commDeputyCertificateFile,
this.commDeputyIdFile,
this.adminId, this.adminId,
this.custNm, this.custNm,
this.bRegNo, this.bRegNo,
@@ -1212,33 +1216,32 @@ export default {
return false; return false;
} }
if (this.bizrAuthYn !== 'Y') { if (this.bizrAuthYn !== 'Y') {
if (this.nmineeDivCd == '01') { if (this.businessFile == null) {
if (this.communicationFile == null) { this.row.title = '발신번호 등록';
this.row.title = '발신번호 등록'; this.row.msg1 = '사업자등록증 파일을 업로드 하세요.';
this.row.msg1 = '통신서비스 이용증명원 파일을 업로드 하세요.'; this.$parent.$refs.commmonModal.alertModalOpen(this.row);
this.$parent.$refs.commmonModal.alertModalOpen(this.row); return false;
return false; }
} if (this.communicationFile == null) {
this.row.title = '발신번호 등록';
this.row.msg1 = '통신서비스 이용증명원 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
if (this.businessFile == null) { if (this.nmineeDivCd == '02') {
this.row.title = '발신번호 등록';
this.row.msg1 = '사업자등록증 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
} else {
if (this.delegationFile == null) {
this.row.title = '발신번호 등록';
this.row.msg1 = '위임-수임사간 관계 확인 문서 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
if (this.attorneyFile == null) { if (this.attorneyFile == null) {
this.row.title = '발신번호 등록'; this.row.title = '발신번호 등록';
this.row.msg1 = '위임장 파일을 업로드 하세요.'; this.row.msg1 = '위임장 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row); this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false; return false;
} }
if (this.delegationFile == null) {
this.row.title = '발신번호 등록';
this.row.msg1 = '위임-수임업체 관계 확인 문서 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
/* if (this.corporateCertificateFile == null) { /* if (this.corporateCertificateFile == null) {
this.row.title = '발신번호 등록'; this.row.title = '발신번호 등록';
this.row.msg1 = '법인인감증명서 파일을 업로드 하세요.'; this.row.msg1 = '법인인감증명서 파일을 업로드 하세요.';
@@ -1247,22 +1250,24 @@ export default {
} */ } */
if (this.delegatedBusinessFile == null) { if (this.delegatedBusinessFile == null) {
this.row.title = '발신번호 등록'; this.row.title = '발신번호 등록';
this.row.msg1 = '위임 사업자등록증 파일을 업로드 하세요.'; this.row.msg1 = '위임업체 사업자등록증 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row); this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false; return false;
} }
/*2023.04.25 삭제
if (this.authorizedBusinessFile == null) { if (this.authorizedBusinessFile == null) {
this.row.title = '발신번호 등록'; this.row.title = '발신번호 등록';
this.row.msg1 = '수임사 사업자등록증 파일을 업로드 하세요.'; this.row.msg1 = '수임사 사업자등록증 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row); this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false; return false;
} }*/
/*2023.04.25 공통으로 처리
if (this.otherBusinessFile == null) { if (this.otherBusinessFile == null) {
this.row.title = '발신번호 등록'; this.row.title = '발신번호 등록';
this.row.msg1 = '사업자등록증 파일을 업로드 하세요.'; this.row.msg1 = '사업자등록증 파일을 업로드 하세요.';
this.$parent.$refs.commmonModal.alertModalOpen(this.row); this.$parent.$refs.commmonModal.alertModalOpen(this.row);
return false; return false;
} }*/
} }
} }
return true; return true;
@@ -1279,3 +1284,6 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.required {color: #eb008b;}
</style>