|
@@ -181,7 +181,7 @@
|
|
|
clearable
|
|
|
:disabled="
|
|
|
!leftForm.students ||
|
|
|
- (leftForm.students && leftForm.students.length <= 0)
|
|
|
+ (leftForm.students && leftForm.students.length <= 0)
|
|
|
"
|
|
|
@change="chioseActive"
|
|
|
>
|
|
@@ -200,8 +200,8 @@
|
|
|
clearable
|
|
|
:disabled="
|
|
|
!leftForm.courseType ||
|
|
|
- !leftForm.students ||
|
|
|
- (leftForm.students && leftForm.students.length <= 0)
|
|
|
+ !leftForm.students ||
|
|
|
+ (leftForm.students && leftForm.students.length <= 0)
|
|
|
"
|
|
|
@change="chioseActive"
|
|
|
>
|
|
@@ -307,7 +307,9 @@
|
|
|
@input="onCourseNumChange('online')"
|
|
|
type="number"
|
|
|
>
|
|
|
- <template slot="append">节</template>
|
|
|
+ <template slot="append"
|
|
|
+ >节</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="hasOffline" label="线下课数">
|
|
@@ -317,13 +319,17 @@
|
|
|
@input="onCourseNumChange('offline')"
|
|
|
type="number"
|
|
|
>
|
|
|
- <template slot="append">节</template>
|
|
|
+ <template slot="append"
|
|
|
+ >节</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="待排课数">
|
|
|
<el-input v-model.trim="allCourseCount" disabled>
|
|
|
- <template slot="append">节</template>
|
|
|
+ <template slot="append"
|
|
|
+ >节</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item
|
|
@@ -418,20 +424,30 @@
|
|
|
>
|
|
|
<el-form-item label="折扣">
|
|
|
<el-input v-model.trim="rightForm.discount" disabled>
|
|
|
- <template slot="append">%</template>
|
|
|
+ <template slot="append"
|
|
|
+ >%</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="courseType == 'PRACTICE'" label="网管课酬">
|
|
|
<el-input v-model.trim="rightForm.onlineCourse" :disabled="true">
|
|
|
- <template slot="append" v-if="!isMusicTheory">元/节</template>
|
|
|
- <template slot="append" v-else>元/人</template>
|
|
|
+ <template slot="append" v-if="!isMusicTheory"
|
|
|
+ >元/节</template
|
|
|
+ >
|
|
|
+ <template slot="append" v-else
|
|
|
+ >元/人</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
<!-- || onlineSalary!='TEACHER_DEFAULT' salaryReadonlyFlag==0 -->
|
|
|
</el-form-item>
|
|
|
<el-form-item v-else label="VIP课课酬">
|
|
|
<el-input v-model.trim="rightForm.offlineCourse" :disabled="true">
|
|
|
- <template slot="append" v-if="!isMusicTheory">元/节</template>
|
|
|
- <template slot="append" v-else>元/人</template>
|
|
|
+ <template slot="append" v-if="!isMusicTheory"
|
|
|
+ >元/节</template
|
|
|
+ >
|
|
|
+ <template slot="append" v-else
|
|
|
+ >元/人</template
|
|
|
+ >
|
|
|
</el-input>
|
|
|
<!-- || offlineSalary!='TEACHER_DEFAULT' salaryReadonlyFlag==0 -->
|
|
|
</el-form-item>
|
|
@@ -463,7 +479,7 @@
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
prop="studentId"
|
|
|
- v-if="hasOnline"
|
|
|
+ v-if="hasOnline && !fixedCourseNumFlag"
|
|
|
label="线上课单价"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -482,7 +498,7 @@
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
prop="studentId"
|
|
|
- v-if="hasOffline"
|
|
|
+ v-if="hasOffline && !fixedCourseNumFlag"
|
|
|
label="线下课单价"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -628,7 +644,7 @@
|
|
|
:picker-options="{
|
|
|
start: '04:30',
|
|
|
step: '00:05',
|
|
|
- end: '23:30',
|
|
|
+ end: '23:30'
|
|
|
}"
|
|
|
placeholder="选择时间"
|
|
|
/>
|
|
@@ -676,7 +692,7 @@ import {
|
|
|
getSubject,
|
|
|
getPracticeApplySubjects,
|
|
|
getOrganRole,
|
|
|
- getAgreement,
|
|
|
+ getAgreement
|
|
|
} from "@/api/buildTeam";
|
|
|
import {
|
|
|
vipGroupCategory,
|
|
@@ -687,7 +703,7 @@ import {
|
|
|
getPracticeGroupCostCount,
|
|
|
createPractice,
|
|
|
getPracticeGroupSellPrice,
|
|
|
- getOnlineMun,
|
|
|
+ getOnlineMun
|
|
|
} from "@/api/vipSeting";
|
|
|
import { getTeachSchool, getTeacherBySubject } from "@/api/teacherManager";
|
|
|
import axios from "axios";
|
|
@@ -724,7 +740,7 @@ export default {
|
|
|
educationalTeacherId: "",
|
|
|
students: [],
|
|
|
|
|
|
- classOrganId: "", // 课程分部
|
|
|
+ classOrganId: "" // 课程分部
|
|
|
},
|
|
|
activeStudentList: [],
|
|
|
studentLimit: 0,
|
|
@@ -733,13 +749,13 @@ export default {
|
|
|
allCourseNum: "",
|
|
|
onlineCourseNum: 0,
|
|
|
offlineCourseNum: 0,
|
|
|
- radio: "",
|
|
|
+ radio: ""
|
|
|
},
|
|
|
maskForm: {
|
|
|
type: "",
|
|
|
week: "",
|
|
|
startTime: "",
|
|
|
- endTime: "",
|
|
|
+ endTime: ""
|
|
|
},
|
|
|
rightForm: {
|
|
|
onlineCourse: "",
|
|
@@ -747,7 +763,7 @@ export default {
|
|
|
onlinePrice: "",
|
|
|
offlinePrice: "",
|
|
|
allPrice: "",
|
|
|
- discount: 100,
|
|
|
+ discount: 100
|
|
|
},
|
|
|
remoteLoading: false,
|
|
|
computationalBtn: false,
|
|
@@ -765,6 +781,7 @@ export default {
|
|
|
attribute1: "",
|
|
|
attribute2: "",
|
|
|
attribute3: "",
|
|
|
+ fixedCourseNumFlag: null,
|
|
|
maxCourseNum: 0,
|
|
|
minCourseNum: 0,
|
|
|
salaryReadonlyFlag: "", // 老师课酬是否可配
|
|
@@ -782,7 +799,7 @@ export default {
|
|
|
"星期三",
|
|
|
"星期四",
|
|
|
"星期五",
|
|
|
- "星期六",
|
|
|
+ "星期六"
|
|
|
],
|
|
|
scetionList: [],
|
|
|
isGiveClass: false,
|
|
@@ -801,50 +818,50 @@ export default {
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请输入名称",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
teacher: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择老师",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
educationalTeacherId: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择乐团主管",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
classOrganId: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择课程分部",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
subject: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择科目",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
courseType: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择课程形式",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
students: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择上课学生",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
// activeType: [
|
|
|
// {
|
|
@@ -857,23 +874,23 @@ export default {
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择报名开始时间",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
signUpEnd: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择报名结束时间",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
],
|
|
|
classTime: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请选择报每课时长",
|
|
|
- trigger: "change",
|
|
|
- },
|
|
|
- ],
|
|
|
+ trigger: "change"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
id: "",
|
|
|
studentList: [],
|
|
@@ -883,7 +900,7 @@ export default {
|
|
|
classTimeDis: false,
|
|
|
studentRuleNum: 0,
|
|
|
isFirst: false,
|
|
|
- submitList:[]
|
|
|
+ submitList: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -913,7 +930,7 @@ export default {
|
|
|
// return parseInt(offline) + parseInt(online) + "+" + giveNum || "";
|
|
|
// }
|
|
|
return parseInt(offline) + parseInt(online) || "";
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
// this.init();
|
|
@@ -955,12 +972,12 @@ export default {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
closeOnClickModal: false,
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
.then(() => {
|
|
|
next();
|
|
|
})
|
|
|
- .catch((err) => {});
|
|
|
+ .catch(err => {});
|
|
|
} else {
|
|
|
next();
|
|
|
}
|
|
@@ -986,7 +1003,7 @@ export default {
|
|
|
educationalTeacherId: "",
|
|
|
students: [],
|
|
|
|
|
|
- classOrganId: "", // 课程分部
|
|
|
+ classOrganId: "" // 课程分部
|
|
|
};
|
|
|
this.activeStudentList = [];
|
|
|
this.studentLimit = 0;
|
|
@@ -995,13 +1012,13 @@ export default {
|
|
|
allCourseNum: "",
|
|
|
onlineCourseNum: 0,
|
|
|
offlineCourseNum: 0,
|
|
|
- radio: "",
|
|
|
+ radio: ""
|
|
|
};
|
|
|
this.maskForm = {
|
|
|
type: "",
|
|
|
week: "",
|
|
|
startTime: "",
|
|
|
- endTime: "",
|
|
|
+ endTime: ""
|
|
|
};
|
|
|
this.rightForm = {
|
|
|
onlineCourse: "",
|
|
@@ -1009,7 +1026,7 @@ export default {
|
|
|
onlinePrice: "",
|
|
|
offlinePrice: "",
|
|
|
allPrice: "",
|
|
|
- discount: 100,
|
|
|
+ discount: 100
|
|
|
};
|
|
|
this.hasOnline = true;
|
|
|
this.hasOffline = true;
|
|
@@ -1019,6 +1036,7 @@ export default {
|
|
|
this.attribute1 = "";
|
|
|
this.attribute2 = "";
|
|
|
this.attribute3 = "";
|
|
|
+ this.fixedCourseNumFlag = null;
|
|
|
this.maxCourseNum = 0;
|
|
|
this.minCourseNum = 0;
|
|
|
this.salaryReadonlyFlag = ""; // 老师课酬是否可配
|
|
@@ -1036,7 +1054,7 @@ export default {
|
|
|
try {
|
|
|
const res = await getAgreement();
|
|
|
if (!res.data) {
|
|
|
- this.submitList.push("agreement");
|
|
|
+ this.submitList.push("agreement");
|
|
|
// this.$bus.$emit("showguide", ["agreement"]);
|
|
|
}
|
|
|
} catch (e) {}
|
|
@@ -1056,26 +1074,26 @@ export default {
|
|
|
this.searchForm = this.$route.query.searchForm;
|
|
|
}
|
|
|
// 获取所有科目的接口
|
|
|
- this.submitList =[]
|
|
|
+ this.submitList = [];
|
|
|
await this.$store.dispatch("setBranchs");
|
|
|
await this.getAgreement();
|
|
|
if (this.selects.branchs.length <= 0) {
|
|
|
- submitList.push("organ")
|
|
|
+ submitList.push("organ");
|
|
|
// this.$bus.$emit("showguide", ["organ"]);
|
|
|
}
|
|
|
- if (this.submitList.length > 0) {
|
|
|
+ if (this.submitList.length > 0) {
|
|
|
this.$bus.$emit("showguide", this.submitList);
|
|
|
}
|
|
|
if (this.courseType == "PRACTICE") {
|
|
|
- getPracticeApplySubjects().then((res) => {
|
|
|
+ getPracticeApplySubjects().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.subjectList = res.data;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
getSubject({
|
|
|
- tenantId: 1,
|
|
|
- }).then((res) => {
|
|
|
+ tenantId: 1
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.subjectList = res.data;
|
|
|
}
|
|
@@ -1119,7 +1137,7 @@ export default {
|
|
|
let self = this;
|
|
|
return {
|
|
|
firstDayOfWeek: 1,
|
|
|
- disabledDate: (time) => {
|
|
|
+ disabledDate: time => {
|
|
|
if (self.leftForm.courseStart && self.leftForm.courseEnd) {
|
|
|
let date = new Date(self.leftForm.courseStart.replace(/-/, "/"));
|
|
|
let endDate = new Date(self.leftForm.courseEnd.replace(/-/, "/"));
|
|
@@ -1134,7 +1152,7 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
return;
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
beginDate() {
|
|
@@ -1143,7 +1161,7 @@ export default {
|
|
|
firstDayOfWeek: 1,
|
|
|
disabledDate(time) {
|
|
|
return time.getTime() + 86400000 <= new Date().getTime(); //开始时间不选时,结束时间最大值小于等于当天
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -1161,7 +1179,7 @@ export default {
|
|
|
return time.getTime() > Date.now();
|
|
|
//开始时间不选时,结束时间最大值小于等于当天
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
changeSubject(val) {
|
|
@@ -1171,8 +1189,8 @@ export default {
|
|
|
// 根据科目id获取相应的老师
|
|
|
findTeacherByOrganId({
|
|
|
subjectIds: val,
|
|
|
- organId: this.leftForm.classOrganId,
|
|
|
- }).then((res) => {
|
|
|
+ organId: this.leftForm.classOrganId
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.teacherList = res.data;
|
|
|
if (this.teacherList.length <= 0) {
|
|
@@ -1205,16 +1223,19 @@ export default {
|
|
|
this.leftForm.classNum = this.courseTypeList[i].studentNum;
|
|
|
this.studentLimit = this.courseTypeList[i].studentNum;
|
|
|
// 每课时长
|
|
|
- this.classTimeList =
|
|
|
- this.courseTypeList[i].singleClassMinutes.split(",");
|
|
|
+ this.classTimeList = this.courseTypeList[i].singleClassMinutes.split(
|
|
|
+ ","
|
|
|
+ );
|
|
|
// this.leftForm.classTime = this.courseTypeList[i].singleClassMinutes;
|
|
|
this.leftForm.classTime = this.classTimeList[0];
|
|
|
// 线上课单节价格
|
|
|
- this.rightForm.onlinePrice =
|
|
|
- this.courseTypeList[i].onlineClassesUnitPrice;
|
|
|
+ this.rightForm.onlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].onlineClassesUnitPrice;
|
|
|
// 线下课单节价格
|
|
|
- this.rightForm.offlinePrice =
|
|
|
- this.courseTypeList[i].offlineClassesUnitPrice;
|
|
|
+ this.rightForm.offlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].offlineClassesUnitPrice;
|
|
|
|
|
|
if (
|
|
|
this.rightForm.onlinePrice <= 0 ||
|
|
@@ -1227,7 +1248,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.activeStudentList = [];
|
|
|
- this.studentList.forEach((stu) => {
|
|
|
+ this.studentList.forEach(stu => {
|
|
|
if (
|
|
|
Array.isArray(this.chioseStudent)
|
|
|
? this.chioseStudent.indexOf(stu.userId) != -1
|
|
@@ -1241,7 +1262,7 @@ export default {
|
|
|
userName: stu.username,
|
|
|
onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
- paymentPrice: "",
|
|
|
+ paymentPrice: ""
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -1260,6 +1281,7 @@ export default {
|
|
|
this.attribute1 = "";
|
|
|
this.attribute2 = "";
|
|
|
this.attribute3 = "";
|
|
|
+ this.fixedCourseNumFlag = null; // 是否限制课时数
|
|
|
this.rightForm.discount = 100;
|
|
|
this.giveNum = 0;
|
|
|
this.isGiveClass = false;
|
|
@@ -1278,16 +1300,19 @@ export default {
|
|
|
this.leftForm.classNum = this.courseTypeList[i].studentNum;
|
|
|
// 每课时长
|
|
|
|
|
|
- this.classTimeList =
|
|
|
- this.courseTypeList[i].singleClassMinutes.split(",");
|
|
|
+ this.classTimeList = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].singleClassMinutes.split(",");
|
|
|
// this.leftForm.classTime = this.courseTypeList[i].singleClassMinutes;
|
|
|
this.leftForm.classTime = this.classTimeList[0];
|
|
|
// 线上课单节价格
|
|
|
- this.rightForm.onlinePrice =
|
|
|
- this.courseTypeList[i].onlineClassesUnitPrice;
|
|
|
+ this.rightForm.onlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].onlineClassesUnitPrice;
|
|
|
// 线下课单节价格
|
|
|
- this.rightForm.offlinePrice =
|
|
|
- this.courseTypeList[i].offlineClassesUnitPrice;
|
|
|
+ this.rightForm.offlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].offlineClassesUnitPrice;
|
|
|
this.rightForm.discount = this.courseTypeList[i].discount;
|
|
|
}
|
|
|
}
|
|
@@ -1310,6 +1335,9 @@ export default {
|
|
|
this.attribute1 = this.activeList[i].attribute1;
|
|
|
this.attribute2 = this.activeList[i].attribute2;
|
|
|
this.attribute3 = this.activeList[i].attribute3;
|
|
|
+
|
|
|
+ // 固定课酬作用
|
|
|
+ this.fixedCourseNumFlag = this.activeList[i].fixedCourseNumFlag;
|
|
|
// 存储课酬是否可配置
|
|
|
this.salaryReadonlyFlag = this.activeList[i].salaryReadonlyFlag;
|
|
|
this.paymentReadonlyFlag = this.activeList[i].paymentReadonlyFlag;
|
|
@@ -1328,7 +1356,7 @@ export default {
|
|
|
|
|
|
this.activeStudentList = [];
|
|
|
|
|
|
- this.studentList.forEach((stu) => {
|
|
|
+ this.studentList.forEach(stu => {
|
|
|
if (
|
|
|
Array.isArray(this.chioseStudent)
|
|
|
? this.chioseStudent.indexOf(stu.userId) != -1
|
|
@@ -1342,7 +1370,7 @@ export default {
|
|
|
userName: stu.username,
|
|
|
onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
- paymentPrice: "",
|
|
|
+ paymentPrice: ""
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -1355,16 +1383,19 @@ export default {
|
|
|
// 学生人数
|
|
|
this.leftForm.classNum = this.courseTypeList[i].studentNum;
|
|
|
// 每课时长
|
|
|
- this.classTimeList =
|
|
|
- this.courseTypeList[i].singleClassMinutes.split(",");
|
|
|
+ this.classTimeList = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].singleClassMinutes.split(",");
|
|
|
// this.leftForm.classTime = this.courseTypeList[i].singleClassMinutes;
|
|
|
this.leftForm.classTime = this.classTimeList[0];
|
|
|
// 线上课单节价格
|
|
|
- this.rightForm.onlinePrice =
|
|
|
- this.courseTypeList[i].onlineClassesUnitPrice;
|
|
|
+ this.rightForm.onlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].onlineClassesUnitPrice;
|
|
|
// 线下课单节价格
|
|
|
- this.rightForm.offlinePrice =
|
|
|
- this.courseTypeList[i].offlineClassesUnitPrice;
|
|
|
+ this.rightForm.offlinePrice = this.courseTypeList[
|
|
|
+ i
|
|
|
+ ].offlineClassesUnitPrice;
|
|
|
this.rightForm.discount = this.courseTypeList[i].discount;
|
|
|
}
|
|
|
}
|
|
@@ -1439,7 +1470,7 @@ export default {
|
|
|
startTime: startTime,
|
|
|
endTime: endTime,
|
|
|
time: startTime + "-" + endTime,
|
|
|
- id: Date.now(),
|
|
|
+ id: Date.now()
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.error("该时间段已排课请重选时间");
|
|
@@ -1453,7 +1484,7 @@ export default {
|
|
|
startTime: startTime,
|
|
|
endTime: endTime,
|
|
|
time: startTime + "-" + endTime,
|
|
|
- id: Date.now(),
|
|
|
+ id: Date.now()
|
|
|
});
|
|
|
}
|
|
|
// let courseType = this.maskForm.type;
|
|
@@ -1566,13 +1597,13 @@ export default {
|
|
|
if (this.lookList[i].type == "线上课") {
|
|
|
onlineList.push({
|
|
|
week: this.lookList[i].weekDay,
|
|
|
- date: this.lookList[i],
|
|
|
+ date: this.lookList[i]
|
|
|
});
|
|
|
}
|
|
|
if (this.lookList[i].type == "线下课") {
|
|
|
offlineList.push({
|
|
|
week: this.lookList[i].weekDay,
|
|
|
- date: this.lookList[i],
|
|
|
+ date: this.lookList[i]
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1605,7 +1636,7 @@ export default {
|
|
|
actualTeacherId: this.leftForm.teacher,
|
|
|
startClassTimeStr: onlineList[i].date.startTime,
|
|
|
endClassTimeStr: onlineList[i].date.endTime,
|
|
|
- teachMode: "ONLINE",
|
|
|
+ teachMode: "ONLINE"
|
|
|
});
|
|
|
online--;
|
|
|
if (online == 0) break;
|
|
@@ -1631,7 +1662,7 @@ export default {
|
|
|
actualTeacherId: this.leftForm.teacher,
|
|
|
startClassTimeStr: offlineList[i].date.startTime,
|
|
|
endClassTimeStr: offlineList[i].date.endTime,
|
|
|
- teachMode: "OFFLINE",
|
|
|
+ teachMode: "OFFLINE"
|
|
|
});
|
|
|
offline--;
|
|
|
if (offline == 0) break;
|
|
@@ -1710,7 +1741,7 @@ export default {
|
|
|
let onlineTeacherSalary = this.rightForm.onlineCourse || null;
|
|
|
let offlineTeacherSalary = this.rightForm.offlineCourse || null;
|
|
|
let studentId = this.activeStudentList
|
|
|
- .map((stu) => {
|
|
|
+ .map(stu => {
|
|
|
return stu.studentId;
|
|
|
})
|
|
|
.join(",");
|
|
@@ -1728,13 +1759,13 @@ export default {
|
|
|
giveTeachMode,
|
|
|
singleClassMinutes,
|
|
|
organId: this.leftForm?.classOrganId,
|
|
|
- studentId,
|
|
|
- }).then((res) => {
|
|
|
+ studentId
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.rightForm.onlineCourse = res.data.onlineTeacherSalary;
|
|
|
this.rightForm.offlineCourse = res.data.offlineTeacherSalary;
|
|
|
this.rightForm.allPrice = res.data.totalPrice;
|
|
|
- this.activeStudentList.forEach((stu) => {
|
|
|
+ this.activeStudentList.forEach(stu => {
|
|
|
stu.paymentPrice = res.data.totalPrice;
|
|
|
});
|
|
|
}
|
|
@@ -1753,13 +1784,13 @@ export default {
|
|
|
studentIdList: userId,
|
|
|
giveTeachMode,
|
|
|
singleClassMinutes,
|
|
|
- studentIdList: studentId,
|
|
|
- }).then((res) => {
|
|
|
+ studentIdList: studentId
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.rightForm.onlineCourse = res.data.onlineTeacherSalary;
|
|
|
this.rightForm.offlineCourse = res.data.offlineTeacherSalary;
|
|
|
this.rightForm.allPrice = res.data.totalPrice;
|
|
|
- this.activeStudentList.forEach((stu) => {
|
|
|
+ this.activeStudentList.forEach(stu => {
|
|
|
stu.paymentPrice = res.data.totalPrice;
|
|
|
});
|
|
|
}
|
|
@@ -1863,7 +1894,7 @@ export default {
|
|
|
educationalTeacherId: this.leftForm.educationalTeacherId,
|
|
|
organId: this.leftForm.classOrganId,
|
|
|
firstStudentId: this.leftForm.students[0] || null,
|
|
|
- allCourseNum: online,
|
|
|
+ allCourseNum: online
|
|
|
};
|
|
|
} else {
|
|
|
studentIdList = this.leftForm.students.join(",") || null;
|
|
@@ -1891,12 +1922,12 @@ export default {
|
|
|
subjectIdList: this.leftForm.subject,
|
|
|
educationalTeacherId: this.leftForm.educationalTeacherId,
|
|
|
organId: this.leftForm.classOrganId,
|
|
|
- firstStudentId: this.leftForm.students[0] || null,
|
|
|
+ firstStudentId: this.leftForm.students[0] || null
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (this.courseType == "PRACTICE") {
|
|
|
- createPractice(obj).then((res) => {
|
|
|
+ createPractice(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.resetFrom();
|
|
|
if (res.data == "ING") {
|
|
@@ -1905,7 +1936,7 @@ export default {
|
|
|
"提示",
|
|
|
{
|
|
|
confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}
|
|
|
).then(() => {
|
|
|
this.$message.success("提交成功");
|
|
@@ -1914,8 +1945,8 @@ export default {
|
|
|
path: "/vipManager/vipList",
|
|
|
query: {
|
|
|
rules: this.rules,
|
|
|
- searchForm: this.searchForm,
|
|
|
- },
|
|
|
+ searchForm: this.searchForm
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
@@ -1926,10 +1957,10 @@ export default {
|
|
|
if (res.code == 206) {
|
|
|
this.$confirm(res.msg, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
obj.allowOverstepActivityStudentNum = 1;
|
|
|
- createPractice(obj).then((res) => {
|
|
|
+ createPractice(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.resetFrom();
|
|
|
this.$message.success("提交成功");
|
|
@@ -1941,7 +1972,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
// 新增
|
|
|
- createVip(obj).then((res) => {
|
|
|
+ createVip(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.resetFrom();
|
|
|
if (res.data == "ING") {
|
|
@@ -1950,7 +1981,7 @@ export default {
|
|
|
"提示",
|
|
|
{
|
|
|
confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}
|
|
|
).then(() => {
|
|
|
this.$message.success("提交成功");
|
|
@@ -1959,8 +1990,8 @@ export default {
|
|
|
path: "/vipManager/vipList",
|
|
|
query: {
|
|
|
rules: this.rules,
|
|
|
- searchForm: this.searchForm,
|
|
|
- },
|
|
|
+ searchForm: this.searchForm
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
@@ -1970,18 +2001,18 @@ export default {
|
|
|
path: "/vipManager/vipList",
|
|
|
query: {
|
|
|
rules: this.rules,
|
|
|
- searchForm: this.searchForm,
|
|
|
- },
|
|
|
+ searchForm: this.searchForm
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
if (res.code == 206) {
|
|
|
this.$confirm(res.msg, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}).then(() => {
|
|
|
obj.allowOverstepActivityStudentNum = 1;
|
|
|
- createVip(obj).then((res) => {
|
|
|
+ createVip(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.resetFrom();
|
|
|
this.$message.success("提交成功");
|
|
@@ -1990,8 +2021,8 @@ export default {
|
|
|
path: "/vipManager/vipList",
|
|
|
query: {
|
|
|
rules: this.rules,
|
|
|
- searchForm: this.searchForm,
|
|
|
- },
|
|
|
+ searchForm: this.searchForm
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -2008,8 +2039,8 @@ export default {
|
|
|
// this.leftForm.courseType = "";
|
|
|
if (val) {
|
|
|
getTeachSchool({
|
|
|
- userId: val,
|
|
|
- }).then((res) => {
|
|
|
+ userId: val
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.scetionList = res.data;
|
|
|
// if(this.scetionList.length <=0){
|
|
@@ -2085,8 +2116,8 @@ export default {
|
|
|
if (val) {
|
|
|
this.getOrganStudentList(val);
|
|
|
vipGroupCategory({
|
|
|
- organId: val,
|
|
|
- }).then((res) => {
|
|
|
+ organId: val
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.courseTypeList = res.data;
|
|
|
}
|
|
@@ -2094,7 +2125,7 @@ export default {
|
|
|
// 获取乐团主管
|
|
|
try {
|
|
|
const ruselt = await getOrganRole({
|
|
|
- id: val,
|
|
|
+ id: val
|
|
|
});
|
|
|
this.educationList = ruselt?.data?.EDUCATION;
|
|
|
if (!this.educationList || this.educationList.length <= 0) {
|
|
@@ -2107,7 +2138,7 @@ export default {
|
|
|
// 乐团主管
|
|
|
// 如果是网管课 则获取网管课单价
|
|
|
if (this.courseType == "PRACTICE") {
|
|
|
- getPracticeGroupSellPrice({ organId: val }).then((res) => {
|
|
|
+ getPracticeGroupSellPrice({ organId: val }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.rightForm.onlinePrice = res.data.singleClassMinutesPrice;
|
|
|
}
|
|
@@ -2119,12 +2150,12 @@ export default {
|
|
|
if (this.courseType) {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
- path: "/accompanyManager/accompany",
|
|
|
+ path: "/accompanyManager/accompany"
|
|
|
});
|
|
|
} else {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
- path: "/vipManager/vipList",
|
|
|
+ path: "/vipManager/vipList"
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -2138,7 +2169,7 @@ export default {
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
- this.$refs["leftForm"].validate((vali) => {
|
|
|
+ this.$refs["leftForm"].validate(vali => {
|
|
|
if (vali) {
|
|
|
let centerForm = this.centerForm;
|
|
|
if (this.maxCourseNum > 0 && this.minCourseNum > 0) {
|
|
@@ -2203,8 +2234,8 @@ export default {
|
|
|
if (organId) {
|
|
|
queryOrganStudentList({
|
|
|
rows: 50,
|
|
|
- organId: organId,
|
|
|
- }).then((res) => {
|
|
|
+ organId: organId
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.studentList = res.data.rows;
|
|
|
}
|
|
@@ -2220,24 +2251,24 @@ export default {
|
|
|
method: "get",
|
|
|
headers: {
|
|
|
Authorization: getToken(),
|
|
|
- tenantId: getTenantId(),
|
|
|
+ tenantId: getTenantId()
|
|
|
},
|
|
|
params: {
|
|
|
rows: 9999,
|
|
|
search: query,
|
|
|
- organId: this.leftForm.classOrganId,
|
|
|
+ organId: this.leftForm.classOrganId
|
|
|
},
|
|
|
- url,
|
|
|
+ url
|
|
|
};
|
|
|
this.remoteLoading = true;
|
|
|
// this.studentList = []
|
|
|
- axios(options).then((res) => {
|
|
|
+ axios(options).then(res => {
|
|
|
this.remoteLoading = false;
|
|
|
let result = res.data;
|
|
|
if (result.code == 200) {
|
|
|
// Array.prototype.splice.apply(this.studentList, result.data.rows);
|
|
|
if (result.data.rows && result.data.rows.length > 0) {
|
|
|
- result.data.rows.forEach((item) => {
|
|
|
+ result.data.rows.forEach(item => {
|
|
|
this.studentList.unshift(item);
|
|
|
});
|
|
|
this.studentList = this.deweight(this.studentList, "userId");
|
|
@@ -2261,14 +2292,14 @@ export default {
|
|
|
this.activeStudentList = [];
|
|
|
this.chioseStudent = val;
|
|
|
let discount = this.rightForm.discount ? this.rightForm.discount : 100;
|
|
|
- this.studentList.forEach((stu) => {
|
|
|
+ this.studentList.forEach(stu => {
|
|
|
if (val.indexOf(stu.userId) != -1) {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
- paymentPrice: "",
|
|
|
+ paymentPrice: ""
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -2284,8 +2315,8 @@ export default {
|
|
|
categoryId: this.leftForm.courseType,
|
|
|
teacherId: this.leftForm.teacher,
|
|
|
studentIds,
|
|
|
- activityChannel: 2,
|
|
|
- }).then((res) => {
|
|
|
+ activityChannel: 2
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.activeList = res.data;
|
|
|
}
|
|
@@ -2298,14 +2329,14 @@ export default {
|
|
|
this.activeStudentList = [];
|
|
|
this.chioseStudent = val;
|
|
|
let discount = this.rightForm.discount ? this.rightForm.discount : 100;
|
|
|
- this.studentList.forEach((stu) => {
|
|
|
+ this.studentList.forEach(stu => {
|
|
|
if (val == stu.userId) {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
- paymentPrice: "",
|
|
|
+ paymentPrice: ""
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -2317,8 +2348,8 @@ export default {
|
|
|
teacherId: this.leftForm.teacher,
|
|
|
studentIds,
|
|
|
courseType: this.courseType,
|
|
|
- activityChannel: 2,
|
|
|
- }).then((res) => {
|
|
|
+ activityChannel: 2
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.activeList = res.data;
|
|
|
this.classTimeList = [25];
|
|
@@ -2330,9 +2361,9 @@ export default {
|
|
|
// 制定属性去重
|
|
|
deweight(arr, key) {
|
|
|
let res = [];
|
|
|
- arr.forEach((item) => {
|
|
|
+ arr.forEach(item => {
|
|
|
let list = [];
|
|
|
- res.forEach((resitem) => {
|
|
|
+ res.forEach(resitem => {
|
|
|
list.push(resitem[key]);
|
|
|
});
|
|
|
if (list.indexOf(item[key]) === -1) {
|
|
@@ -2360,8 +2391,8 @@ export default {
|
|
|
if (val) {
|
|
|
this.computationalBtn = false;
|
|
|
}
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
// watch: {
|
|
|
// rightForm: {
|
|
|
// handler (newName, oldName) {
|