Commit a9d8315d authored by zhengke's avatar zhengke

修改

parent b7386552
......@@ -665,4 +665,15 @@ export function GetStudentTypeList(data) {
method: 'post',
data
});
}
/**
* 获取客户需求下拉
*/
export function GetNeedsList(data) {
return request({
url: '/CustomerStudent/GetNeedsList',
method: 'post',
data
});
}
\ No newline at end of file
......@@ -224,6 +224,17 @@
</div>
</div>
</div>
<div class="customer_info_component">
<div class="customer_info_Stage">
<div class="stage_label">
客户需求
</div>
<div class="stage_value">
<q-select filled v-model="customObj.StuNeeds" style="width:185px" dense :options="NeedData"
option-label="Name" option-value="Id" emit-value map-options label="客户需求" />
</div>
</div>
</div>
<div class="custom_Line"></div>
<div class="info_title">基本资料</div>
<div class="info_content">
......@@ -294,7 +305,8 @@
queryStuStageList, //获取客户阶段列表
saveStudent, //保存学员信息
GetStudentTypeList,
getStudentDorpDownList
getStudentDorpDownList,
GetNeedsList
} from '../../../api/school/index';
import {
getGuestBasicsEnumList,
......@@ -352,7 +364,8 @@
CustomerId: 0, //关联同行
QQ: '', //qq
WeChatNo: '', //微信号
StuType: '' //客户类型
StuType: '', //客户类型
StuNeeds:0 //客户需求
},
//日语基础列表
basicList: [],
......@@ -377,7 +390,8 @@
StuTel: '',
QQ: '',
WeChatNo: ''
}
},
NeedData:[]
}
},
created() {
......@@ -391,6 +405,7 @@
this.GetCustomerList();
this.getCustomTypeList();
this.getStudentDorpDown();
this.getGetNeedsList();
if (this.saveObj && this.saveObj.StuId > 0) {
this.customMsg.StuId = this.saveObj.StuId;
this.checkMsg.StuId = this.saveObj.StuId;
......@@ -399,6 +414,14 @@
},
mounted() {},
methods: {
//获取客户需求
getGetNeedsList(){
GetNeedsList().then(res => {
if(res.Code==1){
this.NeedData = res.Data;
}
})
},
//保存学员信息
saveStu() {
if (this.customObj.StuName == '') {
......@@ -574,7 +597,10 @@
},
//获取客户下拉数据
GetCustomerList() {
GetCustomerList().then(res => {
let msg = {
QCreateBy:1
}
GetCustomerList(msg).then(res => {
if (res.Code == 1) {
this.customList = res.Data;
this.allCustomList = res.Data;
......@@ -645,6 +671,7 @@
this.customObj.StuType = tempDate.StuType;
this.customObj.QQ = tempDate.QQ;
this.customObj.WeChatNo = tempDate.WeChatNo;
this.customObj.StuNeeds = tempDate.StuNeeds;
}
});
},
......
......@@ -181,6 +181,12 @@
field: "StuStageName",
align: "left"
},
{
name: "StuNeedsName",
label: "客户需求",
field: "StuNeedsName",
align: "left"
},
{
name: "StuProfession",
label: "职业",
......
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