lex 2 سال پیش
والد
کامیت
f4efdd95a1
2فایلهای تغییر یافته به همراه10 افزوده شده و 5 حذف شده
  1. 8 3
      src/views/buildVip/index.vue
  2. 2 2
      src/views/categroyManager/modals/payInfo.vue

+ 8 - 3
src/views/buildVip/index.vue

@@ -548,7 +548,7 @@
             </el-table-column>
           </el-table>
           <!--  class="computeMoney"  -->
-          <div style="overflow: hidden">
+          <div style="overflow: hidden" v-if="!fixedCourseNumFlag">
             <el-button
               type="primary"
               class="computeMoney"
@@ -782,6 +782,7 @@ export default {
       attribute2: "",
       attribute3: "",
       fixedCourseNumFlag: null,
+      marketPrice: "",
       maxCourseNum: 0,
       minCourseNum: 0,
       salaryReadonlyFlag: "", // 老师课酬是否可配
@@ -1037,6 +1038,7 @@ export default {
       this.attribute2 = "";
       this.attribute3 = "";
       this.fixedCourseNumFlag = null;
+      this.marketPrice = "";
       this.maxCourseNum = 0;
       this.minCourseNum = 0;
       this.salaryReadonlyFlag = ""; // 老师课酬是否可配
@@ -1282,6 +1284,7 @@ export default {
       this.attribute2 = "";
       this.attribute3 = "";
       this.fixedCourseNumFlag = null; // 是否限制课时数
+      this.marketPrice = "";
       this.rightForm.discount = 100;
       this.giveNum = 0;
       this.isGiveClass = false;
@@ -1338,6 +1341,8 @@ export default {
 
             // 固定课酬作用
             this.fixedCourseNumFlag = this.activeList[i].fixedCourseNumFlag;
+            // 售价
+            this.marketPrice = this.activeList[i].marketPrice;
             // 存储课酬是否可配置
             this.salaryReadonlyFlag = this.activeList[i].salaryReadonlyFlag;
             this.paymentReadonlyFlag = this.activeList[i].paymentReadonlyFlag;
@@ -1370,7 +1375,7 @@ export default {
                   userName: stu.username,
                   onlineClassesUnitPrice: this.rightForm.onlinePrice,
                   offlineClassesUnitPrice: this.rightForm.offlinePrice,
-                  paymentPrice: ""
+                  paymentPrice: this.fixedCourseNumFlag ? this.marketPrice : ""
                 });
               }
             });
@@ -2299,7 +2304,7 @@ export default {
             userName: stu.username,
             onlineClassesUnitPrice: this.rightForm.onlinePrice,
             offlineClassesUnitPrice: this.rightForm.offlinePrice,
-            paymentPrice: ""
+            paymentPrice: this.fixedCourseNumFlag ? this.marketPrice : ""
           });
         }
       });

+ 2 - 2
src/views/categroyManager/modals/payInfo.vue

@@ -283,7 +283,7 @@
         </el-row>
       </div>
       <el-row
-        v-if="activityChannel != 1 && payForm.fixedCourseNumFlag === false"
+        v-if="activityChannel != 1 || payForm.fixedCourseNumFlag === false"
       >
         <!--  {
               pattern: /^100$|^(\d|[1-9]\d)(\.\d{1,8})*$/,
@@ -310,7 +310,7 @@
         </el-form-item>
       </el-row>
       <!-- 活动价格 -->
-      <el-row v-if="payForm.fixedCourseNumFlag">
+      <el-row v-if="payForm.fixedCourseNumFlag || activeType">
         <el-col>
           <el-form-item
             label="活动售价"