mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 05:12:34 +09:00
TC 수정 반영
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
</div>
|
||||
|
||||
<admin-list-pop ref="admnListPop" :send-data="childData" @event-data="setChildData"/>
|
||||
<common-modal ref="commmonModal2"></common-modal>
|
||||
<!-- <common-modal ref="commmonModal2"></common-modal>-->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -133,7 +133,7 @@
|
||||
<script>
|
||||
import AdminListPop from "@/modules/sendNumMgt/components/AdminListPop";
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
// import commonModal from "@/components/modal/commonModal";
|
||||
import sendNumMgtApi from "@/modules/sendNumMgt/service/sendNumMgtApi";
|
||||
|
||||
export default {
|
||||
@@ -171,7 +171,7 @@ export default {
|
||||
},
|
||||
components: {
|
||||
AdminListPop,
|
||||
commonModal,
|
||||
// commonModal,
|
||||
},
|
||||
model: {
|
||||
prop: 'sendData',
|
||||
@@ -421,8 +421,6 @@ export default {
|
||||
this.otherBusinessFile = null;
|
||||
},
|
||||
async saveSendNum() {
|
||||
|
||||
|
||||
this.saveSendNums = []
|
||||
this.saveSendNums.push({
|
||||
sendNm: this.sendNm,
|
||||
@@ -437,59 +435,114 @@ export default {
|
||||
})
|
||||
)
|
||||
}
|
||||
this.doValidate();
|
||||
// console.log(this.custSeq)
|
||||
console.log(this.$data)
|
||||
if (this.bizrAuthYn !== 'Y') {
|
||||
if (this.nmineeDivCd === '01') {
|
||||
// 사업자
|
||||
const response = await sendNumMgtApi.insertNumber1(this.tenureFile, this.businessFile, this.communicationFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
if(this.doValidate()){
|
||||
if (this.bizrAuthYn !== 'Y') {
|
||||
if (this.nmineeDivCd === '01') {
|
||||
// 사업자
|
||||
const response = await sendNumMgtApi.insertNumber1(this.tenureFile, this.businessFile, this.communicationFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete()
|
||||
}
|
||||
|
||||
} else if (this.nmineeDivCd === '02') {
|
||||
const response = await sendNumMgtApi.insertNumber2(this.trustFile, this.warrantFile, this.deputyFile, this.tenureFile, this.otherBusinessFile, this.businessFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete()
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
const response = await sendNumMgtApi.insertNumber(this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete()
|
||||
}
|
||||
|
||||
} else if (this.nmineeDivCd === '02') {
|
||||
const response = await sendNumMgtApi.insertNumber2(this.trustFile, this.warrantFile, this.deputyFile, this.tenureFile, this.otherBusinessFile, this.businessFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete()
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
const response = await sendNumMgtApi.insertNumber(this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
this.toComplete()
|
||||
}
|
||||
}
|
||||
},
|
||||
doValidate() {
|
||||
|
||||
|
||||
if (this.isNull(this.adminId) || this.isNull(this.custNm) || this.isNull(this.bRegNo)) {
|
||||
this.row.title = '발신번호 등록';
|
||||
this.row.msg1 = '관리자ID를 조회 해주세요.';
|
||||
this.getParent('NumberList').commonModalOpen(this.row)
|
||||
// this.$refs.commmonModal2.alertModalOpen(this.row);
|
||||
// this.getParent('NumberList').commonModalOpen(this.row)
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
if (this.isNull(this.sendNm) || this.isNull(this.sendNum)) {
|
||||
this.row.title = '발신번호 등록';
|
||||
this.row.msg1 = '발신번호명/발신번호를 입력해 주세요.';
|
||||
this.$refs.commmonModal2.alertModalOpen(this.row);
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
// if(this.isNull(this.adminId)){
|
||||
// this.row.title = '발신번호 등록';
|
||||
// this.row.msg1 = '관리자ID를 조회 해주세요..';
|
||||
// this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
// return false;
|
||||
// }
|
||||
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.tenureFile == 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.trustFile == null){
|
||||
this.row.title = '발신번호 등록';
|
||||
this.row.msg1 = '위임-수임관계 확인 서류 파일을 업로드 하세요.';
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false
|
||||
}
|
||||
if(this.warrantFile == null){
|
||||
this.row.title = '발신번호 등록';
|
||||
this.row.msg1 = '위임장 파일을 업로드 하세요.';
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false
|
||||
}
|
||||
if(this.deputyFile == 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.tenureFile == null){
|
||||
this.row.title = '발신번호 등록';
|
||||
this.row.msg1 = '재직증명서 파일을 업로드 하세요.';
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false
|
||||
}
|
||||
if(this.otherBusinessFile == 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
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
toComplete() {
|
||||
this.getParent('numberList').$refs.table.reloadData();
|
||||
|
||||
Reference in New Issue
Block a user