|  | @@ -5,7 +5,9 @@
 | 
	
		
			
				|  |  |          <el-page-header
 | 
	
		
			
				|  |  |            @back="goback"
 | 
	
		
			
				|  |  |            style="padding-bottom: 30px"
 | 
	
		
			
				|  |  | -          :content='$route.query.payUserType == "SCHOOL"?"学校缴费":"学员缴费"'
 | 
	
		
			
				|  |  | +          :content="
 | 
	
		
			
				|  |  | +            $route.query.payUserType == 'SCHOOL' ? '学校缴费' : '学员缴费'
 | 
	
		
			
				|  |  | +          "
 | 
	
		
			
				|  |  |          >
 | 
	
		
			
				|  |  |          </el-page-header>
 | 
	
		
			
				|  |  |          <div class="m-core">
 | 
	
	
		
			
				|  | @@ -134,10 +136,12 @@
 | 
	
		
			
				|  |  |                    leBao ? 'active' : '',
 | 
	
		
			
				|  |  |                    leBaoDisabled ? 'disabled' : '',
 | 
	
		
			
				|  |  |                  ]"
 | 
	
		
			
				|  |  | -                @click.prevent="()=>{
 | 
	
		
			
				|  |  | -                  if(leBaoDisabled)return
 | 
	
		
			
				|  |  | -                  leBao = !leBao
 | 
	
		
			
				|  |  | -                }"
 | 
	
		
			
				|  |  | +                @click.prevent="
 | 
	
		
			
				|  |  | +                  () => {
 | 
	
		
			
				|  |  | +                    if (leBaoDisabled) return;
 | 
	
		
			
				|  |  | +                    leBao = !leBao;
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                "
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  |                  <p>乐保</p>
 | 
	
		
			
				|  |  |                  <el-checkbox
 | 
	
	
		
			
				|  | @@ -151,10 +155,12 @@
 | 
	
		
			
				|  |  |                    teamActive ? 'active' : '',
 | 
	
		
			
				|  |  |                    teamActiveDisabled ? 'disabled' : '',
 | 
	
		
			
				|  |  |                  ]"
 | 
	
		
			
				|  |  | -                @click.prevent="()=>{
 | 
	
		
			
				|  |  | -                  if(teamActiveDisabled)return
 | 
	
		
			
				|  |  | -                  teamActive = !teamActive
 | 
	
		
			
				|  |  | -                }"
 | 
	
		
			
				|  |  | +                @click.prevent="
 | 
	
		
			
				|  |  | +                  () => {
 | 
	
		
			
				|  |  | +                    if (teamActiveDisabled) return;
 | 
	
		
			
				|  |  | +                    teamActive = !teamActive;
 | 
	
		
			
				|  |  | +                  }
 | 
	
		
			
				|  |  | +                "
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  |                  <p>乐团活动</p>
 | 
	
		
			
				|  |  |                  <el-checkbox
 | 
	
	
		
			
				|  | @@ -216,14 +222,12 @@ import {
 | 
	
		
			
				|  |  |  } from "@/api/specialSetting";
 | 
	
		
			
				|  |  |  import { getSysTenantConfig } from "@/views/courseRulersManager/api";
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  | -  musicGroupPaymentCalenderAdd,
 | 
	
		
			
				|  |  | -  musicGroupPaymentCalenderDetailBatchUpdate,
 | 
	
		
			
				|  |  |    queryByMusicGroupOrganizationCourseSettingsId,
 | 
	
		
			
				|  |  | -  musicGroupPaymentCalenderView,
 | 
	
		
			
				|  |  |    getAllmemberRank,
 | 
	
		
			
				|  |  | -  getMemberFee,
 | 
	
		
			
				|  |  |    musicGroupcreateCalender,
 | 
	
		
			
				|  |  | +  musicGroupresetCalender,
 | 
	
		
			
				|  |  |  } from "../api";
 | 
	
		
			
				|  |  | +import { getMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
 | 
	
		
			
				|  |  |  import { vipGroupActivity } from "@/api/vipSeting";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    components: {
 | 
	
	
		
			
				|  | @@ -240,7 +244,7 @@ export default {
 | 
	
		
			
				|  |  |          eclass: [{}],
 | 
	
		
			
				|  |  |          memberList: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            periodEnum: "",
 | 
	
		
			
				|  |  | +            period: "",
 | 
	
		
			
				|  |  |              num: "",
 | 
	
		
			
				|  |  |              actualAmount: "",
 | 
	
		
			
				|  |  |              memberRankSettingId: "",
 | 
	
	
		
			
				|  | @@ -265,6 +269,7 @@ export default {
 | 
	
		
			
				|  |  |        teamActive: false,
 | 
	
		
			
				|  |  |        teamActiveDisabled: false,
 | 
	
		
			
				|  |  |        leBao: false,
 | 
	
		
			
				|  |  | +      leBaoDisabled: false,
 | 
	
		
			
				|  |  |        organizationCourseUnitPriceSettings: null,
 | 
	
		
			
				|  |  |        baseInfo: null,
 | 
	
		
			
				|  |  |        courseViewType: null,
 | 
	
	
		
			
				|  | @@ -310,8 +315,8 @@ export default {
 | 
	
		
			
				|  |  |        if (this.$route.query.payUserType == "SCHOOL") {
 | 
	
		
			
				|  |  |          this.member = false;
 | 
	
		
			
				|  |  |          this.memberDisabled = true;
 | 
	
		
			
				|  |  | -        this.leBao = false
 | 
	
		
			
				|  |  | -        this.teamActive = false
 | 
	
		
			
				|  |  | +        this.leBao = false;
 | 
	
		
			
				|  |  | +        this.teamActive = false;
 | 
	
		
			
				|  |  |          this.leBaoDisabled = true;
 | 
	
		
			
				|  |  |          this.teamActiveDisabled = true;
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -324,6 +329,57 @@ export default {
 | 
	
		
			
				|  |  |          this.$bus.$emit("showguide", this.submitList);
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +         console.log(this.$route.query.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);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getActive() {
 | 
	
		
			
				|  |  |        return vipGroupActivity({
 | 
	
	
		
			
				|  | @@ -498,13 +554,23 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs.form.validate(async (isok) => {
 | 
	
		
			
				|  |  |          if (isok) {
 | 
	
		
			
				|  |  |            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 +584,7 @@ export default {
 | 
	
		
			
				|  |  |          startPaymentDate: this.form.paymentDate[0],
 | 
	
		
			
				|  |  |          deadlinePaymentDate: this.form.paymentDate[1],
 | 
	
		
			
				|  |  |          calenderActivityList:
 | 
	
		
			
				|  |  | -          this.form.activeList.length > 0 ? this.form.activeList : null,
 | 
	
		
			
				|  |  | +          this.form.activeList?.length > 0 ? this.form.activeList : null,
 | 
	
		
			
				|  |  |          musicRepair:
 | 
	
		
			
				|  |  |            this.form.leBaoList?.length > 0
 | 
	
		
			
				|  |  |              ? { ...this.form.leBaoList[0] }
 | 
	
	
		
			
				|  | @@ -528,7 +594,7 @@ export default {
 | 
	
		
			
				|  |  |              ? { ...this.form.memberList[0] }
 | 
	
		
			
				|  |  |              : null,
 | 
	
		
			
				|  |  |          musicGroupPaymentCalenderCourseSettingsList:
 | 
	
		
			
				|  |  | -          this.form.eclass.length > 0 ? this.form.eclass : null,
 | 
	
		
			
				|  |  | +          this.form.eclass?.length > 0 ? this.form.eclass : null,
 | 
	
		
			
				|  |  |          musicGroupId: this.$route.query.id,
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -723,7 +789,7 @@ export default {
 | 
	
		
			
				|  |  |          background-color: #f2f2f2 !important;
 | 
	
		
			
				|  |  |          /deep/.el-checkbox__inner {
 | 
	
		
			
				|  |  |            background-color: #fff !important;
 | 
	
		
			
				|  |  | -           border-color: #d9d9d9;
 | 
	
		
			
				|  |  | +          border-color: #d9d9d9;
 | 
	
		
			
				|  |  |            color: #fff;
 | 
	
		
			
				|  |  |            &::after {
 | 
	
		
			
				|  |  |              border-color: #d9d9d9;
 |