|
@@ -654,7 +654,32 @@
|
|
width="640px"
|
|
width="640px"
|
|
:visible.sync="quitVisible"
|
|
:visible.sync="quitVisible"
|
|
>
|
|
>
|
|
- <el-form :model="quitForm" ref="quitForm" :rules="quitRules">
|
|
|
|
|
|
+ <el-form :model="quitForm" ref="quitForm" label-width="150px" :rules="quitRules">
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="退还云教练费用"
|
|
|
|
+ prop="isCloudTeacherAmount"
|
|
|
|
+ v-if="activeRow.cloudTeacherAmount > 0"
|
|
|
|
+ >
|
|
|
|
+ <el-radio v-model.trim="quitForm.isCloudTeacherAmount" :label="true"
|
|
|
|
+ >是</el-radio
|
|
|
|
+ >
|
|
|
|
+ <el-radio v-model.trim="quitForm.isCloudTeacherAmount" :label="false"
|
|
|
|
+ >否</el-radio
|
|
|
|
+ >
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="退还云教练金额"
|
|
|
|
+ prop="cloudTeacherAmount"
|
|
|
|
+ v-if="quitForm.isCloudTeacherAmount"
|
|
|
|
+ >
|
|
|
|
+ <el-input
|
|
|
|
+ type="number"
|
|
|
|
+ v-model.trim="quitForm.cloudTeacherAmount"
|
|
|
|
+ style="width: 180px"
|
|
|
|
+ >
|
|
|
|
+ <template slot="append">元</template>
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="退还课程费用" prop="isRefundCourseFee">
|
|
<el-form-item label="退还课程费用" prop="isRefundCourseFee">
|
|
<el-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
|
|
<el-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
|
|
>是</el-radio
|
|
>是</el-radio
|
|
@@ -717,9 +742,11 @@
|
|
<el-popover placement="right" width="500" trigger="click">
|
|
<el-popover placement="right" width="500" trigger="click">
|
|
<div class="popoverWrap">
|
|
<div class="popoverWrap">
|
|
<p>乐团退团退费规则:</p>
|
|
<p>乐团退团退费规则:</p>
|
|
|
|
+ <p>退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用</p>
|
|
<p>退还课程费用:缴费总额-已结束课时单价之和</p>
|
|
<p>退还课程费用:缴费总额-已结束课时单价之和</p>
|
|
<p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
|
|
<p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
|
|
<p>退还教辅费用:报名缴费时缴费的教辅费用</p>
|
|
<p>退还教辅费用:报名缴费时缴费的教辅费用</p>
|
|
|
|
+ <p>退还乐保费用:报名缴费时缴费的乐保费用</p>
|
|
</div>
|
|
</div>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
@@ -839,6 +866,8 @@ export default {
|
|
isRefundInstrumentFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isMaintenanceFee: null,
|
|
isMaintenanceFee: null,
|
|
|
|
+ cloudTeacherAmount: null,
|
|
|
|
+ isCloudTeacherAmount: null,
|
|
maintenanceFee: 0,
|
|
maintenanceFee: 0,
|
|
reason: "",
|
|
reason: "",
|
|
},
|
|
},
|
|
@@ -904,9 +933,9 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
quitRules: {
|
|
quitRules: {
|
|
- isRefundCourseFee: [
|
|
|
|
- { required: true, message: "请选择是否退还课程费用" },
|
|
|
|
- ],
|
|
|
|
|
|
+ isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
|
|
|
|
+ cloudTeacherAmount: [{ required: true, message: "请输入云教练金额", trigger: 'blur' }],
|
|
|
|
+ isRefundCourseFee: [{ required: true, message: "请选择是否退还课程费用" }],
|
|
isRefundInstrumentFee: [
|
|
isRefundInstrumentFee: [
|
|
{ required: true, message: "选择是否退还乐器费用" },
|
|
{ required: true, message: "选择是否退还乐器费用" },
|
|
],
|
|
],
|
|
@@ -1428,6 +1457,7 @@ export default {
|
|
quitTeam(row) {
|
|
quitTeam(row) {
|
|
this.activeRow = row;
|
|
this.activeRow = row;
|
|
this.quitVisible = true;
|
|
this.quitVisible = true;
|
|
|
|
+ this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount
|
|
},
|
|
},
|
|
quieTeams(row) {
|
|
quieTeams(row) {
|
|
this.$prompt("请输入退团原因", "提示", {
|
|
this.$prompt("请输入退团原因", "提示", {
|
|
@@ -1453,6 +1483,8 @@ export default {
|
|
isRefundInstrumentFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isMaintenanceFee: null,
|
|
isMaintenanceFee: null,
|
|
|
|
+ cloudTeacherAmount: null,
|
|
|
|
+ isCloudTeacherAmount: null,
|
|
maintenanceFee: 0,
|
|
maintenanceFee: 0,
|
|
reason: "",
|
|
reason: "",
|
|
};
|
|
};
|
|
@@ -1475,8 +1507,7 @@ export default {
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
let row = this.activeRow;
|
|
let row = this.activeRow;
|
|
- // 发请求 退团
|
|
|
|
- StudentQuit({
|
|
|
|
|
|
+ let params = {
|
|
musicGroupId: this.id,
|
|
musicGroupId: this.id,
|
|
userId: row.studentId,
|
|
userId: row.studentId,
|
|
reason: this.quitForm.reason,
|
|
reason: this.quitForm.reason,
|
|
@@ -1485,13 +1516,23 @@ export default {
|
|
isRefundTeachingAssistantsFee: this.quitForm
|
|
isRefundTeachingAssistantsFee: this.quitForm
|
|
.isRefundTeachingAssistantsFee,
|
|
.isRefundTeachingAssistantsFee,
|
|
maintenanceFee: this.quitForm.maintenanceFee,
|
|
maintenanceFee: this.quitForm.maintenanceFee,
|
|
- }).then((res) => {
|
|
|
|
|
|
+ }
|
|
|
|
+ // 退还乐器练习云教练费用
|
|
|
|
+ if(this.quitForm.isCloudTeacherAmount) {
|
|
|
|
+ params.cloudTeacherAmount = this.quitForm.cloudTeacherAmount
|
|
|
|
+ } else {
|
|
|
|
+ params.cloudTeacherAmount = 0
|
|
|
|
+ }
|
|
|
|
+ // 发请求 退团
|
|
|
|
+ StudentQuit(params).then((res) => {
|
|
this.quitForm = {
|
|
this.quitForm = {
|
|
// 退团信息确认
|
|
// 退团信息确认
|
|
isRefundCourseFee: null,
|
|
isRefundCourseFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isMaintenanceFee: null,
|
|
isMaintenanceFee: null,
|
|
|
|
+ cloudTeacherAmount: null,
|
|
|
|
+ isCloudTeacherAmount: null,
|
|
maintenanceFee: 0,
|
|
maintenanceFee: 0,
|
|
reason: "",
|
|
reason: "",
|
|
};
|
|
};
|
|
@@ -1641,6 +1682,10 @@ export default {
|
|
isRefundCourseFee: null,
|
|
isRefundCourseFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundInstrumentFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
isRefundTeachingAssistantsFee: null,
|
|
|
|
+ isMaintenanceFee: null,
|
|
|
|
+ cloudTeacherAmount: null,
|
|
|
|
+ isCloudTeacherAmount: null,
|
|
|
|
+ maintenanceFee: 0,
|
|
reason: "",
|
|
reason: "",
|
|
};
|
|
};
|
|
this.$refs["quitForm"].resetFields();
|
|
this.$refs["quitForm"].resetFields();
|