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

报名消费 拒绝审核

1
mo 4 éve
szülő
commit
e33b32c80e
3 módosított fájl, 28 hozzáadás és 19 törlés
  1. 7 1
      src/views/teamBuild/api.js
  2. 19 16
      src/views/teamBuild/signupList.vue
  3. 2 2
      vue.config.js

+ 7 - 1
src/views/teamBuild/api.js

@@ -70,7 +70,13 @@ export const setNoneCloudTeacher = data => request2({
   method: 'get',
   requestType: 'json'
 })
-
+// 拒绝审核
+export const setCloudTeacherToFailed = data => request2({
+  url: '/api-web/studentRegistration/setCloudTeacherToFailed',
+  params: data,
+  method: 'post',
+  requestType: 'json'
+})
 
 // 意向列表
 export const queryPreApplySubjectList = data => request2({

+ 19 - 16
src/views/teamBuild/signupList.vue

@@ -607,14 +607,17 @@
               </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'"
               >
                 <el-button type="text" @click="relieve(scope.row)"
                   >解除预约限制</el-button
                 >
               </auth>
-                 <auth
+              <auth
                 v-show="scope.row.payingStatus == 2"
                 :auths="'studentRegistration/setCloudTeacherToFailed'"
               >
@@ -802,7 +805,7 @@
       width="640px"
       :visible.sync="quitVisible"
     >
-       <quiteTeam :quitForm="quitForm" :activeRow="activeRow"  ref="quitForm"/>
+      <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
       <span slot="footer" class="dialog-footer question">
         <div>
           <el-popover placement="right" width="500" trigger="click">
@@ -881,7 +884,7 @@ import {
   checkCanReg,
 } from "@/api/buildTeam";
 
-import { setNoneCloudTeacher } from "./api";
+import { setNoneCloudTeacher, setCloudTeacherToFailed } from "./api";
 import mergeMusic from "./components/merge-music";
 import forecastList from "./components/forecast-list";
 import newForecastList from "./components/newForecast-list";
@@ -898,7 +901,7 @@ import { permission } from "@/utils/directivePage";
 import cleanDeep from "clean-deep";
 import changeVoice from "./modals/change-voice";
 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 {
   name: "signupList",
   components: {
@@ -909,7 +912,7 @@ export default {
     forecastList,
     visit,
     newForecastList,
-    quiteTeam
+    quiteTeam,
   },
   data() {
     return {
@@ -944,7 +947,7 @@ export default {
         isMaintenanceFee: null,
         cloudTeacherAmount: null,
         isCloudTeacherAmount: null,
-        isRefundMemberFee:null,
+        isRefundMemberFee: null,
         maintenanceFee: 0,
         reason: "",
       },
@@ -1573,7 +1576,7 @@ export default {
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
             isRefundTeachingAssistantsFee: false,
-            isRefundMemberFee:false,
+            isRefundMemberFee: false,
           }).then((res) => {
             this.quitForm = {
               // 退团信息确认
@@ -1614,7 +1617,7 @@ export default {
                 isRefundTeachingAssistantsFee:
                   this.quitForm.isRefundTeachingAssistantsFee,
                 maintenanceFee: this.quitForm.maintenanceFee,
-                isRefundMemberFee:this.quitForm.isRefundMemberFee,
+                isRefundMemberFee: this.quitForm.isRefundMemberFee,
               };
               // 退还乐器练习云教练费用
               if (this.quitForm.isRefundMemberFee) {
@@ -1748,15 +1751,15 @@ export default {
         }
       });
     },
-    failedRelieve(row){
-           this.$confirm("操作后该学员即可不购买云教练缴费入团", "提示", {
+    failedRelieve(row) {
+      this.$confirm("拒绝后学员需购买会员方可入团", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
       }).then(async () => {
         try {
-          const res = await setNoneCloudTeacher({ id: row.id });
-          this.$message.success("解除预约成功");
+          const res = await setCloudTeacherToFailed({ id: row.id });
+          this.$message.success("操作成功");
           this.getList();
         } catch (e) {
           console.log(e);
@@ -1784,7 +1787,7 @@ export default {
       this.search();
     },
     getpayingNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.searchFrom = {
         name: null,
@@ -1802,7 +1805,7 @@ export default {
       this.search();
     },
     getpayNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.searchFrom = {
         name: null,
@@ -1872,7 +1875,7 @@ export default {
           isCloudTeacherAmount: null,
           maintenanceFee: 0,
           reason: "",
-          isRefundMemberFee:null
+          isRefundMemberFee: null,
         };
         this.$refs["quitForm"].$refs["quitForm"].resetFields();
       }

+ 2 - 2
vue.config.js

@@ -19,8 +19,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'http://192.168.3.139:8000' // 箭河
 // let target = 'http://192.168.3.148:8000' //邹璇
 // let target = 'http://192.168.3.112:8000' //勇哥
-// let target = 'http://dev.dayaedu.com' // 开发环境
-let target = 'https://test.dayaedu.com' //测试环境
+let target = 'http://dev.dayaedu.com' // 开发环境
+// let target = 'https://test.dayaedu.com' //测试环境
 // let target = 'http://192.168.3.134' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {