|
@@ -32,6 +32,9 @@
|
|
|
form.eclass = [];
|
|
|
form.eclass.push({});
|
|
|
}
|
|
|
+ if (!teamCourse) {
|
|
|
+ form.calenderFeeType = 'STUDENT';
|
|
|
+ }
|
|
|
}
|
|
|
"
|
|
|
>
|
|
@@ -174,11 +177,31 @@
|
|
|
@create="addActive"
|
|
|
@remove="removeActive"
|
|
|
/>
|
|
|
- <paySchoolInfo :form="form" :courseUnitPriceSettingsByType="
|
|
|
+ <paySchoolInfo
|
|
|
+ :form="form"
|
|
|
+ :courseUnitPriceSettingsByType="
|
|
|
organizationCourseUnitPriceSettingsByType
|
|
|
- "/>
|
|
|
+ "
|
|
|
+ :teamCourse="teamCourse"
|
|
|
+ :member="member"
|
|
|
+ :teamActive="teamActive"
|
|
|
+ :leBao="leBao"
|
|
|
+ @setAllTotal="setAllTotal"
|
|
|
+
|
|
|
+ v-if="$route.query.payUserType == 'SCHOOL'"
|
|
|
+ />
|
|
|
+ <backMoney
|
|
|
+ v-if="
|
|
|
+ $route.query.payUserType == 'SCHOOL' &&
|
|
|
+ form.currentTotalAmount > 0
|
|
|
+ "
|
|
|
+ :form="form"
|
|
|
+ />
|
|
|
</div>
|
|
|
- <div class="teamCourseList coreList">
|
|
|
+ <div
|
|
|
+ class="teamCourseList coreList"
|
|
|
+ v-if="$route.query.payUserType == 'STUDENT'"
|
|
|
+ >
|
|
|
<div class="coreTitle">
|
|
|
<p>基础信息设置</p>
|
|
|
</div>
|
|
@@ -366,7 +389,8 @@ import payTeamCourse from "../modals/payTeamCourse";
|
|
|
import payMember from "../modals/payMember";
|
|
|
import payLeBao from "../modals/payLeBao";
|
|
|
import payTeamActive from "../modals/payTeamActive";
|
|
|
-import paySchoolInfo from '../modals/paySchoolInfo'
|
|
|
+import paySchoolInfo from "../modals/paySchoolInfo";
|
|
|
+import backMoney from "../modals/backMoney";
|
|
|
import numeral from "numeral";
|
|
|
import dayjs from "dayjs";
|
|
|
import subjectPreview from "@/views/resetTeaming/modals/subject-preview";
|
|
@@ -396,7 +420,8 @@ export default {
|
|
|
payLeBao,
|
|
|
payTeamActive,
|
|
|
subjectPreview,
|
|
|
- paySchoolInfo
|
|
|
+ paySchoolInfo,
|
|
|
+ backMoney,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -417,20 +442,29 @@ export default {
|
|
|
],
|
|
|
leBaoList: [{}],
|
|
|
activeList: [{}],
|
|
|
+ teacherFeeList: [],
|
|
|
isShowMemberForPay: true,
|
|
|
isShowMusicInsuranceForPay: true,
|
|
|
isShowVipCourseForPay: true,
|
|
|
isShowMusicCourseForPay: true,
|
|
|
leixing: "1",
|
|
|
isShowSalePrice: true,
|
|
|
+ calenderFeeJson: {
|
|
|
+ discountTotal: "",
|
|
|
+ allTotal: "",
|
|
|
+ sutdentNumber: "",
|
|
|
+ },
|
|
|
+ calenderFeeType: "STUDENT",
|
|
|
+ musicGroupCalenderRefundPeriods: [{ refundDate: "", refundAmount: "" }],
|
|
|
+ currentTotalAmount:0
|
|
|
},
|
|
|
teamCourse: false,
|
|
|
- teamCourseDisabled: false,
|
|
|
member: false,
|
|
|
- memberDisabled: false,
|
|
|
teamActive: false,
|
|
|
- teamActiveDisabled: false,
|
|
|
leBao: false,
|
|
|
+ memberDisabled: false,
|
|
|
+ teamCourseDisabled: false,
|
|
|
+ teamActiveDisabled: false,
|
|
|
leBaoDisabled: false,
|
|
|
organizationCourseUnitPriceSettings: null,
|
|
|
baseInfo: null,
|
|
@@ -486,7 +520,7 @@ export default {
|
|
|
this.courseViewType = this.baseInfo?.musicGroup?.courseViewType;
|
|
|
if (
|
|
|
this.courseViewType != 2 &&
|
|
|
- this.$route.query.team_status == "PRE_BUILD_FEE"
|
|
|
+ this.$route.query.team_status == "DRAFT"
|
|
|
) {
|
|
|
// 课程团的创建缴费
|
|
|
this.teamCourse = true;
|
|
@@ -495,7 +529,7 @@ export default {
|
|
|
this.form.paymentType = "MUSIC_APPLY";
|
|
|
} else if (
|
|
|
this.courseViewType == 2 &&
|
|
|
- this.$route.query.team_status == "PRE_BUILD_FEE"
|
|
|
+ this.$route.query.team_status == "DRAFT"
|
|
|
) {
|
|
|
// 会员团的创建缴费
|
|
|
this.member = true;
|
|
@@ -505,12 +539,12 @@ export default {
|
|
|
this.leBaoDisabled = true;
|
|
|
}
|
|
|
if (this.$route.query.payUserType == "SCHOOL") {
|
|
|
- this.member = false;
|
|
|
- this.memberDisabled = true;
|
|
|
+ // this.member = false;
|
|
|
+ // this.memberDisabled = true;
|
|
|
this.leBao = false;
|
|
|
- this.teamActive = false;
|
|
|
this.leBaoDisabled = true;
|
|
|
- this.teamActiveDisabled = true;
|
|
|
+ // this.teamActive = false;
|
|
|
+ // this.teamActiveDisabled = true;
|
|
|
} else {
|
|
|
}
|
|
|
await this.getCharges(); // 续费的选择缴费类型
|
|
@@ -709,7 +743,7 @@ export default {
|
|
|
path: "/business/resetTeaming",
|
|
|
query,
|
|
|
});
|
|
|
- } else if (query.type == "PRE_BUILD_FEE" || query.type == "feeAudit") {
|
|
|
+ } else if (query.type == "teamDraft" || query.type == "feeAudit") {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
path: "/business/resetTeaming",
|
|
@@ -811,6 +845,10 @@ export default {
|
|
|
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 {
|
|
@@ -978,34 +1016,73 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
fommatDate() {
|
|
|
- return {
|
|
|
- payUserType: this.$route.query.payUserType,
|
|
|
- musicGroupOrganizationCourseSettingId:
|
|
|
- this.form.musicGroupOrganizationCourseSettingId || null,
|
|
|
- memo: this.form.memo,
|
|
|
- startPaymentDate: this.form.paymentDate[0],
|
|
|
- deadlinePaymentDate: this.form.paymentDate[1],
|
|
|
- calenderActivityList:
|
|
|
- this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
|
- musicRepair:
|
|
|
- this.form.leBaoList?.length > 0
|
|
|
- ? { ...this.form.leBaoList[0] }
|
|
|
- : null,
|
|
|
- calenderMember:
|
|
|
- this.form.memberList?.length > 0 &&
|
|
|
- this.form.memberList[0]?.memberRankSettingId
|
|
|
- ? { ...this.form.memberList[0] }
|
|
|
- : null,
|
|
|
- musicGroupPaymentCalenderCourseSettingsList:
|
|
|
- this.form.eclass?.length > 0 ? this.form.eclass : null,
|
|
|
- musicGroupId: this.$route.query.id,
|
|
|
- paymentItemShowState: JSON.stringify({
|
|
|
- isShowMemberForPay: this.form.isShowMemberForPay,
|
|
|
- isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
|
|
|
- isShowVipCourseForPay: this.form.isShowVipCourseForPay,
|
|
|
- isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
|
|
|
- }),
|
|
|
- };
|
|
|
+ if (this.$route.query.payUserType == "STUDENT") {
|
|
|
+ return {
|
|
|
+ payUserType: this.$route.query.payUserType,
|
|
|
+ musicGroupOrganizationCourseSettingId:
|
|
|
+ this.form.musicGroupOrganizationCourseSettingId || null,
|
|
|
+ memo: this.form.memo,
|
|
|
+ startPaymentDate: this.form.paymentDate[0],
|
|
|
+ deadlinePaymentDate: this.form.paymentDate[1],
|
|
|
+ calenderActivityList:
|
|
|
+ this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
|
+ musicRepair:
|
|
|
+ this.form.leBaoList?.length > 0
|
|
|
+ ? { ...this.form.leBaoList[0] }
|
|
|
+ : null,
|
|
|
+ calenderMember:
|
|
|
+ this.form.memberList?.length > 0 &&
|
|
|
+ this.form.memberList[0]?.memberRankSettingId
|
|
|
+ ? { ...this.form.memberList[0] }
|
|
|
+ : null,
|
|
|
+ musicGroupPaymentCalenderCourseSettingsList:
|
|
|
+ this.form.eclass?.length > 0 ? this.form.eclass : null,
|
|
|
+ musicGroupId: this.$route.query.id,
|
|
|
+ paymentItemShowState: JSON.stringify({
|
|
|
+ isShowMemberForPay: this.form.isShowMemberForPay,
|
|
|
+ isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
|
|
|
+ isShowVipCourseForPay: this.form.isShowVipCourseForPay,
|
|
|
+ isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
|
|
|
+ }),
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ let calenderFeeJson = this.form.calenderFeeJson;
|
|
|
+ if (this.form.calenderFeeType == "TEACHER") {
|
|
|
+ calenderFeeJson.teacherFeeList = this.form.teacherFeeList;
|
|
|
+ }
|
|
|
+
|
|
|
+ return {
|
|
|
+ payUserType: this.$route.query.payUserType,
|
|
|
+ musicGroupOrganizationCourseSettingId:
|
|
|
+ this.form.musicGroupOrganizationCourseSettingId || null,
|
|
|
+ memo: this.form.memo,
|
|
|
+ calenderActivityList:
|
|
|
+ this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
|
+ musicRepair:
|
|
|
+ this.form.leBaoList?.length > 0
|
|
|
+ ? { ...this.form.leBaoList[0] }
|
|
|
+ : null,
|
|
|
+ calenderMember:
|
|
|
+ this.form.memberList?.length > 0 &&
|
|
|
+ this.form.memberList[0]?.memberRankSettingId
|
|
|
+ ? { ...this.form.memberList[0] }
|
|
|
+ : null,
|
|
|
+ musicGroupPaymentCalenderCourseSettingsList:
|
|
|
+ this.form.eclass?.length > 0 ? this.form.eclass : null,
|
|
|
+ musicGroupId: this.$route.query.id,
|
|
|
+ paymentItemShowState: JSON.stringify({
|
|
|
+ isShowMemberForPay: this.form.isShowMemberForPay,
|
|
|
+ isShowMusicInsuranceForPay: this.form.isShowMusicInsuranceForPay,
|
|
|
+ isShowVipCourseForPay: this.form.isShowVipCourseForPay,
|
|
|
+ isShowMusicCourseForPay: this.form.isShowMusicCourseForPay,
|
|
|
+ }),
|
|
|
+ calenderFeeType: this.form.calenderFeeType,
|
|
|
+ calenderFeeJson: JSON.stringify(calenderFeeJson),
|
|
|
+ musicGroupCalenderRefundPeriods:
|
|
|
+ this.form.musicGroupCalenderRefundPeriods,
|
|
|
+ currentTotalAmount: this.form.currentTotalAmount,
|
|
|
+ };
|
|
|
+ }
|
|
|
},
|
|
|
getScroll() {
|
|
|
this.scrollTop =
|
|
@@ -1018,6 +1095,16 @@ export default {
|
|
|
this.isField = false;
|
|
|
}
|
|
|
},
|
|
|
+ setAllTotal(val) {
|
|
|
+ this.form.calenderFeeJson.allTotal = val;
|
|
|
+ this.form.currentTotalAmount =
|
|
|
+ this.form.calenderFeeJson.allTotal -
|
|
|
+ this.form.calenderFeeJson.discountTotal;
|
|
|
+ this.$set(this.form, "currentTotalAmount", this.form.currentTotalAmount);
|
|
|
+ },
|
|
|
+ currentTotalAmount(val) {
|
|
|
+ this.$set(this.form, "currentTotalAmount", val);
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
teamCourse(val) {
|
|
@@ -1042,21 +1129,25 @@ export default {
|
|
|
this.$set(this.form, "leBaoList", [{}]);
|
|
|
}
|
|
|
},
|
|
|
- 'form.eclass':{
|
|
|
+ "form.eclass": {
|
|
|
handler(newValue, oldValue) {
|
|
|
- console.log(newValue,'form.eclass')
|
|
|
- let arr = []
|
|
|
- newValue.forEach(item=>{
|
|
|
+ console.log(newValue, "form.eclass");
|
|
|
+ let arr = [];
|
|
|
+ newValue.forEach((item) => {
|
|
|
arr.push({
|
|
|
- courseType:item.courseType,
|
|
|
- teacherNumber:0,
|
|
|
- courseNumber:0,
|
|
|
- courseCurrentPrice:0
|
|
|
- })
|
|
|
- })
|
|
|
- this.$set(this.form,'teacherFeeList',arr)
|
|
|
+ courseType: item.courseType,
|
|
|
+ teacherNumber: 0,
|
|
|
+ courseNumber: 0,
|
|
|
+ courseCurrentPrice: 0,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.$set(this.form, "teacherFeeList", arr);
|
|
|
},
|
|
|
- deep: true
|
|
|
+ deep: true,
|
|
|
+ },
|
|
|
+ "form.currentTotalAmount"(val) {
|
|
|
+ // console.log(val,'form.currentTotalAmount');
|
|
|
+ // this.$forceUpdate()
|
|
|
},
|
|
|
async "form.musicGroupOrganizationCourseSettingId"(val) {
|
|
|
// && !this.rowDetail !this.$route.query.calenderId
|