|
@@ -492,7 +492,9 @@
|
|
|
<el-dialog title="退团信息确认"
|
|
|
width="640px"
|
|
|
:visible.sync="quitVisible">
|
|
|
- <el-form :model="quitForm">
|
|
|
+ <el-form :model="quitForm"
|
|
|
+ ref="quitForm"
|
|
|
+ :rules="quitRules">
|
|
|
<el-form-item label="退还课程费用"
|
|
|
prop="isRefundCourseFee">
|
|
|
<el-radio v-model="quitForm.isRefundCourseFee"
|
|
@@ -685,6 +687,11 @@ export default {
|
|
|
},
|
|
|
remark: '', // 退团原因
|
|
|
classList: [],
|
|
|
+ quitRules: {
|
|
|
+ isRefundCourseFee: [{ required: true, message: '请选择是否退还课程费用' },],
|
|
|
+ isRefundInstrumentFee: [{ required: true, message: '选择是否退还乐器费用' },],
|
|
|
+ isRefundTeachingAssistantsFee: [{ required: true, message: '选择是否退还教辅费用' },],
|
|
|
+ },
|
|
|
maskRules: {
|
|
|
studentName: [{ required: true, message: '请输入学生姓名' },],
|
|
|
sex: [{ required: true, message: '请选择学生姓名' },],
|
|
@@ -885,34 +892,42 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
chioseType () {
|
|
|
- let row = this.activeRow;
|
|
|
- /**
|
|
|
- * quitForm: { // 退团信息确认
|
|
|
- isRefundCourseFee: null,
|
|
|
- isRefundInstrumentFee: null,
|
|
|
- isRefundTeachingAssistantsFee: null,
|
|
|
- reason: ''
|
|
|
- },
|
|
|
- *
|
|
|
- */
|
|
|
- // 发请求 退团
|
|
|
- StudentQuit({ musicGroupId: this.teamid, userId: row.userId,
|
|
|
- reason: this.quitForm.reason,
|
|
|
- isRefundCourseFee: this.quitForm.isRefundCourseFee,
|
|
|
- isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
|
|
|
- isRefundTeachingAssistantsFee: this.quitForm.isRefundTeachingAssistantsFee }).then(res => {
|
|
|
- this.quitForm = { // 退团信息确认
|
|
|
- isRefundCourseFee: null,
|
|
|
- isRefundInstrumentFee: null,
|
|
|
- isRefundTeachingAssistantsFee: null,
|
|
|
- reason: ''
|
|
|
- }
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success('退团成功')
|
|
|
- this.getList();
|
|
|
- this.quitVisible = false;
|
|
|
+ this.$refs['quitForm'].validate(res => {
|
|
|
+ if (res) {
|
|
|
+ this.$confirm('确定退团?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let row = this.activeRow;
|
|
|
+ // 发请求 退团
|
|
|
+ StudentQuit({ musicGroupId: this.teamid, userId: row.userId,
|
|
|
+ reason: this.quitForm.reason,
|
|
|
+ isRefundCourseFee: this.quitForm.isRefundCourseFee,
|
|
|
+ isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
|
|
|
+ isRefundTeachingAssistantsFee: this.quitForm.isRefundTeachingAssistantsFee }).then(res => {
|
|
|
+ this.quitForm = { // 退团信息确认
|
|
|
+ isRefundCourseFee: null,
|
|
|
+ isRefundInstrumentFee: null,
|
|
|
+ isRefundTeachingAssistantsFee: null,
|
|
|
+ reason: ''
|
|
|
+ }
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('退团成功')
|
|
|
+ this.getList();
|
|
|
+ this.quitVisible = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ } else {
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// row.typeVisible = false;
|
|
|
},
|
|
|
//
|