|
@@ -80,6 +80,7 @@ import {
|
|
|
chargeTypeList,
|
|
|
musicGroupOrganizationCourseSettingsQueryPage,
|
|
|
} from "@/api/specialSetting";
|
|
|
+import { getMusicGroupPaymentCalenderDetail } from '@/api/buildTeam'
|
|
|
import {
|
|
|
musicGroupPaymentCalenderAdd,
|
|
|
musicGroupPaymentCalenderDetailBatchUpdate,
|
|
@@ -200,7 +201,7 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- init () {
|
|
|
+ async init () {
|
|
|
this.getCharges();
|
|
|
if (this.rowDetail) {
|
|
|
for (const key in paymentTypeFormat) {
|
|
@@ -211,13 +212,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.form.musicGroupOrganizationCourseSettingId = this.rowDetail.musicGroupOrganizationCourseSettingId;
|
|
|
this.$set(
|
|
|
this.other,
|
|
|
"isGiveMusicNetwork",
|
|
|
this.rowDetail.isGiveMusicNetwork
|
|
|
);
|
|
|
this.$set(this.other, "memo", this.rowDetail.memo);
|
|
|
+ if (this.rowDetail.musicGroupOrganizationCourseSettingId) {
|
|
|
+ this.form.musicGroupOrganizationCourseSettingId = this.rowDetail.musicGroupOrganizationCourseSettingId;
|
|
|
+ } else {
|
|
|
+ try {
|
|
|
+ const res = await getMusicGroupPaymentCalenderDetail({
|
|
|
+ id: this.rowDetail.id
|
|
|
+ })
|
|
|
+ this.eclass = res.data.musicGroupPaymentCalenderCourseSettings
|
|
|
+ this.syncAllMoney()
|
|
|
+ } catch (error) {}
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
formatCourse() {
|