Commit c263c974 authored by 罗超's avatar 罗超

1

parent e2dc0fec
......@@ -114,14 +114,27 @@
</div>
</div>
</div>
<div class="customer_info_component">
<div class="customer_info_Stage items-center">
<div class="stage_label">
<span class="student_require">*</span>客户状态
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuStage" dense :options="customState" option-label="Name" style="width:185px;"
option-value="Id" emit-value map-options label="客户状态" />
</div>
</div>
</div>
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
<span class="student_require">*</span>客户来源
</div>
<div class="stage_value">
<q-select filled v-model="customObj.CreateType" @change="clearStuMsg()" style="width:185px;" @input="resetStuSource()" dense
:options="customFromList" option-label="Name" option-value="Id" emit-value map-options label="客户来源" />
<q-select filled v-model="customObj.CreateType" @change="clearStuMsg()" style="width:185px;"
@input="resetStuSource()" dense :options="customFromList" option-label="Name" option-value="Id" emit-value
map-options label="客户来源" />
</div>
</div>
</div>
......@@ -131,8 +144,9 @@
介绍人
</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 />
<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 />
</div>
</div>
</div>
......@@ -142,8 +156,8 @@
转介人
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" use-input @filter="filterStudent" dense :options="MyTransListData"
option-label="StuName" option-value="StuId" emit-value map-options />
<q-select filled v-model="customObj.StuSourceId" style="width:185px;" use-input @filter="filterStudent"
dense :options="MyTransListData" option-label="StuName" option-value="StuId" emit-value map-options />
</div>
</div>
</div>
......@@ -153,8 +167,8 @@
收客渠道
</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 />
<q-select filled v-model="customObj.StuChannel" style="width:185px;" dense :options="StuChannelList"
option-label="Name" option-value="Id" emit-value map-options />
</div>
</div>
</div>
......@@ -164,8 +178,8 @@
关联同行
</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 />
<q-select filled v-model="customObj.CustomerId" style="width:185px" dense :options="customList"
option-label="CustomerName" option-value="CustomerId" emit-value map-options />
</div>
</div>
</div>
......@@ -186,11 +200,11 @@
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
客户类型
<span class="student_require">*</span>客户类型
</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="客户类型" />
<q-select filled v-model="customObj.StuType" style="width:185px" dense :options="customTypeList"
option-label="Name" option-value="Id" emit-value map-options label="客户类型" />
</div>
</div>
</div>
......@@ -216,13 +230,7 @@
</q-field>
</div>
</div>
<div class="info_item">
<div class="item_label">客户阶段状态</div>
<div class="item_value">
<q-select filled v-model="customObj.StuStage" dense :options="customState" option-label="Name"
option-value="Id" emit-value map-options label="客户状态" />
</div>
</div>
<div class="info_item">
<div class="item_label">日语基础</div>
<div class="item_value">
......@@ -344,8 +352,8 @@
customFromList: [], //客户来源
customTypeList: [], //客户类型
customList: [],
TransListData:[], //转介人数据
MyTransListData:[],
TransListData: [], //转介人数据
MyTransListData: [],
checkMsg: {
StuId: 0,
StuTel: '',
......@@ -398,6 +406,22 @@
message: `请选择客户来源`
})
return
}
if (this.customObj.StuStage == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择客户状态`
})
return
}
if (this.customObj.StuType == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择客户类型`
})
return
}
if (this.customObj.StuTel != '') {
var myreg = /^[1][3-9][\d]{9}/;
......@@ -501,9 +525,9 @@
})
},
//获取转介人下拉
getStudentDorpDown(){
getStudentDorpDown() {
getStudentDorpDownList().then(res => {
console.log(res,'res');
console.log(res, 'res');
if (res.Code == 1) {
this.TransListData = res.Data;
this.MyTransListData = res.Data;
......@@ -511,7 +535,7 @@
})
},
//筛选转介人
filterStudent(val, update, abort){
filterStudent(val, update, abort) {
update(() => {
this.MyTransListData = this.TransListData.filter(
v => v.StuName.indexOf(val) > -1
......
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