Forráskód Böngészése

添加活动类型

lex 2 éve
szülő
commit
4679503bb7

+ 57 - 54
src/views/categroyManager/modals/baseInfo.vue

@@ -64,12 +64,13 @@
           >
             <el-option label="乐团小课" :value="1"></el-option>
             <el-option label="常规小课" :value="2"></el-option>
+            <el-option label="学生购买" :value="3"></el-option>
           </el-select>
         </el-form-item>
         <el-form-item
           label="活动类型"
           prop="activityType"
-          v-if="baseForm.activityChannel == 2"
+          v-if="baseForm.activityChannel !== 1"
         >
           <el-select
             v-model.trim="baseForm.activityType"
@@ -94,7 +95,7 @@
             value-format="yyyy-MM-dd HH:mm:ss"
             start-placeholder="开始日期"
             :picker-options="{
-              firstDayOfWeek: 1,
+              firstDayOfWeek: 1
             }"
             end-placeholder="结束日期"
           ></el-date-picker>
@@ -108,8 +109,8 @@
             ></i>
           </el-tooltip>
         </el-form-item>
-        <div v-if="baseForm.activityChannel == 2">
-          <el-form-item label="排课时间范围" prop="courseTime">
+        <div v-if="baseForm.activityChannel !== 1">
+          <!-- <el-form-item label="排课时间范围" prop="courseTime">
             <el-date-picker
               :disabled="isDisabled"
               v-model.trim="baseForm.courseTime"
@@ -119,7 +120,7 @@
               value-format="yyyy-MM-dd HH:mm:ss"
               start-placeholder="开始日期"
               :picker-options="{
-                firstDayOfWeek: 1,
+                firstDayOfWeek: 1
               }"
               end-placeholder="结束日期"
             ></el-date-picker>
@@ -132,7 +133,7 @@
                 style="font-size: 18px; color: #f56c6c"
               ></i>
             </el-tooltip>
-          </el-form-item>
+          </el-form-item> -->
           <el-form-item label="适用学员" prop="applyToStudentType">
             <el-row>
               <el-col style="width: 400px">
@@ -170,7 +171,9 @@
               v-model.trim="baseForm.studentMaxUsedTimes"
               :disabled="isDisabled"
             >
-              <template slot="append">次</template>
+              <template slot="append"
+                >次</template
+              >
             </el-input>
             <el-tooltip placement="top" popper-class="mTooltip">
               <div slot="content">
@@ -213,13 +216,12 @@
             {
               required: true,
               message: '请选输入活动售价',
-              trigger: 'blur',
+              trigger: 'blur'
             },
             {
-              pattern:
-                /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
-              message: '请输入正确的金额',
-            },
+              pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
+              message: '请输入正确的金额'
+            }
           ]"
         >
           <el-input
@@ -228,7 +230,9 @@
             v-model.trim="baseForm.marketPrice"
             :disabled="isDisabled || status != 'DRAFT'"
           >
-            <template slot="append">元</template>
+            <template slot="append"
+              >元</template
+            >
           </el-input>
           <el-tooltip placement="top" popper-class="mTooltip">
             <div slot="content">
@@ -246,10 +250,9 @@
           :rules="[
             { required: true, message: '请选输入活动原价', trigger: 'blur' },
             {
-              pattern:
-                /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
-              message: '请输入正确的金额',
-            },
+              pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
+              message: '请输入正确的金额'
+            }
           ]"
         >
           <el-input
@@ -258,7 +261,9 @@
             v-model.trim="baseForm.originalPrice"
             :disabled="isDisabled || status != 'DRAFT'"
           >
-            <template slot="append">元</template>
+            <template slot="append"
+              >元</template
+            >
           </el-input>
         </el-form-item>
       </el-form>
@@ -283,8 +288,8 @@ export default {
             min: 1,
             max: 25,
             message: "长度在 1 到 25 个字符",
-            trigger: "blur",
-          },
+            trigger: "blur"
+          }
         ],
         desc: [
           { required: true, message: "请输入文字描述", trigger: "blur" },
@@ -292,41 +297,41 @@ export default {
             min: 1,
             max: 200,
             message: "长度在 1 到 200 个字符",
-            trigger: "blur",
-          },
+            trigger: "blur"
+          }
         ],
         activityType: [
-          { required: true, message: "请选择活动类型", trigger: "change" },
+          { required: true, message: "请选择活动类型", trigger: "change" }
         ],
         activityChannel: [
-          { required: true, message: "请选择活动渠道", trigger: "change" },
+          { required: true, message: "请选择活动渠道", trigger: "change" }
         ],
         courseTime: [
-          { required: false, message: "请选择课程时间", trigger: "change" },
+          { required: false, message: "请选择课程时间", trigger: "change" }
         ],
         studentMaxUsedTimes: [
           { required: false, message: "请输入购买次数", trigger: "blur" },
-          { pattern: /^\+?[1-9]\d*$/, message: "请输入大于0的正整数" },
+          { pattern: /^\+?[1-9]\d*$/, message: "请输入大于0的正整数" }
         ],
         organ: [
-          { required: true, message: "请选择适用分部", trigger: "change" },
+          { required: true, message: "请选择适用分部", trigger: "change" }
         ],
         stauts: [
-          { required: true, message: "请选择活动形式", trigger: "change" },
+          { required: true, message: "请选择活动形式", trigger: "change" }
         ],
         applyToStudentType: [
-          { required: false, message: "请选择是否新生专享" },
+          { required: false, message: "请选择是否新生专享" }
         ],
         isPayToBalance: [
           {
             required: true,
             message: "请选择是否支付到余额",
-            trigger: "change",
-          },
+            trigger: "change"
+          }
         ],
         allowOnlineToOffline: [
-          { required: true, message: "请选择课程调整方式", trigger: "change" },
-        ],
+          { required: true, message: "请选择课程调整方式", trigger: "change" }
+        ]
       },
       courseStatusList: [], // 获取所有课程形式
       activeType: "",
@@ -343,7 +348,7 @@ export default {
       courseNumForm: {
         minCourseNum: "",
         maxCourseNum: "",
-        studentMaxUsedTimes: "",
+        studentMaxUsedTimes: ""
       },
       giveClassPaySalaryFlag: true,
       organList: [],
@@ -353,14 +358,14 @@ export default {
         minCourseNum: [
           { required: true, message: "请输入最小课时数", trigger: "blur" },
           { validator: this.validateCom, trigger: "blur" },
-          { validator: this.validateMin, trigger: "blur" },
+          { validator: this.validateMin, trigger: "blur" }
         ],
         maxCourseNum: [
           { required: true, message: "请输入最大课时数", trigger: "blur" },
           { validator: this.validateCom, trigger: "blur" },
-          { validator: this.validateMax, trigger: "blur" },
-        ],
-      },
+          { validator: this.validateMax, trigger: "blur" }
+        ]
+      }
     };
   },
 
@@ -445,9 +450,9 @@ export default {
       this.$emit("resetBaseChannel", val);
     },
     submitFrom() {
-      this.$refs.form.validate((isok) => {
+      this.$refs.form.validate(isok => {
         if (isok) {
-          this.$refs["vipform"].validate((valid) => {
+          this.$refs["vipform"].validate(valid => {
             if (valid) {
               // 验证通过
               let coursesStartTime = null,
@@ -508,7 +513,7 @@ export default {
                 }
                 onlineSalarySettlement = {
                   salarySettlementType: this.onlineSalary,
-                  settlementValue: this.onlineprice,
+                  settlementValue: this.onlineprice
                 };
               } else {
                 onlineSalarySettlement = null;
@@ -525,7 +530,7 @@ export default {
                 }
                 offlineSalarySettlement = {
                   salarySettlementType: this.unonlineSalary,
-                  settlementValue: this.unonlineprice,
+                  settlementValue: this.unonlineprice
                 };
               } else {
                 offlineSalarySettlement = null;
@@ -535,7 +540,7 @@ export default {
               // let giveClassPaySalaryFlag = this.giveClassPaySalaryFlag * 1;
               let vipGroupSalarySettlement = {
                 onlineSalarySettlement,
-                offlineSalarySettlement,
+                offlineSalarySettlement
               };
               if (type == "BASE_ACTIVITY") {
                 this.courseNumForm.studentMaxUsedTimes = -1;
@@ -573,15 +578,15 @@ export default {
                   offlineClassJoinGradientRewards:
                     this.offlineClassJoinGradientRewards * 1,
                   onlineClassJoinGradientRewards:
-                    this.onlineClassJoinGradientRewards * 1,
+                    this.onlineClassJoinGradientRewards * 1
                 })
-              ).then((res) => {
+              ).then(res => {
                 if (res.code == 200) {
                   this.$message.success("恭喜你,活动创建成功");
                   // this.onReSet();
                   this.$store.dispatch("delVisitedViews", this.$route);
                   this.$router.push({
-                    path: "/vipActiveManager/vipActiveList",
+                    path: "/vipActiveManager/vipActiveList"
                   });
                 }
               });
@@ -590,7 +595,7 @@ export default {
                 let isError = document.getElementsByClassName("is-error");
                 isError[0].scrollIntoView({
                   block: "center",
-                  behavior: "smooth",
+                  behavior: "smooth"
                 });
               });
               // this.$message.error("请填写必要参数");
@@ -615,7 +620,7 @@ export default {
       // 选择所有分部
       let vipform = this.vipform;
       vipform.organ = [];
-      this.selects.branchs.forEach((item) => {
+      this.selects.branchs.forEach(item => {
         vipform.organ.push(item.id);
       });
       this.$refs.vipform.validateField("organ");
@@ -627,7 +632,7 @@ export default {
         name: "",
         desc: "",
         activeTime: [],
-        courseTime: [],
+        courseTime: []
       };
       this.activeType = "";
       this.online = true;
@@ -644,7 +649,7 @@ export default {
       this.courseNumForm.maxCourseNum = "";
       this.courseNumForm.minCourseNum = "";
       // this.$refs.vipform.resetFields();
-    },
+    }
   },
   computed: {
     balanceDis() {
@@ -654,8 +659,8 @@ export default {
       } else {
         return false;
       }
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>
@@ -755,5 +760,3 @@ export default {
   }
 }
 </style>
-
-

+ 44 - 33
src/views/categroyManager/vipActiveList.vue

@@ -1,4 +1,4 @@
-<template >
+<template>
   <div class="m-container">
     <h2>
       <div class="squrt"></div>
@@ -27,7 +27,6 @@
         @click="onActiveExport"
         >活动资格导出</el-button
       > -->
-
       </div>
 
       <save-form
@@ -72,6 +71,7 @@
           >
             <el-option label="乐团小课" :value="'1'"></el-option>
             <el-option label="常规小课" :value="'2'"></el-option>
+            <el-option label="学生购买" :value="'3'"></el-option>
           </el-select>
         </el-form-item>
         <el-form-item prop="status">
@@ -153,7 +153,10 @@
           <el-table-column align="center" prop="activityType" label="活动渠道">
             <template slot-scope="scope">
               <div>
-                {{ scope.row.activityChannel == 1 ? "乐团小课" : "常规小课" }}
+                <!-- {{ scope.row.activityChannel == 1 ? "乐团小课" : "常规小课" }} -->
+                {{ scope.row.activityChannel == 1 ? "乐团小课" : "" }}
+                {{ scope.row.activityChannel == 2 ? "乐团小课" : "" }}
+                {{ scope.row.activityChannel == 3 ? "学生购买" : "" }}
               </div>
             </template>
           </el-table-column>
@@ -269,11 +272,11 @@
                 <el-button
                   v-if="
                     scope.row.status == 'PROGRESS' &&
-                    scope.row.maxCourseNum &&
-                    scope.row.minCourseNum &&
-                    scope.row.maxCourseNum > 0 &&
-                    scope.row.minCourseNum > 0 &&
-                    scope.row.minCourseNum == scope.row.maxCourseNum
+                      scope.row.maxCourseNum &&
+                      scope.row.minCourseNum &&
+                      scope.row.maxCourseNum > 0 &&
+                      scope.row.minCourseNum > 0 &&
+                      scope.row.minCourseNum == scope.row.maxCourseNum
                   "
                   type="text"
                   v-permission="'/activeSenior'"
@@ -349,7 +352,7 @@ import pagination from "@/components/Pagination/index";
 import {
   vipGroupActivity,
   removeVipActive,
-  enableVipGroupActivity,
+  enableVipGroupActivity
 } from "@/api/vipSeting";
 import ExportChiose from "@/components/Export-chiose";
 import qs from "qs";
@@ -369,7 +372,7 @@ export default {
         limit: 10, // 限制显示条数
         page: 1, // 当前页
         total: 0, // 总条数
-        page_size: [10, 20, 40, 50], // 选择限制显示条数
+        page_size: [10, 20, 40, 50] // 选择限制显示条数
       },
       searchForm: {
         organId: null,
@@ -378,9 +381,9 @@ export default {
         applyToStudentType: null,
         allowOnlineToOffline: null,
         status: null,
-        activityChannel: null,
+        activityChannel: null
       },
-      dialogVisible: false,
+      dialogVisible: false
     };
   },
   // created() {
@@ -451,7 +454,9 @@ export default {
         switch (obj.onlineSalarySettlement.salarySettlementType) {
           case "RATIO_DISCOUNT": {
             if (obj.onlineSalarySettlement.settlementValue) {
-              return `线上:比例结算${obj.onlineSalarySettlement.settlementValue}%`;
+              return `线上:比例结算${
+                obj.onlineSalarySettlement.settlementValue
+              }%`;
             } else {
               return "线上:比例结算";
             }
@@ -463,7 +468,9 @@ export default {
           }
           case "FIXED_SALARY": {
             if (obj.onlineSalarySettlement.settlementValue) {
-              return `线上:固定课酬${obj.onlineSalarySettlement.settlementValue}/次`;
+              return `线上:固定课酬${
+                obj.onlineSalarySettlement.settlementValue
+              }/次`;
             } else {
               return "线上:固定课酬";
             }
@@ -483,7 +490,9 @@ export default {
         switch (obj.offlineSalarySettlement.salarySettlementType) {
           case "RATIO_DISCOUNT": {
             if (obj.offlineSalarySettlement.settlementValue) {
-              return `线下:比例结算${obj.offlineSalarySettlement.settlementValue}%`;
+              return `线下:比例结算${
+                obj.offlineSalarySettlement.settlementValue
+              }%`;
             } else {
               return "线下:比例结算";
             }
@@ -495,7 +504,9 @@ export default {
           }
           case "FIXED_SALARY": {
             if (obj.offlineSalarySettlement.settlementValue) {
-              return `线下:固定课酬${obj.offlineSalarySettlement.settlementValue}/次`;
+              return `线下:固定课酬${
+                obj.offlineSalarySettlement.settlementValue
+              }/次`;
             } else {
               return "线下:固定课酬";
             }
@@ -503,7 +514,7 @@ export default {
           }
         }
       }
-    },
+    }
   },
   methods: {
     async init() {
@@ -520,7 +531,7 @@ export default {
       let obj = {
         ...rest,
         page: this.rules.page,
-        rows: this.rules.limit,
+        rows: this.rules.limit
       };
       await Export(
         this,
@@ -528,7 +539,7 @@ export default {
           url: "/api-web/export/vipGroupActivity",
           fileName: "活动列表.xls",
           method: "post",
-          params: qs.stringify(cleanDeep(obj)),
+          params: qs.stringify(cleanDeep(obj))
         },
         "您确定活动列表?"
       );
@@ -548,7 +559,7 @@ export default {
     onCheckAllBranch() {
       // 适用所有分部
       this.resetForm.organ = [];
-      this.organList.forEach((item) => {
+      this.organList.forEach(item => {
         this.resetForm.organ.push(item.id);
       });
     },
@@ -577,8 +588,8 @@ export default {
         status: this.searchForm.status,
         activityChannel: this.searchForm.activityChannel,
         enable,
-        search,
-      }).then((res) => {
+        search
+      }).then(res => {
         if (res.code == 200) {
           this.tableList = res.data.rows;
           this.rules.total = res.data.total;
@@ -682,9 +693,9 @@ export default {
       this.$router.push(
         {
           path: "/operateManager/vipNewActive?type=reset",
-          query: { id: row.id },
+          query: { id: row.id }
         },
-        (router) => {
+        router => {
           router.meta.title = "修改活动方案";
         }
       );
@@ -692,20 +703,20 @@ export default {
     look(row) {
       this.$router.push({
         path: "/operateManager/vipNewActive?type=look",
-        query: { id: row.id },
+        query: { id: row.id }
       });
     },
     // 活动资格管理
     activeManager(row) {
       this.$router.push({
         path: "/operateManager/activeSenior",
-        query: { id: row.id },
+        query: { id: row.id }
       });
     },
     // 点击确认按钮发送修改请求
     remove(scope) {
       let id = scope.row.id;
-      removeVipActive({ id }).then((res) => {
+      removeVipActive({ id }).then(res => {
         if (res.code == 200) {
           this.$message.success("恭喜您删除成功");
           this.getList();
@@ -719,10 +730,10 @@ export default {
       // let searchForm = JSON.stringify(this.searchForm);
       this.$router.push(
         {
-          path: "/operateManager/vipNewActive?type=create",
+          path: "/operateManager/vipNewActive?type=create"
           // query: { rules, searchForm },
         },
-        (router) => {
+        router => {
           router.meta.title = "新建活动方案";
         }
       );
@@ -773,10 +784,10 @@ export default {
       this.$confirm(`是否${tempString}该活动?`, "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning",
+        type: "warning"
       })
         .then(() => {
-          enableVipGroupActivity({ id: row.id }).then((res) => {
+          enableVipGroupActivity({ id: row.id }).then(res => {
             if (res.code == 200) {
               this.$message.success("操作成功");
               this.getList();
@@ -784,8 +795,8 @@ export default {
           });
         })
         .catch(() => {});
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>

+ 43 - 46
src/views/categroyManager/vipNewActive.vue

@@ -27,7 +27,6 @@
           :status="statuss"
         />
 
-
         <payInfo
           :payForm="payForm"
           ref="payInfo"
@@ -101,7 +100,7 @@ import {
   vipGroupCategory,
   addVipActive,
   resetVipActive,
-  getVipGroupActivity,
+  getVipGroupActivity
 } from "@/api/vipSeting";
 import cleanDeep from "clean-deep";
 const payBaseForm = {
@@ -125,39 +124,39 @@ const payBaseForm = {
   giveCourseNum: null,
   giveMemberRankId: null,
   giveMemberTime: null,
-  giveAllowOnlineToOffline: null,
+  giveAllowOnlineToOffline: null
 };
 const baseSalaryForm = {
   vipOnlineSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
+    settlementValue: null
   },
   offlineSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
+    settlementValue: null
   },
   giveVipOnlineSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
+    settlementValue: null
   },
   giveVipOfflineSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
+    settlementValue: null
   },
   practiceSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
+    settlementValue: null
   },
   givePracticeSalarySettlement: {
     salarySettlementType: null,
-    settlementValue: null,
-  },
+    settlementValue: null
+  }
 };
 export default {
   components: {
     baseInfo,
     payInfo,
-    salaryInfo,
+    salaryInfo
   },
   data() {
     return {
@@ -175,16 +174,16 @@ export default {
         isPayToBalance: "",
         marketPrice: "",
         activityChannel: null,
-        originalPrice:null
+        originalPrice: null
       },
       title: "新建课程活动方案",
       payForm: {
-        ...payBaseForm,
+        ...payBaseForm
       },
       salaryForm: {
-        ...baseSalaryForm,
+        ...baseSalaryForm
       },
-      remberList: [],
+      remberList: []
     };
   },
   async mounted() {
@@ -197,7 +196,7 @@ export default {
       this.baseForm.id = this.$route.query.id;
       const rusult = await getVipGroupActivity({ id: this.$route.query.id });
       this.formatDetail(rusult.data);
-      this.$router
+      this.$router;
     } else {
       this.payInfo = { ...payBaseForm };
       this.salaryForm = JSON.parse(JSON.stringify({ ...baseSalaryForm }));
@@ -212,20 +211,20 @@ export default {
       this.$store.dispatch("delVisitedViews", this.$route);
       this.$router.push({
         path: "/vipActiveManager/vipActiveList",
-        query: { rules: this.rules, searchForm: this.searchForm },
+        query: { rules: this.rules, searchForm: this.searchForm }
       });
       // }
     },
     next() {
       let flags = true;
       if (this.active == 1) {
-        this.$refs.baseForm.$refs.vipform.validate((flag) => {
+        this.$refs.baseForm.$refs.vipform.validate(flag => {
           flags = flag;
         });
         // 验证表单1
       } else if (this.active == 2) {
         // 验证表单2
-        this.$refs.payInfo.$refs.form.validate((flag) => {
+        this.$refs.payInfo.$refs.form.validate(flag => {
           flags = flag;
         });
       }
@@ -243,7 +242,7 @@ export default {
     },
     resetPayInfo() {
       this.payForm = {
-        ...payBaseForm,
+        ...payBaseForm
       };
     },
     resetBaseChannel(val) {
@@ -254,10 +253,10 @@ export default {
       this.$set(this.baseForm, "isPayToBalance", null);
       this.$set(this.baseForm, "marketPrice", null);
       this.$set(this.baseForm, "originalPrice", null);
-      if(val == 1){
-         this.$set(this.baseForm, "activityType", 0);
-         this.$set(this.payForm, "allowOnlineToOffline",1);
-         this.$set(this.payForm, "teachMode", -1);
+      if (val == 1) {
+        this.$set(this.baseForm, "activityType", 0);
+        this.$set(this.payForm, "allowOnlineToOffline", 1);
+        this.$set(this.payForm, "teachMode", -1);
       }
     },
     changeCourseType(val) {
@@ -266,10 +265,10 @@ export default {
         this.$set(this.payForm, "vipGroupCategoryIdList", "");
         this.$set(this.payForm, "teachMode", "");
         this.$set(this.payForm, "singleCourseTime", 25);
-        this.$set(this.payForm, "allowOnlineToOffline", '');
+        this.$set(this.payForm, "allowOnlineToOffline", "");
       } else {
         this.$set(this.payForm, "singleCourseTime", 45);
-        this.$set(this.payForm, "allowOnlineToOffline", '');
+        this.$set(this.payForm, "allowOnlineToOffline", "");
         this.$set(this.payForm, "vipGroupCategoryIdList", "");
         this.$set(this.payForm, "teachMode", "");
       }
@@ -307,7 +306,7 @@ export default {
     },
     async submit() {
       if (this.$refs?.salaryInfo?.$refs?.salaryForm) {
-        this.$refs.salaryInfo.$refs.salaryForm.validate((flag) => {
+        this.$refs.salaryInfo.$refs.salaryForm.validate(flag => {
           if (flag) {
             this.baseForm.status = "PROGRESS";
             this.submitDataFormat("PROGRESS");
@@ -348,7 +347,7 @@ export default {
       // let vipGroupCategoryIdList =
       //   this.payForm.vipGroupCategoryIdList.join(",");
       let vipGroupSalarySettlement = this.salaryForm;
-      if(this.baseForm.activityChannel == 1){
+      if (this.baseForm.activityChannel == 1) {
         this.payForm.maxCourseNum = this.payForm.minCourseNum;
       }
       let obj = {
@@ -360,18 +359,18 @@ export default {
         startTime,
         endTime,
         applyToStudentType,
-        vipGroupSalarySettlement,
+        vipGroupSalarySettlement
       };
       if (this.baseForm.id) {
-        resetVipActive(cleanDeep(obj)).then((res) => {
+        resetVipActive(cleanDeep(obj)).then(res => {
           if (res.code == 200) {
             if (status == "DRAFT") {
               this.$message.success("恭喜你,保存草稿成功");
               this.baseForm.id = res.data.id;
               this.$router.push({
                 query: merge(this.$route.query, {
-                  id: res.data.id,
-                }),
+                  id: res.data.id
+                })
               });
               this.formatDetail(res.data);
             } else {
@@ -380,7 +379,7 @@ export default {
               this.$message.success("活动修改成功");
               this.$store.dispatch("delVisitedViews", this.$route);
               this.$router.push({
-                path: "/vipActiveManager/vipActiveList",
+                path: "/vipActiveManager/vipActiveList"
               });
             }
 
@@ -392,7 +391,7 @@ export default {
           }
         });
       } else {
-        addVipActive(cleanDeep(obj)).then((res) => {
+        addVipActive(cleanDeep(obj)).then(res => {
           if (res.code == 200) {
             if (status == "DRAFT") {
               this.$message.success("恭喜你,保存草稿成功");
@@ -402,14 +401,14 @@ export default {
               });
               this.$router.push({
                 query: merge(this.$route.query, {
-                  id: res.data.id,
-                }),
+                  id: res.data.id
+                })
               });
             } else {
               this.$message.success("活动创建成功");
               this.$store.dispatch("delVisitedViews", this.$route);
               this.$router.push({
-                path: "/vipActiveManager/vipActiveList",
+                path: "/vipActiveManager/vipActiveList"
               });
             }
           }
@@ -444,7 +443,7 @@ export default {
         activeTime,
         courseTime,
         marketPrice: data.marketPrice,
-        organ: data.organId.split(",").map((organ) => {
+        organ: data.organId.split(",").map(organ => {
           return Number(organ);
         }),
         activityType: data.activityType,
@@ -453,7 +452,7 @@ export default {
         isPayToBalance: Number(data.payToBalance),
         id: this.$route.query.id,
         activityChannel: data.activityChannel,
-        originalPrice:data.originalPrice
+        originalPrice: data.originalPrice
       });
       // this.baseForm = {
       //   name: data.name,
@@ -480,7 +479,7 @@ export default {
       this.payForm = {
         courseType: data.courseType,
         vipGroupCategoryIdList: data.vipGroupCategoryIdList
-          ? data.vipGroupCategoryIdList.split(",").map((id) => {
+          ? data.vipGroupCategoryIdList.split(",").map(id => {
               return Number(id);
             })[0]
           : null,
@@ -503,7 +502,7 @@ export default {
         giveMemberRankId: data.giveMemberRankId,
         givePeriod: data.givePeriodEnum,
         giveMemberTime: data.giveMemberTime ? data.giveMemberTime : null,
-        giveAllowOnlineToOffline: data.giveAllowOnlineToOffline + "",
+        giveAllowOnlineToOffline: data.giveAllowOnlineToOffline + ""
       };
       // 格式化缴费金额
       if (data.salarySettlementJson && data.salarySettlementJson != "null") {
@@ -517,7 +516,7 @@ export default {
         this.salaryForm = JSON.parse(JSON.stringify({ ...baseSalaryForm }));
       }
       this.$forceUpdate();
-    },
+    }
   },
   computed: {
     isDisabled() {
@@ -529,8 +528,8 @@ export default {
     },
     statuss() {
       return this.status;
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>
@@ -542,5 +541,3 @@ export default {
   border-color: var(--color-primary) !important;
 }
 </style>
-
-