Commit 02b21080 authored by zhengke's avatar zhengke

修改

parent 81c00f35
...@@ -135,6 +135,8 @@ ...@@ -135,6 +135,8 @@
AllemployeeList: [], //所有员工列表 AllemployeeList: [], //所有员工列表
CourseList: [], //课程列表 CourseList: [], //课程列表
courseObj: {}, //选择的课程 courseObj: {}, //选择的课程
Teacher_Id:0,
ClassName:''
} }
}, },
created() { created() {
...@@ -159,6 +161,12 @@ ...@@ -159,6 +161,12 @@
getClassList(ClassId) { getClassList(ClassId) {
this.OrderMsg.CourseId = ''; this.OrderMsg.CourseId = '';
this.CourseList = []; this.CourseList = [];
let val = this.classList.find(x => x.ClassId == ClassId);
if (val) {
this.Teacher_Id = val.Teacher_Id;
this.ClassName = val.ClassName;
}
var qMsg = { var qMsg = {
ClassId: ClassId ClassId: ClassId
}; };
...@@ -302,6 +310,14 @@ ...@@ -302,6 +310,14 @@
saveOrderInfo() { saveOrderInfo() {
this.OrderMsg.PreferPrice = (this.OrderMsg.GuestNum * this.OrderMsg.Unit_Price) - this.OrderMsg.LessPrice; this.OrderMsg.PreferPrice = (this.OrderMsg.GuestNum * this.OrderMsg.Unit_Price) - this.OrderMsg.LessPrice;
this.OrderMsg.VisitorReserveId = this.saveObj.Id; this.OrderMsg.VisitorReserveId = this.saveObj.Id;
if(this.Teacher_Id==0){
this.$q.notify({
type: 'negative',
position: "top",
message: `请联系班级管理员,关联【${this.ClassName}】班级老师后转单`
})
return
}
setClassOrder(this.OrderMsg).then(res => { setClassOrder(this.OrderMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
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