Merge branch '20230426_sendNumReg' into develop

This commit is contained in:
2023-05-02 15:53:06 +09:00
3 changed files with 612 additions and 553 deletions

View File

@@ -26,7 +26,7 @@
<th>사업자번호</th>
<td><input type="text" disabled v-model="bRegNo" /></td>
</tr>
<tr v-show="bizrAuthYn !== 'Y'">
<tr>
<th>명의자 구분</th>
<td>
<input
@@ -49,6 +49,7 @@
<label for="popup_radio6">타사업자</label>
</td>
</tr>
<tr>
<th>발신번호</th>
<td>
@@ -80,155 +81,12 @@
</div>
</td>
</tr>
<tr v-show="bizrAuthYn !== 'Y'">
<th>제출서류</th>
<td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임-수임사간 관계 확인 문서</p>
<input
type="file"
ref="delegationFile"
style="display: none"
@change="readDelegationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegationFile.click()">파일업로드</button>
<p class="file" id="delegationNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임장</p>
<input
type="file"
ref="attorneyFile"
style="display: none"
@change="readAttorneyFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.attorneyFile.click()">파일업로드</button>
<p class="file" id="attorneyNm"></p>
</div>
<!-- <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>법인인감증명서</p>
<input type="file" ref="corporateCertificateFile" style="display: none" @change="readCorporateCertificateFile"
accept=".jpg,.png,.pdf,.tiff"/>
<button class="button grey" @click="$refs.corporateCertificateFile.click()">파일업로드</button>
<p class="file" id="corporateCertificateNm"></p>
</div> -->
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>위임사 사업자등록증</p>
<input
type="file"
ref="delegatedBusinessFile"
style="display: none"
@change="readDelegatedBusinessFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegatedBusinessFile.click()">파일업로드</button>
<p class="file" id="delegatedBusinessNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>수임사 사업자등록증</p>
<input
type="file"
ref="authorizedBusinessFile"
style="display: none"
@change="readAuthorizedBusinessFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.authorizedBusinessFile.click()">파일업로드</button>
<p class="file" id="authorizedBusinessNm"></p>
</div>
<div class="attach">
<p v-if="fileType === 1" class="essential list"><span>*</span>통신서비스 이용증명원</p>
<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p>
<input
type="file"
ref="communicationFile"
style="display: none"
@change="readCommunicationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.communicationFile.click()">파일업로드</button>
<p class="file" id="communicationNm"></p>
</div>
<div class="attach" v-show="fileType === 1">
<p class="essential list"><span></span>재직증명서</p>
<input
type="file"
ref="tenureFile"
style="display: none"
@change="readTenureFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.tenureFile.click()">파일업로드</button>
<p class="file" id="tenureNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>위임사 재직증명서(임직원 신청시)</p>
<input
type="file"
ref="delegateCertificateFile"
style="display: none"
@change="readDelegateCertificateFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegateCertificateFile.click()">파일업로드</button>
<p class="file" id="delegateCertificateNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>위임사 신분증(임직원 신청시)</p>
<input
type="file"
ref="delegatedIdentificationFile"
style="display: none"
@change="readDelegatedIdentificationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegatedIdentificationFile.click()">파일업로드</button>
<p class="file" id="delegatedIdentificationNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>수임사 대리인 재직증명서(임직원 신청시)</p>
<input
type="file"
ref="commDeputyCertificateFile"
style="display: none"
@change="readCommDeputyCertificateFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.commDeputyCertificateFile.click()">파일업로드</button>
<p class="file" id="commDeputyCertificateNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>수임사 대리인 신분증(임직원 신청시)</p>
<input
type="file"
ref="commDeputyIdFile"
style="display: none"
@change="readCommDeputyIdFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.commDeputyIdFile.click()">파일업로드</button>
<p class="file" id="commDeputyIdNm"></p>
</div>
</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"
@@ -240,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"
@@ -251,28 +109,34 @@
/>
<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 v-show="bizrAuthYn !== 'Y'">
<th>본인확인</th>
<tr>
<th><span class="required">*</span>통신서비스 이용증명원</th>
<td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach">
<p class="essential list"><span></span>신분증</p>
<p class="essential list">통신서비스 이용증명원</p>
<!-- 2023.04.25 공통처리<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p> -->
<input
type="file"
ref="identificationCardFile"
ref="communicationFile"
style="display: none"
@change="readIdentificationCardFile"
@change="readCommunicationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.identificationCardFile.click()">파일업로드</button>
<p class="file" id="identificationCardNm"></p>
<button class="button grey" @click="$refs.communicationFile.click()">파일업로드</button>
<p class="file" id="communicationNm"></p>
</div>
</td>
</tr>
<tr>
<th>재직증명서(임직원 신청시)</th>
<td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach">
<p class="essential list"><span></span>재직증명서</p>
<input
@@ -287,6 +151,154 @@
</div>
</td>
</tr>
<tr v-show="fileType === 2">
<th>타사업자 명의 제출서류</th>
<td>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span class="required">*</span>위임장</p>
<input
type="file"
ref="attorneyFile"
style="display: none"
@change="readAttorneyFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.attorneyFile.click()">파일업로드</button>
<p class="file" id="attorneyNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span class="required">*</span>위임-수임업체 관계 확인 문서</p>
<input
type="file"
ref="delegationFile"
style="display: none"
@change="readDelegationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegationFile.click()">파일업로드</button>
<p class="file" id="delegationNm"></p>
</div>
<!-- <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>법인인감증명서</p>
<input type="file" ref="corporateCertificateFile" style="display: none" @change="readCorporateCertificateFile"
accept=".jpg,.png,.pdf,.tiff"/>
<button class="button grey" @click="$refs.corporateCertificateFile.click()">파일업로드</button>
<p class="file" id="corporateCertificateNm"></p>
</div> -->
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span class="required">*</span>위임업체 사업자등록증</p>
<input
type="file"
ref="delegatedBusinessFile"
style="display: none"
@change="readDelegatedBusinessFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegatedBusinessFile.click()">파일업로드</button>
<p class="file" id="delegatedBusinessNm"></p>
</div>
<!-- 2023.04.25 삭제 <div class="attach" v-show="fileType === 2">
<p class="essential list"><span>*</span>수임사 사업자등록증</p>
<input
type="file"
ref="authorizedBusinessFile"
style="display: none"
@change="readAuthorizedBusinessFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.authorizedBusinessFile.click()">파일업로드</button>
<p class="file" id="authorizedBusinessNm"></p>
</div> -->
<!-- 2023.04.25 삭제 <div class="attach">
<p v-if="fileType === 1" class="essential list"><span>*</span>통신서비스 이용증명원</p>
<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p>
<input
type="file"
ref="communicationFile"
style="display: none"
@change="readCommunicationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.communicationFile.click()">파일업로드</button>
<p class="file" id="communicationNm"></p>
</div> -->
<!-- 2023.04.25 삭제<div class="attach" v-show="fileType === 1">
<p class="essential list"><span></span>재직증명서</p>
<input
type="file"
ref="tenureFile"
style="display: none"
@change="readTenureFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.tenureFile.click()">파일업로드</button>
<p class="file" id="tenureNm"></p>
</div> -->
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>위임업체 대리인 신분증 사본(임직원 신청시)</p>
<input
type="file"
ref="delegatedIdentificationFile"
style="display: none"
@change="readDelegatedIdentificationFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegatedIdentificationFile.click()">파일업로드</button>
<p class="file" id="delegatedIdentificationNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>수임업체 대리인 신분증 사본(임직원 신청시)</p>
<input
type="file"
ref="commDeputyIdFile"
style="display: none"
@change="readCommDeputyIdFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.commDeputyIdFile.click()">파일업로드</button>
<p class="file" id="commDeputyIdNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>위임업체 대리인 재직증명서(임직원 신청시)</p>
<input
type="file"
ref="delegateCertificateFile"
style="display: none"
@change="readDelegateCertificateFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.delegateCertificateFile.click()">파일업로드</button>
<p class="file" id="delegateCertificateNm"></p>
</div>
<div class="attach" v-show="fileType === 2">
<p class="essential list"><span></span>수임업체 대리인 재직증명서(임직원 신청시)</p>
<input
type="file"
ref="commDeputyCertificateFile"
style="display: none"
@change="readCommDeputyCertificateFile"
accept=".jpg,.png,.pdf,.tiff"
/>
<button class="button grey" @click="$refs.commDeputyCertificateFile.click()">파일업로드</button>
<p class="file" id="commDeputyCertificateNm"></p>
</div>
</td>
</tr>
</tbody>
</table>
<div class="popup-btn2">
@@ -325,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,
@@ -417,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');
@@ -494,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');
@@ -515,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();
},
@@ -682,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) {
@@ -703,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');
@@ -712,7 +725,7 @@ export default {
element.removeChild(element.firstChild);
}
this.authorizedBusinessFile = null;
},
},*/
// 위임사 재직증명서(임직원 신청시)
readDelegateCertificateFile(event) {
@@ -843,7 +856,7 @@ export default {
},
// 재직
readTenureFile(event) {
/*readTenureFile(event) {
const file = event.target.files[0];
if (this.fileExtCheck(file)) {
if (file != null) {
@@ -863,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');
@@ -872,7 +885,7 @@ export default {
element.removeChild(element.firstChild);
}
this.tenureFile = null;
},
},2023.04.25 삭제*/
//사업자 등록증.
readBusinessFile(event) {
const file = event.target.files[0];
@@ -904,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) {
@@ -925,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');
@@ -934,7 +947,7 @@ export default {
element.removeChild(element.firstChild);
}
this.identificationCardFile = null;
},
},*/
//재직증명서 (본인확인)
readIdentificationEvidenceFile(event) {
const file = event.target.files[0];
@@ -999,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) {
@@ -1020,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');
@@ -1029,7 +1042,7 @@ export default {
element.removeChild(element.firstChild);
}
this.otherBusinessFile = null;
},
},*/
/** 저장 */
async saveSendNum() {
@@ -1052,15 +1065,15 @@ export default {
}
if (this.doValidate()) {
if (this.bizrAuthYn !== 'Y') {
if (this.nmineeDivCd === '01') {
// 사업자
console.log("사업자")
// 사업자 필수 서류 : 사업자 등록증, 통신서비스 이용증명원
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,
@@ -1070,6 +1083,7 @@ export default {
this.custSeq,
this.bRegNo
);
console.log("response.data",response.data)
const result = response.data;
// if(this.communicationFile.size >= 1024){
// alert('파일용량test')
@@ -1100,21 +1114,26 @@ export default {
return false;
}
} else if (this.nmineeDivCd === '02') {
// 타사업자
console.log("안녕 타사업자")
// 타사업자 필수 서류 : 사업자 등록증, 통신서비스 이용증명원, 위임장, 위임-수입업체 관계 확인 문서, 위임업체 사업자등록증
console.log("businessFile",this.businessFile);
console.log("attorneyFile",this.attorneyFile);
console.log("delegationFile",this.delegationFile);
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,
@@ -1152,39 +1171,39 @@ export default {
return false;
}
}
} else {
const response = await sendNumMgtApi.insertNumber(
this.adminId,
this.custNm,
this.bRegNo,
this.nmineeDivCd,
this.saveSendNums,
this.bizrAuthYn,
this.custSeq,
this.bRegNo
);
const result = response.data;
if (result != null && result.retCode == '0000') {
if (result.data.list != null && result.data.list.length > 0) {
this.row.title = '발신번호 등록';
var failMsg = '';
for (var i = 0; i < result.data.list.length; i++) {
failMsg += '[' + (i + 1) + '] ' + result.data.list[i].sendNum + '<br>';
}
this.row.failMsg = failMsg;
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
}
this.toComplete();
} else if (result != null && result.retCode == '4021') {
var failMsg = '';
for (var i = 0; i < result.data.list.length; i++) {
failMsg += '[' + (i + 1) + '] ' + result.data.list[i].sendNum + '<br>';
}
this.row.failMsg = failMsg;
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
return false;
}
}
// } else {
// const response = await sendNumMgtApi.insertNumber(
// this.adminId,
// this.custNm,
// this.bRegNo,
// this.nmineeDivCd,
// this.saveSendNums,
// this.bizrAuthYn,
// this.custSeq,
// this.bRegNo
// );
// const result = response.data;
// if (result != null && result.retCode == '0000') {
// if (result.data.list != null && result.data.list.length > 0) {
// this.row.title = '발신번호 등록';
// var failMsg = '';
// for (var i = 0; i < result.data.list.length; i++) {
// failMsg += '[' + (i + 1) + '] ' + result.data.list[i].sendNum + '<br>';
// }
// this.row.failMsg = failMsg;
// this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
// }
// this.toComplete();
// } else if (result != null && result.retCode == '4021') {
// var failMsg = '';
// for (var i = 0; i < result.data.list.length; i++) {
// failMsg += '[' + (i + 1) + '] ' + result.data.list[i].sendNum + '<br>';
// }
// this.row.failMsg = failMsg;
// this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
// return false;
// }
// }
}
},
doValidate() {
@@ -1202,7 +1221,12 @@ export default {
return false;
}
if (this.bizrAuthYn !== 'Y') {
if (this.nmineeDivCd == '01') {
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 = '통신서비스 이용증명원 파일을 업로드 하세요.';
@@ -1210,25 +1234,19 @@ export default {
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 = '법인인감증명서 파일을 업로드 하세요.';
@@ -1237,22 +1255,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;
@@ -1269,3 +1289,6 @@ export default {
},
};
</script>
<style scoped>
.required {color: #eb008b;}
</style>

View File

@@ -48,9 +48,9 @@ const insertNumber = (adminId, custNm, bRegNo, nmineeDivCd, numberInputs, bizrAu
// 사업자가 등록 요청.
const insertNumber1 = (
communicationFile,
tenureFile,
// tenureFile,
businessFile,
identificationCardFile,
// identificationCardFile,
identificationEvidenceFile,
adminId,
custNm,
@@ -62,9 +62,9 @@ const insertNumber1 = (
) => {
let formData = new FormData();
formData.append('communicationFile', communicationFile);
formData.append('tenureFile', tenureFile);
// formData.append('tenureFile', tenureFile);
formData.append('businessFile', businessFile);
formData.append('identificationCardFile', identificationCardFile);
// formData.append('identificationCardFile', identificationCardFile);
formData.append('identificationEvidenceFile', identificationEvidenceFile);
const row = {};
@@ -89,19 +89,20 @@ const insertNumber1 = (
// 타사업자가 등록 요청.
const insertNumber2 = (
businessFile,
communicationFile,
delegationFile,
attorneyFile,
otherBusinessFile,
delegatedIdentificationFile,
delegateCertificateFile,
delegatedBusinessFile,
authorizedBusinessFile,
//corporateCertificateFile,
identificationCardFile,
identificationEvidenceFile,
commDeputyCertificateFile,
attorneyFile,
delegationFile,
delegatedBusinessFile,
delegatedIdentificationFile,
commDeputyIdFile,
delegateCertificateFile,
commDeputyCertificateFile,
// otherBusinessFile,
// authorizedBusinessFile,
//corporateCertificateFile,
// identificationCardFile,
adminId,
custNm,
bRegNo,
@@ -114,13 +115,14 @@ const insertNumber2 = (
formData.append('communicationFile', communicationFile);
formData.append('delegationFile', delegationFile);
formData.append('attorneyFile', attorneyFile);
formData.append('otherBusinessFile', otherBusinessFile);
// formData.append('otherBusinessFile', otherBusinessFile);
formData.append('businessFile', businessFile);
formData.append('delegatedIdentificationFile', delegatedIdentificationFile);
formData.append('delegateCertificateFile', delegateCertificateFile);
formData.append('delegatedBusinessFile', delegatedBusinessFile);
formData.append('authorizedBusinessFile', authorizedBusinessFile);
// formData.append('authorizedBusinessFile', authorizedBusinessFile);
//formData.append('corporateCertificateFile', corporateCertificateFile);
formData.append('identificationCardFile', identificationCardFile);
// formData.append('identificationCardFile', identificationCardFile);
formData.append('identificationEvidenceFile', identificationEvidenceFile);
formData.append('commDeputyCertificateFile', commDeputyCertificateFile);
formData.append('commDeputyIdFile', commDeputyIdFile);

View File

@@ -231,6 +231,14 @@ public class SendNumMgtService {
@Transactional(value="db1TransactionManager")
public InsertNumberResDto insertNumber(InsertNumberReqDto insertNumberReqDto, MultipartHttpServletRequest multipartRequest) {
Iterator fileNameIter = multipartRequest.getFileNames();
while (fileNameIter.hasNext()) {
String key = (String)fileNameIter.next();
logger.debug("key={}",key);
}
SendNumMgtMapper sendNumMgtMapper = sqlSessionMaster.getMapper(SendNumMgtMapper.class);
String adminId = insertNumberReqDto.getAdminId();
@@ -297,6 +305,7 @@ public class SendNumMgtService {
// 2. 발신번호등록 테이블 저장. (EZ_SNDRNO_REG)
sendNumMgtMapper.insertNumber(insertNumberReqDto);
logger.debug("발신번호 저장 성공");
String yyyyMMdd = DateUtils.date2strYMD();
// Path : efs/admin/sendNumDoc/yyyy/mm/
@@ -330,7 +339,6 @@ public class SendNumMgtService {
}
// 사업자 인증이 안된 경우 파일업로드...
if(!StringUtils.equals(Const.COMM_YES, insertNumberReqDto.getBizrAuthYn())){
// 4. 발신번호 등록 서류 테이블 저장. (EZ_SNDRNO_DOC)
// DOC_NO 채번.
@@ -338,29 +346,32 @@ public class SendNumMgtService {
List<MultipartFile> multipartFiles = new ArrayList<>();
List<String> docTpCd = new ArrayList<>();
if(StringUtils.equals(Const.SNDRNO_TP_CD_SELF, insertNumberReqDto.getNmineeDivCd())) {
// 사업자등록증 '06'
if(multipartRequest.getFile("businessFile") != null) {
MultipartFile businessFile = multipartRequest.getFile("businessFile");
multipartFiles.add(businessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_06);
}
// 통신서비스이용 증명원 '01'
MultipartFile communicationFile = multipartRequest.getFile("communicationFile");
multipartFiles.add(communicationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_01);
// 재직증명서 '02'
if(multipartRequest.getFile("tenureFile") != null) {
MultipartFile tenureFile = multipartRequest.getFile("tenureFile");
multipartFiles.add(tenureFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_02);
}
// // 재직증명서 '02'
// if(multipartRequest.getFile("tenureFile") != null) {
// MultipartFile tenureFile = multipartRequest.getFile("tenureFile");
// multipartFiles.add(tenureFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_02);
// }
// 사업자등록증 '06'
MultipartFile businessFile = multipartRequest.getFile("businessFile");
multipartFiles.add(businessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_06);
// 신분증(본인확인) '13'
if(multipartRequest.getFile("identificationCardFile") != null) {
MultipartFile identificationCardFile = multipartRequest.getFile("identificationCardFile");
multipartFiles.add(identificationCardFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_13);
}
// // 신분증(본인확인) '13'
// if(multipartRequest.getFile("identificationCardFile") != null) {
// MultipartFile identificationCardFile = multipartRequest.getFile("identificationCardFile");
// multipartFiles.add(identificationCardFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_13);
// }
// 재직증명서(본인확인) '14'
if(multipartRequest.getFile("identificationEvidenceFile") != null) {
@@ -370,88 +381,111 @@ public class SendNumMgtService {
}
} else if(StringUtils.equals(Const.SNDRNO_TP_CD_OTHER, insertNumberReqDto.getNmineeDivCd())){
// 위임-수임사간 관계 확인 문서 '03'
MultipartFile delegationFile = multipartRequest.getFile("delegationFile");
multipartFiles.add(delegationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_03);
// 위임장 '04'
MultipartFile attorneyFile = multipartRequest.getFile("attorneyFile");
multipartFiles.add(attorneyFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_04);
// 법인인감증명서 '12'
// MultipartFile corporateCertificateFile = multipartRequest.getFile("corporateCertificateFile");
// multipartFiles.add(corporateCertificateFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_12);
// 위임사 사업자등록증 '10'
MultipartFile delegatedBusinessFile = multipartRequest.getFile("delegatedBusinessFile");
multipartFiles.add(delegatedBusinessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_10);
// 수임사 사업자등록증 '11'
MultipartFile authorizedBusinessFile = multipartRequest.getFile("authorizedBusinessFile");
multipartFiles.add(authorizedBusinessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_11);
logger.debug("타사업자로 온거 맞아?");
// 사업자등록증 '06'
if(multipartRequest.getFile("businessFile") != null) {
MultipartFile businessFile = multipartRequest.getFile("businessFile");
logger.debug("businessFile={}",businessFile.getName());
multipartFiles.add(businessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_06);
}
// 통신서비스이용 증명원 '01'
if(multipartRequest.getFile("communicationFile") != null) {
MultipartFile communicationFile = multipartRequest.getFile("communicationFile");
logger.debug("communicationFile={}",communicationFile.getName());
multipartFiles.add(communicationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_01);
}
// 위임사 재직증명서(임직원 신청시) '09'
if(multipartRequest.getFile("delegateCertificateFile") != null) {
MultipartFile delegateCertificateFile = multipartRequest.getFile("delegateCertificateFile");
multipartFiles.add(delegateCertificateFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_09);
}
// 위임사 신분증(임직원 신청시) '08'
if(multipartRequest.getFile("delegatedIdentificationFile") != null) {
MultipartFile delegatedIdentificationFile = multipartRequest.getFile("delegatedIdentificationFile");
multipartFiles.add(delegatedIdentificationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_08);
}
// 사업자등록증(타사) '07'
MultipartFile otherBusinessFile = multipartRequest.getFile("otherBusinessFile");
multipartFiles.add(otherBusinessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_07);
// 신분증(본인확인) '13'
if(multipartRequest.getFile("identificationCardFile") != null) {
MultipartFile identificationCardFile = multipartRequest.getFile("identificationCardFile");
multipartFiles.add(identificationCardFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_13);
}
// 재직증명서(본인확인) '14'
if(multipartRequest.getFile("identificationEvidenceFile") != null) {
logger.debug("재직증명서");
MultipartFile identificationEvidenceFile = multipartRequest.getFile("identificationEvidenceFile");
multipartFiles.add(identificationEvidenceFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_14);
}
// 위임장 '04'
MultipartFile attorneyFile = multipartRequest.getFile("attorneyFile");
logger.debug("attorneyFile={}",multipartRequest.getFile("attorneyFile"));
multipartFiles.add(attorneyFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_04);
// 위임-수임업체 관계 확인 문서 '03'
MultipartFile delegationFile = multipartRequest.getFile("delegationFile");
logger.debug("delegationFile={}",delegationFile.getName());
multipartFiles.add(delegationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_03);
// 위임업체 사업자등록증 '10'
MultipartFile delegatedBusinessFile = multipartRequest.getFile("delegatedBusinessFile");
logger.debug("delegatedBusinessFile={}",delegatedBusinessFile.getName());
multipartFiles.add(delegatedBusinessFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_10);
// 위임사 신분증(임직원 신청시) '08'
if(multipartRequest.getFile("delegatedIdentificationFile") != null) {
logger.debug("위임사 신분증(임직원 신청시)");
MultipartFile delegatedIdentificationFile = multipartRequest.getFile("delegatedIdentificationFile");
multipartFiles.add(delegatedIdentificationFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_08);
}
// 수임사 대리인 재직증명서(임직원 신청시) '15'
if(multipartRequest.getFile("commDeputyCertificateFile") != null) {
logger.debug("수임사 대리인 재직증명서(임직원 신청시)");
MultipartFile commDeputyCertificateFile = multipartRequest.getFile("commDeputyCertificateFile");
multipartFiles.add(commDeputyCertificateFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_15);
}
// 위임사 재직증명서(임직원 신청시) '09'
if(multipartRequest.getFile("delegateCertificateFile") != null) {
logger.debug("위임사 재직증명서(임직원 신청시)");
MultipartFile delegateCertificateFile = multipartRequest.getFile("delegateCertificateFile");
multipartFiles.add(delegateCertificateFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_09);
}
// 수임사 대리인 신분증(임직원 신청시) '16'
if(multipartRequest.getFile("commDeputyIdFile") != null) {
logger.debug("수임사 대리인 신분증(임직원 신청시)");
MultipartFile commDeputyIdFile = multipartRequest.getFile("commDeputyIdFile");
multipartFiles.add(commDeputyIdFile);
docTpCd.add(Const.SNDRNO_DOC_TP_CD_16);
}
// 사업자등록증(타사) '07'
// MultipartFile otherBusinessFile = multipartRequest.getFile("otherBusinessFile");
// multipartFiles.add(otherBusinessFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_07);
// 신분증(본인확인) '13'
// if(multipartRequest.getFile("identificationCardFile") != null) {
// MultipartFile identificationCardFile = multipartRequest.getFile("identificationCardFile");
// multipartFiles.add(identificationCardFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_13);
// }
// 법인인감증명서 '12'
// MultipartFile corporateCertificateFile = multipartRequest.getFile("corporateCertificateFile");
// multipartFiles.add(corporateCertificateFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_12);
// // 수임사 사업자등록증 '11'
// MultipartFile authorizedBusinessFile = multipartRequest.getFile("authorizedBusinessFile");
// multipartFiles.add(authorizedBusinessFile);
// docTpCd.add(Const.SNDRNO_DOC_TP_CD_11);
}
// 파일 업로드 및 테이블 저장 (등록 서류 관련).
for(int j=0; j<multipartFiles.size(); j++) {
logger.debug("********들어왔나 내용확인만 하자.몇번째={},내용={}",j,multipartFiles.get(j).getOriginalFilename());
}
for(int j=0; j<multipartFiles.size(); j++){
logger.debug("왜 for문 안돌아?몇번째={},내용={}",j,multipartFiles.get(j).getOriginalFilename());
// DOC FILE UPLOAD.
String ext = FileIoUtils.getExtension(multipartFiles.get(j).getOriginalFilename());
// File Nm : [reg_req_no]_[doc_no]_[doc_tp_cd].확장자
@@ -476,7 +510,7 @@ public class SendNumMgtService {
insertFile.setRegId(regId);
sendNumMgtMapper.insertNumberDoc(insertFile);
}
}
}catch (Exception e){
return new InsertNumberResDto(ApiResponseCode.CM_DB_QUERY_ERR);
}