diff --git a/frontend/src/modules/custMgt/components/MemberModifyPop.vue b/frontend/src/modules/custMgt/components/MemberModifyPop.vue
index ceca50d..f70ebfe 100644
--- a/frontend/src/modules/custMgt/components/MemberModifyPop.vue
+++ b/frontend/src/modules/custMgt/components/MemberModifyPop.vue
@@ -42,6 +42,16 @@
|
+
+ | 라인타입 |
+
+
+ |
+
| 상태 |
@@ -106,6 +116,7 @@ export default {
userPwd1: "",
userPwd2: "",
code: "",
+ lineType:"",
userStat: "",
}
},
@@ -122,6 +133,7 @@ export default {
this.userNm = result.data.userNm;
this.email = result.data.email;
this.mdn = result.data.mdn;
+ this.lineType = result.data.lineType;
this.userStat = result.data.userStat;
} else {
this.row.title = '청약고객관리';
@@ -153,6 +165,7 @@ export default {
this.row.userNm = this.userNm;
this.row.userEmail = this.email;
this.row.mdn = this.mdn;
+ this.row.lineType = this.lineType;
this.row.userStat = this.userStat;
try {
const response = await custMgtApi.updateUser(this.row);
diff --git a/frontend/src/modules/custMgt/views/MemberAdminDetail.vue b/frontend/src/modules/custMgt/views/MemberAdminDetail.vue
index bb2cbd3..e9f00f5 100644
--- a/frontend/src/modules/custMgt/views/MemberAdminDetail.vue
+++ b/frontend/src/modules/custMgt/views/MemberAdminDetail.vue
@@ -21,24 +21,28 @@
|
-
+
| 이름 |
- {{ userNm }} |
-
-
- | 등록일 |
- {{ regDt }} |
+ |
구분 |
- {{ userType }} |
+ {{ userType }} |
-
+
+ | 등록일 |
+ {{ regDt }} |
+ 휴대폰번호 |
+
+
+ |
+
+
| ID |
- {{ userId }}
+ {{ userId }}
|
- 관리자명 |
- {{ adminId }} / {{ adminNm }} |
+ 이메일 |
+ |
| 발송한도 설정 |
@@ -46,14 +50,7 @@
-
+
|
라인타입 |
@@ -65,14 +62,14 @@
|
- | ID 잠금 |
+ 상태 |
-
+
|
- 마지막 접속일 |
+ 최종 접속일 |
{{ lastLoginDt }} |
@@ -336,20 +333,87 @@ export default {
this.$refs.commmonModal.alertModalOpen(this.row);
}
},
+ fnPhoneDash(e) {
+ const pattern_notNumber = /[^-0-9]/g; // 숫자가 아닌것 체크
+ // 숫자 외 입력시
+ if (pattern_notNumber.test(e.target.value)) {
+ alert("휴대폰번호는 숫자만 입력 가능 합니다.");
+ this.userInfo.hpNo = e.target.value.replace(/[^0-9]/g, "");
+ }
+ },
/** 저장 */
async updateAdminInfoTotal() {
- this.row = {};
- this.row.userId = this.adminId;
- this.row.sendingLimit = this.sendingLimit;
- this.row.lineType = this.lineType;
- this.row.userStat = this.userStat;
- if(this.memo != this.oldMemo){
- this.row.memo = this.memo;
- } else {
- this.row.memo = '';
+
+ if(this.userNm == ""){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '이름을 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
}
+ if(this.mdn == ""){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '휴대폰번호를 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }else{
+ let regExp = /^01([0|1|6|7|8|9])?([0-9]{3,4})?([0-9]{4})$/;
+ if (!regExp.test(this.mdn)) {
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '휴대폰 번호를 올바르게 입력하여 주십시오.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }
+ }
+ if(this.email == ""){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '이메일을 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }else{
+ let regExp = /^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
+ if (!regExp.test(this.email)) {
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '이메일을 올바르게 입력하여 주십시오.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }
+ }
+ if(this.sendingLimit == ""){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '발송한도 설정을 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }
+ this.info = {};
+ if(this.memo != this.oldMemo){
+ if(this.memo == "" || this.memo == null){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '변경 내용에 대한 메모를 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }
+ this.info.memo = this.memo;
+ }else{
+ if(this.memo == "" || this.memo == null || this.memo == this.oldMemo){
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '변경 내용에 대한 메모를 입력해 주세요.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ return false;
+ }
+ this.info.memo = this.memo;
+ }
+
+ this.info.userId = this.adminId;
+ this.info.userNm = this.userNm;
+ this.info.hpNo = this.mdn;
+ this.info.email = this.email;
+ this.info.sendingLimit = this.sendingLimit;
+ this.info.lineType = this.lineType;
+ this.info.userStat = this.userStat;
+
+
try {
- const response = await custMgtApi.updateAdminInfoTotal(this.row);
+ const response = await custMgtApi.updateAdminInfoTotal(this.info);
const result = response.data;
if (result != null && result.retCode == '0000') {
this.row.title = '청약고객관리';
diff --git a/frontend/src/modules/custMgt/views/MemberDetail.vue b/frontend/src/modules/custMgt/views/MemberDetail.vue
index 9aa3341..f6a6cd2 100644
--- a/frontend/src/modules/custMgt/views/MemberDetail.vue
+++ b/frontend/src/modules/custMgt/views/MemberDetail.vue
@@ -26,41 +26,49 @@
|
|
-
-
- | 등록일 |
- {{ regDt }} |
- 관리자 ID |
- {{ adminId }} |
-
-
- | ID |
-
- {{ userId }}
-
- |
- 구분 |
- {{ userType }} |
+ 구분 |
+ {{ userType }} |
+ | 등록일 |
+ {{ regDt }} |
휴대폰번호 |
-
+
|
- 이메일 |
+
+
+ | ID |
+
+ {{ userId }}
+
+ |
+ 이메일 |
|
+
+ | 관리자 ID |
+ {{ adminId }} |
+ 라인타입 |
+
+
+ |
+
- | 잠금 |
+ 상태 |
|
- 최종접속일 |
+ 최종접속일 |
{{ lastLoginDt }} |
@@ -177,11 +185,12 @@ export default {
return false;
}
- this.row.userId = this.userId;
- this.row.userNm = this.userNm;
- this.row.userEmail = this.email;
- this.row.mdn = this.mdn;
- this.row.userStat = this.stat;
+ this.row.userId = this.userId;
+ this.row.userNm = this.userNm;
+ this.row.userEmail = this.email;
+ this.row.mdn = this.mdn;
+ this.row.userStat = this.stat;
+ this.row.lineType = this.lineType;
try {
const response = await custMgtApi.updateUser(this.row);
const result = response.data;
@@ -221,16 +230,15 @@ export default {
this.$refs.commmonModal.alertModalOpen(this.row);
this.$refs._email.focus();
return false;
- }
- const email = this.email;
- if (!this.isNull(email) && !lodash.isEqual(email, '@') && !this.emailCheck(email)) {
- this.row.title = '청약고객관리';
- this.row.msg1 = '이메일 형식이 잘못되었습니다. 확인해 주세요.';
- this.$refs.commmonModal.alertModalOpen(this.row);
- this.$refs._email.focus();
- //this.$refs.validationConfirmPopModal.validationEmailOpen();
-
- return false;
+ }else{
+ let regExp = /^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i;
+ if (!regExp.test(this.email)) {
+ this.row.title = '청약고객관리';
+ this.row.msg1 = '이메일을 올바르게 입력하여 주십시오.';
+ this.$refs.commmonModal.alertModalOpen(this.row);
+ this.$refs._email.focus();
+ return false;
+ }
}
if (this.isNull(this.mdn)) {
@@ -243,11 +251,9 @@ export default {
const hp = this.mdn;
if (!this.isNull(hp) && !this.isMobile(hp)) {
this.row.title = '청약고객관리';
- this.row.msg1 = '휴대폰 번호 형식이 잘못되었습니다. 확인해 주세요.';
+ this.row.msg1 = '휴대폰 번호를 올바르게 입력하여 주십시오.';
this.$refs.commmonModal.alertModalOpen(this.row);
this.$refs._phone.focus();
- //this.$refs.validationConfirmPopModal.validationPhonenumberOpen();
-
return false;
}
diff --git a/frontend/src/modules/custMgt/views/SubsDetail.vue b/frontend/src/modules/custMgt/views/SubsDetail.vue
index fb76557..79fdc48 100644
--- a/frontend/src/modules/custMgt/views/SubsDetail.vue
+++ b/frontend/src/modules/custMgt/views/SubsDetail.vue
@@ -6,7 +6,7 @@
고객관리 > 청약정보조회 > 청약고객관리
@@ -62,7 +62,7 @@