mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 05:12:34 +09:00
발신번호 승인 > 요청 팝업
1. 저장할때 모든 발신번호의 승인/반려 체크 여부 확인하도록 변경. 2. 전체승인 라디오버튼 선택 안된 상태로 변경.
This commit is contained in:
@@ -258,11 +258,11 @@ export default {
|
||||
rejtCnt = rejtCnt + 1;
|
||||
}
|
||||
});
|
||||
if (apprCnt == this.numList.length) {
|
||||
/* if (apprCnt == this.numList.length) {
|
||||
this.$refs.apprRadio.checked = true;
|
||||
} else if (rejtCnt == this.numList.length) {
|
||||
this.$refs.rejRadio.checked = true;
|
||||
}
|
||||
} */
|
||||
}
|
||||
} catch (error) {
|
||||
this.row.title = '발신번호승인';
|
||||
@@ -276,6 +276,8 @@ export default {
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
this.$refs.apprRadio.checked = false;
|
||||
this.$refs.rejRadio.checked = false;
|
||||
},
|
||||
allApprSttus(event) {
|
||||
var data = event.target.value;
|
||||
@@ -297,11 +299,11 @@ export default {
|
||||
rejtCnt = rejtCnt + 1;
|
||||
}
|
||||
});
|
||||
if (apprCnt == this.numList.length) {
|
||||
/* if (apprCnt == this.numList.length) {
|
||||
this.$refs.apprRadio.checked = true;
|
||||
} else if (rejtCnt == this.numList.length) {
|
||||
this.$refs.rejRadio.checked = true;
|
||||
}
|
||||
} */
|
||||
},
|
||||
updateSttus() {
|
||||
this.doSave();
|
||||
@@ -312,6 +314,17 @@ export default {
|
||||
this.row.adminId = this.adminId;
|
||||
this.row.list = this.numList;
|
||||
|
||||
const numCheck = this.row.list.every((number) => {
|
||||
return number.sttusCd !== '01';
|
||||
});
|
||||
|
||||
if (!numCheck) {
|
||||
this.row.title = '발신번호';
|
||||
this.row.msg1 = '승인 또는 반려를 모두 선택해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await sendNumMgtApi.updateAppr(this.row);
|
||||
const result = response.data;
|
||||
|
||||
Reference in New Issue
Block a user