|
@@ -28,7 +28,11 @@
|
|
|
placeholder="请选择计价标准"
|
|
|
>
|
|
|
<el-option label="按学生" value="STUDENT"> </el-option>
|
|
|
- <el-option label="按老师" value="TEACHER" :disabled="!teamCourse">
|
|
|
+ <el-option
|
|
|
+ label="按老师"
|
|
|
+ value="TEACHER"
|
|
|
+ :disabled="!teamCourse"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -38,7 +42,7 @@
|
|
|
class="checkBtn"
|
|
|
:class="[
|
|
|
teamCourse ? 'active' : '',
|
|
|
- teamCourseDisabled ? 'disabled' : '',
|
|
|
+ teamCourseDisabled ? 'disabled' : ''
|
|
|
]"
|
|
|
@click.prevent="
|
|
|
() => {
|
|
@@ -71,7 +75,10 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="checkBtn"
|
|
|
- :class="[member ? 'active' : '', memberDisabled ? 'disabled' : '']"
|
|
|
+ :class="[
|
|
|
+ member ? 'active' : '',
|
|
|
+ memberDisabled ? 'disabled' : ''
|
|
|
+ ]"
|
|
|
@click.prevent="
|
|
|
() => {
|
|
|
if (memberDisabled) return;
|
|
@@ -96,10 +103,15 @@
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="
|
|
|
- isShowLeBao && tenantId == 1 && $route.query.team_status != 'PROGRESS'
|
|
|
+ isShowLeBao &&
|
|
|
+ tenantId == 1 &&
|
|
|
+ $route.query.team_status != 'PROGRESS'
|
|
|
"
|
|
|
class="checkBtn"
|
|
|
- :class="[leBao ? 'active' : '', leBaoDisabled ? 'disabled' : '']"
|
|
|
+ :class="[
|
|
|
+ leBao ? 'active' : '',
|
|
|
+ leBaoDisabled ? 'disabled' : ''
|
|
|
+ ]"
|
|
|
@click.prevent="
|
|
|
() => {
|
|
|
if (leBaoDisabled) return;
|
|
@@ -126,7 +138,7 @@
|
|
|
class="checkBtn"
|
|
|
:class="[
|
|
|
teamActive ? 'active' : '',
|
|
|
- teamActiveDisabled ? 'disabled' : '',
|
|
|
+ teamActiveDisabled ? 'disabled' : ''
|
|
|
]"
|
|
|
@click.prevent="
|
|
|
() => {
|
|
@@ -157,7 +169,9 @@
|
|
|
<payTeamCourse
|
|
|
:form="form"
|
|
|
:charges="charges"
|
|
|
- :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
|
|
|
+ :courseUnitPriceSettingsByType="
|
|
|
+ organizationCourseUnitPriceSettingsByType
|
|
|
+ "
|
|
|
v-if="teamCourse"
|
|
|
@create="addExtraClass"
|
|
|
@remove="removeExtraClass"
|
|
@@ -185,7 +199,9 @@
|
|
|
/>
|
|
|
<paySchoolInfo
|
|
|
:form="form"
|
|
|
- :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
|
|
|
+ :courseUnitPriceSettingsByType="
|
|
|
+ organizationCourseUnitPriceSettingsByType
|
|
|
+ "
|
|
|
:teamCourse="teamCourse"
|
|
|
:member="member"
|
|
|
:teamActive="teamActive"
|
|
@@ -195,7 +211,10 @@
|
|
|
@checkType="checkType"
|
|
|
/>
|
|
|
<backMoney
|
|
|
- v-if="$route.query.payUserType == 'SCHOOL' && form.currentTotalAmount > 0"
|
|
|
+ v-if="
|
|
|
+ $route.query.payUserType == 'SCHOOL' &&
|
|
|
+ form.currentTotalAmount > 0
|
|
|
+ "
|
|
|
:form="form"
|
|
|
/>
|
|
|
</div>
|
|
@@ -214,8 +233,8 @@
|
|
|
{
|
|
|
required: true,
|
|
|
message: '请选择缴费时间',
|
|
|
- trigger: 'blur',
|
|
|
- },
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
]"
|
|
|
ref="paymentDate"
|
|
|
>
|
|
@@ -293,8 +312,8 @@
|
|
|
{
|
|
|
required: true,
|
|
|
message: '请输入备注',
|
|
|
- trigger: 'blur',
|
|
|
- },
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
]"
|
|
|
ref="memo"
|
|
|
>
|
|
@@ -333,10 +352,10 @@
|
|
|
<div
|
|
|
v-if="
|
|
|
!teamCourse &&
|
|
|
- !member &&
|
|
|
- !leBao &&
|
|
|
- !teamActive &&
|
|
|
- $route.query.team_status == 'PROGRESS'
|
|
|
+ !member &&
|
|
|
+ !leBao &&
|
|
|
+ !teamActive &&
|
|
|
+ $route.query.team_status == 'PROGRESS'
|
|
|
"
|
|
|
>
|
|
|
<empty desc="暂无缴费项目配置" />
|
|
@@ -397,7 +416,7 @@ import dayjs from "dayjs";
|
|
|
import subjectPreview from "@/views/resetTeaming/modals/subject-preview";
|
|
|
import {
|
|
|
chargeTypeList,
|
|
|
- musicGroupOrganizationCourseSettingsQueryPage,
|
|
|
+ musicGroupOrganizationCourseSettingsQueryPage
|
|
|
} from "@/api/specialSetting";
|
|
|
import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
|
import { sysConfigList } from "@/api/generalSettings";
|
|
@@ -406,12 +425,12 @@ import {
|
|
|
getAllmemberRank,
|
|
|
musicGroupcreateCalender,
|
|
|
musicGroupresetCalender,
|
|
|
- getAutoActivationFlag,
|
|
|
+ getAutoActivationFlag
|
|
|
} from "../api";
|
|
|
import {
|
|
|
getMusicGroupPaymentCalenderDetail,
|
|
|
findMusicGroupSubjectInfo,
|
|
|
- getAgreement,
|
|
|
+ getAgreement
|
|
|
} from "@/api/buildTeam";
|
|
|
import { vipGroupActivity } from "@/api/vipSeting";
|
|
|
export default {
|
|
@@ -422,7 +441,7 @@ export default {
|
|
|
payTeamActive,
|
|
|
subjectPreview,
|
|
|
paySchoolInfo,
|
|
|
- backMoney,
|
|
|
+ backMoney
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -438,8 +457,8 @@ export default {
|
|
|
actualAmount: "",
|
|
|
memberRankSettingId: "",
|
|
|
optionalFlag: null,
|
|
|
- autoActivationFlag: false,
|
|
|
- },
|
|
|
+ autoActivationFlag: false
|
|
|
+ }
|
|
|
],
|
|
|
leBaoList: [{}],
|
|
|
activeList: [{}],
|
|
@@ -453,12 +472,12 @@ export default {
|
|
|
calenderFeeJson: {
|
|
|
discountTotal: "",
|
|
|
allTotal: "",
|
|
|
- sutdentNumber: "",
|
|
|
+ sutdentNumber: ""
|
|
|
},
|
|
|
calenderFeeType: "STUDENT",
|
|
|
musicGroupCalenderRefundPeriods: [{ refundDate: "", refundAmount: "" }],
|
|
|
currentTotalAmount: 0,
|
|
|
- contractUrl: "",
|
|
|
+ contractUrl: ""
|
|
|
},
|
|
|
teamCourse: false,
|
|
|
member: false,
|
|
@@ -488,7 +507,7 @@ export default {
|
|
|
minHalfYearFee: null,
|
|
|
maxHalfYearFee: null,
|
|
|
minYearFee: null,
|
|
|
- maxYearFee: null,
|
|
|
+ maxYearFee: null
|
|
|
},
|
|
|
dialogSubjectVisible: false, // 预览
|
|
|
dialogSubjectList: [],
|
|
@@ -497,7 +516,7 @@ export default {
|
|
|
tenantId: null,
|
|
|
isField: false,
|
|
|
showAutoActivationFlag: false,
|
|
|
- initDetail: false,
|
|
|
+ initDetail: false
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -521,13 +540,19 @@ export default {
|
|
|
async init() {
|
|
|
this.organId = this.musicGroup?.organId;
|
|
|
this.courseViewType = this.baseInfo?.musicGroup?.courseViewType;
|
|
|
- if (this.courseViewType != 2 && this.$route.query.team_status == "DRAFT") {
|
|
|
+ if (
|
|
|
+ this.courseViewType != 2 &&
|
|
|
+ this.$route.query.team_status == "DRAFT"
|
|
|
+ ) {
|
|
|
// 课程团的创建缴费
|
|
|
this.teamCourse = true;
|
|
|
// 现在课程团不在
|
|
|
// this.teamCourseDisabled = true;
|
|
|
this.form.paymentType = "MUSIC_APPLY";
|
|
|
- } else if (this.courseViewType == 2 && this.$route.query.team_status == "DRAFT") {
|
|
|
+ } else if (
|
|
|
+ this.courseViewType == 2 &&
|
|
|
+ this.$route.query.team_status == "DRAFT"
|
|
|
+ ) {
|
|
|
// 会员团的创建缴费
|
|
|
this.member = true;
|
|
|
this.memberDisabled = true;
|
|
@@ -559,8 +584,8 @@ export default {
|
|
|
// 说明是修改 查缴项目详情
|
|
|
this.initDetail = true;
|
|
|
await getMusicGroupPaymentCalenderDetail({
|
|
|
- id: this.$route.query.calenderId,
|
|
|
- }).then((res) => {
|
|
|
+ id: this.$route.query.calenderId
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
if (res.data?.calender?.musicGroupOrganizationCourseSettingId) {
|
|
|
this.form.leixing = "1";
|
|
@@ -577,11 +602,15 @@ export default {
|
|
|
) {
|
|
|
this.$set(this.form, "paymentDate", [
|
|
|
res.data?.calender?.startPaymentDate,
|
|
|
- res.data?.calender?.deadlinePaymentDate,
|
|
|
+ res.data?.calender?.deadlinePaymentDate
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
- this.$set(this.form, "contractUrl", res.data?.calender?.contractUrl);
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "contractUrl",
|
|
|
+ res.data?.calender?.contractUrl
|
|
|
+ );
|
|
|
this.$set(this.form, "memo", res.data?.calender?.memo);
|
|
|
|
|
|
this.$set(
|
|
@@ -592,14 +621,19 @@ export default {
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
"isShowMusicInsuranceForPay",
|
|
|
- res.data?.calender?.paymentItemShowState?.isShowMusicInsuranceForPay
|
|
|
+ res.data?.calender?.paymentItemShowState
|
|
|
+ ?.isShowMusicInsuranceForPay
|
|
|
);
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
"isShowVipCourseForPay",
|
|
|
res.data?.calender?.paymentItemShowState?.isShowVipCourseForPay
|
|
|
);
|
|
|
- this.$set(this.form, "isShowSalePrice", res.data?.calender?.isShowSalePrice);
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "isShowSalePrice",
|
|
|
+ res.data?.calender?.isShowSalePrice
|
|
|
+ );
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
"isShowMusicCourseForPay",
|
|
@@ -626,7 +660,11 @@ export default {
|
|
|
this.$set(this.form, "eclass", res.data?.course);
|
|
|
console.log([...res.data?.course], "res.data?.course");
|
|
|
this.initDetail = true;
|
|
|
- this.$set(this.form, "payUserType", res.data?.calender?.payUserType);
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "payUserType",
|
|
|
+ res.data?.calender?.payUserType
|
|
|
+ );
|
|
|
|
|
|
this.$set(
|
|
|
this.form,
|
|
@@ -668,7 +706,7 @@ export default {
|
|
|
this.teamActive = true;
|
|
|
|
|
|
this.$set(this.form, "activeList", res.data.activity);
|
|
|
- this.form.activeList.forEach((active) => {
|
|
|
+ this.form.activeList.forEach(active => {
|
|
|
active.vipGroupCategoryNames = active.categoryName;
|
|
|
});
|
|
|
}
|
|
@@ -686,8 +724,8 @@ export default {
|
|
|
page: 1,
|
|
|
status: "PROGRESS",
|
|
|
activityChannel: 1,
|
|
|
- enable: true,
|
|
|
- }).then((res) => {
|
|
|
+ enable: true
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.activeList = res.data.rows;
|
|
|
if (this.activeList.length <= 0) {
|
|
@@ -709,9 +747,11 @@ export default {
|
|
|
try {
|
|
|
const res = await sysConfigList({ group: "DEFAULT" });
|
|
|
const paramName = "cloud_price_range";
|
|
|
- res.data.forEach((item) => {
|
|
|
+ res.data.forEach(item => {
|
|
|
if (item.paramName == paramName) {
|
|
|
- const itemValue = item.paranValue ? JSON.parse(item.paranValue) : null;
|
|
|
+ const itemValue = item.paranValue
|
|
|
+ ? JSON.parse(item.paranValue)
|
|
|
+ : null;
|
|
|
if (itemValue) {
|
|
|
this.rulesForm = itemValue;
|
|
|
}
|
|
@@ -725,7 +765,7 @@ export default {
|
|
|
try {
|
|
|
const res = await getSysTenantConfig({ group: "MUSIC_REPAIR" });
|
|
|
this.leBaoInfo = res.data;
|
|
|
- res.data.forEach((element) => {
|
|
|
+ res.data.forEach(element => {
|
|
|
if (element.id == 188) {
|
|
|
this.isShowLeBao = !!element.paranValue;
|
|
|
}
|
|
@@ -748,15 +788,14 @@ export default {
|
|
|
},
|
|
|
async getCharges() {
|
|
|
const organId = this.musicGroup?.organId;
|
|
|
- const chargeTypeId = this.musicGroup?.chargeTypeId;
|
|
|
- this.chargeTypeName = this.musicGroup?.chargeTypeName;
|
|
|
+ const courseViewType = this.musicGroup?.courseViewType;
|
|
|
try {
|
|
|
const res = await musicGroupOrganizationCourseSettingsQueryPage({
|
|
|
row: 9999,
|
|
|
- chargeTypeId,
|
|
|
- organId,
|
|
|
+ courseViewType,
|
|
|
+ organId
|
|
|
});
|
|
|
- const ids = res.data.rows.map((item) => item.id);
|
|
|
+ const ids = res.data.rows.map(item => item.id);
|
|
|
if (!ids.includes(this.form.musicGroupOrganizationCourseSettingId)) {
|
|
|
this.$set(this.form, "musicGroupOrganizationCourseSettingId", null);
|
|
|
}
|
|
@@ -782,13 +821,13 @@ export default {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
path: "/business/resetTeaming",
|
|
|
- query,
|
|
|
+ query
|
|
|
});
|
|
|
} else if (query.type == "look") {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
path: "/business/resetTeaming",
|
|
|
- query,
|
|
|
+ query
|
|
|
});
|
|
|
} else if (
|
|
|
query.type == "teamDraft" ||
|
|
@@ -798,25 +837,32 @@ export default {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
path: "/business/resetTeaming",
|
|
|
- query,
|
|
|
+ query
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
formatCourse() {
|
|
|
// 格式化课程类型
|
|
|
const organId = this.musicGroup?.organId;
|
|
|
- const chargeTypeId = this.musicGroup?.chargeTypeId;
|
|
|
+ const courseViewType = this.musicGroup?.courseViewType;
|
|
|
+ console.log(
|
|
|
+ this.musicGroup.courseViewType,
|
|
|
+ "musicGroup.courseViewType",
|
|
|
+ this.organizationCourseUnitPriceSettings
|
|
|
+ );
|
|
|
const _ = {};
|
|
|
const list = (this.organizationCourseUnitPriceSettings || []).filter(
|
|
|
- (item) =>
|
|
|
+ item =>
|
|
|
organId &&
|
|
|
organId == item.organId &&
|
|
|
- chargeTypeId &&
|
|
|
- chargeTypeId == item.chargeTypeId
|
|
|
+ courseViewType != null &&
|
|
|
+ courseViewType == item.courseViewType
|
|
|
);
|
|
|
+ console.log(list, "list");
|
|
|
for (const item of list) {
|
|
|
_[item.courseType] = item;
|
|
|
}
|
|
|
+
|
|
|
this.organizationCourseUnitPriceSettingsByType = _;
|
|
|
return _;
|
|
|
},
|
|
@@ -846,7 +892,9 @@ export default {
|
|
|
if (item.isStudentOptional) {
|
|
|
first += item.courseCurrentPrice;
|
|
|
} else {
|
|
|
- const floorMoney = Math.floor(item.courseCurrentPrice / this.cycles.length);
|
|
|
+ const floorMoney = Math.floor(
|
|
|
+ item.courseCurrentPrice / this.cycles.length
|
|
|
+ );
|
|
|
const remainder = item.courseCurrentPrice % this.cycles.length;
|
|
|
first += floorMoney + remainder;
|
|
|
other += floorMoney;
|
|
@@ -874,35 +922,33 @@ export default {
|
|
|
this.$set(
|
|
|
this.form,
|
|
|
"activeList",
|
|
|
- this.form.activeList.filter((item) => !!item)
|
|
|
+ this.form.activeList.filter(item => !!item)
|
|
|
);
|
|
|
},
|
|
|
removeExtraClass(index) {
|
|
|
this.form.eclass[index] = null;
|
|
|
- this.$set(
|
|
|
- this.form,
|
|
|
- "eclass",
|
|
|
- this.form.eclass.filter((item) => !!item)
|
|
|
- );
|
|
|
+ this.$set(this.form, "eclass", this.form.eclass.filter(item => !!item));
|
|
|
// this.form.eclass = this.form.eclass.filter((item) => !!item);
|
|
|
},
|
|
|
async onPreview() {
|
|
|
// 开始预览
|
|
|
const musicGroupId = this.$route.query.id;
|
|
|
- await findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.dialogSubjectList = res.data.musicGroupSubjectPlans;
|
|
|
- // 默认预览第一个
|
|
|
- if (this.dialogSubjectList.length <= 0) {
|
|
|
- this.$message.error("请先设置声部信息");
|
|
|
- return;
|
|
|
+ await findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then(
|
|
|
+ res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.dialogSubjectList = res.data.musicGroupSubjectPlans;
|
|
|
+ // 默认预览第一个
|
|
|
+ if (this.dialogSubjectList.length <= 0) {
|
|
|
+ this.$message.error("请先设置声部信息");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.activeName = this.dialogSubjectList[0].subjectId.toString();
|
|
|
+ this.dialogSubjectVisible = true;
|
|
|
+ } else {
|
|
|
+ this.$message.warning("没有可预览的声部");
|
|
|
}
|
|
|
- this.activeName = this.dialogSubjectList[0].subjectId.toString();
|
|
|
- this.dialogSubjectVisible = true;
|
|
|
- } else {
|
|
|
- this.$message.warning("没有可预览的声部");
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
},
|
|
|
checkType() {
|
|
|
this.$refs.form.validate();
|
|
@@ -918,7 +964,7 @@ export default {
|
|
|
{
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}
|
|
|
)
|
|
|
.then(() => {
|
|
@@ -938,12 +984,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
onSubmit() {
|
|
|
- this.$refs.form.validate(async (isok) => {
|
|
|
+ this.$refs.form.validate(async isok => {
|
|
|
if (isok) {
|
|
|
let obj = this.fommatDate();
|
|
|
if (obj.payUserType == "SCHOOL") {
|
|
|
let total = 0;
|
|
|
- this.form.musicGroupCalenderRefundPeriods.forEach((item) => {
|
|
|
+ this.form.musicGroupCalenderRefundPeriods.forEach(item => {
|
|
|
total += item.refundAmount * 1;
|
|
|
});
|
|
|
if (total != this.form.currentTotalAmount) {
|
|
@@ -964,7 +1010,7 @@ export default {
|
|
|
res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
|
|
|
"提示",
|
|
|
{
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}
|
|
|
);
|
|
|
obj.confirmCreate = true;
|
|
@@ -987,7 +1033,7 @@ export default {
|
|
|
res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
|
|
|
"提示",
|
|
|
{
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
}
|
|
|
);
|
|
|
obj.confirmCreate = true;
|
|
@@ -1019,7 +1065,7 @@ export default {
|
|
|
// 值有start,center,end,nearest,当前显示在视图区域中间
|
|
|
block: "center",
|
|
|
// 值有auto、instant,smooth,缓动动画(当前是慢速的)
|
|
|
- behavior: "smooth",
|
|
|
+ behavior: "smooth"
|
|
|
});
|
|
|
break; // 跳出循环了
|
|
|
}
|
|
@@ -1032,17 +1078,18 @@ export default {
|
|
|
let tmpActiveList = form.activeList?.length > 0 ? form.activeList : [];
|
|
|
let activeList = [];
|
|
|
if (tmpActiveList.length > 0) {
|
|
|
- tmpActiveList.forEach((active) => {
|
|
|
+ tmpActiveList.forEach(active => {
|
|
|
if (active.activityId) {
|
|
|
active.categoryName = active.vipGroupCategoryNames;
|
|
|
activeList.push(active);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- let memberObj = form.memberList?.length > 0 ? { ...form.memberList[0] } : null;
|
|
|
+ let memberObj =
|
|
|
+ form.memberList?.length > 0 ? { ...form.memberList[0] } : null;
|
|
|
// 获取会员名称
|
|
|
if (memberObj) {
|
|
|
- this.memberRankList.forEach((item) => {
|
|
|
+ this.memberRankList.forEach(item => {
|
|
|
if (item.id == memberObj.memberRankSettingId) {
|
|
|
memberObj.name = item.name;
|
|
|
}
|
|
@@ -1052,7 +1099,7 @@ export default {
|
|
|
let tempCourseList = form.eclass?.length > 0 ? form.eclass : [];
|
|
|
let courseList = [];
|
|
|
if (tempCourseList.length > 0) {
|
|
|
- tempCourseList.forEach((course) => {
|
|
|
+ tempCourseList.forEach(course => {
|
|
|
if (course.courseType) {
|
|
|
course.isStudentOptional = true;
|
|
|
courseList.push(course);
|
|
@@ -1064,7 +1111,7 @@ export default {
|
|
|
musicGroup: this.musicGroup,
|
|
|
paymentCalender: {
|
|
|
calender: {
|
|
|
- isShowSalePrice: form.isShowSalePrice,
|
|
|
+ isShowSalePrice: form.isShowSalePrice
|
|
|
},
|
|
|
activity: [...activeList], // 小班课
|
|
|
course: courseList, // 课程
|
|
@@ -1075,12 +1122,12 @@ export default {
|
|
|
this.isShowLeBao &&
|
|
|
this.$route.query.team_status != "PROGRESS"
|
|
|
? { ...form.leBaoList[0], optionalFlag: false }
|
|
|
- : null, // 乐保
|
|
|
+ : null // 乐保
|
|
|
},
|
|
|
isShowMemberForPay: form.isShowMemberForPay,
|
|
|
isShowMusicInsuranceForPay: form.isShowMusicInsuranceForPay,
|
|
|
isShowVipCourseForPay: form.isShowVipCourseForPay,
|
|
|
- isShowMusicCourseForPay: form.isShowMusicCourseForPay,
|
|
|
+ isShowMusicCourseForPay: form.isShowMusicCourseForPay
|
|
|
};
|
|
|
},
|
|
|
fommatDate() {
|
|
@@ -1095,7 +1142,9 @@ export default {
|
|
|
calenderActivityList:
|
|
|
this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
|
musicRepair:
|
|
|
- this.form.leBaoList?.length > 0 ? { ...this.form.leBaoList[0] } : null,
|
|
|
+ this.form.leBaoList?.length > 0
|
|
|
+ ? { ...this.form.leBaoList[0] }
|
|
|
+ : null,
|
|
|
calenderMember:
|
|
|
this.form.memberList?.length > 0 &&
|
|
|
this.form.memberList[0]?.memberRankSettingId
|
|
@@ -1108,9 +1157,9 @@ export default {
|
|
|
isShowMemberForPay: this.form.isShowMemberForPay,
|
|
|
isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
|
|
|
isShowVipCourseForPay: this.form.isShowVipCourseForPay,
|
|
|
- isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
|
|
|
+ isShowMusicCourseForPay: this.form.isShowMusicCourseForPay
|
|
|
}),
|
|
|
- isShowSalePrice: this.form.isShowSalePrice,
|
|
|
+ isShowSalePrice: this.form.isShowSalePrice
|
|
|
};
|
|
|
} else {
|
|
|
let calenderFeeJson = this.form.calenderFeeJson;
|
|
@@ -1128,7 +1177,9 @@ export default {
|
|
|
calenderActivityList:
|
|
|
this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
|
musicRepair:
|
|
|
- this.form.leBaoList?.length > 0 ? { ...this.form.leBaoList[0] } : null,
|
|
|
+ this.form.leBaoList?.length > 0
|
|
|
+ ? { ...this.form.leBaoList[0] }
|
|
|
+ : null,
|
|
|
calenderMember:
|
|
|
this.form.memberList?.length > 0 &&
|
|
|
this.form.memberList[0]?.memberRankSettingId
|
|
@@ -1141,13 +1192,14 @@ export default {
|
|
|
isShowMemberForPay: this.form.isShowMemberForPay,
|
|
|
isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
|
|
|
isShowVipCourseForPay: this.form.isShowVipCourseForPay,
|
|
|
- isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
|
|
|
+ isShowMusicCourseForPay: this.form.isShowMusicCourseForPay
|
|
|
}),
|
|
|
calenderFeeType: this.form.calenderFeeType,
|
|
|
calenderFeeJson: JSON.stringify(calenderFeeJson),
|
|
|
- musicGroupCalenderRefundPeriods: this.form.musicGroupCalenderRefundPeriods,
|
|
|
+ musicGroupCalenderRefundPeriods: this.form
|
|
|
+ .musicGroupCalenderRefundPeriods,
|
|
|
currentTotalAmount: this.form.currentTotalAmount,
|
|
|
- contractUrl: this.form.contractUrl,
|
|
|
+ contractUrl: this.form.contractUrl
|
|
|
};
|
|
|
}
|
|
|
},
|
|
@@ -1166,7 +1218,8 @@ export default {
|
|
|
this.form.calenderFeeJson.allTotal = val;
|
|
|
if (this.form.calenderFeeJson.discountTotal) {
|
|
|
this.form.currentTotalAmount =
|
|
|
- this.form.calenderFeeJson.allTotal - this.form.calenderFeeJson.discountTotal;
|
|
|
+ this.form.calenderFeeJson.allTotal -
|
|
|
+ this.form.calenderFeeJson.discountTotal;
|
|
|
} else {
|
|
|
this.form.currentTotalAmount = this.form.calenderFeeJson.allTotal;
|
|
|
}
|
|
@@ -1175,7 +1228,7 @@ export default {
|
|
|
},
|
|
|
currentTotalAmount(val) {
|
|
|
this.$set(this.form, "currentTotalAmount", val);
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
teamCourse(val) {
|
|
@@ -1209,19 +1262,19 @@ export default {
|
|
|
return;
|
|
|
} else {
|
|
|
let arr = [];
|
|
|
- newValue.forEach((item) => {
|
|
|
+ newValue.forEach(item => {
|
|
|
arr.push({
|
|
|
courseType: item.courseType,
|
|
|
teacherNumber: 0,
|
|
|
courseNumber: 0,
|
|
|
- courseCurrentPrice: 0,
|
|
|
+ courseCurrentPrice: 0
|
|
|
});
|
|
|
});
|
|
|
|
|
|
this.$set(this.form, "teacherFeeList", arr);
|
|
|
}
|
|
|
},
|
|
|
- deep: true,
|
|
|
+ deep: true
|
|
|
},
|
|
|
// "form.calenderFeeType"(val, oldValue) {
|
|
|
// if (val == "TEACHER" && !oldValue) {
|
|
@@ -1247,12 +1300,12 @@ export default {
|
|
|
console.log(val, oldValue, this.initDetail);
|
|
|
if (val == "TEACHER" && !this.initDetail) {
|
|
|
let arr = [];
|
|
|
- this.form.eclass.forEach((item) => {
|
|
|
+ this.form.eclass.forEach(item => {
|
|
|
arr.push({
|
|
|
courseType: item.courseType,
|
|
|
teacherNumber: 0,
|
|
|
courseNumber: 0,
|
|
|
- courseCurrentPrice: 0,
|
|
|
+ courseCurrentPrice: 0
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -1265,14 +1318,13 @@ export default {
|
|
|
if (val && !this.isSetCourseSettingsId) {
|
|
|
try {
|
|
|
const res = await queryByMusicGroupOrganizationCourseSettingsId({
|
|
|
- id: val,
|
|
|
+ id: val
|
|
|
});
|
|
|
- let CourseSettingDetail = res.data.map((course) => {
|
|
|
+ let CourseSettingDetail = res.data.map(course => {
|
|
|
return {
|
|
|
- ...course,
|
|
|
+ ...course
|
|
|
};
|
|
|
});
|
|
|
- console.log("获取musicGroupOrganizationCourseSettingId重置eclass");
|
|
|
this.$set(this.form, "eclass", res.data);
|
|
|
// this.syncAllMoney();
|
|
|
} catch (error) {}
|
|
@@ -1285,7 +1337,11 @@ export default {
|
|
|
this.cycle = {};
|
|
|
|
|
|
if (val != "1") {
|
|
|
- this.$set(this.form, "musicGroupOrganizationCourseSettingId", undefined);
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "musicGroupOrganizationCourseSettingId",
|
|
|
+ undefined
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
// this.$set(this.cycle, "paymentAmount", undefined);
|
|
@@ -1296,7 +1352,7 @@ export default {
|
|
|
this.$set(this.form, "eclass", [{}]);
|
|
|
}
|
|
|
this.isSetCourseSettingsId = false;
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
musicGroup() {
|
|
@@ -1304,8 +1360,8 @@ export default {
|
|
|
},
|
|
|
Eclass() {
|
|
|
return JSON.parse(JSON.stringify(this.form.eclass));
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -1349,7 +1405,7 @@ export default {
|
|
|
}
|
|
|
.baseWrapFixed {
|
|
|
top: 105px;
|
|
|
- left: 210px; // 205
|
|
|
+ left: 215px; // 205
|
|
|
position: fixed;
|
|
|
background-color: #fff;
|
|
|
width: calc(100% - 220px);
|