diff --git a/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue b/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue index 27ce58e..7154af7 100644 --- a/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue +++ b/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue @@ -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;