mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 01:00:23 +09:00
TC 수정건 적용 (디자인 및 기능)
This commit is contained in:
@@ -560,8 +560,6 @@ header .user_wrap .user_info .logout {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
/*******************20220715 퍼블 수정*******************/
|
||||
|
||||
.contents .input_box.cal input {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
@@ -570,22 +568,19 @@ header .user_wrap .user_info .logout {
|
||||
background-color:#fff;
|
||||
}
|
||||
|
||||
.contents .input_box.cal .term span:nth-of-type(1){
|
||||
/*******************20220718 퍼블 수정*******************/
|
||||
|
||||
.contents .input_box.cal .term .icon_date:first-of-type{
|
||||
margin-right: 4%;
|
||||
}
|
||||
|
||||
.contents .input_box.cal .term span:nth-of-type(2){
|
||||
.contents .input_box.cal .term .icon_date:nth-of-type(2){
|
||||
margin-left: 4%;
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
|
||||
|
||||
/***** 20220715 퍼블 삭제
|
||||
.contents .input_box.cal input + input{
|
||||
margin-left: 5%;
|
||||
} **/
|
||||
|
||||
.contents .input_box.cal.one{
|
||||
width: 13.67%;
|
||||
}
|
||||
@@ -604,11 +599,6 @@ header .user_wrap .user_info .logout {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/** 20220715 퍼블 삭제
|
||||
.contents .input_box.cal .term input:nth-child(1){
|
||||
margin-right: 4%;
|
||||
} ***********/
|
||||
|
||||
.contents .input_box .search-box {
|
||||
background: #fff url(../images/icon-search.png) no-repeat 6% center/14px auto;
|
||||
padding-left: 43px;
|
||||
@@ -1582,11 +1572,25 @@ header .user_wrap .user_info .logout {
|
||||
background: url(../images/icon-add-b.png) no-repeat center center;
|
||||
}
|
||||
|
||||
.popup.popup_form.register .input_add div:nth-child(2){
|
||||
width: 89%;
|
||||
/********** 20220718 퍼블 수정 ************/
|
||||
|
||||
.popup.popup_form.register .input_add div+div{
|
||||
width: 89%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
/********** 20220718 퍼블 추가 ************/
|
||||
|
||||
.popup.popup_inside{
|
||||
max-height: 60vh;
|
||||
}
|
||||
|
||||
.popup.popup_inside .pop-head{
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
/****************************************/
|
||||
|
||||
.popup .button.white{
|
||||
background-color: #fff;
|
||||
border-radius: 6px;
|
||||
@@ -1744,11 +1748,15 @@ header .user_wrap .user_info .logout {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.essential span{
|
||||
/*color:#eb008b;*/
|
||||
/*******************20220718 퍼블 수정*******************/
|
||||
|
||||
.essential label span{
|
||||
color:#eb008b;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
/**************************************/
|
||||
|
||||
textarea{
|
||||
resize: none;
|
||||
min-height: 100px;
|
||||
@@ -1784,7 +1792,7 @@ textarea:focus{
|
||||
.datepicker .datepicker-calender tr td:first-child a{color:#ff2e76;}
|
||||
.datepicker .datepicker-head .datepicker-btn span{position: relative;}
|
||||
.datepicker .datepicker-head .datepicker-prev span::after{position: absolute; left: 70px; top: 10px; content: ''; width: 10px; height: 10px; border-top: 2px solid #5f5f5f; border-right: 2px solid #5f5f5f; transform: rotate(225deg);}
|
||||
.datepicker .datepicker-head .datepicker-next span::after{position: absolute; left: 70px; top: 10px; content: ''; width: 10px; height: 10px; border-top: 2px solid #5f5f5f; border-right: 2px solid #5f5f5f; transform: rotate(45deg);}
|
||||
.datepicker .datepicker-head .datepicker-next span::after{position: absolute; left: 185px; top: 10px; content: ''; width: 10px; height: 10px; border-top: 2px solid #5f5f5f; border-right: 2px solid #5f5f5f; transform: rotate(45deg);}
|
||||
.datepicker .datepicker-calender td:hover:not(.disabled){background-color: #efefef; border-radius: 50%;}
|
||||
.datepicker .datepicker-calender td:hover a{color:#000;}
|
||||
.datepicker .datepicker-calender .today{background-color: #7c7c7c; border-radius: 50%;}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
<!-- <div class="wrap bg-wrap"> -->
|
||||
<div>
|
||||
|
||||
<div class="dimmed alertCommon" @click="alertModalCancel();"></div>
|
||||
<div class="popup-wrap alertCommon">
|
||||
<!-- 로그인실패: 확인 -->
|
||||
<div class="popup alertCommon">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
@@ -21,67 +21,87 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div class="dimmed confirm" @click="confirmModalCancel();"></div>
|
||||
<div class="popup-wrap confirm">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
<p v-if="msg2 !== ''">{{ msg2 }}</p>
|
||||
<p v-if="msg3 !== ''">{{ msg3 }}</p>
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dimmed confirm2" @click="confirmModalCancel2();"></div>
|
||||
<div class="popup-wrap confirm2">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm2">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{title}}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div class="popup-wrap confirm2">
|
||||
<!-- 수정 확인 -->
|
||||
<div class="popup confirm2">
|
||||
<div class="pop-head">
|
||||
<h3 class="popup-tit">{{ title }}</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>{{ msg1 }}</p>
|
||||
<p v-if="msg2 !== ''">{{ msg2 }}</p>
|
||||
<p v-if="msg3 !== ''">{{ msg3 }}</p>
|
||||
<p v-if="msg4 !== ''">{{ msg4 }}</p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose2();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel2();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="confirmModalClose2();">확인</button>
|
||||
<button class="btn-default" @click="confirmModalCancel2();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 저장 - 중복된 발신번호 -->
|
||||
<div class="dimmed sendNumFailMsg" @click="sendNumFailMsgClose();"></div>
|
||||
<div class="popup-wrap sendNumFailMsg">
|
||||
<div class="popup sendNumFailMsg">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">중복된 발신번호</h3>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<p>등록된 발신번호가 있습니다.</p>
|
||||
<p v-html="failMsg"></p>
|
||||
</div>
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="sendNumFailMsgClose();">확인</button>
|
||||
<!-- <button class="btn-default" @click="sendNumFailMsgCancel();">취소</button>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "confirm",
|
||||
data(){
|
||||
return{
|
||||
row:{},
|
||||
title:'',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
}
|
||||
},
|
||||
methods :{
|
||||
alertModalOpen(props){
|
||||
name: "confirm",
|
||||
data() {
|
||||
return {
|
||||
row: {},
|
||||
title: '',
|
||||
msg1: '',
|
||||
msg2: '',
|
||||
msg3: '',
|
||||
msg4: '',
|
||||
failMsg:'',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
alertModalOpen(props) {
|
||||
console.log(props)
|
||||
var dimmed = document.getElementsByClassName('alertCommon');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
this.title = props.title;
|
||||
@@ -90,93 +110,123 @@ export default {
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
alertModalClose(){
|
||||
alertModalClose() {
|
||||
var dimmed = document.getElementsByClassName('alertCommon');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
alertModalCancel(){
|
||||
alertModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('alertCommon');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
// 모달 오픈
|
||||
confirmModalOpen(props) {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
this.msg2 = props.msg2;
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
confirmModalOpen2(props){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
confirmModalOpen2(props) {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
|
||||
this.title = props.title;
|
||||
this.msg1 = props.msg1;
|
||||
this.msg2 = props.msg2;
|
||||
this.msg3 = props.msg3;
|
||||
this.msg4 = props.msg4;
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose2(){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel(){
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(ok)
|
||||
confirmModalClose2() {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = true;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel() {
|
||||
var dimmed = document.getElementsByClassName('confirm');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel2(){
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for(var i = 0; i < dimmed.length; i++){
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
// 모달 끄기(취소)
|
||||
confirmModalCancel2() {
|
||||
var dimmed = document.getElementsByClassName('confirm2');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
|
||||
this.row.result = false;
|
||||
// 부모 함수 호출.
|
||||
this.$parent.confirmCalbackFnc(this.row);
|
||||
},
|
||||
}
|
||||
},
|
||||
sendNumFailMsgOpen(props){
|
||||
this.failMsg = props.failMsg
|
||||
var dimmed = document.getElementsByClassName('sendNumFailMsg');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'block';
|
||||
}
|
||||
},
|
||||
sendNumFailMsgClose(){
|
||||
var dimmed = document.getElementsByClassName('sendNumFailMsg');
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.popup-btn-wrap {width: 500px; margin: auto; padding: 100px 0;}
|
||||
.popup-btn-wrap button {width: 100%; margin-bottom: 10px; height: 50px; border-radius: 5px; box-shadow: none; border: 1px solid #000; }
|
||||
.popup-btn-wrap button:hover {background: #000; color: #fff;}
|
||||
.popup-btn-wrap {
|
||||
width: 500px;
|
||||
margin: auto;
|
||||
padding: 100px 0;
|
||||
}
|
||||
|
||||
.popup-btn-wrap button {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
height: 50px;
|
||||
border-radius: 5px;
|
||||
box-shadow: none;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.popup-btn-wrap button:hover {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
@@ -30,11 +30,11 @@
|
||||
"name": "이름"
|
||||
},
|
||||
{
|
||||
"key": "subsSttusCd",
|
||||
"key": "subsSttusNm",
|
||||
"name": "상태"
|
||||
},
|
||||
{
|
||||
"key": "custTyCd",
|
||||
"key": "custTyNm",
|
||||
"name": "구분"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
ref="file"
|
||||
style="display: none"
|
||||
@change="readFile"
|
||||
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
/>
|
||||
<button class="btn-default" @click="sampleDown">샘플 다운로드</button>
|
||||
<button class="button btn-p2color" @click="$refs.file.click()">파일 업로드</button>
|
||||
@@ -38,6 +38,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- <validationConfirm-modal ref="validationConfirmPop"></validationConfirm-modal>-->
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -49,6 +50,7 @@ import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
import xlsx from '@/common/excel';
|
||||
import moment from 'moment';
|
||||
import XLSX from 'xlsx';
|
||||
import commonModal from "../components/commonModal";
|
||||
// import ValidationConfirmPop from "./ValidationConfirmPop";
|
||||
|
||||
export default {
|
||||
@@ -65,10 +67,14 @@ export default {
|
||||
nData: [],
|
||||
oData: [],
|
||||
totalItems: 0,
|
||||
totalCnt: 0,
|
||||
failCnt: 0,
|
||||
insertRowCnt: 0
|
||||
};
|
||||
},
|
||||
components: {
|
||||
// ValidationConfirmPop,
|
||||
commonModal
|
||||
},
|
||||
created() {
|
||||
this.getExcelHeader();
|
||||
@@ -102,7 +108,7 @@ export default {
|
||||
this.row.serviceId = this.adminId;
|
||||
// 팝업으로 교체 예정
|
||||
// if (confirm('정상 업로드 되었습니다.')) {
|
||||
this.excelPopClose();
|
||||
this.excelPopClose();
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
// }
|
||||
},
|
||||
@@ -115,7 +121,7 @@ export default {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
this.toComplete();
|
||||
}
|
||||
} catch (err) {
|
||||
this.row.title = '청약고객관리';
|
||||
@@ -145,8 +151,32 @@ export default {
|
||||
this.nData = [];
|
||||
this.oData = [];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const file = event.target.files[0];
|
||||
|
||||
// 파일 개수 제한
|
||||
if(file != null){
|
||||
let element = document.getElementById('uploadFile');
|
||||
while (element.firstChild) {
|
||||
element.removeChild(element.firstChild);
|
||||
}
|
||||
}
|
||||
console.log(file.name);
|
||||
// 파일 이름 체크
|
||||
var fileName = file.name;
|
||||
var fileExpend = fileName .slice(fileName .indexOf(".") + 1).toLowerCase();
|
||||
if(fileExpend != "xlsx"){
|
||||
//alert("파일은 (xlsx) 형식만 등록 가능합니다.");
|
||||
this.row.title = '파일 업로드';
|
||||
this.row.msg1 = '샘플과 동일한 확장자가 아닙니다.';
|
||||
this.row.msg1 = '다시 업로드 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
@@ -176,18 +206,20 @@ export default {
|
||||
let workbook = XLSX.read(data, {type: 'binary'});
|
||||
workbook.SheetNames.forEach((sheetName) => {
|
||||
const rowObj = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName], {raw: true});
|
||||
console.log(rowObj);
|
||||
tmpResult = rowObj;
|
||||
const limitCnt = 100;
|
||||
|
||||
const totalCnt = Number(this.totalItems) + rowObj.length;
|
||||
|
||||
if (totalCnt > limitCnt) {
|
||||
this.totalCnt = Number(this.totalItems) + rowObj.length;
|
||||
this.insertRowCnt = rowObj.length;
|
||||
console.log('totalCnt : '+this.totalCnt +' limitCnt : '+limitCnt);
|
||||
if (this.totalCnt > limitCnt) {
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '100건이상은 등록되지 않습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
for (const [idx, r] of rowObj.entries()) {
|
||||
if (idx > limitCnt - 1) {
|
||||
break;
|
||||
@@ -286,12 +318,12 @@ export default {
|
||||
const result = response.data;
|
||||
console.log(result);
|
||||
if (result != null && result.retCode == '0000') {
|
||||
this.totalCnt = result.data.totalCnt;
|
||||
//this.totalCnt = result.data.totalCnt;
|
||||
this.successCnt = result.data.successCnt;
|
||||
this.failCnt = result.data.failCnt;
|
||||
this.failCnt = Number(this.failCnt) + Number(result.data.failCnt);
|
||||
|
||||
if (result.data.failCnt > 0) {
|
||||
this.row.totalCnt = this.totalCnt
|
||||
this.row.totalCnt = this.insertRowCnt
|
||||
this.row.successCnt = this.successCnt
|
||||
this.row.failCnt = this.failCnt
|
||||
this.$parent.$refs.validationConfirmPopModal.failFileuploadOpen(this.row);
|
||||
@@ -319,6 +351,14 @@ export default {
|
||||
this.$parent.memberDetail(this.adminId);
|
||||
}
|
||||
},
|
||||
|
||||
checkFocus() {
|
||||
this.$refs.file.value = null;
|
||||
let element = document.getElementById('uploadFile');
|
||||
while (element.firstChild) {
|
||||
element.removeChild(element.firstChild);
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -338,8 +338,8 @@ export default {
|
||||
for (var i = 0; i < dimmed.length; i++) {
|
||||
dimmed[i].style.display = 'none';
|
||||
}
|
||||
// 목록페이지 이동
|
||||
this.$parent.toComplete();
|
||||
// 화면 리로드
|
||||
this.$parent.successFileuploadOk();
|
||||
},
|
||||
// 정상완료 후 목록페이지 이동
|
||||
toComplete() {
|
||||
|
||||
@@ -439,6 +439,20 @@ export default {
|
||||
this.memberDelete();
|
||||
}
|
||||
},
|
||||
|
||||
// 대량 등록후 확인 처리
|
||||
failFileuploadOk(){
|
||||
// 대량등록 팝업 닫기
|
||||
this.$refs.memberBulkRegPop.excelPopClose();
|
||||
// reroad
|
||||
this.memberDetail(this.$route.params.serviceId);
|
||||
}
|
||||
,successFileuploadOk(){
|
||||
// 대량등록 팝업 닫기
|
||||
this.$refs.memberBulkRegPop.excelPopClose();
|
||||
// reroad
|
||||
this.memberDetail(this.$route.params.serviceId);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="input_box">
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model="grid.params.searchText1"
|
||||
<input class="search-box" type="text" id="search" placeholder="검색어 입력" v-model.trim="grid.params.searchText1"
|
||||
maxlength="100" @keyup.enter="search"/>
|
||||
</div>
|
||||
<button type="button" class="button grey" @click="search">조회</button>
|
||||
|
||||
@@ -123,11 +123,17 @@ export default {
|
||||
if(rsp.retCode == '0000'){
|
||||
var path = rsp.data.nextUrl;
|
||||
console.log(path);
|
||||
console.log(rsp.data);
|
||||
vm.chgChkUserId();
|
||||
vm.$store.commit("login/isLogin", true);
|
||||
vm.$store.commit("login/savePwd", oprtrPw);
|
||||
vm.$router.push({ name: 'loginAuth',params: {userId : oprtrId}});
|
||||
} else if(rsp.retCode == '4003') { // ID 조회 없음.
|
||||
} else if(rsp.retCode == '1001'){ // 비밀번호 변경
|
||||
console.log('=-==-=-=-');
|
||||
console.log(this.userId);
|
||||
vm.chgChkUserId();
|
||||
this.$router.push({ name: 'updatePassword',params: {userId : this.userId}});
|
||||
}else if(rsp.retCode == '4003') { // ID 조회 없음.
|
||||
this.row.title = '로그인 실패';
|
||||
this.row.msg1 = '등록되지 않은 아이디입니다.';
|
||||
this.row.msg2 = '아이디를 다시 확인하세요';
|
||||
|
||||
@@ -128,7 +128,7 @@ export default {
|
||||
this.row.title = '비밀번호 변경';
|
||||
this.row.msg1 = '비밀번호가 정상적으로 변경되었습니다.';
|
||||
this.row.msg2 = '변경된 비밀번호로 다시 로그인 해주세요.';
|
||||
this.callFnc = 'login'
|
||||
this.row.callFnc = 'login'
|
||||
this.$refs.commonModal.alertModalOpen(this.row);
|
||||
} else if(rsp.retCode == '4016') {
|
||||
this.row.title = '비밀번호 변경';
|
||||
@@ -176,7 +176,8 @@ export default {
|
||||
this.$refs.oldPw.focus(target);
|
||||
},
|
||||
alertCalbackFnc(callFnc){
|
||||
if(callFnc === 'login'){
|
||||
console.log(callFnc);
|
||||
if(callFnc === 'login'){
|
||||
this.$router.push({ name: 'login',params: {}});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<tr>
|
||||
<th>차단문구</th>
|
||||
<td class="input_add">
|
||||
<input v-model="word" ref="_word">
|
||||
<input v-model="word" ref="_word" maxlength="10" @input="msgLimitByte()">
|
||||
<button type="button" class="button white add" @click="doAdd"></button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -292,7 +292,40 @@ export default {
|
||||
this.$refs.ValidationConfirmPopup.msgConfirmDeleteOpen();
|
||||
}
|
||||
},
|
||||
// 바이트길이 구하기
|
||||
getByteLength: function (decimal) {
|
||||
return (decimal >> 7) || (this.LINE_FEED === decimal) ? 2 : 1
|
||||
},
|
||||
|
||||
getByte: function (str) {
|
||||
return str
|
||||
.split('')
|
||||
.map((s) => s.charCodeAt(0))
|
||||
.reduce((prev, unicodeDecimalValue) => prev + this.getByteLength(unicodeDecimalValue), 0)
|
||||
},
|
||||
getLimitedByteText: function (inputText, maxByte) {
|
||||
const characters = inputText.split('')
|
||||
let validText = ''
|
||||
let totalByte = 0
|
||||
|
||||
for (let i = 0; i < characters.length; i += 1) {
|
||||
const character = characters[i]
|
||||
const decimal = character.charCodeAt(0)
|
||||
const byte = this.getByteLength(decimal) // 글자 한 개가 몇 바이트 길이인지 구해주기
|
||||
// console.log(byte)
|
||||
// 현재까지의 바이트 길이와 더해 최대 바이트 길이를 넘지 않으면
|
||||
if (totalByte + byte <= maxByte) {
|
||||
totalByte += byte // 바이트 길이 값을 더해 현재까지의 총 바이트 길이 값을 구함
|
||||
validText += character // 글자를 더해 현재까지의 총 문자열 값을 구함
|
||||
} else { // 최대 바이트 길이를 넘으면
|
||||
break // for 루프 종료
|
||||
}
|
||||
}
|
||||
return validText
|
||||
},
|
||||
msgLimitByte(){
|
||||
this.word = this.getLimitedByteText(this.word, 10);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 관리자ID 조회 -->
|
||||
<div class="popup popup_form modal44">
|
||||
<div class="popup popup_form modal44 popup_inside">
|
||||
<div class="pop-head">
|
||||
<h3 class="pop-tit">관리자ID 조회</h3>
|
||||
</div>
|
||||
|
||||
@@ -125,7 +125,6 @@
|
||||
</div>
|
||||
|
||||
<admin-list-pop ref="admnListPop" :send-data="childData" @event-data="setChildData"/>
|
||||
<!-- <common-modal ref="commmonModal2"></common-modal>-->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -133,7 +132,6 @@
|
||||
<script>
|
||||
import AdminListPop from "@/modules/sendNumMgt/components/AdminListPop";
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
// import commonModal from "@/components/modal/commonModal";
|
||||
import sendNumMgtApi from "@/modules/sendNumMgt/service/sendNumMgtApi";
|
||||
|
||||
export default {
|
||||
@@ -235,23 +233,47 @@ export default {
|
||||
formReset() {
|
||||
Object.assign(this.$data, this.$options.data());
|
||||
},
|
||||
fileExtCheck(file){
|
||||
// 마지막 . 위치를 찾고 + 1 하여 확장자 명을 가져온다.
|
||||
let fileExt = file.name.substring(
|
||||
file.name.lastIndexOf(".") + 1
|
||||
)
|
||||
// 소문자로 변환
|
||||
fileExt = fileExt.toLowerCase()
|
||||
// 이미지 확장자 체크, jpg, png, pdf, tiff
|
||||
if (["jpeg", "png", "pdf", "tiff"].includes(fileExt)) {
|
||||
return true;
|
||||
} else {
|
||||
this.row.title = '발신번호 파일 업로드';
|
||||
this.row.msg1 = '첨부파일을 확인해 주세요.';
|
||||
this.row.msg2 = '파일형식 : jpg, png, pdf, tiff (최대5MB)';
|
||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 위임-수임
|
||||
readTrustFile(event) {
|
||||
const file = event.target.files[0];
|
||||
console.log(file.name);
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delTrustFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('trustNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.trustFile = file;
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delTrustFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delTrustFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('trustNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.trustFile = file;
|
||||
}
|
||||
},
|
||||
delTrustFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -265,19 +287,24 @@ export default {
|
||||
// 위임장
|
||||
readWarrantFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delWarrantFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delWarrantFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('warrantNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.warrantFile = file;
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delWarrantFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('warrantNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.warrantFile = file;
|
||||
}
|
||||
},
|
||||
delWarrantFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -291,21 +318,25 @@ export default {
|
||||
// 대리인
|
||||
readDeputyFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delDeputyFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delDeputyFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('deputyNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
|
||||
this.deputyFile = file
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delDeputyFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('deputyNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
|
||||
this.deputyFile = file
|
||||
}
|
||||
},
|
||||
delDeputyFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -319,19 +350,24 @@ export default {
|
||||
// 재직
|
||||
readTenureFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delTenureFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delTenureFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('tenureNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.tenureFile = file;
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delTenureFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('tenureNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.tenureFile = file;
|
||||
}
|
||||
},
|
||||
delTenureFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -345,19 +381,24 @@ export default {
|
||||
//사업자 등록증.
|
||||
readBusinessFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delBusinessFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delBusinessFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('businessNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.businessFile = file;
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delBusinessFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('businessNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.businessFile = file;
|
||||
}
|
||||
},
|
||||
delBusinessFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -371,19 +412,24 @@ export default {
|
||||
//통신서비스 증명원
|
||||
readCommunicationFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delCommunicationFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delCommunicationFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('communicationNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.communicationFile = file;
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delCommunicationFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('communicationNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.communicationFile = file;
|
||||
}
|
||||
},
|
||||
delCommunicationFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -397,19 +443,24 @@ export default {
|
||||
// 타사업자 등록증
|
||||
readOtherBusinessFile(event) {
|
||||
const file = event.target.files[0];
|
||||
if(this.fileExtCheck(file)) {
|
||||
if (file != null) {
|
||||
this.delOtherBusinessFile(event);
|
||||
}
|
||||
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delOtherBusinessFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('otherBusinessNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.otherBusinessFile = file;
|
||||
// inner Html.
|
||||
const button = document.createElement('button');
|
||||
const text = document.createElement('p');
|
||||
text.innerText = file.name;
|
||||
button.addEventListener('click', () => {
|
||||
this.delOtherBusinessFile(event);
|
||||
})
|
||||
button.innerText = 'X'
|
||||
const root = document.getElementById('otherBusinessNm');
|
||||
root.appendChild(text);
|
||||
root.appendChild(button);
|
||||
this.otherBusinessFile = file;
|
||||
}
|
||||
},
|
||||
delOtherBusinessFile(event) {
|
||||
const file = event.target.files[0];
|
||||
@@ -435,32 +486,89 @@ export default {
|
||||
})
|
||||
)
|
||||
}
|
||||
if(this.doValidate()){
|
||||
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 response = await sendNumMgtApi.insertNumber1(this.tenureFile, this.businessFile, this.communicationFile, this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq, this.bRegNo)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
if(result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
}
|
||||
this.toComplete()
|
||||
}else if(result != null && result.retCode == "4021") {
|
||||
if(result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} 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 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, this.bRegNo)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
if(result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
}
|
||||
this.toComplete()
|
||||
}else if(result != null && result.retCode == "4021") {
|
||||
if(result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
const response = await sendNumMgtApi.insertNumber(this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq)
|
||||
const response = await sendNumMgtApi.insertNumber(this.adminId, this.custNm, this.bRegNo, this.nmineeDivCd, this.saveSendNums, this.bizrAuthYn, this.custSeq, this.bRegNo)
|
||||
const result = response.data;
|
||||
console.log(result)
|
||||
if (result != null && result.retCode == "0000") {
|
||||
if(result.data.list.length > 0){
|
||||
this.row.title = '발신번호 등록';
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
}
|
||||
this.toComplete()
|
||||
}else if(result != null && result.retCode == "4021") {
|
||||
var failMsg = "";
|
||||
for(var i=0; i<result.data.list.length; i++){
|
||||
failMsg += "[" + (i+1) + "] " + result.data.list[i].sendNum + "<br>"
|
||||
}
|
||||
this.row.failMsg = failMsg
|
||||
this.$parent.$refs.commmonModal.sendNumFailMsgOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -479,67 +587,70 @@ export default {
|
||||
this.$parent.$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
|
||||
if (this.bizrAuthYn !== 'Y') {
|
||||
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;
|
||||
|
||||
@@ -27,7 +27,8 @@ const insertNumber = (adminId, custNm, bRegNo, nmineeDivCd, numberInputs, bizrAu
|
||||
const row = {}
|
||||
row.adminId = adminId
|
||||
row.custNm = custNm
|
||||
row.bRegNo = bRegNo
|
||||
row.bregno = bRegNo
|
||||
row.nmineeDivCd = nmineeDivCd
|
||||
row.list = numberInputs
|
||||
row.bizrAuthYn = bizrAuthYn
|
||||
row.custSeq = custSeq
|
||||
@@ -54,7 +55,7 @@ const insertNumber1 = (tenureFile, businessFile, communicationFile, adminId, cus
|
||||
const row = {}
|
||||
row.adminId = adminId
|
||||
row.custNm = custNm
|
||||
row.bRegNo = bRegNo
|
||||
row.bregno = bRegNo
|
||||
row.nmineeDivCd = nmineeDivCd
|
||||
row.list = numberInputs
|
||||
row.bizrAuthYn = bizrAuthYn
|
||||
@@ -85,7 +86,7 @@ const insertNumber2 = (trustFile, warrantFile, deputyFile, tenureFile, otherBusi
|
||||
const row = {}
|
||||
row.adminId = adminId
|
||||
row.custNm = custNm
|
||||
row.bRegNo = bRegNo
|
||||
row.bregno = bRegNo
|
||||
row.nmineeDivCd = nmineeDivCd
|
||||
row.list = numberInputs
|
||||
row.bizrAuthYn = bizrAuthYn
|
||||
|
||||
@@ -3,371 +3,376 @@ import moment from "moment";
|
||||
import '@/modules/mgt/components/eventlisteners.js';
|
||||
|
||||
const filter_mixin = {
|
||||
filters: {
|
||||
_yyyy_mm_dd(val){
|
||||
if(lodash.isNil(val) || lodash.trim(val) == '') return '';
|
||||
const orgin = val;
|
||||
if(orgin.length < 8) {
|
||||
return orgin;
|
||||
}
|
||||
if(!Number(orgin)) return orgin;
|
||||
const date = orgin.substring(0,8);
|
||||
if(moment(date).isValid()){
|
||||
return moment(date).format('YYYY[-]MM[-]DD');
|
||||
}
|
||||
return orgin;
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
_yyyy_mm_dd(val) {
|
||||
if (lodash.isNil(val) || lodash.trim(val) == '') return '';
|
||||
const orgin = val;
|
||||
if (orgin.length < 8) {
|
||||
return orgin;
|
||||
}
|
||||
if (!Number(orgin)) return orgin;
|
||||
const date = orgin.substring(0, 8);
|
||||
if (moment(date).isValid()) {
|
||||
return moment(date).format('YYYY[-]MM[-]DD');
|
||||
}
|
||||
return orgin;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const utils_mixin = {
|
||||
methods:{
|
||||
/** * 이메일 형식 체크 * * @param 데이터 */
|
||||
emailCheck(email,rtnArrYn) {
|
||||
if(this.isNull(rtnArrYn)){
|
||||
rtnArrYn='N';
|
||||
}
|
||||
// var regExp = /(^[A-Za-z0-9_\.\-]+)@([A-Za-z0-9\-]+\.[A-Za-z0-9\-]+)/;
|
||||
var regExp = /^([0-9a-zA-Z_\.\-]([-_.]?[0-9a-zA-Z_\.\-])*)@([0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$)/i;//이메일 정규식
|
||||
methods: {
|
||||
/** * 이메일 형식 체크 * * @param 데이터 */
|
||||
emailCheck(email, rtnArrYn) {
|
||||
if (this.isNull(rtnArrYn)) {
|
||||
rtnArrYn = 'N';
|
||||
}
|
||||
// var regExp = /(^[A-Za-z0-9_\.\-]+)@([A-Za-z0-9\-]+\.[A-Za-z0-9\-]+)/;
|
||||
var 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(email) == false) {
|
||||
// 이메일 형식이 알파벳+숫자@알파벳+숫자.알파벳+숫자 형식이 아닐경우
|
||||
if(rtnArrYn == 'Y'){
|
||||
return email;
|
||||
}
|
||||
return false;
|
||||
}else{
|
||||
var myArray = regExp.exec(email);
|
||||
if(rtnArrYn == 'Y'){
|
||||
return myArray;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
},
|
||||
/** * 전화번호 포맷으로 변환 * * @param 데이터 */
|
||||
formatPhone(phoneNum,fmt,rtnArrYn) {
|
||||
if(this.isNull(fmt)){
|
||||
fmt='';
|
||||
}
|
||||
if(this.isNull(rtnArrYn)){
|
||||
fmt='N';
|
||||
}
|
||||
if(this.isPhone(phoneNum)) {
|
||||
var rtnNum;
|
||||
var regExp =/(02)([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if(regExp.test(phoneNum)){
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1]+fmt + myArray[2]+fmt+myArray[3];
|
||||
if(rtnArrYn == 'Y'){
|
||||
return myArray;
|
||||
}
|
||||
return rtnNum;
|
||||
} else {
|
||||
regExp =/(0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/;
|
||||
if(regExp.test(phoneNum)){
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1]+fmt+myArray[2]+fmt+myArray[3];
|
||||
if(rtnArrYn == 'Y'){
|
||||
return myArray;
|
||||
}
|
||||
return rtnNum;
|
||||
if (regExp.test(email) == false) {
|
||||
// 이메일 형식이 알파벳+숫자@알파벳+숫자.알파벳+숫자 형식이 아닐경우
|
||||
if (rtnArrYn == 'Y') {
|
||||
return email;
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
return phoneNum;
|
||||
var myArray = regExp.exec(email);
|
||||
if (rtnArrYn == 'Y') {
|
||||
return myArray;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
},
|
||||
/** * 핸드폰번호 포맷으로 변환 * * @param 데이터 */
|
||||
formatMobile(phoneNum,fmt,rtnArrYn) {
|
||||
|
||||
if(this.isNull(fmt)){
|
||||
fmt='';
|
||||
}
|
||||
if(this.isNull(rtnArrYn)){
|
||||
fmt='N';
|
||||
}
|
||||
if(this.isMobile(phoneNum)) {
|
||||
|
||||
var rtnNum;
|
||||
var regExp =/(01[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
|
||||
if(regExp.test(phoneNum)){
|
||||
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1]+fmt+myArray[2]+fmt+myArray[3];
|
||||
if(rtnArrYn == 'Y'){
|
||||
return myArray;
|
||||
},
|
||||
/** * 전화번호 포맷으로 변환 * * @param 데이터 */
|
||||
formatPhone(phoneNum, fmt, rtnArrYn) {
|
||||
if (this.isNull(fmt)) {
|
||||
fmt = '';
|
||||
}
|
||||
return rtnNum;
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
},
|
||||
|
||||
/** * 전화번호 형식 체크 * * @param 데이터 */
|
||||
isPhone(phoneNum) {
|
||||
var regExp =/(02)([0-9]{3,4})([0-9]{4})$/;
|
||||
if(regExp.test(phoneNum)){
|
||||
return true;
|
||||
} else {
|
||||
regExp =/(0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/;
|
||||
if(regExp.test(phoneNum)){
|
||||
return true;
|
||||
if (this.isNull(rtnArrYn)) {
|
||||
fmt = 'N';
|
||||
}
|
||||
if (this.isPhone(phoneNum)) {
|
||||
var rtnNum;
|
||||
var regExp = /(02)([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if (regExp.test(phoneNum)) {
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1] + fmt + myArray[2] + fmt + myArray[3];
|
||||
if (rtnArrYn == 'Y') {
|
||||
return myArray;
|
||||
}
|
||||
return rtnNum;
|
||||
} else {
|
||||
regExp = /(0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/;
|
||||
if (regExp.test(phoneNum)) {
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1] + fmt + myArray[2] + fmt + myArray[3];
|
||||
if (rtnArrYn == 'Y') {
|
||||
return myArray;
|
||||
}
|
||||
return rtnNum;
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
return phoneNum;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
/** * 핸드폰번호 포맷으로 변환 * * @param 데이터 */
|
||||
formatMobile(phoneNum, fmt, rtnArrYn) {
|
||||
|
||||
/** * 핸드폰번호 형식 체크 * * @param 데이터 */
|
||||
isMobile(phoneNum) {
|
||||
var regExp =/(01[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if(regExp.test(phoneNum)){
|
||||
myArray = regExp.exec(phoneNum);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
isMobile2(phoneNum) {
|
||||
var regExp =/(1[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if(regExp.test(phoneNum)){
|
||||
myArray = regExp.exec(phoneNum);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
isNull(obj){
|
||||
if(lodash.isNil(obj) || lodash.trim(obj) == ''){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getParent(name){
|
||||
let p = this.$parent;
|
||||
while(typeof p !== 'undefined'){
|
||||
if(p.$options.name == name) {
|
||||
return p;
|
||||
}else {
|
||||
p = p.$parent;
|
||||
if (this.isNull(fmt)) {
|
||||
fmt = '';
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getJsonObj(str){
|
||||
return JSON.parse(JSON.stringify(str));
|
||||
},
|
||||
if (this.isNull(rtnArrYn)) {
|
||||
fmt = 'N';
|
||||
}
|
||||
if (this.isMobile(phoneNum)) {
|
||||
|
||||
var rtnNum;
|
||||
var regExp = /(01[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
|
||||
if (regExp.test(phoneNum)) {
|
||||
|
||||
myArray = regExp.exec(phoneNum);
|
||||
rtnNum = myArray[1] + fmt + myArray[2] + fmt + myArray[3];
|
||||
if (rtnArrYn == 'Y') {
|
||||
return myArray;
|
||||
}
|
||||
return rtnNum;
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
} else {
|
||||
return phoneNum;
|
||||
}
|
||||
},
|
||||
|
||||
/** * 전화번호 형식 체크 * * @param 데이터 */
|
||||
isPhone(phoneNum) {
|
||||
var regExp = /(02)([0-9]{3,4})([0-9]{4})$/;
|
||||
if (regExp.test(phoneNum)) {
|
||||
return true;
|
||||
} else {
|
||||
regExp = /(0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/;
|
||||
if (regExp.test(phoneNum)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/** * 핸드폰번호 형식 체크 * * @param 데이터 */
|
||||
isMobile(phoneNum) {
|
||||
var regExp = /(01[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if (regExp.test(phoneNum)) {
|
||||
myArray = regExp.exec(phoneNum);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
isMobile2(phoneNum) {
|
||||
var regExp = /(1[016789])([0-9]{3,4})([0-9]{4})$/;
|
||||
var myArray;
|
||||
if (regExp.test(phoneNum)) {
|
||||
myArray = regExp.exec(phoneNum);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
isNull(obj) {
|
||||
if (lodash.isNil(obj) || lodash.trim(obj) == '') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getParent(name) {
|
||||
let p = this.$parent;
|
||||
while (typeof p !== 'undefined') {
|
||||
if (p.$options.name == name) {
|
||||
return p;
|
||||
} else {
|
||||
p = p.$parent;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getJsonObj(str) {
|
||||
return JSON.parse(JSON.stringify(str));
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
var chkPattern2 = {
|
||||
data: function () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
selSesStorage(keyLike){
|
||||
if(this.isNull(keyLike)){
|
||||
return null;
|
||||
}
|
||||
if(sessionStorage.length > 0){
|
||||
let keyList = [];
|
||||
for(let i=0;i<sessionStorage.length;i++){
|
||||
const keyNm = sessionStorage.key(i);
|
||||
if(keyNm.indexOf(keyLike) > -1){
|
||||
keyList.push({name : keyNm, value : sessionStorage.getItem(keyNm)});
|
||||
}
|
||||
}
|
||||
if(keyList.length > 0){
|
||||
return keyList;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
methods: {
|
||||
selSesStorage(keyLike) {
|
||||
if (this.isNull(keyLike)) {
|
||||
return null;
|
||||
}
|
||||
if (sessionStorage.length > 0) {
|
||||
let keyList = [];
|
||||
for (let i = 0; i < sessionStorage.length; i++) {
|
||||
const keyNm = sessionStorage.key(i);
|
||||
if (keyNm.indexOf(keyLike) > -1) {
|
||||
keyList.push({name: keyNm, value: sessionStorage.getItem(keyNm)});
|
||||
}
|
||||
}
|
||||
if (keyList.length > 0) {
|
||||
return keyList;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
delSesStorage(keyList){
|
||||
if(this.isNull(keyList)){
|
||||
return null;
|
||||
}
|
||||
if(keyList.length > 0){
|
||||
keyList.map((o) => (sessionStorage.removeItem(o.name)));
|
||||
return true;
|
||||
}
|
||||
},
|
||||
delSesStorage(keyList) {
|
||||
if (this.isNull(keyList)) {
|
||||
return null;
|
||||
}
|
||||
if (keyList.length > 0) {
|
||||
keyList.map((o) => (sessionStorage.removeItem(o.name)));
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
||||
setGridMouseDownActive(){
|
||||
const ele = document.querySelector(`div.tui-grid-container.tui-grid-show-lside-area`);
|
||||
if(window.getEventListeners(ele).mousedown){
|
||||
ele.removeEventListener('mousedown',window.getEventListeners(ele).mousedown[0].listener);
|
||||
}
|
||||
},
|
||||
restrictChars : function($event,regExp,hanYn){
|
||||
setGridMouseDownActive() {
|
||||
const ele = document.querySelector(`div.tui-grid-container.tui-grid-show-lside-area`);
|
||||
if (window.getEventListeners(ele).mousedown) {
|
||||
ele.removeEventListener('mousedown', window.getEventListeners(ele).mousedown[0].listener);
|
||||
}
|
||||
},
|
||||
restrictChars: function ($event, regExp, hanYn) {
|
||||
|
||||
if(this.isNull(hanYn)){
|
||||
hanYn='N';
|
||||
}
|
||||
if(hanYn === 'N' && $event.type === 'keydown'){
|
||||
if($event.keyCode === 229){
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.isNull(hanYn)) {
|
||||
hanYn = 'N';
|
||||
}
|
||||
if (hanYn === 'N' && $event.type === 'keydown') {
|
||||
if ($event.keyCode === 229) {
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if($event.type === 'keypress'){
|
||||
//한글 처리 불가
|
||||
if(regExp.test(String.fromCharCode($event.charCode))) {
|
||||
return true;
|
||||
}else{
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ($event.type === 'keypress') {
|
||||
//한글 처리 불가
|
||||
if (regExp.test(String.fromCharCode($event.charCode))) {
|
||||
return true;
|
||||
} else {
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(hanYn === 'N' && ( $event.type === 'keyup' || $event.type === 'input' || $event.type === 'change' || $event.type === 'blur')){
|
||||
$event.target.value = $event.target.value.replace(/[ㄱ-ㅎㅏ-ㅣ가-힣]/g,'');
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
setLenth: function (e, len) {
|
||||
this.cut(e, len);
|
||||
},
|
||||
onlyCustom: function (e,strRegExp,hanYn) {
|
||||
var regExp_g = new RegExp(strRegExp,'g');
|
||||
this.cut(e);
|
||||
return this.restrictChars(e,regExp_g,hanYn);
|
||||
},
|
||||
onlyCommon: function(strRegExp, e, len, isEventCall, hanYn) {
|
||||
var regExp_g = new RegExp(strRegExp,'g');
|
||||
if(isEventCall === 'N'){
|
||||
if(!this.cut(e, len, isEventCall)){
|
||||
return false;
|
||||
}
|
||||
if(!regExp_g.test(e.value)){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.cut(e, len);
|
||||
return this.restrictChars(e,regExp_g,hanYn);
|
||||
},
|
||||
onlyNum: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyLowerEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyUpperEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyEmail: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-zA-Z0-9_\.\-@._-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyName: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall,'Y');
|
||||
},
|
||||
onlyTitle: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall,'Y');
|
||||
},
|
||||
onlyText: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9_-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall,'Y');
|
||||
},
|
||||
onlyPassword: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z0-9!@#$%^&*]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyId: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z0-9_\.\-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyIp: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[0-9,.*]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyRoleNm_Space: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall,'Y');
|
||||
},
|
||||
onlyRoleId_UnderBar: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-zA-Z0-9_]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
cut: function (ele, len, isValidChk) {
|
||||
let e=ele;
|
||||
if (typeof ele.target != "undefined") {
|
||||
e=ele.target;
|
||||
}
|
||||
let max = this.isNull(len) ? e.attributes.maxlength.value : len;
|
||||
let str = e.value;
|
||||
if (hanYn === 'N' && ($event.type === 'keyup' || $event.type === 'input' || $event.type === 'change' || $event.type === 'blur')) {
|
||||
$event.target.value = $event.target.value.replace(/[ㄱ-ㅎㅏ-ㅣ가-힣]/g, '');
|
||||
$event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
setLenth: function (e, len) {
|
||||
this.cut(e, len);
|
||||
},
|
||||
onlyCustom: function (e, strRegExp, hanYn) {
|
||||
var regExp_g = new RegExp(strRegExp, 'g');
|
||||
this.cut(e);
|
||||
return this.restrictChars(e, regExp_g, hanYn);
|
||||
},
|
||||
onlyCommon: function (strRegExp, e, len, isEventCall, hanYn) {
|
||||
var regExp_g = new RegExp(strRegExp, 'g');
|
||||
if (isEventCall === 'N') {
|
||||
if (!this.cut(e, len, isEventCall)) {
|
||||
return false;
|
||||
}
|
||||
if (!regExp_g.test(e.value)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.cut(e, len);
|
||||
return this.restrictChars(e, regExp_g, hanYn);
|
||||
},
|
||||
onlyNum: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyLowerEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyUpperEng: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyEmail: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-zA-Z0-9_\.\-@._-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyName: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall, 'Y');
|
||||
},
|
||||
onlyTitle: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall, 'Y');
|
||||
},
|
||||
onlyText: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9_-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall, 'Y');
|
||||
},
|
||||
onlyPassword: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z0-9!@#$%^&*]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyId: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[A-Za-z0-9_\.\-]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyIp: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[0-9,.*]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
onlyRoleNm_Space: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[ㄱ-ㅎㅏ-ㅣ가-힣a-zA-Z0-9]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall, 'Y');
|
||||
},
|
||||
onlyRoleId_UnderBar: function (e, len, isEventCall) {
|
||||
var strRegExp = '^[a-zA-Z0-9_]*$';
|
||||
return this.onlyCommon(strRegExp, e, len, isEventCall);
|
||||
},
|
||||
cut: function (ele, len, isValidChk) {
|
||||
let e = ele;
|
||||
if (typeof ele.target != "undefined") {
|
||||
e = ele.target;
|
||||
}
|
||||
let max = this.isNull(len) ? e.attributes.maxlength.value : len;
|
||||
let str = e.value;
|
||||
|
||||
if (this.bytes(str) > max) {
|
||||
if(this.isNull(isValidChk)){
|
||||
e.value = this.cutBytes(str, max);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
cutBytes: function (str, len) {
|
||||
while(1 === 1){
|
||||
if(this.bytes(str) <= len){
|
||||
return str;
|
||||
}
|
||||
str = str.slice(0,-1);
|
||||
}
|
||||
},
|
||||
bytes: function (str) {
|
||||
var length = ((s,b,i,c) => {
|
||||
// for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?3:c>>7?2:1); // 한글 3바이트
|
||||
// for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?2:c>>7?1:1); //한글 2바이트
|
||||
b=0,i=0;
|
||||
while(1 === 1){
|
||||
c = s.charCodeAt(i++);
|
||||
if (isNaN(c)) {
|
||||
break;
|
||||
}
|
||||
b += c >> 11 ? 2 : c >> 7 ? 1 : 1;
|
||||
}
|
||||
return b
|
||||
})(str);
|
||||
return length;
|
||||
},
|
||||
checkPhone: function(str) {
|
||||
str = str.replace(/[-\s]+/g, '');
|
||||
if (str.charAt(0)!="0"){
|
||||
str = "0"+str;
|
||||
}
|
||||
if (str.length<10||str.length>12){return "";}
|
||||
if (isNaN(str)){return ""; }
|
||||
if (str.substr(0,2)!="01" && str.substr(0,3)!="070" && str.substr(0,4)!="0505" && str.substr(0,4)!="0503"){return ""; }
|
||||
return str;
|
||||
if (this.bytes(str) > max) {
|
||||
if (this.isNull(isValidChk)) {
|
||||
e.value = this.cutBytes(str, max);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
cutBytes: function (str, len) {
|
||||
while (1 === 1) {
|
||||
if (this.bytes(str) <= len) {
|
||||
return str;
|
||||
}
|
||||
str = str.slice(0, -1);
|
||||
}
|
||||
},
|
||||
bytes: function (str) {
|
||||
var length = ((s, b, i, c) => {
|
||||
// for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?3:c>>7?2:1); // 한글 3바이트
|
||||
// for(b=i=0;c=s.charCodeAt(i++);b+=c>>11?2:c>>7?1:1); //한글 2바이트
|
||||
b = 0, i = 0;
|
||||
while (1 === 1) {
|
||||
c = s.charCodeAt(i++);
|
||||
if (isNaN(c)) {
|
||||
break;
|
||||
}
|
||||
b += c >> 11 ? 2 : c >> 7 ? 1 : 1;
|
||||
}
|
||||
return b
|
||||
})(str);
|
||||
return length;
|
||||
},
|
||||
checkPhone: function (str) {
|
||||
str = str.replace(/[-\s]+/g, '');
|
||||
if (str.charAt(0) != "0") {
|
||||
str = "0" + str;
|
||||
}
|
||||
if (str.length < 10 || str.length > 12) {
|
||||
return "";
|
||||
}
|
||||
if (isNaN(str)) {
|
||||
return "";
|
||||
}
|
||||
if (str.substr(0, 2) != "01" && str.substr(0, 3) != "070" && str.substr(0, 4) != "0505" && str.substr(0, 4) != "0503") {
|
||||
return "";
|
||||
}
|
||||
return str;
|
||||
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
export { utils_mixin, chkPattern2, filter_mixin };
|
||||
export {utils_mixin, chkPattern2, filter_mixin};
|
||||
@@ -311,7 +311,12 @@ export default {
|
||||
this.$refs.searchIdPopModal.searchIdFailPop();
|
||||
},
|
||||
resetRegPop() {
|
||||
this.formReset();
|
||||
// this.formReset();
|
||||
this.madangId = '';
|
||||
this.userNm = '';
|
||||
this.email = '';
|
||||
this.mdn = '';
|
||||
this.code = '';
|
||||
this.$refs.madangId.focus();
|
||||
},
|
||||
|
||||
@@ -321,7 +326,7 @@ export default {
|
||||
this.formReset();
|
||||
this.insertType = insertType;
|
||||
console.log(insertType)
|
||||
if(insertType === 2){
|
||||
if (insertType === 2) {
|
||||
this.auth = '1002';
|
||||
}
|
||||
var dimmed = document.getElementsByClassName('modal20');
|
||||
@@ -353,7 +358,7 @@ export default {
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
this.toComplete();
|
||||
}else if (result != null && result.retCode == "4018") {
|
||||
} else if (result != null && result.retCode == "4018") {
|
||||
this.row.title = '관리자/유치채널 관리';
|
||||
this.row.msg1 = '이미 사용중인 아이디입니다.';
|
||||
this.$refs.commmonSysModal.alertSysModalOpen(this.row);
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
<tbody>
|
||||
<tr class="tr_input w30">
|
||||
<th>권한명</th>
|
||||
<td colspan="5"><input type="text" v-model.trim="authNm" ref="_authNm"></td>
|
||||
<td colspan="5"><input type="text" v-model.trim="authNm" ref="_authNm" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>권한 코드</th>
|
||||
<td colspan="2"><input type="text" v-model.trim="authCd" ref="_authCd"></td>
|
||||
<td colspan="2"><input type="text" v-model.trim="authCd" ref="_authCd" maxlength="4"></td>
|
||||
<th class="center">상태</th>
|
||||
<td class="td_radio" colspan="2">
|
||||
<input type="radio" name="state" value="01" id="right_radio1" v-model="stat" checked>
|
||||
@@ -28,7 +28,7 @@
|
||||
</tr>
|
||||
<tr class="tr_input w100">
|
||||
<th>권한 설명</th>
|
||||
<td colspan="5"><input type="text" v-model="authDesc"></td>
|
||||
<td colspan="5"><input type="text" v-model.trim="authDesc" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr class="tr_checkbox">
|
||||
<td class="check" rowspan="2">
|
||||
@@ -184,7 +184,6 @@
|
||||
|
||||
import sysMgtApi from "../service/sysMgtApi.js";
|
||||
import {utils_mixin, chkPattern2} from '../service/mixins';
|
||||
//import commonModal from "@/components/modal/commonModal";
|
||||
import commonModal from "../components/commonModal";
|
||||
|
||||
export default {
|
||||
@@ -223,7 +222,8 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한명을 입력해 주세요.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
console.log(this.row)
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한 코드를 입력해 주세요.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -246,14 +246,14 @@ export default {
|
||||
if (this.isNull(this.stat)) {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '상태를 체크해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.checkedAuthMenu.length == 0) {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '메뉴 권한 체크를 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한코드가 이미 존재합니다.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
|
||||
} else {
|
||||
@@ -320,7 +320,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<tbody>
|
||||
<tr class="tr_input w30">
|
||||
<th>권한명</th>
|
||||
<td colspan="5"><input type="text" v-model.trim="authNm" ref="_authNm"></td>
|
||||
<td colspan="5"><input type="text" v-model.trim="authNm" ref="_authNm" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr class="tr_input w75">
|
||||
<th>권한 코드</th>
|
||||
@@ -28,7 +28,7 @@
|
||||
</tr>
|
||||
<tr class="tr_input w100">
|
||||
<th>권한 설명</th>
|
||||
<td colspan="5"><input type="text" v-model="authDesc"></td>
|
||||
<td colspan="5"><input type="text" v-model="authDesc" maxlength="100"></td>
|
||||
</tr>
|
||||
<tr class="tr_checkbox">
|
||||
<td class="check" rowspan="2">
|
||||
@@ -229,7 +229,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한명을 입력해 주세요.';
|
||||
this.row.focusTaget = '1';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한 코드를 입력해 주세요.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -245,21 +245,21 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '권한코드는 영문과 숫자포함 최대4자리까지 입력해주세요.';
|
||||
this.row.focusTaget = '2';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.isNull(this.stat)) {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '상태를 체크해 주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.checkedAuthMenu.length == 0) {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '메뉴 권한 체크를 해주세요.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
@@ -313,7 +313,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -362,7 +362,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ export default {
|
||||
this.row.title = '시스템관리';
|
||||
this.row.msg1 = '실패 하였습니다.';
|
||||
this.row.focusTaget = '0';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs.commmonModal.alertSysModalOpen(this.row);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user