|
@@ -494,7 +494,26 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="studentId" label="缴费总额">
|
|
|
+ <el-table-column align="center" prop="studentId" label="">
|
|
|
+ <template slot="header" slot-scope="slot">
|
|
|
+ <div class="titleCell">
|
|
|
+ <span>缴费总额</span>
|
|
|
+ <el-tooltip placement="top" popper-class="mTooltip">
|
|
|
+ <div slot="content">
|
|
|
+ (线上课单价*课时数+线下课单价*课时数)*折扣后四舍五入
|
|
|
+ </div>
|
|
|
+ <i
|
|
|
+ class="el-icon-question micon el-tooltip"
|
|
|
+ style="
|
|
|
+ font-size: 18px;
|
|
|
+ color: #f56c6c;
|
|
|
+ top: 2px;
|
|
|
+ position: relative;
|
|
|
+ "
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template slot-scope="scope">
|
|
|
<el-input-number
|
|
|
size="mini"
|
|
@@ -1230,14 +1249,8 @@ export default {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
- onlineClassesUnitPrice: (
|
|
|
- (this.rightForm.onlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
- offlineClassesUnitPrice: (
|
|
|
- (this.rightForm.offlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
+ onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
+ offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
paymentPrice: "",
|
|
|
});
|
|
|
}
|
|
@@ -1265,7 +1278,6 @@ export default {
|
|
|
this.hasOffline = true;
|
|
|
this.maxCourseNum = 0;
|
|
|
this.minCourseNum = 0;
|
|
|
- this.rightForm.discount = 100;
|
|
|
|
|
|
if (val) {
|
|
|
this.classTimeDis = true;
|
|
@@ -1337,14 +1349,8 @@ export default {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
- onlineClassesUnitPrice: (
|
|
|
- (this.rightForm.onlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(0),
|
|
|
- offlineClassesUnitPrice: (
|
|
|
- (this.rightForm.offlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(0),
|
|
|
+ onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
+ offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
paymentPrice: "",
|
|
|
});
|
|
|
}
|
|
@@ -1688,6 +1694,11 @@ export default {
|
|
|
},
|
|
|
// 计算课酬
|
|
|
computational() {
|
|
|
+ if (this.timeTable.length <= 0) {
|
|
|
+ this.$message.error("请先排课再计算课酬");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
this.computationalBtn = true;
|
|
|
let userId = this.leftForm.teacher || null;
|
|
|
let giveTeachMode = this.centerForm.radio || null;
|
|
@@ -2248,14 +2259,8 @@ export default {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
- onlineClassesUnitPrice: (
|
|
|
- (this.rightForm.onlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
- offlineClassesUnitPrice: (
|
|
|
- (this.rightForm.offlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
+ onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
+ offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
paymentPrice: "",
|
|
|
});
|
|
|
}
|
|
@@ -2289,14 +2294,8 @@ export default {
|
|
|
this.activeStudentList.push({
|
|
|
studentId: stu.userId,
|
|
|
userName: stu.username,
|
|
|
- onlineClassesUnitPrice: (
|
|
|
- (this.rightForm.onlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
- offlineClassesUnitPrice: (
|
|
|
- (this.rightForm.offlinePrice * discount) /
|
|
|
- 100
|
|
|
- ).toFixed(2),
|
|
|
+ onlineClassesUnitPrice: this.rightForm.onlinePrice,
|
|
|
+ offlineClassesUnitPrice: this.rightForm.offlinePrice,
|
|
|
paymentPrice: "",
|
|
|
});
|
|
|
}
|