瀏覽代碼

提交一下

1
mo 4 年之前
父節點
當前提交
116335cbf3
共有 1 個文件被更改,包括 32 次插入12 次删除
  1. 32 12
      src/views/teamBuild/signupList.vue

+ 32 - 12
src/views/teamBuild/signupList.vue

@@ -607,7 +607,10 @@
               </auth>
               </auth>
               <!--  -->
               <!--  -->
               <auth
               <auth
-                v-show="scope.row.payingStatus == 2 && scope.row.noneNeedCloudTeacher == 0"
+                v-show="
+                  scope.row.payingStatus == 2 &&
+                  scope.row.noneNeedCloudTeacher == 0
+                "
                 :auths="'studentRegistration/setNoneCloudTeacher'"
                 :auths="'studentRegistration/setNoneCloudTeacher'"
               >
               >
                 <el-button type="text" @click="relieve(scope.row)"
                 <el-button type="text" @click="relieve(scope.row)"
@@ -794,7 +797,7 @@
       width="640px"
       width="640px"
       :visible.sync="quitVisible"
       :visible.sync="quitVisible"
     >
     >
-       <quiteTeam :quitForm="quitForm" :activeRow="activeRow"  ref="quitForm"/>
+      <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
       <span slot="footer" class="dialog-footer question">
       <span slot="footer" class="dialog-footer question">
         <div>
         <div>
           <el-popover placement="right" width="500" trigger="click">
           <el-popover placement="right" width="500" trigger="click">
@@ -890,7 +893,7 @@ import { permission } from "@/utils/directivePage";
 import cleanDeep from "clean-deep";
 import cleanDeep from "clean-deep";
 import changeVoice from "./modals/change-voice";
 import changeVoice from "./modals/change-voice";
 import visit from "@/views/withdrawal-application/modals/visit";
 import visit from "@/views/withdrawal-application/modals/visit";
-import quiteTeam from "@/views/teamDetail/components/modals/quite-team"
+import quiteTeam from "@/views/teamDetail/components/modals/quite-team";
 export default {
 export default {
   name: "signupList",
   name: "signupList",
   components: {
   components: {
@@ -901,7 +904,7 @@ export default {
     forecastList,
     forecastList,
     visit,
     visit,
     newForecastList,
     newForecastList,
-    quiteTeam
+    quiteTeam,
   },
   },
   data() {
   data() {
     return {
     return {
@@ -936,7 +939,7 @@ export default {
         isMaintenanceFee: null,
         isMaintenanceFee: null,
         cloudTeacherAmount: null,
         cloudTeacherAmount: null,
         isCloudTeacherAmount: null,
         isCloudTeacherAmount: null,
-        isRefundMemberFee:null,
+        isRefundMemberFee: null,
         maintenanceFee: 0,
         maintenanceFee: 0,
         reason: "",
         reason: "",
       },
       },
@@ -1565,7 +1568,7 @@ export default {
             isRefundCourseFee: false,
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
             isRefundInstrumentFee: false,
             isRefundTeachingAssistantsFee: false,
             isRefundTeachingAssistantsFee: false,
-            isRefundMemberFee:false,
+            isRefundMemberFee: false,
           }).then((res) => {
           }).then((res) => {
             this.quitForm = {
             this.quitForm = {
               // 退团信息确认
               // 退团信息确认
@@ -1606,7 +1609,7 @@ export default {
                 isRefundTeachingAssistantsFee:
                 isRefundTeachingAssistantsFee:
                   this.quitForm.isRefundTeachingAssistantsFee,
                   this.quitForm.isRefundTeachingAssistantsFee,
                 maintenanceFee: this.quitForm.maintenanceFee,
                 maintenanceFee: this.quitForm.maintenanceFee,
-                isRefundMemberFee:this.quitForm.isRefundMemberFee,
+                isRefundMemberFee: this.quitForm.isRefundMemberFee,
               };
               };
               // 退还乐器练习云教练费用
               // 退还乐器练习云教练费用
               if (this.quitForm.isRefundMemberFee) {
               if (this.quitForm.isRefundMemberFee) {
@@ -1733,8 +1736,25 @@ export default {
       }).then(async () => {
       }).then(async () => {
         try {
         try {
           const res = await setNoneCloudTeacher({ id: row.id });
           const res = await setNoneCloudTeacher({ id: row.id });
-          this.$message.success("解除预约成功");
-          this.getList();
+          if (res.code == 200) {
+            this.$message.success("解除预约成功");
+            this.getList();
+          } else if (res.code == 100) {
+            this.$confirm(res.msg, "提示", {
+              confirmButtonText: "确定",
+              cancelButtonText: "取消",
+              type: "warning",
+            }).then(async (some) => {
+              const res = await setNoneCloudTeacher({
+                id: row.id,
+                isContinue: true,
+              });
+              if (res.code == 200) {
+                this.$message.success("解除预约成功");
+                this.getList();
+              }
+            });
+          }
         } catch (e) {
         } catch (e) {
           console.log(e);
           console.log(e);
         }
         }
@@ -1761,7 +1781,7 @@ export default {
       this.search();
       this.search();
     },
     },
     getpayingNum(row) {
     getpayingNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.rules.limit = 10;
       this.searchFrom = {
       this.searchFrom = {
         name: null,
         name: null,
@@ -1779,7 +1799,7 @@ export default {
       this.search();
       this.search();
     },
     },
     getpayNum(row) {
     getpayNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.rules.limit = 10;
       this.searchFrom = {
       this.searchFrom = {
         name: null,
         name: null,
@@ -1849,7 +1869,7 @@ export default {
           isCloudTeacherAmount: null,
           isCloudTeacherAmount: null,
           maintenanceFee: 0,
           maintenanceFee: 0,
           reason: "",
           reason: "",
-          isRefundMemberFee:null
+          isRefundMemberFee: null,
         };
         };
         this.$refs["quitForm"].$refs["quitForm"].resetFields();
         this.$refs["quitForm"].$refs["quitForm"].resetFields();
       }
       }