|
@@ -5,7 +5,9 @@
|
|
<el-page-header
|
|
<el-page-header
|
|
@back="goback"
|
|
@back="goback"
|
|
style="padding-bottom: 30px"
|
|
style="padding-bottom: 30px"
|
|
- :content='$route.query.payUserType == "SCHOOL"?"学校缴费":"学员缴费"'
|
|
|
|
|
|
+ :content="
|
|
|
|
+ $route.query.payUserType == 'SCHOOL' ? '学校缴费' : '学员缴费'
|
|
|
|
+ "
|
|
>
|
|
>
|
|
</el-page-header>
|
|
</el-page-header>
|
|
<div class="m-core">
|
|
<div class="m-core">
|
|
@@ -134,10 +136,12 @@
|
|
leBao ? 'active' : '',
|
|
leBao ? 'active' : '',
|
|
leBaoDisabled ? 'disabled' : '',
|
|
leBaoDisabled ? 'disabled' : '',
|
|
]"
|
|
]"
|
|
- @click.prevent="()=>{
|
|
|
|
- if(leBaoDisabled)return
|
|
|
|
- leBao = !leBao
|
|
|
|
- }"
|
|
|
|
|
|
+ @click.prevent="
|
|
|
|
+ () => {
|
|
|
|
+ if (leBaoDisabled) return;
|
|
|
|
+ leBao = !leBao;
|
|
|
|
+ }
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<p>乐保</p>
|
|
<p>乐保</p>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
@@ -151,10 +155,12 @@
|
|
teamActive ? 'active' : '',
|
|
teamActive ? 'active' : '',
|
|
teamActiveDisabled ? 'disabled' : '',
|
|
teamActiveDisabled ? 'disabled' : '',
|
|
]"
|
|
]"
|
|
- @click.prevent="()=>{
|
|
|
|
- if(teamActiveDisabled)return
|
|
|
|
- teamActive = !teamActive
|
|
|
|
- }"
|
|
|
|
|
|
+ @click.prevent="
|
|
|
|
+ () => {
|
|
|
|
+ if (teamActiveDisabled) return;
|
|
|
|
+ teamActive = !teamActive;
|
|
|
|
+ }
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<p>乐团活动</p>
|
|
<p>乐团活动</p>
|
|
<el-checkbox
|
|
<el-checkbox
|
|
@@ -216,14 +222,12 @@ import {
|
|
} from "@/api/specialSetting";
|
|
} from "@/api/specialSetting";
|
|
import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
import {
|
|
import {
|
|
- musicGroupPaymentCalenderAdd,
|
|
|
|
- musicGroupPaymentCalenderDetailBatchUpdate,
|
|
|
|
queryByMusicGroupOrganizationCourseSettingsId,
|
|
queryByMusicGroupOrganizationCourseSettingsId,
|
|
- musicGroupPaymentCalenderView,
|
|
|
|
getAllmemberRank,
|
|
getAllmemberRank,
|
|
- getMemberFee,
|
|
|
|
musicGroupcreateCalender,
|
|
musicGroupcreateCalender,
|
|
|
|
+ musicGroupresetCalender,
|
|
} from "../api";
|
|
} from "../api";
|
|
|
|
+import { getMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
|
|
import { vipGroupActivity } from "@/api/vipSeting";
|
|
import { vipGroupActivity } from "@/api/vipSeting";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -240,7 +244,7 @@ export default {
|
|
eclass: [{}],
|
|
eclass: [{}],
|
|
memberList: [
|
|
memberList: [
|
|
{
|
|
{
|
|
- periodEnum: "",
|
|
|
|
|
|
+ period: "",
|
|
num: "",
|
|
num: "",
|
|
actualAmount: "",
|
|
actualAmount: "",
|
|
memberRankSettingId: "",
|
|
memberRankSettingId: "",
|
|
@@ -265,6 +269,7 @@ export default {
|
|
teamActive: false,
|
|
teamActive: false,
|
|
teamActiveDisabled: false,
|
|
teamActiveDisabled: false,
|
|
leBao: false,
|
|
leBao: false,
|
|
|
|
+ leBaoDisabled: false,
|
|
organizationCourseUnitPriceSettings: null,
|
|
organizationCourseUnitPriceSettings: null,
|
|
baseInfo: null,
|
|
baseInfo: null,
|
|
courseViewType: null,
|
|
courseViewType: null,
|
|
@@ -310,8 +315,8 @@ export default {
|
|
if (this.$route.query.payUserType == "SCHOOL") {
|
|
if (this.$route.query.payUserType == "SCHOOL") {
|
|
this.member = false;
|
|
this.member = false;
|
|
this.memberDisabled = true;
|
|
this.memberDisabled = true;
|
|
- this.leBao = false
|
|
|
|
- this.teamActive = false
|
|
|
|
|
|
+ this.leBao = false;
|
|
|
|
+ this.teamActive = false;
|
|
this.leBaoDisabled = true;
|
|
this.leBaoDisabled = true;
|
|
this.teamActiveDisabled = true;
|
|
this.teamActiveDisabled = true;
|
|
}
|
|
}
|
|
@@ -320,7 +325,55 @@ export default {
|
|
await this.getMemberList(); // 获取会员(团练保信息)
|
|
await this.getMemberList(); // 获取会员(团练保信息)
|
|
await this.getLeBao(); // 获取乐保
|
|
await this.getLeBao(); // 获取乐保
|
|
await this.getActive(); // 获取活动
|
|
await this.getActive(); // 获取活动
|
|
- if (this.submitList.length > 0) {
|
|
|
|
|
|
+
|
|
|
|
+ console.log(this.$route.query.calenderId,'calenderId');
|
|
|
|
+ if (this.$route.query.calenderId) {
|
|
|
|
+ // 说明是修改 查缴项目详情
|
|
|
|
+ getMusicGroupPaymentCalenderDetail({
|
|
|
|
+ id: this.$route.query.calenderId,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ if (res.data.member) {
|
|
|
|
+ // 团练保
|
|
|
|
+ this.member = true;
|
|
|
|
+ this.$set(this.form, "memberList"[{ ...res.data.member }]);
|
|
|
|
+ }
|
|
|
|
+ this.$set(this.form, "paymentDate", [
|
|
|
|
+ res.data?.calender?.startPaymentDate,
|
|
|
|
+ res.data?.calender?.deadlinePaymentDate,
|
|
|
|
+ ]);
|
|
|
|
+ this.$set(this.form, "memo", res.data?.calender?.memo);
|
|
|
|
+ this.$set(
|
|
|
|
+ this.form,
|
|
|
|
+ "payUserType",
|
|
|
|
+ res.data?.calender?.payUserType
|
|
|
|
+ );
|
|
|
|
+ if (res.data?.calender?.musicGroupOrganizationCourseSettingId) {
|
|
|
|
+ this.leixing = "1";
|
|
|
|
+ this.$set(
|
|
|
|
+ this.form,
|
|
|
|
+ "musicGroupOrganizationCourseSettingId",
|
|
|
|
+ res.data?.calender?.musicGroupOrganizationCourseSettingId
|
|
|
|
+ );
|
|
|
|
+ } else {
|
|
|
|
+ this.leixing = "2";
|
|
|
|
+ }
|
|
|
|
+ if (res.data.repair) {
|
|
|
|
+ this.leBao = true;
|
|
|
|
+ this.$set(this.form, "leBaoList"[{ ...res.data.repair }]);
|
|
|
|
+ }
|
|
|
|
+ if (res.data?.course?.length > 0) {
|
|
|
|
+ this.teamCourse = true;
|
|
|
|
+ this.$set(this.form, "eclass", res.data.course);
|
|
|
|
+ }
|
|
|
|
+ if (res.data?.activity?.length > 0) {
|
|
|
|
+ this.teamActive = true;
|
|
|
|
+ this.$set(this.form, "activity", res.data.activity);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ if (this.submitList.length > 0) {
|
|
this.$bus.$emit("showguide", this.submitList);
|
|
this.$bus.$emit("showguide", this.submitList);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -498,13 +551,23 @@ export default {
|
|
this.$refs.form.validate(async (isok) => {
|
|
this.$refs.form.validate(async (isok) => {
|
|
if (isok) {
|
|
if (isok) {
|
|
let obj = this.fommatDate();
|
|
let obj = this.fommatDate();
|
|
- console.log(obj);
|
|
|
|
- try {
|
|
|
|
- const res = await musicGroupcreateCalender(obj);
|
|
|
|
- this.$message.success("创建缴费成功");
|
|
|
|
- this.goback();
|
|
|
|
- } catch (e) {
|
|
|
|
- console.log(e);
|
|
|
|
|
|
+ if (this.$route.query.calenderId) {
|
|
|
|
+ obj.calenderId = this.$route.query.calenderId;
|
|
|
|
+ try {
|
|
|
|
+ const res = await musicGroupresetCalender(obj);
|
|
|
|
+ this.$message.success("修改缴费成功");
|
|
|
|
+ this.goback();
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ try {
|
|
|
|
+ const res = await musicGroupcreateCalender(obj);
|
|
|
|
+ this.$message.success("创建缴费成功");
|
|
|
|
+ this.goback();
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -518,7 +581,7 @@ export default {
|
|
startPaymentDate: this.form.paymentDate[0],
|
|
startPaymentDate: this.form.paymentDate[0],
|
|
deadlinePaymentDate: this.form.paymentDate[1],
|
|
deadlinePaymentDate: this.form.paymentDate[1],
|
|
calenderActivityList:
|
|
calenderActivityList:
|
|
- this.form.activeList.length > 0 ? this.form.activeList : null,
|
|
|
|
|
|
+ this.form.activeList?.length > 0 ? this.form.activeList : null,
|
|
musicRepair:
|
|
musicRepair:
|
|
this.form.leBaoList?.length > 0
|
|
this.form.leBaoList?.length > 0
|
|
? { ...this.form.leBaoList[0] }
|
|
? { ...this.form.leBaoList[0] }
|
|
@@ -528,7 +591,7 @@ export default {
|
|
? { ...this.form.memberList[0] }
|
|
? { ...this.form.memberList[0] }
|
|
: null,
|
|
: null,
|
|
musicGroupPaymentCalenderCourseSettingsList:
|
|
musicGroupPaymentCalenderCourseSettingsList:
|
|
- this.form.eclass.length > 0 ? this.form.eclass : null,
|
|
|
|
|
|
+ this.form.eclass?.length > 0 ? this.form.eclass : null,
|
|
musicGroupId: this.$route.query.id,
|
|
musicGroupId: this.$route.query.id,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -723,7 +786,7 @@ export default {
|
|
background-color: #f2f2f2 !important;
|
|
background-color: #f2f2f2 !important;
|
|
/deep/.el-checkbox__inner {
|
|
/deep/.el-checkbox__inner {
|
|
background-color: #fff !important;
|
|
background-color: #fff !important;
|
|
- border-color: #d9d9d9;
|
|
|
|
|
|
+ border-color: #d9d9d9;
|
|
color: #fff;
|
|
color: #fff;
|
|
&::after {
|
|
&::after {
|
|
border-color: #d9d9d9;
|
|
border-color: #d9d9d9;
|