|
@@ -171,7 +171,7 @@ export default {
|
|
|
if (val === "1") {
|
|
|
this.eclass = [];
|
|
|
} else if (val === "2") {
|
|
|
- this.eclass = [{}];
|
|
|
+ this.eclass = [];
|
|
|
}
|
|
|
},
|
|
|
"form.musicGroupOrganizationCourseSettingId"(val) {
|
|
@@ -253,7 +253,10 @@ export default {
|
|
|
const eclas = this.chargesById[
|
|
|
this.form.musicGroupOrganizationCourseSettingId
|
|
|
];
|
|
|
- this.eclass = eclas?.details || [{}];
|
|
|
+ this.eclass = eclas?.details.filter(item => {
|
|
|
+ console.log({...item}, this.paymentType)
|
|
|
+ return !item.isStudentOptional || this.paymentType !== undefined
|
|
|
+ }) || [{}];
|
|
|
|
|
|
this.syncAllMoney();
|
|
|
} catch (error) {}
|
|
@@ -296,6 +299,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ if (this.eclass.length < 1) {
|
|
|
+ return this.$message.error('请至少选择一条加课信息')
|
|
|
+ }
|
|
|
if (valided.length === forms.length) {
|
|
|
const { paymentDate, paymentValid, leixing, ...rest } = {
|
|
|
...this.form,
|