|  | @@ -588,8 +588,7 @@ export default {
 | 
	
		
			
				|  |  |                this.form.leixing = "1";
 | 
	
		
			
				|  |  |                this.form.musicGroupOrganizationCourseSettingId =
 | 
	
		
			
				|  |  |                  res.data?.calender?.musicGroupOrganizationCourseSettingId;
 | 
	
		
			
				|  |  | -                this.isSetCourseSettingsId = true;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +              this.isSetCourseSettingsId = true;
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                this.form.leixing = "2";
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -651,7 +650,7 @@ export default {
 | 
	
		
			
				|  |  |                  this.teamCourse = true;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  this.$set(this.form, "eclass", res.data?.course);
 | 
	
		
			
				|  |  | -                console.log([...res.data?.course],'res.data?.course')
 | 
	
		
			
				|  |  | +                console.log([...res.data?.course], "res.data?.course");
 | 
	
		
			
				|  |  |                  this.initDetail = true;
 | 
	
		
			
				|  |  |                  this.$set(
 | 
	
		
			
				|  |  |                    this.form,
 | 
	
	
		
			
				|  | @@ -682,21 +681,22 @@ export default {
 | 
	
		
			
				|  |  |                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                });
 | 
	
		
			
				|  |  | -            }else{
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                this.$set(
 | 
	
		
			
				|  |  | -                  this.form,
 | 
	
		
			
				|  |  | -                  "calenderFeeType",
 | 
	
		
			
				|  |  | -                  res.data?.calender?.calenderFeeType
 | 
	
		
			
				|  |  | -                );
 | 
	
		
			
				|  |  | -                this.$set(
 | 
	
		
			
				|  |  | -                  this.form,
 | 
	
		
			
				|  |  | -                  "musicGroupCalenderRefundPeriods",
 | 
	
		
			
				|  |  | -                  res.data?.calenderRefundPeriods
 | 
	
		
			
				|  |  | -                );
 | 
	
		
			
				|  |  | +                this.form,
 | 
	
		
			
				|  |  | +                "calenderFeeType",
 | 
	
		
			
				|  |  | +                res.data?.calender?.calenderFeeType
 | 
	
		
			
				|  |  | +              );
 | 
	
		
			
				|  |  | +              this.$set(
 | 
	
		
			
				|  |  | +                this.form,
 | 
	
		
			
				|  |  | +                "musicGroupCalenderRefundPeriods",
 | 
	
		
			
				|  |  | +                res.data?.calenderRefundPeriods
 | 
	
		
			
				|  |  | +              );
 | 
	
		
			
				|  |  |                let calenderFeeJson = res.data?.calender?.calenderFeeJson;
 | 
	
		
			
				|  |  | -                if (calenderFeeJson) {
 | 
	
		
			
				|  |  | -                  calenderFeeJson = JSON.parse(calenderFeeJson);
 | 
	
		
			
				|  |  | -                  this.$set(this.form, "calenderFeeJson", calenderFeeJson);}
 | 
	
		
			
				|  |  | +              if (calenderFeeJson) {
 | 
	
		
			
				|  |  | +                calenderFeeJson = JSON.parse(calenderFeeJson);
 | 
	
		
			
				|  |  | +                this.$set(this.form, "calenderFeeJson", calenderFeeJson);
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (res.data?.activity?.length > 0) {
 | 
	
		
			
				|  |  |                this.teamActive = true;
 | 
	
	
		
			
				|  | @@ -944,15 +944,15 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        );
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    checkType(){
 | 
	
		
			
				|  |  | -      this.$refs.form.validate()
 | 
	
		
			
				|  |  | +    checkType() {
 | 
	
		
			
				|  |  | +      this.$refs.form.validate();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      submitForm() {
 | 
	
		
			
				|  |  |        this.$refs.form.validate(async (isok, obj) => {
 | 
	
		
			
				|  |  |          if (isok) {
 | 
	
		
			
				|  |  |            // 学校缴费没有预览
 | 
	
		
			
				|  |  |            if (this.$route.query.payUserType == "SCHOOL") {
 | 
	
		
			
				|  |  | -            this.$confirm("是否创建缴费?", "提示", {
 | 
	
		
			
				|  |  | +            this.$confirm(this.$route.query.calenderId?"是否修改缴费":"是否创建缴费?", "提示", {
 | 
	
		
			
				|  |  |                confirmButtonText: "确定",
 | 
	
		
			
				|  |  |                cancelButtonText: "取消",
 | 
	
		
			
				|  |  |                type: "warning",
 | 
	
	
		
			
				|  | @@ -1044,7 +1044,7 @@ export default {
 | 
	
		
			
				|  |  |          let dom = this.$refs[i];
 | 
	
		
			
				|  |  |          // 这里是针对遍历的情况(多个输入框),取值为数组
 | 
	
		
			
				|  |  |          if (Object.prototype.toString.call(dom) !== "[object Object]") {
 | 
	
		
			
				|  |  | -          if(dom){
 | 
	
		
			
				|  |  | +          if (dom) {
 | 
	
		
			
				|  |  |              dom = dom[0];
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -1206,14 +1206,12 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      setAllTotal(val) {
 | 
	
		
			
				|  |  |        this.form.calenderFeeJson.allTotal = val;
 | 
	
		
			
				|  |  | -      if(this.form.calenderFeeJson.discountTotal){
 | 
	
		
			
				|  |  | +      if (this.form.calenderFeeJson.discountTotal) {
 | 
	
		
			
				|  |  |          this.form.currentTotalAmount =
 | 
	
		
			
				|  |  | -        this.form.calenderFeeJson.allTotal -
 | 
	
		
			
				|  |  | -        this.form.calenderFeeJson.discountTotal;
 | 
	
		
			
				|  |  | -      }else{
 | 
	
		
			
				|  |  | -        this.form.currentTotalAmount =
 | 
	
		
			
				|  |  | -        this.form.calenderFeeJson.allTotal
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +          this.form.calenderFeeJson.allTotal -
 | 
	
		
			
				|  |  | +          this.form.calenderFeeJson.discountTotal;
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        this.form.currentTotalAmount = this.form.calenderFeeJson.allTotal;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        this.$set(this.form, "currentTotalAmount", this.form.currentTotalAmount);
 | 
	
	
		
			
				|  | @@ -1246,9 +1244,9 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      Eclass: {
 | 
	
		
			
				|  |  | -      handler(newValue,oldValue) {
 | 
	
		
			
				|  |  | -        let oldString = JSON.stringify({...oldValue})
 | 
	
		
			
				|  |  | -        let newString = JSON.stringify({...newValue})
 | 
	
		
			
				|  |  | +      handler(newValue, oldValue) {
 | 
	
		
			
				|  |  | +        let oldString = JSON.stringify({ ...oldValue });
 | 
	
		
			
				|  |  | +        let newString = JSON.stringify({ ...newValue });
 | 
	
		
			
				|  |  |          if (this.initDetail || oldString == newString) {
 | 
	
		
			
				|  |  |            this.initDetail = false;
 | 
	
		
			
				|  |  |            return;
 | 
	
	
		
			
				|  | @@ -1272,6 +1270,22 @@ export default {
 | 
	
		
			
				|  |  |        // console.log(val,'form.currentTotalAmount');
 | 
	
		
			
				|  |  |        // this.$forceUpdate()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    "form.calenderFeeType"(val,oldValue) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      if (val == "TEACHER"&&!oldValue) {
 | 
	
		
			
				|  |  | +        let arr = [];
 | 
	
		
			
				|  |  | +        this.form.eclass.forEach((item) => {
 | 
	
		
			
				|  |  | +          arr.push({
 | 
	
		
			
				|  |  | +            courseType: item.courseType,
 | 
	
		
			
				|  |  | +            teacherNumber: 0,
 | 
	
		
			
				|  |  | +            courseNumber: 0,
 | 
	
		
			
				|  |  | +            courseCurrentPrice: 0,
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        this.$set(this.form, "teacherFeeList", arr);
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      async "form.musicGroupOrganizationCourseSettingId"(val) {
 | 
	
		
			
				|  |  |        // && !this.rowDetail !this.$route.query.calenderId
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1285,7 +1299,7 @@ export default {
 | 
	
		
			
				|  |  |                ...course,
 | 
	
		
			
				|  |  |              };
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  | -          console.log('获取musicGroupOrganizationCourseSettingId重置eclass')
 | 
	
		
			
				|  |  | +          console.log("获取musicGroupOrganizationCourseSettingId重置eclass");
 | 
	
		
			
				|  |  |            this.$set(this.form, "eclass", res.data);
 | 
	
		
			
				|  |  |            // this.syncAllMoney();
 | 
	
		
			
				|  |  |          } catch (error) {}
 | 
	
	
		
			
				|  | @@ -1319,9 +1333,9 @@ export default {
 | 
	
		
			
				|  |  |      musicGroup() {
 | 
	
		
			
				|  |  |        return this.baseInfo?.musicGroup;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    Eclass(){
 | 
	
		
			
				|  |  | +    Eclass() {
 | 
	
		
			
				|  |  |        return JSON.parse(JSON.stringify(this.form.eclass));
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 |