|
@@ -538,7 +538,32 @@
|
|
|
</el-dialog>
|
|
|
<!-- 退团弹窗 -->
|
|
|
<el-dialog title="退团信息确认" width="640px" :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-radio v-model.trim="quitForm.isRefundCourseFee" :label="true"
|
|
|
>是</el-radio
|
|
@@ -601,9 +626,11 @@
|
|
|
<el-popover placement="right" width="500" trigger="click">
|
|
|
<div class="popoverWrap">
|
|
|
<p>乐团退团退费规则:</p>
|
|
|
+ <p>退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用</p>
|
|
|
<p>退还课程费用:缴费总额-已结束课时单价之和</p>
|
|
|
<p>退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)</p>
|
|
|
<p>退还教辅费用:报名缴费时缴费的教辅费用</p>
|
|
|
+ <p>退还乐保费用:报名缴费时缴费的乐保费用</p>
|
|
|
</div>
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -855,6 +882,8 @@ export default {
|
|
|
organizationCourseUnitPriceSettings: [],
|
|
|
quitForm: {
|
|
|
// 退团信息确认
|
|
|
+ isCloudTeacherAmount: null,
|
|
|
+ cloudTeacherAmount: null,
|
|
|
isRefundCourseFee: null,
|
|
|
isRefundInstrumentFee: null,
|
|
|
isRefundTeachingAssistantsFee: null,
|
|
@@ -921,6 +950,8 @@ export default {
|
|
|
remark: "", // 退团原因
|
|
|
classList: [],
|
|
|
quitRules: {
|
|
|
+ isCloudTeacherAmount: [{ required: true, message: "请输入云教练费用" }],
|
|
|
+ cloudTeacherAmount: [{ required: true, message: "请输入云教练金额", trigger: 'blur' }],
|
|
|
isRefundCourseFee: [
|
|
|
{ required: true, message: "请选择是否退还课程费用" },
|
|
|
],
|
|
@@ -1293,23 +1324,31 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
let row = this.activeRow;
|
|
|
- // 发请求 退团
|
|
|
- StudentQuit({
|
|
|
+ let params = {
|
|
|
musicGroupId: this.teamid,
|
|
|
userId: row.userId,
|
|
|
reason: this.quitForm.reason,
|
|
|
isRefundCourseFee: this.quitForm.isRefundCourseFee,
|
|
|
isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
|
|
|
- isRefundTeachingAssistantsFee: this.quitForm
|
|
|
- .isRefundTeachingAssistantsFee,
|
|
|
+ isRefundTeachingAssistantsFee: this.quitForm.isRefundTeachingAssistantsFee,
|
|
|
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 = {
|
|
|
// 退团信息确认
|
|
|
isRefundCourseFee: null,
|
|
|
isRefundInstrumentFee: null,
|
|
|
isRefundTeachingAssistantsFee: null,
|
|
|
isMaintenanceFee: null,
|
|
|
+ cloudTeacherAmount: null,
|
|
|
+ isCloudTeacherAmount: null,
|
|
|
maintenanceFee: 0,
|
|
|
reason: "",
|
|
|
};
|
|
@@ -1502,6 +1541,7 @@ export default {
|
|
|
quieTeamMask(row) {
|
|
|
this.activeRow = row;
|
|
|
this.quitVisible = true;
|
|
|
+ this.quitForm.cloudTeacherAmount = row.cloudTeacherAmount
|
|
|
},
|
|
|
quieTeam(row) {
|
|
|
this.$prompt("请输入退团原因", "提示", {
|
|
@@ -1523,12 +1563,14 @@ export default {
|
|
|
}).then((res) => {
|
|
|
this.quitForm = {
|
|
|
// 退团信息确认
|
|
|
- isRefundCourseFee: null,
|
|
|
- isRefundInstrumentFee: null,
|
|
|
- isRefundTeachingAssistantsFee: null,
|
|
|
- isMaintenanceFee: null,
|
|
|
- maintenanceFee: 0,
|
|
|
- reason: "",
|
|
|
+ isRefundCourseFee: null,
|
|
|
+ isRefundInstrumentFee: null,
|
|
|
+ isRefundTeachingAssistantsFee: null,
|
|
|
+ isMaintenanceFee: null,
|
|
|
+ cloudTeacherAmount: null,
|
|
|
+ isCloudTeacherAmount: null,
|
|
|
+ maintenanceFee: 0,
|
|
|
+ reason: "",
|
|
|
};
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("退团成功");
|