|
@@ -368,21 +368,26 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
let id = scope.row.id;
|
|
|
- getStudentSurplusCourseFee({ studentId: id, vipGroupId: this.id }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // scope.row.fee =
|
|
|
- this.$prompt('请输入退课金额', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- inputValue: res.data.suplusCourseFee
|
|
|
- }).then(({ value }) => {
|
|
|
- scope.row.fee = value;
|
|
|
- this.leaveSchool(scope);
|
|
|
- }).catch(res => {
|
|
|
+ if (scope.row.studentStatus == 3) {
|
|
|
+ this.leaveSchool(scope);
|
|
|
+ } else {
|
|
|
+ getStudentSurplusCourseFee({ studentId: id, vipGroupId: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ // scope.row.fee =
|
|
|
+ this.$prompt('请输入退课金额', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ inputValue: res.data.suplusCourseFee
|
|
|
+ }).then(({ value }) => {
|
|
|
+ scope.row.fee = value;
|
|
|
+ this.leaveSchool(scope);
|
|
|
+ }).catch(res => {
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
}).catch(() => { })
|
|
|
|
|
|
},
|