mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 05:39:35 +09:00
리스크관리 / 유치채널현황 관리 / 채널관리 추가
This commit is contained in:
@@ -14,14 +14,17 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>발신번호</th>
|
||||
<td><input type="number" v-model.trim="blckSndrno" ref="blckSndrno"></td>
|
||||
<td><input type="number" placeholder="- 자 제외 숫자만 입력" maxlength="11" v-model.trim="blckSndrno" v-on:keyup="onlyNum" @input="onlyNum" ref="_blckSndrno"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>발송타입</th>
|
||||
<td>
|
||||
<div class="select_box">
|
||||
<select name="" id="" v-model.trim="sndblckTpCd" ref="sndblckTpCd">
|
||||
<option v-for="(option, i) in tpType" v-bind:value="option.code" v-bind:key="i">
|
||||
<td v-if="code === null || code === ''">
|
||||
<div v:class="select_box">
|
||||
<select name="" id="right" v-model.trim="sndblckTpCd" ref="sndblckTpCd">
|
||||
<option v-for="(option, i) in tpType"
|
||||
:value="sndblckTpCd"
|
||||
v-bind:key="i"
|
||||
>
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
<!-- <option value="">문자</option>
|
||||
@@ -33,9 +36,9 @@
|
||||
<tr>
|
||||
<th>차단사유</th>
|
||||
<td>
|
||||
<div class="select_box">
|
||||
<div>
|
||||
<select name="" id="" v-model.trim="blckRsnCd" ref="blckRsnCd">
|
||||
<option v-for="(option, i) in rsnType" v-bind:value="option.code" v-bind:key="i">
|
||||
<option v-for="(option, i) in rsnType" :value="blckRsnCd" v-bind:key="i">
|
||||
{{ option.codeNm }}
|
||||
</option>
|
||||
</select>
|
||||
@@ -49,33 +52,24 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<div class="pop-btn2">
|
||||
<div class="popup-btn2">
|
||||
<button class="btn-pcolor" @click="doInsert">등록</button>
|
||||
<button class="btn-default" @click="ModalClose();">취소</button>
|
||||
</div>
|
||||
<common-modal ref="commmonModal"></common-modal>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 신규등록 - 등록 선택 -->
|
||||
<div class="popup modal54">
|
||||
<div class="pop-head">
|
||||
<div class="pop-tit">신규등록</div>
|
||||
</div>
|
||||
<div class="pop-cont">
|
||||
<div>작성된 내용으로 등록 하시겠습니까?</div>
|
||||
</div>
|
||||
<div class="pop-btn2">
|
||||
<button class="btn-pcolor">확인</button>
|
||||
<button class="btn-default" onclick="ModalClose();">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
import api from '@/service/api';
|
||||
import riskMgtApi from '../service/riskMgtApi'
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import commonModal from "@/components/modal/commonModal";
|
||||
import lodash from "lodash";
|
||||
export default {
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
data(){
|
||||
return{
|
||||
row: {},
|
||||
@@ -85,6 +79,7 @@ export default {
|
||||
sndblckTpCd: '',
|
||||
blckRsnCd: '',
|
||||
meno: '',
|
||||
code:"",
|
||||
|
||||
// params: {
|
||||
// 'blckSndrno' : ''
|
||||
@@ -98,6 +93,9 @@ export default {
|
||||
// this.setCodeDate();
|
||||
this.formReset();
|
||||
},
|
||||
components: {
|
||||
commonModal,
|
||||
},
|
||||
methods :{
|
||||
//모달 띄우기
|
||||
ModalOpen(){
|
||||
@@ -131,7 +129,10 @@ export default {
|
||||
const response = await riskMgtApi.insertIntrcp(this.row);
|
||||
const result = response.data;
|
||||
if (result != null && result.retCode == "0000") {
|
||||
alert('저장 하였습니다.');
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
console.log(this.row);
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.toComplete();
|
||||
}
|
||||
} catch(err) {
|
||||
@@ -150,23 +151,23 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
isNull(obj){
|
||||
if(lodash.isNil(obj) || lodash.trim(obj) == ''){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
doValidate(){
|
||||
if(this.isNull(this.blckSndrno)){
|
||||
alert("번호입력.");
|
||||
if(this.isNull(this.blckSndrno)){
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._blckSndrno.focus();
|
||||
return false;
|
||||
}
|
||||
const hp = this.blckSndrno;
|
||||
if(!this.isNull(hp) && !this.isMobile(hp)){
|
||||
alert("발신번호 형식이 잘못되었습니다. 확인 해주세요.");
|
||||
this.row.title = '청약고객관리';
|
||||
this.row.msg1 = '저장 하였습니다.';
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
this.$refs._blckSndrno.focus();
|
||||
return false;
|
||||
}
|
||||
if(this.isNull(this.meno)){
|
||||
alert('메모입력');
|
||||
return false;
|
||||
}
|
||||
this.row.blckSndrno=this.blckSndrno;
|
||||
this.row.sndblckTpCd = this.sndblckTpCd;
|
||||
this.row.blckRsnCd = this.blckRsnCd;
|
||||
|
||||
Reference in New Issue
Block a user