lex 1 year ago
parent
commit
b9a8a2597f

+ 1 - 1
src/views/businessManager/orderManager/financeManager.vue

@@ -1315,7 +1315,7 @@ export default {
               payTime: orderInfo.payTime,
               serviceAmount: res.data.serviceAmount,
               saleAmount: res.data.goodsAmount,
-              schoolId: parseInt(orderInfo.musicGroupId) || "    ",
+              schoolId: parseInt(orderInfo.musicGroupId) || "",
               applyType: "SELL",
               calenderId: res.data.calenderId ? res.data.calenderId : ""
             }),

+ 168 - 105
src/views/resetTeaming/components/payInfoDetail.vue

@@ -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' : ''
                   ]"
                   :style="{ opacity: teamCourseDisabled ? '0.5' : '1' }"
                   @click.prevent="
@@ -54,7 +58,10 @@
                         form.calenderFeeType = 'STUDENT';
                       }
                       // 会员收费 创建续费 默认选中,不可取消选中
-                      if (courseViewType == 2 && $route.query.team_status == 'PROGRESS') {
+                      if (
+                        courseViewType == 2 &&
+                        $route.query.team_status == 'PROGRESS'
+                      ) {
                         member = false;
                         memberDisabled = false;
                         if (teamCourse) {
@@ -86,7 +93,10 @@
                 </div>
                 <div
                   class="checkBtn"
-                  :class="[member ? 'active' : '', memberDisabled ? 'disabled' : '']"
+                  :class="[
+                    member ? 'active' : '',
+                    memberDisabled ? 'disabled' : ''
+                  ]"
                   :style="{ opacity: memberDisabled ? '0.5' : '1' }"
                   @click.prevent="
                     () => {
@@ -112,10 +122,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' : ''
+                  ]"
                   :style="{ opacity: leBaoDisabled ? '0.5' : '1' }"
                   @click.prevent="
                     () => {
@@ -143,7 +158,7 @@
                   class="checkBtn"
                   :class="[
                     teamActive ? 'active' : '',
-                    teamActiveDisabled ? 'disabled' : '',
+                    teamActiveDisabled ? 'disabled' : ''
                   ]"
                   :style="{ opacity: teamActiveDisabled ? '0.5' : '1' }"
                   @click.prevent="
@@ -175,7 +190,9 @@
               <payTeamCourse
                 :form="form"
                 :charges="charges"
-                :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
+                :courseUnitPriceSettingsByType="
+                  organizationCourseUnitPriceSettingsByType
+                "
                 v-if="teamCourse"
                 @create="addExtraClass"
                 @remove="removeExtraClass"
@@ -203,7 +220,9 @@
               />
               <paySchoolInfo
                 :form="form"
-                :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
+                :courseUnitPriceSettingsByType="
+                  organizationCourseUnitPriceSettingsByType
+                "
                 :teamCourse="teamCourse"
                 :member="member"
                 :teamActive="teamActive"
@@ -213,7 +232,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>
@@ -232,8 +254,8 @@
                       {
                         required: true,
                         message: '请选择缴费时间',
-                        trigger: 'blur',
-                      },
+                        trigger: 'blur'
+                      }
                     ]"
                     ref="paymentDate"
                   >
@@ -311,8 +333,8 @@
                       {
                         required: true,
                         message: '请输入备注',
-                        trigger: 'blur',
-                      },
+                        trigger: 'blur'
+                      }
                     ]"
                     ref="memo"
                   >
@@ -351,10 +373,10 @@
           <div
             v-if="
               !teamCourse &&
-              !member &&
-              !leBao &&
-              !teamActive &&
-              $route.query.team_status == 'PROGRESS'
+                !member &&
+                !leBao &&
+                !teamActive &&
+                $route.query.team_status == 'PROGRESS'
             "
           >
             <empty desc="暂无缴费项目配置" />
@@ -415,7 +437,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";
@@ -424,12 +446,12 @@ import {
   getAllmemberRank,
   musicGroupcreateCalender,
   musicGroupresetCalender,
-  getAutoActivationFlag,
+  getAutoActivationFlag
 } from "../api";
 import {
   getMusicGroupPaymentCalenderDetail,
   findMusicGroupSubjectInfo,
-  getAgreement,
+  getAgreement
 } from "@/api/buildTeam";
 import { vipGroupActivity } from "@/api/vipSeting";
 export default {
@@ -440,7 +462,7 @@ export default {
     payTeamActive,
     subjectPreview,
     paySchoolInfo,
-    backMoney,
+    backMoney
   },
   data() {
     return {
@@ -456,8 +478,8 @@ export default {
             actualAmount: "",
             memberRankSettingId: "",
             optionalFlag: null,
-            autoActivationFlag: false,
-          },
+            autoActivationFlag: false
+          }
         ],
         leBaoList: [{}],
         activeList: [{}],
@@ -471,12 +493,12 @@ export default {
         calenderFeeJson: {
           discountTotal: "",
           allTotal: "",
-          sutdentNumber: "",
+          sutdentNumber: ""
         },
         calenderFeeType: "STUDENT",
         musicGroupCalenderRefundPeriods: [{ refundDate: "", refundAmount: "" }],
         currentTotalAmount: 0,
-        contractUrl: "",
+        contractUrl: ""
       },
       teamCourse: false,
       member: false,
@@ -506,7 +528,7 @@ export default {
         minHalfYearFee: null,
         maxHalfYearFee: null,
         minYearFee: null,
-        maxYearFee: null,
+        maxYearFee: null
       },
       dialogSubjectVisible: false, // 预览
       dialogSubjectList: [],
@@ -515,7 +537,7 @@ export default {
       tenantId: null,
       isField: false,
       showAutoActivationFlag: false,
-      initDetail: false,
+      initDetail: false
     };
   },
   mounted() {
@@ -539,13 +561,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;
@@ -578,8 +606,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";
@@ -596,11 +624,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(
@@ -611,14 +643,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",
@@ -643,9 +680,17 @@ 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.form
+                );
                 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,
@@ -687,7 +732,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;
               });
             }
@@ -705,8 +750,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) {
@@ -728,9 +773,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;
             }
@@ -744,7 +791,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;
           }
@@ -772,9 +819,9 @@ export default {
         const res = await musicGroupOrganizationCourseSettingsQueryPage({
           row: 9999,
           courseViewType,
-          organId,
+          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);
         }
@@ -800,13 +847,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" ||
@@ -816,7 +863,7 @@ export default {
         this.$store.dispatch("delVisitedViews", this.$route);
         this.$router.push({
           path: "/business/resetTeaming",
-          query,
+          query
         });
       }
     },
@@ -831,7 +878,7 @@ export default {
       );
       const _ = {};
       const list = (this.organizationCourseUnitPriceSettings || []).filter(
-        (item) =>
+        item =>
           organId &&
           organId == item.organId &&
           courseViewType != null &&
@@ -871,7 +918,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;
@@ -899,35 +948,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();
@@ -943,7 +990,7 @@ export default {
               {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
-                type: "warning",
+                type: "warning"
               }
             )
               .then(() => {
@@ -963,12 +1010,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) {
@@ -989,7 +1036,7 @@ export default {
                   res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
                   "提示",
                   {
-                    type: "warning",
+                    type: "warning"
                   }
                 );
                 obj.confirmCreate = true;
@@ -1012,7 +1059,7 @@ export default {
                   res.msg || `当前乐团存在未排课的缴费项目,请再次确认操作`,
                   "提示",
                   {
-                    type: "warning",
+                    type: "warning"
                   }
                 );
                 obj.confirmCreate = true;
@@ -1044,7 +1091,7 @@ export default {
           // 值有start,center,end,nearest,当前显示在视图区域中间
           block: "center",
           // 值有auto、instant,smooth,缓动动画(当前是慢速的)
-          behavior: "smooth",
+          behavior: "smooth"
         });
         break; // 跳出循环了
       }
@@ -1057,17 +1104,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;
           }
@@ -1077,7 +1125,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);
@@ -1089,7 +1137,7 @@ export default {
         musicGroup: this.musicGroup,
         paymentCalender: {
           calender: {
-            isShowSalePrice: form.isShowSalePrice,
+            isShowSalePrice: form.isShowSalePrice
           },
           activity: [...activeList], // 小班课
           course: courseList, // 课程
@@ -1100,12 +1148,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() {
@@ -1120,7 +1168,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
@@ -1133,9 +1183,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;
@@ -1153,7 +1203,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
@@ -1166,13 +1218,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
         };
       }
     },
@@ -1191,7 +1244,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;
       }
@@ -1200,7 +1254,7 @@ export default {
     },
     currentTotalAmount(val) {
       this.$set(this.form, "currentTotalAmount", val);
-    },
+    }
   },
   watch: {
     teamCourse(val) {
@@ -1229,24 +1283,26 @@ export default {
       handler(newValue, oldValue) {
         let oldString = JSON.stringify({ ...oldValue });
         let newString = JSON.stringify({ ...newValue });
+        console.log("type", newValue, oldValue, this.initDetail, "detail");
         if (this.initDetail || oldString == newString) {
           this.initDetail = false;
           return;
         } else {
           let arr = [];
-          newValue.forEach((item) => {
+          newValue.forEach(item => {
             arr.push({
               courseType: item.courseType,
               teacherNumber: 0,
               courseNumber: 0,
-              courseCurrentPrice: 0,
+              courseCurrentPrice: 0
             });
           });
-
+          console.log("type", newValue, oldValue);
           this.$set(this.form, "teacherFeeList", arr);
         }
       },
       deep: true,
+      immediate: true
     },
     // "form.calenderFeeType"(val, oldValue) {
     //   if (val == "TEACHER" && !oldValue) {
@@ -1272,15 +1328,15 @@ 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
           });
         });
-
+        console.log("calenderFeeType", val, oldValue);
         this.$set(this.form, "teacherFeeList", arr);
       }
     },
@@ -1290,11 +1346,11 @@ 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
             };
           });
           this.$set(this.form, "eclass", res.data);
@@ -1309,7 +1365,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);
@@ -1321,7 +1381,10 @@ export default {
       }
       this.isSetCourseSettingsId = false;
 
-      if (this.courseViewType == 2 && this.$route.query.team_status == "PROGRESS") {
+      if (
+        this.courseViewType == 2 &&
+        this.$route.query.team_status == "PROGRESS"
+      ) {
         this.memberDisabled = false;
         if (val === "1") {
           // 会员收费 创建续费 默认选中,不可取消选中
@@ -1336,7 +1399,7 @@ export default {
           }
         }
       }
-    },
+    }
   },
   computed: {
     musicGroup() {
@@ -1344,8 +1407,8 @@ export default {
     },
     Eclass() {
       return JSON.parse(JSON.stringify(this.form.eclass));
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>

+ 2 - 1
src/views/resetTeaming/modals/payTeamCourse.vue

@@ -190,7 +190,7 @@
               :controls="false"
               :precision="0"
               :min="0"
-              @change="change"
+              @change="$listeners.priceChange(scope.row, scope.$index)"
               placeholder="请输入售价"
             />
           </el-form-item>
@@ -218,6 +218,7 @@
               :controls="false"
               :precision="0"
               :min="0"
+              @change="$listeners.priceChange(scope.row, scope.$index)"
               :disabled="false"
               placeholder="请输入原价"
             />