浏览代码

修复BUG

1
mo 4 年之前
父节点
当前提交
4e5369e2e6
共有 2 个文件被更改,包括 11 次插入5 次删除
  1. 1 1
      src/views/resetTeaming/modals/user-baseinfo.vue
  2. 10 4
      src/views/resetTeaming/modals/user-pay-form.vue

+ 1 - 1
src/views/resetTeaming/modals/user-baseinfo.vue

@@ -36,7 +36,7 @@
     <el-alert
       :closable="false"
       style="margin-left: 160px;width: auto; margin-bottom:20px;"
-      v-if="paymentType != 0 && isCommon &&courseViewType != 1"
+      v-if="isCommon && form.musicGroupOrganizationCourseSettingId != 0 && courseViewType != 1"
       type="warning">
       <template #title>
         <p>该乐团为{{chargeTypeName}}模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式

+ 10 - 4
src/views/resetTeaming/modals/user-pay-form.vue

@@ -25,6 +25,7 @@
       :courseViewType="courseViewType"
       ref="base"
     />
+    <!-- 合班的 -->
     <template v-if="paymentTypeString === 'SPAN_GROUP_CLASS_ADJUST'">
       <el-alert
         title="加课信息设置"
@@ -45,6 +46,7 @@
         @moneyChange="syncAllMoney"
       />
     </template>
+    <!-- isCommon不为报名 -->
     <template v-else-if="!isCommon">
       <el-alert
         title="加课信息设置"
@@ -438,12 +440,13 @@ export default {
     async init() {
       let organId = this.baseInfo?.musicGroup?.organId;
       this.courseViewType = this.baseInfo?.musicGroup?.courseViewType;
-      if (this.courseViewType == 1) {
-        this.$set(this.form, "leixing", '2');
-        //   console.log('paymentType',this.paymentType)
+      // 如果为学员缴费且是乐团缴费则显示云教练的价格
+      //  进行中添加
+      if (this.courseViewType == 1 && !this.rowDetail) {
+        this.$set(this.form, "leixing", "2");
+        console.log("paymentType", this.paymentType);
         this.addExtraClass();
       }
-      // 如果为学员缴费且是乐团缴费则显示云教练的价格
       if (
         !this.paymentType &&
         this.type == "user" &&
@@ -467,7 +470,10 @@ export default {
           if (paymentTypeFormat.hasOwnProperty(key)) {
             const item = paymentTypeFormat[key];
             if (item === this.rowDetail.paymentType) {
+              console.log("rowDetail", this.rowDetail.paymentType, key);
               this.paymentType = key;
+
+              console.log("paymentType", this.paymentType);
             }
           }
         }