Commit c263c974 authored by 罗超's avatar 罗超

1

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