Commit 67a10c0e authored by zhengke's avatar zhengke

1

parent 8652627c
......@@ -84,7 +84,7 @@
<div class="info_item">
<div class="item_label">客户来源</div>
<div class="item_value">
<q-select filled v-model="customObj.CreateType" dense :options="customFromList" option-label="Name" option-value="Id"
<q-select filled v-model="customObj.CreateType" @input="resetStuSource()" dense :options="customFromList" option-label="Name" option-value="Id"
emit-value map-options label="客户来源" />
</div>
</div>
......@@ -94,8 +94,8 @@
<span v-if="customObj.CreateType==4">转介人</span>
</div>
<div class="item_value">
<q-select filled v-model="customObj.StuSourceId" dense @filter="filterEmployee" use-input
:options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options />
<q-select filled v-model="customObj.StuSourceId" dense :options="customList" option-label="CustomerName"
option-value="CustomerId" emit-value map-options />
</div>
</div>
......@@ -200,7 +200,8 @@
getGuestLearningGoalsEnumList,
GetStuChannelList,
CreateTypeList,
CheckExistsStu
CheckExistsStu,
GetCustomerList
} from '../../../api/sale/sale'
import {
queryEmployee
......@@ -259,6 +260,7 @@
StuChannelList: [], //收客渠道
AssistDropList: [], //协助人员
customFromList: [], //客户来源
customList: [],
checkMsg:{
StuId:0,
StuTel:''
......@@ -273,6 +275,7 @@
this.getEmployeeList();
this.GetStuChannelList();
this.getCustomFrom();
this.GetCustomerList();
if (this.saveObj && this.saveObj.StuId > 0) {
this.customMsg.StuId = this.saveObj.StuId;
this.checkMsg.StuId = this.saveObj.StuId;
......@@ -417,6 +420,15 @@
this.customState = res.Data;
})
},
//获取客户下拉数据
GetCustomerList(){
GetCustomerList().then(res => {
if(res.Code==1){
this.customList = res.Data;
}
console.log(res,'数据');
})
},
queryStuInfo() {
getStudentInfo({
StuId: this.customMsg.StuId
......@@ -461,6 +473,10 @@
CheckExistsStu(this.checkMsg).then(res => {
})
},
//切换客户来源重置
resetStuSource(){
this.customObj.StuSourceId = 0;
}
}
}
......
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