발신번호 등록 수정

This commit is contained in:
USER
2022-08-17 12:03:45 +09:00
parent 26756f3e8e
commit 89c8d1eb68
34 changed files with 918 additions and 247 deletions

View File

@@ -57,7 +57,7 @@
<th>제출서류</th>
<td>
<div class="sender">
<p v-for="(item, idx) in list" v-if="item.docTpcd !== '06'">{{ item.docTitle }} ({{ item.fileSize }}KB)</p>
<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>
</div>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
</td>
@@ -66,8 +66,18 @@
<th>사업자등록증</th>
<td>
<div class="sender">
<!-- <p>사업자등록증.jpg (00KB)</p>-->
<p v-for="(item, idx) in list" v-if="item.docTpCd === '06'">{{ item.docTitle }} ({{ item.fileSize }}KB)</p>
<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 === '07'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }})</p>
</div>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
</td>
</tr>
<tr>
<th>본인 확인</th>
<td>
<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 === '14'">{{ item.docTitle }} ({{ formatFileSize(item.fileSize) }})</p>
</div>
<p class="file">파일형식 : jpg, png, pdf, tiff (최대 5MB)</p>
</td>
@@ -107,8 +117,9 @@ export default {
sndrno:'',
sttusCd:'',
regDt:'',
list: [],
docList: [],
regRegNo:'',
}
},
components: {
@@ -125,6 +136,15 @@ export default {
},
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){
@@ -162,7 +182,7 @@ export default {
this.sttusCd = result.data.sttusCd
this.regDt = result.data.regDt
// result.data.list.forEach()
this.list = result.data.list
this.docList = result.data.list
this.regRegNo = result.data.regRegNo
}
} catch (error) {