Commit fbfef362 authored by zhengke's avatar zhengke

修改

parent 656b2bb9
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
.stage_label { .stage_label {
color: #606266; color: #606266;
flex-shrink: 0; flex-shrink: 0;
margin-right: 10px; width: 65px;
width: 62px;
text-align: right; text-align: right;
} }
...@@ -87,7 +86,8 @@ ...@@ -87,7 +86,8 @@
客户电话 客户电话
</div> </div>
<div class="stage_value"> <div class="stage_value">
<q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel" dense> <q-input filled v-model="customObj.StuTel" style="width:185px;" @blur="CheckExistsStu(1)" ref="StuTel"
dense>
</q-input> </q-input>
</div> </div>
</div> </div>
...@@ -98,7 +98,8 @@ ...@@ -98,7 +98,8 @@
QQ QQ
</div> </div>
<div class="stage_value"> <div class="stage_value">
<q-input filled v-model="customObj.QQ" style="width:185px;" @blur="CheckExistsStu(2)" @keyup.native="checkInteger(customObj,'QQ')" ref="QQ" dense></q-input> <q-input filled v-model="customObj.QQ" style="width:185px;" @blur="CheckExistsStu(2)"
@keyup.native="checkInteger(customObj,'QQ')" ref="QQ" dense></q-input>
</div> </div>
</div> </div>
</div> </div>
...@@ -108,49 +109,66 @@ ...@@ -108,49 +109,66 @@
微信号 微信号
</div> </div>
<div class="stage_value"> <div class="stage_value">
<q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo" dense></q-input> <q-input filled v-model="customObj.WeChatNo" @blur="CheckExistsStu(3)" style="width:185px;" ref="WeChatNo"
dense></q-input>
</div> </div>
</div> </div>
</div> </div>
<div class="info_item"> <div class="customer_info_component">
<div class="item_label"> <div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>客户来源 <span class="student_require">*</span>客户来源
</div> </div>
<div class="item_value"> <div class="stage_value">
<q-select filled v-model="customObj.CreateType" @input="resetStuSource()" dense :options="customFromList" <q-select filled v-model="customObj.CreateType" @change="clearStuMsg()" style="width:185px;" @input="resetStuSource()" dense
option-label="Name" option-value="Id" emit-value map-options label="客户来源" /> :options="customFromList" option-label="Name" option-value="Id" emit-value map-options label="客户来源" />
</div> </div>
</div> </div>
<div class="info_item" v-if="customObj.CreateType==3"> </div>
<div class="item_label">介绍人</div> <div class="customer_info_component" v-if="customObj.CreateType==3">
<div class="item_value"> <div class="customer_info_Stage">
<q-select filled v-model="customObj.StuSourceId" dense @filter="filterEmployee" use-input <div class="stage_label">
介绍人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" dense @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options /> :options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
</div> </div>
</div> </div>
<div class="info_item" v-if="customObj.CreateType==4"> </div>
<div class="item_label" style="padding-left:20px;">转介人</div> <div class="customer_info_component" v-if="customObj.CreateType==4">
<div class="item_value"> <div class="customer_info_Stage">
<q-select filled v-model="customObj.StuSourceId" dense :options="customList" option-label="CustomerName" <div class="stage_label">
转介人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" dense :options="customList" option-label="CustomerName"
option-value="CustomerId" emit-value map-options /> option-value="CustomerId" emit-value map-options />
</div> </div>
</div> </div>
<div class="info_item" v-if="customObj.CreateType==1">
<div class="item_label">
<span class="student_require">*</span>收客渠道
</div> </div>
<div class="item_value"> <div class="customer_info_component" v-if="customObj.CreateType==1">
<q-select filled v-model="customObj.StuChannel" dense :options="StuChannelList" option-label="Name" <div class="customer_info_Stage">
<div class="stage_label">
收客渠道
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuChannel" style="width:185px;" dense :options="StuChannelList" option-label="Name"
option-value="Id" emit-value map-options /> option-value="Id" emit-value map-options />
</div> </div>
</div> </div>
<div class="info_item" v-if="customObj.CreateType==2"> </div>
<div class="item_label">关联同行</div> <div class="customer_info_component" v-if="customObj.CreateType==2">
<div class="item_value"> <div class="customer_info_Stage">
<q-select filled v-model="customObj.CustomerId" dense :options="customList" option-label="CustomerName" <div class="stage_label">
关联同行
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CustomerId" style="width:185px" dense :options="customList" option-label="CustomerName"
option-value="CustomerId" emit-value map-options /> option-value="CustomerId" emit-value map-options />
</div> </div>
</div> </div>
</div>
<template v-if="customObj.CreateType==1"> <template v-if="customObj.CreateType==1">
<div class="info_item" v-if="customObj.StuChannel==6"> <div class="info_item" v-if="customObj.StuChannel==6">
<div class="item_label">第三方平台名称</div> <div class="item_label">第三方平台名称</div>
...@@ -165,13 +183,17 @@ ...@@ -165,13 +183,17 @@
</div> </div>
</div> </div>
</template> </template>
<div class="info_item"> <div class="customer_info_component">
<div class="item_label">客户类型</div> <div class="customer_info_Stage">
<div class="item_value"> <div class="stage_label">
<q-select filled v-model="customObj.StuType" dense :options="customTypeList" option-label="Name" 客户类型
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuType" style="width:185px" dense :options="customTypeList" option-label="Name"
option-value="Id" emit-value map-options label="客户类型" /> option-value="Id" emit-value map-options label="客户类型" />
</div> </div>
</div> </div>
</div>
<div class="custom_Line"></div> <div class="custom_Line"></div>
<div class="info_title">基本资料</div> <div class="info_title">基本资料</div>
<div class="info_content"> <div class="info_content">
...@@ -305,7 +327,7 @@ ...@@ -305,7 +327,7 @@
CustomerId: 0, //关联同行 CustomerId: 0, //关联同行
QQ: '', //qq QQ: '', //qq
WeChatNo: '', //微信号 WeChatNo: '', //微信号
StuType:'' //客户类型 StuType: '' //客户类型
}, },
//日语基础列表 //日语基础列表
basicList: [], basicList: [],
...@@ -324,8 +346,8 @@ ...@@ -324,8 +346,8 @@
checkMsg: { checkMsg: {
StuId: 0, StuId: 0,
StuTel: '', StuTel: '',
QQ:'', QQ: '',
WeChatNo:'' WeChatNo: ''
} }
} }
}, },
...@@ -373,14 +395,6 @@ ...@@ -373,14 +395,6 @@
}) })
return return
} }
// if (this.customObj.StuChannel == '') {
// this.$q.notify({
// type: 'negative',
// position: "top",
// message: `请选择收客渠道`
// })
// return
// }
if (this.customObj.StuTel != '') { if (this.customObj.StuTel != '') {
var myreg = /^[1][3-9][\d]{9}/; var myreg = /^[1][3-9][\d]{9}/;
if (!myreg.test(this.customObj.StuTel)) { if (!myreg.test(this.customObj.StuTel)) {
...@@ -402,6 +416,7 @@ ...@@ -402,6 +416,7 @@
position: 'top' position: 'top'
}) })
this.$emit('success'); this.$emit('success');
this.$emit('getrecord');
if (this.AddType == 1) { if (this.AddType == 1) {
this.$emit('close'); this.$emit('close');
} }
...@@ -474,7 +489,7 @@ ...@@ -474,7 +489,7 @@
}) })
}, },
//获取客户类型 //获取客户类型
getCustomTypeList(){ getCustomTypeList() {
GetStudentTypeList().then(res => { GetStudentTypeList().then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.customTypeList = res.Data; this.customTypeList = res.Data;
...@@ -525,38 +540,38 @@ ...@@ -525,38 +540,38 @@
}, },
//验证手机号 //验证手机号
CheckExistsStu(type) { CheckExistsStu(type) {
if(type==1){ if (type == 1) {
if (this.customObj.StuTel && this.customObj.StuTel.length == 11) { if (this.customObj.StuTel && this.customObj.StuTel.length == 11) {
this.checkMsg.StuTel = this.customObj.StuTel this.checkMsg.StuTel = this.customObj.StuTel
this.checkMsg.QQ = ''; this.checkMsg.QQ = '';
this.checkMsg.WeChatNo = ''; this.checkMsg.WeChatNo = '';
CheckExistsStu(this.checkMsg).then(r => { CheckExistsStu(this.checkMsg).then(r => {});
});
} }
} }
if(type==2){ if (type == 2) {
if (this.customObj.QQ) { if (this.customObj.QQ) {
this.checkMsg.StuTel = ''; this.checkMsg.StuTel = '';
this.checkMsg.QQ = this.customObj.QQ; this.checkMsg.QQ = this.customObj.QQ;
this.checkMsg.WeChatNo = ''; this.checkMsg.WeChatNo = '';
CheckExistsStu(this.checkMsg).then(r => { CheckExistsStu(this.checkMsg).then(r => {});
});
} }
} }
if(type==3){ if (type == 3) {
if (this.customObj.WeChatNo) { if (this.customObj.WeChatNo) {
this.checkMsg.StuTel = '' this.checkMsg.StuTel = ''
this.checkMsg.QQ = ''; this.checkMsg.QQ = '';
this.checkMsg.WeChatNo = this.customObj.WeChatNo; this.checkMsg.WeChatNo = this.customObj.WeChatNo;
CheckExistsStu(this.checkMsg).then(r => { CheckExistsStu(this.checkMsg).then(r => {});
});
} }
} }
}, },
//切换客户来源重置 //切换客户来源重置
resetStuSource() { resetStuSource() {
this.customObj.StuSourceId = 0; this.customObj.StuChannel = '';
} this.customObj.CustomerId = '';
this.customObj.StuSourceId = '';
this.customObj.PlatformName = '';
},
} }
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<div class="custom_Bottom"> <div class="custom_Bottom">
<div class="detail-info"> <div class="detail-info">
<student-left :save-obj="saveObj" @success="refreshStudentPage"></student-left> <student-left :save-obj="saveObj" @success="refreshStudentPage" @getrecord="getrecord"></student-left>
</div> </div>
<div class="detail-travel"> <div class="detail-travel">
<div class="detail_first"> <div class="detail_first">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div> </div>
<!-- 记录 --> <!-- 记录 -->
<template v-if="ckedTab==1"> <template v-if="ckedTab==1">
<student-record :save-obj="baseObj" @success="refreshStudentPage"></student-record> <student-record :save-obj="baseObj" @success="refreshStudentPage" ref="mychild"></student-record>
</template> </template>
<!-- 操作 --> <!-- 操作 -->
<template v-if="ckedTab==2"> <template v-if="ckedTab==2">
...@@ -203,6 +203,10 @@ ...@@ -203,6 +203,10 @@
} }
this.isShowTrans = false; this.isShowTrans = false;
}) })
},
//保存成功后调用记录
getrecord(){
this.$refs.mychild.getStuLogPage();
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment