Commit a9d8315d authored by zhengke's avatar zhengke

修改

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