발신번호 관리 등록

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

View File

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