mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 23:18:19 +09:00
발신번호 등록수정
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
<th>제출서류</th>
|
<th>제출서류</th>
|
||||||
<td>
|
<td>
|
||||||
<div class="sender">
|
<div class="sender">
|
||||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd !== '06' && item.docTpCd !== '07' && item.docTpCd !== '13' && item.docTpCd !== '14'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }})</p>
|
<p v-for="(item, idx) in docList" v-if="item.docTpCd !== '06' && item.docTpCd !== '07' && item.docTpCd !== '13' && item.docTpCd !== '14'">{{ item.docTitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
||||||
</td>
|
</td>
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
<th>사업자등록증</th>
|
<th>사업자등록증</th>
|
||||||
<td>
|
<td>
|
||||||
<div class="sender">
|
<div class="sender">
|
||||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '06'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }}) <br></p>
|
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '06'">{{ item.docTitle }} <br></p>
|
||||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '07'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }})</p>
|
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '07'">{{ item.docTitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
||||||
</td>
|
</td>
|
||||||
@@ -76,8 +76,8 @@
|
|||||||
<th>본인 확인</th>
|
<th>본인 확인</th>
|
||||||
<td>
|
<td>
|
||||||
<div class="sender">
|
<div class="sender">
|
||||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '13'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }}) <br></p>
|
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '13'">{{ item.docTitle }} <br></p>
|
||||||
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '14'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }})</p>
|
<p v-for="(item, idx) in docList" v-if="item.docTpCd === '14'">{{ item.docTitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
|
||||||
</td>
|
</td>
|
||||||
@@ -136,15 +136,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods :{
|
methods :{
|
||||||
formatFileSize(bytes,decimalPoint) {
|
|
||||||
if(bytes == 0) return '0 Bytes';
|
|
||||||
var k = 1000,
|
|
||||||
dm = decimalPoint || 2,
|
|
||||||
sizes = ['Bytes', 'KB', 'MB'],
|
|
||||||
i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
||||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
|
||||||
},
|
|
||||||
|
|
||||||
// 모달 띄우기
|
// 모달 띄우기
|
||||||
numberDetailPopOpen(props){
|
numberDetailPopOpen(props){
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="attach">
|
<div class="attach">
|
||||||
<p v-if="fileType === 1" class="essential list">통신서비스 이용증명원</p>
|
<p v-if="fileType === 1" class="essential list"><span>*</span>통신서비스 이용증명원</p>
|
||||||
<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p>
|
<p v-if="fileType === 2" class="essential list">발신번호의 통신서비스 이용증명원</p>
|
||||||
<input type="file" ref="communicationFile" style="display: none" @change="readCommunicationFile"
|
<input type="file" ref="communicationFile" style="display: none" @change="readCommunicationFile"
|
||||||
accept=".jpg,.png,.pdf,.tiff"/>
|
accept=".jpg,.png,.pdf,.tiff"/>
|
||||||
@@ -247,6 +247,21 @@ export default {
|
|||||||
this.formReset();
|
this.formReset();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
returnFileSize(number, event) {
|
||||||
|
if (number === 0){
|
||||||
|
this.row.title = '발신번호 등록';
|
||||||
|
this.row.msg1 = '첨부파일을 확인해 주세요';
|
||||||
|
// this.getParent('NumberList').commonModalOpen(this.row)
|
||||||
|
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||||
|
event.target.files[0] = '';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(number > 1) {
|
||||||
|
return (number/1048576).toFixed(2) + 'MB';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
searchIdPop() {
|
searchIdPop() {
|
||||||
this.$refs.admnListPop.adminNmPopOpen();
|
this.$refs.admnListPop.adminNmPopOpen();
|
||||||
},
|
},
|
||||||
@@ -335,7 +350,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('delegationNm');
|
const root = document.getElementById('delegationNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.delegationFile = file;
|
this.delegationFile = file;
|
||||||
}
|
}
|
||||||
@@ -366,7 +381,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('attorneyNm');
|
const root = document.getElementById('attorneyNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.attorneyFile = file;
|
this.attorneyFile = file;
|
||||||
}
|
}
|
||||||
@@ -398,7 +413,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('corporateCertificateNm');
|
const root = document.getElementById('corporateCertificateNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size , event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.corporateCertificateFile = file;
|
this.corporateCertificateFile = file;
|
||||||
}
|
}
|
||||||
@@ -430,7 +445,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('delegatedBusinessNm');
|
const root = document.getElementById('delegatedBusinessNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.delegatedBusinessFile = file;
|
this.delegatedBusinessFile = file;
|
||||||
}
|
}
|
||||||
@@ -462,7 +477,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('authorizedBusinessNm');
|
const root = document.getElementById('authorizedBusinessNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size , event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.authorizedBusinessFile = file;
|
this.authorizedBusinessFile = file;
|
||||||
}
|
}
|
||||||
@@ -494,7 +509,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('delegateCertificateNm');
|
const root = document.getElementById('delegateCertificateNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.delegateCertificateFile = file;
|
this.delegateCertificateFile = file;
|
||||||
}
|
}
|
||||||
@@ -526,7 +541,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('delegatedIdentificationNm');
|
const root = document.getElementById('delegatedIdentificationNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.delegatedIdentificationFile = file;
|
this.delegatedIdentificationFile = file;
|
||||||
}
|
}
|
||||||
@@ -558,7 +573,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('tenureNm');
|
const root = document.getElementById('tenureNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.tenureFile = file;
|
this.tenureFile = file;
|
||||||
}
|
}
|
||||||
@@ -589,7 +604,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('businessNm');
|
const root = document.getElementById('businessNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.businessFile = file;
|
this.businessFile = file;
|
||||||
}
|
}
|
||||||
@@ -620,7 +635,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('identificationCardNm');
|
const root = document.getElementById('identificationCardNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.identificationCardFile = file;
|
this.identificationCardFile = file;
|
||||||
}
|
}
|
||||||
@@ -651,7 +666,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('identificationEvidenceNm');
|
const root = document.getElementById('identificationEvidenceNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.identificationEvidenceFile = file;
|
this.identificationEvidenceFile = file;
|
||||||
}
|
}
|
||||||
@@ -684,8 +699,9 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('communicationNm');
|
const root = document.getElementById('communicationNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
|
//root.appendChild( `${this.returnFileSize(file.size)}`);
|
||||||
this.communicationFile = file;
|
this.communicationFile = file;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -715,7 +731,7 @@ export default {
|
|||||||
})
|
})
|
||||||
button.innerText = 'X'
|
button.innerText = 'X'
|
||||||
const root = document.getElementById('otherBusinessNm');
|
const root = document.getElementById('otherBusinessNm');
|
||||||
root.appendChild(text);
|
root.textContent = `${file.name} ${ '('+ this.returnFileSize(file.size, event) + ')'}`;
|
||||||
root.appendChild(button);
|
root.appendChild(button);
|
||||||
this.otherBusinessFile = file;
|
this.otherBusinessFile = file;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ public class SendNumMgtService {
|
|||||||
// DOC FILE UPLOAD.
|
// DOC FILE UPLOAD.
|
||||||
String ext = FileIoUtils.getExtension(multipartFiles.get(j).getOriginalFilename());
|
String ext = FileIoUtils.getExtension(multipartFiles.get(j).getOriginalFilename());
|
||||||
// File Nm : [reg_req_no]_[doc_no]_[doc_tp_cd].확장자
|
// File Nm : [reg_req_no]_[doc_no]_[doc_tp_cd].확장자
|
||||||
String fileNm = regReqNo + "_" + docTpCd.get(j).substring(1,2) + "_" + docTpCd.get(j) + "." + ext;
|
String fileNm = regReqNo + "_" + ("" + Integer.parseInt(docTpCd.get(j))) + "_" + docTpCd.get(j) + "." + ext;
|
||||||
String titleNm = multipartFiles.get(j).getOriginalFilename();
|
String titleNm = multipartFiles.get(j).getOriginalFilename();
|
||||||
long fileSize = multipartFiles.get(j).getSize();
|
long fileSize = multipartFiles.get(j).getSize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user