瀏覽代碼

提交测试

1
mo 4 年之前
父節點
當前提交
5103eef6f6

+ 1 - 1
src/layout/components/Navbar.vue

@@ -11,7 +11,7 @@
       <!-- el-scrollbar -->
       <!-- el-scrollbar -->
       <el-scrollbar class="horizontal-scrollbar" style="overflow: hidden;">
       <el-scrollbar class="horizontal-scrollbar" style="overflow: hidden;">
           <template v-for="route in permission_routes">
           <template v-for="route in permission_routes">
-            <app-link v-if="!route.hidden" :to="route.path" :key="route.path" class="indexlayout-top-menu-li" :class="{'active': getTopMenuActive === route.path}">
+            <app-link v-if="!route.hidden" :to="route.path" :key="route.id" class="indexlayout-top-menu-li" :class="{'active': getTopMenuActive === route.path}">
                 <span>{{ route.meta.title }}</span>
                 <span>{{ route.meta.title }}</span>
             </app-link>
             </app-link>
           </template>
           </template>

+ 2 - 2
src/layout/components/Sidebar/index.vue

@@ -17,7 +17,7 @@
             <!-- <sidebar-item  v-for="route2 in route.children" :key="route.path + '/' + route2.path" :item="route2" :base-path="route.path" :resolve-path="route.path" :active-top-menu="getTopMenuActive" /> -->
             <!-- <sidebar-item  v-for="route2 in route.children" :key="route.path + '/' + route2.path" :item="route2" :base-path="route.path" :resolve-path="route.path" :active-top-menu="getTopMenuActive" /> -->
             <!-- <sidebar-menu-item v-for="route2 in route.children" :key="route.path + '/' + route2.path" :routes="route2" :base-path="route.path" :resolve-path="route.path" :active-top-menu="getTopMenuActive"/> -->
             <!-- <sidebar-menu-item v-for="route2 in route.children" :key="route.path + '/' + route2.path" :routes="route2" :base-path="route.path" :resolve-path="route.path" :active-top-menu="getTopMenuActive"/> -->
             <sidebar-item v-for="(route2) in route.children"
             <sidebar-item v-for="(route2) in route.children"
-                      :key="route.path + '/' + route2.path"
+                      :key="route2.id"
                       :item="route2"
                       :item="route2"
                       :active-top-menu="getTopMenuActive"
                       :active-top-menu="getTopMenuActive"
                       :base-path="route2.path" />
                       :base-path="route2.path" />
@@ -143,7 +143,7 @@ export default {
     position: relative;
     position: relative;
     &::after{
     &::after{
       position: absolute;
       position: absolute;
-      top: 0; 
+      top: 0;
       right: 0;
       right: 0;
       content: ' ';
       content: ' ';
       width: 6px;
       width: 6px;

+ 48 - 40
src/views/resetTeaming/index.vue

@@ -4,17 +4,21 @@
       <el-page-header @back="onCancel" :content="teamName"></el-page-header>
       <el-page-header @back="onCancel" :content="teamName"></el-page-header>
     </h2>
     </h2>
     <div class="m-core">
     <div class="m-core">
-      <p class="msg" :class="team_status" v-if="team_status">
-        <img :src="stepImgs[team_status]" alt="" />
-        {{ musicGroupType[team_status] }}
-      </p>
+      <el-popover placement="left" width="1000" trigger="hover" >
+        <teamJournal :teamid="teamid" />
+        <!--  v-if="team_status" -->
+        <p slot="reference" class="msg"  :class="team_status">
+          <img :src="stepImgs[team_status]" alt="" />
+          {{ musicGroupType[team_status] }}
+        </p>
+      </el-popover>
+
       <!-- navMenu    -->
       <!-- navMenu    -->
       <tab-router
       <tab-router
         v-model="activeIndex"
         v-model="activeIndex"
         type="card"
         type="card"
         ref="tab"
         ref="tab"
         :before-leave="checkGoTo"
         :before-leave="checkGoTo"
-
       >
       >
         <!--  @tab-click="handleClick" -->
         <!--  @tab-click="handleClick" -->
         <el-tab-pane
         <el-tab-pane
@@ -61,6 +65,36 @@
           />
           />
         </el-tab-pane>
         </el-tab-pane>
         <el-tab-pane
         <el-tab-pane
+          label="学员缴费设置"
+          lazy
+          v-if="permission('/teamStudentPayList')"
+          name="3"
+          :disabled="!teamid"
+        >
+          <resetPayList v-if="activeIndex == '3'" @changeActive="handleClick" />
+        </el-tab-pane>
+        <el-tab-pane
+          label="学校缴费设置"
+          lazy
+          v-if="permission('/teamSchoolPayList')"
+          name="6"
+          :disabled="!teamid"
+        >
+          <resetPayListSchool
+            v-if="activeIndex == '6'"
+            @changeActive="handleClick"
+          />
+        </el-tab-pane>
+        <el-tab-pane
+          label="报名缴费"
+          :disabled="!teamid"
+          name="11"
+          v-if="permission('/teamSignupList')"
+        >
+          <teamSignupList :teamid="teamid" v-if="activeIndex == 11" />
+        </el-tab-pane>
+
+        <el-tab-pane
           lazy
           lazy
           label="乐器清单"
           label="乐器清单"
           name="10"
           name="10"
@@ -119,44 +153,16 @@
         >
         >
           <courseList v-if="activeIndex == '8'" :teamid="teamid" />
           <courseList v-if="activeIndex == '8'" :teamid="teamid" />
         </el-tab-pane>
         </el-tab-pane>
-        <el-tab-pane
-          label="学员缴费设置"
-          lazy
-          v-if="permission('/teamStudentPayList')"
-          name="3"
-          :disabled="!teamid"
-        >
-          <resetPayList
-            v-if="activeIndex == '3' "
-            @changeActive="handleClick"
-          />
-        </el-tab-pane>
-        <el-tab-pane
-          label="学校缴费设置"
-          lazy
-          v-if="permission('/teamSchoolPayList')"
-          name="6"
-          :disabled="!teamid"
-        >
-          <resetPayListSchool
-            v-if="activeIndex == '6'"
-            @changeActive="handleClick"
-          />
-        </el-tab-pane>
+
         <!--   v-if="permission('/resetTeaming/coursePlan')" -->
         <!--   v-if="permission('/resetTeaming/coursePlan')" -->
-        <el-tab-pane
+        <!-- <el-tab-pane
           label="乐团日志"
           label="乐团日志"
           :disabled="!teamid"
           :disabled="!teamid"
           name="11"
           name="11"
           v-if="permission('/teamJournal')"
           v-if="permission('/teamJournal')"
         >
         >
           <teamJournal :teamid="teamid" v-if="activeIndex == 11" />
           <teamJournal :teamid="teamid" v-if="activeIndex == 11" />
-        </el-tab-pane>
-        <!-- <el-tab-pane label="新增小班课"
-                     name="5">
-          <improvement :teamid='teamid' />
-        </el-tab-pane> 1-->
-        <!-- 啦啦啦 -->
+        </el-tab-pane> -->
       </tab-router>
       </tab-router>
     </div>
     </div>
   </div>
   </div>
@@ -169,6 +175,7 @@ import resetClass from "@/views/teamDetail/components/resetClass";
 // import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
 // import coursePlan from '@/views/teamBuild/teamSeting/components/coursePlan'
 // import lookCourse from '@/views/teamBuild/teamSeting/components/lookCourse'
 // import lookCourse from '@/views/teamBuild/teamSeting/components/lookCourse'
 // import improvement from '@/views/teamBuild/teamSeting/components/improvementClass'
 // import improvement from '@/views/teamBuild/teamSeting/components/improvementClass'
+import teamSignupList from "@/views/teamBuild/signupList";
 import resetPayList from "@/views/resetTeaming/components/resetPayList";
 import resetPayList from "@/views/resetTeaming/components/resetPayList";
 import resetPayListSchool from "@/views/resetTeaming/components/resetPayListSchool";
 import resetPayListSchool from "@/views/resetTeaming/components/resetPayListSchool";
 import studentPayBase from "@/views/resetTeaming/components/studentPayBase";
 import studentPayBase from "@/views/resetTeaming/components/studentPayBase";
@@ -198,6 +205,7 @@ export default {
     musicOrder,
     musicOrder,
     teamJournal,
     teamJournal,
     teamRemainTime,
     teamRemainTime,
+    teamSignupList,
   },
   },
   name: "resetTeaming",
   name: "resetTeaming",
   data() {
   data() {
@@ -251,7 +259,7 @@ export default {
   async beforeRouteLeave(to, from, next) {
   async beforeRouteLeave(to, from, next) {
     if (this.activeIndex == 1) {
     if (this.activeIndex == 1) {
       // console.log(await this.$refs.teamBaseInfo.setStore('go'))
       // console.log(await this.$refs.teamBaseInfo.setStore('go'))
-      if (await this.$refs.teamBaseInfo.setStore('go')) {
+      if (await this.$refs.teamBaseInfo.setStore("go")) {
         next();
         next();
       }
       }
     } else {
     } else {
@@ -304,7 +312,6 @@ export default {
       // console.log('切换tab',val)
       // console.log('切换tab',val)
 
 
       this.$refs.tab.tab(val);
       this.$refs.tab.tab(val);
-
     },
     },
     permission(str) {
     permission(str) {
       return permission(str);
       return permission(str);
@@ -319,8 +326,7 @@ export default {
     checkGoTo() {
     checkGoTo() {
       var p = new Promise(async (resolve, reject) => {
       var p = new Promise(async (resolve, reject) => {
         if (this.activeIndex == 1 && this.$refs.teamBaseInfo) {
         if (this.activeIndex == 1 && this.$refs.teamBaseInfo) {
-
-          if (await this.$refs.teamBaseInfo.setStore('go')) {
+          if (await this.$refs.teamBaseInfo.setStore("go")) {
             resolve();
             resolve();
           }
           }
         } else {
         } else {
@@ -372,9 +378,11 @@ export default {
   // color: #777;
   // color: #777;
   font-size: 32px;
   font-size: 32px;
   font-weight: bold;
   font-weight: bold;
+  cursor: pointer;
   position: absolute;
   position: absolute;
   right: 40px;
   right: 40px;
   top: -55px;
   top: -55px;
+  z-index: 1000;
   img {
   img {
     width: 36px;
     width: 36px;
     height: 36px;
     height: 36px;

+ 3 - 1
src/views/teamBuild/modals/change-voice.vue

@@ -319,6 +319,7 @@ export default {
   watch: {
   watch: {
     detail() {
     detail() {
       if (this.detail) {
       if (this.detail) {
+
         this.fetchDetail();
         this.fetchDetail();
       }
       }
     },
     },
@@ -405,7 +406,8 @@ export default {
     },
     },
   },
   },
   mounted() {
   mounted() {
-    if (this.detail && this.detail.userId) {
+    console.log(this.detail)
+    if (this.detail && (this.detail.userId)) {
       this.fetchDetail();
       this.fetchDetail();
     }
     }
   },
   },

+ 67 - 98
src/views/teamBuild/signupList.vue

@@ -3,29 +3,14 @@
     <div class="topWrap">
     <div class="topWrap">
       <div>
       <div>
         <div style="display: flex; justify-content: space-between">
         <div style="display: flex; justify-content: space-between">
-          <div>
-            <h2>
-              <!-- + '报名详情' -->
-              <el-page-header @back="onCancel" :content="teamName">
-              </el-page-header>
-            </h2>
-            <p style="margin-bottom: 15px; font-size: 18px; font-weight: 400">
-              报名截止时间:{{ applyExpireDate | formatTimer }} 缴费截止时间:{{
-                paymentExpireDate | formatTimer
-              }}
+          <div style="display:flex;margin-bottom: 15px; font-size: 18px; font-weight: 400">
+            <p style="margin-right:10px" v-if="applyExpireDate">
+              报名截止时间:{{ applyExpireDate | formatTimer }}
             </p>
             </p>
+            <p v-if="paymentExpireDate">缴费截止时间:{{
+                paymentExpireDate | formatTimer
+              }}</p>
           </div>
           </div>
-          <p
-            class="msg"
-            :class="status == 'PAY' ? 'pay' : ''"
-            v-if="status == 'APPLY' || status == 'PAY'"
-          >
-            <img
-              :src="status == 'APPLY' ? stepImgs.APPLY : stepImgs.PAY"
-              alt=""
-            />
-            {{ status == "APPLY" ? "报名中" : "缴费中" }}
-          </p>
         </div>
         </div>
 
 
         <div class="btnList">
         <div class="btnList">
@@ -35,7 +20,7 @@
           <div
           <div
             class="newBand"
             class="newBand"
             @click="payStart"
             @click="payStart"
-            v-permission="getFullPermission('musicGroup/openPay')"
+            v-permission="'musicGroup/openPay'"
             v-if="status == 'APPLY'"
             v-if="status == 'APPLY'"
           >
           >
             开始缴费
             开始缴费
@@ -43,7 +28,7 @@
           <!-- v-show="status=='PAY'" -->
           <!-- v-show="status=='PAY'" -->
           <div
           <div
             class="newBand"
             class="newBand"
-            v-permission="getFullPermission('musicGroup/found')"
+            v-permission="'musicGroup/found'"
             @click="onGoHome"
             @click="onGoHome"
             v-if="status == 'APPLY' || status == 'PAY'"
             v-if="status == 'APPLY' || status == 'PAY'"
           >
           >
@@ -51,7 +36,7 @@
           </div>
           </div>
           <div
           <div
             class="newBand"
             class="newBand"
-            v-permission="getFullPermission('musicGroup/extensionPayment')"
+            v-permission="'musicGroup/extensionPayment'"
             @click="extendTime(true)"
             @click="extendTime(true)"
             v-show="
             v-show="
               status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE'
               status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE'
@@ -61,9 +46,7 @@
           </div>
           </div>
           <div
           <div
             class="newBand"
             class="newBand"
-            v-permission="
-              getFullPermission('musicGroup/extensionApplyExpireDate')
-            "
+            v-permission="'musicGroup/extensionApplyExpireDate'"
             @click="extendTime(false)"
             @click="extendTime(false)"
             v-show="
             v-show="
               status == 'PAY' ||
               status == 'PAY' ||
@@ -79,18 +62,12 @@
           <div
           <div
             class="newBand"
             class="newBand"
             v-show="rightList.length > 0"
             v-show="rightList.length > 0"
-            v-permission="
-              getFullPermission(
-                'studentRegistration/queryStudentApplyDetailExport'
-              )
-            "
+            v-permission="'studentRegistration/queryStudentApplyDetailExport'"
             @click="onDownLoadExecl"
             @click="onDownLoadExecl"
           >
           >
             报表导出
             报表导出
           </div>
           </div>
-          <auth
-            :auths="getFullPermission('studentRegistration/queryPreApplyList')"
-          >
+          <auth :auths="'studentRegistration/queryPreApplyList'">
             <div
             <div
               class="newBand"
               class="newBand"
               style="margin-right: 0"
               style="margin-right: 0"
@@ -108,7 +85,11 @@
           >
           >
             合并学员
             合并学员
           </div>
           </div>
-          <div class="newBand" style="background-color: #f97215; border: 1px solid #f97215;" @click="onCreateQRCode('rePayment')">
+          <div
+            class="newBand"
+            style="background-color: #f97215; border: 1px solid #f97215"
+            @click="onCreateQRCode('rePayment')"
+          >
             报名链接(无乐器)
             报名链接(无乐器)
           </div>
           </div>
         </div>
         </div>
@@ -146,8 +127,13 @@
         @submit="search"
         @submit="search"
         @reset="onReset"
         @reset="onReset"
       >
       >
-        <el-form-item >
-          <el-select v-model.trim="searchFrom.subject" filterable clearable placeholder="请选择专业">
+        <el-form-item>
+          <el-select
+            v-model.trim="searchFrom.subject"
+            filterable
+            clearable
+            placeholder="请选择专业"
+          >
             <el-option
             <el-option
               v-for="(item, index) in soundList"
               v-for="(item, index) in soundList"
               :key="index"
               :key="index"
@@ -156,7 +142,7 @@
             ></el-option>
             ></el-option>
           </el-select>
           </el-select>
         </el-form-item>
         </el-form-item>
-        <el-form-item >
+        <el-form-item>
           <el-select
           <el-select
             v-model.trim="searchFrom.isAllowAdjust"
             v-model.trim="searchFrom.isAllowAdjust"
             filterable
             filterable
@@ -168,11 +154,20 @@
           </el-select>
           </el-select>
         </el-form-item>
         </el-form-item>
         <el-form-item>
         <el-form-item>
-          <el-input v-model.trim="searchFrom.name" placeholder="请输入用户名或手机号" clearable></el-input>
+          <el-input
+            v-model.trim="searchFrom.name"
+            placeholder="请输入用户名或手机号"
+            clearable
+          ></el-input>
         </el-form-item>
         </el-form-item>
         <el-form-item>
         <el-form-item>
           <!-- <el-input v-model.trim="searchFrom.currentGrade" placeholder="请输入年级" clearable></el-input> -->
           <!-- <el-input v-model.trim="searchFrom.currentGrade" placeholder="请输入年级" clearable></el-input> -->
-          <el-select v-model.trim="searchFrom.currentGrade" filterable clearable placeholder="请输入年级">
+          <el-select
+            v-model.trim="searchFrom.currentGrade"
+            filterable
+            clearable
+            placeholder="请输入年级"
+          >
             <el-option
             <el-option
               v-for="(item, index) in gradeList"
               v-for="(item, index) in gradeList"
               :key="index"
               :key="index"
@@ -220,9 +215,7 @@
         </el-table>
         </el-table>
         <div
         <div
           class="btnWrap"
           class="btnWrap"
-          v-permission="
-            getFullPermission('musicGroup/updateExpectedStudentNum')
-          "
+          v-permission="'musicGroup/updateExpectedStudentNum'"
           style="margin-right: 20px; margin-top: 20px"
           style="margin-right: 20px; margin-top: 20px"
         >
         >
           <el-button v-show="!isEdit" @click="isEdit = true">编辑</el-button>
           <el-button v-show="!isEdit" @click="isEdit = true">编辑</el-button>
@@ -248,7 +241,9 @@
           </el-table-column>
           </el-table-column>
           <el-table-column align="center" label="入团年份">
           <el-table-column align="center" label="入团年份">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <div>{{ scope.row.currentGradeDate | dayjsFormat('YYYY年') }}</div>
+              <div>
+                {{ scope.row.currentGradeDate | dayjsFormat("YYYY年") }}
+              </div>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column label="年级班级" align="center">
           <el-table-column label="年级班级" align="center">
@@ -303,11 +298,7 @@
           >
           >
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div>
               <div>
-                <auth
-                  :auths="
-                    getFullPermission('studentRegistration/batchUpdateSubject')
-                  "
-                >
+                <auth :auths="'studentRegistration/batchUpdateSubject'">
                   <el-button
                   <el-button
                     type="text"
                     type="text"
                     v-show="scope.row.paymentStatus != 2"
                     v-show="scope.row.paymentStatus != 2"
@@ -330,9 +321,7 @@
                 <!-- PAY -->
                 <!-- PAY -->
                 <!-- &&  status == "PAY"-->
                 <!-- &&  status == "PAY"-->
                 <auth
                 <auth
-                  :auths="
-                    getFullPermission('studentRegistration/queryFeeDetail')
-                  "
+                  :auths="'studentRegistration/queryFeeDetail'"
                   v-show="scope.row.paymentStatus == 2"
                   v-show="scope.row.paymentStatus == 2"
                 >
                 >
                   <el-button type="text" @click="lookdetail(scope.row)"
                   <el-button type="text" @click="lookdetail(scope.row)"
@@ -340,9 +329,7 @@
                   >
                   >
                 </auth>
                 </auth>
                 <auth
                 <auth
-                  :auths="
-                    getFullPermission('musicGroupQuit/directQuitMusicGroup2')
-                  "
+                  :auths="'musicGroupQuit/directQuitMusicGroup2'"
                   v-show="scope.row.paymentStatus == 2"
                   v-show="scope.row.paymentStatus == 2"
                 >
                 >
                   <el-button type="text" @click="quitTeam(scope.row)"
                   <el-button type="text" @click="quitTeam(scope.row)"
@@ -350,22 +337,20 @@
                   >
                   >
                 </auth>
                 </auth>
                 <auth
                 <auth
-                  :auths="
-                    getFullPermission('musicGroupQuit/directQuitMusicGroup3')
-                  "
+                  :auths="'musicGroupQuit/directQuitMusicGroup3'"
                   v-show="scope.row.paymentStatus == 2"
                   v-show="scope.row.paymentStatus == 2"
                 >
                 >
                   <el-button type="text" @click="quieTeams(scope.row)"
                   <el-button type="text" @click="quieTeams(scope.row)"
                     >退团</el-button
                     >退团</el-button
                   >
                   >
                 </auth>
                 </auth>
-                <auth :auths="getFullPermission('visit/add')">
+                <auth :auths="'visit/add/teamSignupList'">
                   <el-button type="text" @click="addVisit(scope.row)"
                   <el-button type="text" @click="addVisit(scope.row)"
                     >新增回访</el-button
                     >新增回访</el-button
                   >
                   >
                 </auth>
                 </auth>
                 <auth
                 <auth
-                  :auths="getFullPermission('subjectChange/getStudentOriginal')"
+                  :auths="'subjectChange/getStudentOriginal'"
                   v-show="scope.row.paymentStatus == 2"
                   v-show="scope.row.paymentStatus == 2"
                 >
                 >
                   <el-button type="text" @click="openChangeVoice(scope.row)"
                   <el-button type="text" @click="openChangeVoice(scope.row)"
@@ -383,7 +368,7 @@
           "
           "
         >
         >
           <el-button @click="onSelectAll">全选/取消</el-button>
           <el-button @click="onSelectAll">全选/取消</el-button>
-          <auth :auths="getFullPermission('studentRegistration/openPayment')">
+          <auth :auths="'studentRegistration/openPayment'">
             <el-button
             <el-button
               style="background-color: #14928a; border: 1px solid #14928a"
               style="background-color: #14928a; border: 1px solid #14928a"
               @click="onPartPayment"
               @click="onPartPayment"
@@ -434,9 +419,7 @@
             v-model.trim="extendForm.expireDate"
             v-model.trim="extendForm.expireDate"
             value-format="yyyy-MM-dd"
             value-format="yyyy-MM-dd"
             type="date"
             type="date"
-            :picker-options="{
-              firstDayOfWeek: 1,
-            }"
+            :picker-options="payDate()"
             placeholder="选择日期"
             placeholder="选择日期"
           >
           >
           </el-date-picker>
           </el-date-picker>
@@ -659,8 +642,7 @@
     <el-dialog
     <el-dialog
       title="更改声部"
       title="更改声部"
       :visible.sync="changeVoiceVisible"
       :visible.sync="changeVoiceVisible"
-      @close="closeChangeVoice"
-      :destroy-on-close="true"
+      v-if="changeVoiceVisible"
       width="600px"
       width="600px"
     >
     >
       <changeVoice
       <changeVoice
@@ -690,7 +672,7 @@ import {
   getTeamBaseInfo,
   getTeamBaseInfo,
   studentApplyDetailExport,
   studentApplyDetailExport,
   StudentQuit,
   StudentQuit,
-  getMusicGroupGradeList
+  getMusicGroupGradeList,
 } from "@/api/buildTeam";
 } from "@/api/buildTeam";
 import mergeMusic from "./components/merge-music";
 import mergeMusic from "./components/merge-music";
 import forecastList from "./components/forecast-list";
 import forecastList from "./components/forecast-list";
@@ -841,8 +823,8 @@ export default {
       },
       },
       isPay: false,
       isPay: false,
       applyDates: this.applyDate(),
       applyDates: this.applyDate(),
-      detail:null,
-      gradeList: []
+      detail: null,
+      gradeList: [],
     };
     };
   },
   },
   created() {},
   created() {},
@@ -865,18 +847,17 @@ export default {
       // 判断是否带缓存参数
       // 判断是否带缓存参数
       this.pickerOptions = this.beginDate(new Date());
       this.pickerOptions = this.beginDate(new Date());
 
 
-      getMusicGroupGradeList({ musicGroupId: this.id }).then(res => {
-        let result = res.data
-        if(res.code == 200 && result) {
-          for(let i in result) {
+      getMusicGroupGradeList({ musicGroupId: this.id }).then((res) => {
+        let result = res.data;
+        if (res.code == 200 && result) {
+          for (let i in result) {
             this.gradeList.push({
             this.gradeList.push({
               value: i,
               value: i,
-              label: result[i]
-            })
+              label: result[i],
+            });
           }
           }
         }
         }
-      })
-
+      });
 
 
       getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
       getTeamBaseInfo({ musicGroupId: this.id }).then((res) => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -906,7 +887,7 @@ export default {
         name: null,
         name: null,
         subject: null, // 专业
         subject: null, // 专业
         isAllowAdjust: null, // 是否允许调剂
         isAllowAdjust: null, // 是否允许调剂
-        currentGrade: null
+        currentGrade: null,
       };
       };
       this.getList();
       this.getList();
     },
     },
@@ -1404,8 +1385,10 @@ export default {
       this.getList().then((res) => {
       this.getList().then((res) => {
         for (const item of res.data.rows) {
         for (const item of res.data.rows) {
           if (item.id === row.id) {
           if (item.id === row.id) {
-            this.rowDetail = { ...item };
+            this.rowDetail = { ...item,userId:item.studentId };
+            // console.log(this.rowDetail)
             this.changeVoiceVisible = true;
             this.changeVoiceVisible = true;
+
           }
           }
         }
         }
       });
       });
@@ -1453,35 +1436,21 @@ export default {
       }
       }
       this.extendPaymentStatus = true;
       this.extendPaymentStatus = true;
     },
     },
-    applyDate() {
+    payDate() {
       let self = this;
       let self = this;
       return {
       return {
         firstDayOfWeek: 1,
         firstDayOfWeek: 1,
         disabledDate(time) {
         disabledDate(time) {
-          if (self.paymentExpireDate) {
-            return (
-              time.getTime() >
-              new Date(self.paymentExpireDate.replace(/-/g, "/")).getTime()
-            );
-          } else {
-            return false;
-          }
+         return time.getTime()+ 86400000 < new Date().getTime();
         },
         },
       };
       };
     },
     },
-    payDate() {
+    applyDate() {
       let self = this;
       let self = this;
       return {
       return {
         firstDayOfWeek: 1,
         firstDayOfWeek: 1,
         disabledDate(time) {
         disabledDate(time) {
-          if (self.applyExpireDate) {
-            return (
-              time.getTime() <=
-              new Date(self.applyExpireDate.replace(/-/g, "/")).getTime()
-            );
-          } else {
-            return false;
-          }
+          return time.getTime()+ 86400000 < new Date().getTime();
         },
         },
       };
       };
     },
     },

+ 17 - 751
src/views/teamDetail/components/studentList.vue

@@ -1,40 +1,5 @@
 <template>
 <template>
   <div class="stu-container">
   <div class="stu-container">
-    <!-- 头部展示 -->
-    <!-- <statistic>
-      <statistic-item>
-        <span>在读人数</span>
-        <span>{{ studentListInfo.studying }}</span>
-      </statistic-item>
-      <statistic-item>
-        <span>退团人数</span>
-        <span>{{ studentListInfo.quit }}</span>
-      </statistic-item>
-      <statistic-item>
-        <span>新增人数</span>
-        <span>{{ studentListInfo.add }}</span>
-      </statistic-item>
-      <statistic-item>
-        <span>VIP&网管转化率</span>
-        <span>{{ studentListInfo.courseRate }}</span>
-      </statistic-item>
-    </statistic> -->
-
-    <!-- style="margin-bottom: 15px" -->
-    <p
-      style="margin-bottom: 15px; font-size: 16px; font-weight: 400"
-      v-if="
-        team_status == 'PAY' ||
-        team_status == 'APPLY' ||
-        (team_status == 'PROGRESS' && isCanReg) ||
-        team_status == 'PREPARE'
-      "
-    >
-      <span> 报名截止时间:{{ applyExpireDate | formatTimer }} </span>
-      <span v-if="team_status != 'APPLY'">
-        缴费截止时间:{{ paymentExpireDate | formatTimer }}
-      </span>
-    </p>
     <div class="studentListWrap" v-if="team_status == 'PROGRESS'">
     <div class="studentListWrap" v-if="team_status == 'PROGRESS'">
       <div
       <div
         class="newBand"
         class="newBand"
@@ -43,184 +8,8 @@
       >
       >
         新增学员
         新增学员
       </div>
       </div>
-      <!-- 可以直接去学生考勤查看 -->
-      <!-- <el-button type="primary" v-permission="'/studentSignin'"
-              @click="gotoSignin">点名总览</el-button> -->
-      <!-- <div
-        class="newBand"
-        v-permission="'studentManage/queryStudentSubTotalCourseTimes'"
-        @click="viewTimer"
-        style="margin-right: 15px"
-      >
-        剩余时长明细
-      </div> -->
     </div>
     </div>
-    <div
-      style="display: flex; justify-content: space-between; align-items: center"
-      v-if="
-        team_status == 'PAY' ||
-        team_status == 'APPLY' ||
-        (team_status == 'PROGRESS' && isCanReg) ||
-        team_status == 'PREPARE'
-      "
-    >
-      <!-- <h2> -->
-      <!-- + '报名详情' -->
-      <!-- <el-page-header @back="onCancel" :content="teamName">
-              </el-page-header> -->
-      <!-- </h2> -->
-
-      <div
-        class="btnList"
-        style="margin-bottom: 15px; font-size: 18px; font-weight: 400"
-      >
-        <!-- <div class='newBand close'
-               v-permission="'musicGroup/cancelMusicGroup'"
-               @click="onClose">停止乐团</div>   v-show="status == 'APPLY'"-->
-        <div
-          class="newBand"
-          @click="payStart"
-          v-permission="'musicGroup/openPay'"
-          v-if="team_status == 'APPLY'"
-        >
-          开始缴费
-        </div>
-        <!-- v-show="status=='PAY'" -->
-        <div
-          class="newBand"
-          v-permission="'musicGroup/found'"
-          @click="onGoHome"
-          v-if="team_status == 'APPLY' || team_status == 'PAY'"
-        >
-          确认开团
-        </div>
-        <div
-          class="newBand"
-          v-permission="'musicGroup/extensionPayment'"
-          @click="extendTime(true)"
-          v-show="
-            team_status == 'PAY' ||
-            team_status == 'PROGRESS' ||
-            team_status == 'PREPARE'
-          "
-        >
-          延长缴费
-        </div>
-        <div
-          class="newBand"
-          v-permission="'musicGroup/extensionApplyExpireDate'"
-          @click="extendTime(false)"
-          v-show="
-            team_status == 'PAY' ||
-            team_status == 'APPLY' ||
-            team_status == 'PROGRESS' ||
-            team_status == 'PREPARE'
-          "
-        >
-          延长报名
-        </div>
-        <div class="newBand" @click="onCreateQRCode('payment')">报名链接</div>
-
-        <div class="newBand" @click="onCreateQRCode('detail')">
-          报名缴费详情
-        </div>
-        <div
-          class="newBand"
-          v-permission="'musicGroup/addMusicGroupRegs'"
-          @click="mergeVisible = true"
-          v-show="team_status == 'PAY' || team_status == 'APPLY'"
-        >
-          合并学员
-        </div>
-        <div
-          v-if="team_status == 'APPLY'"
-          v-permission="'studentRegistration/openPayment'"
-          class="newBand"
-          style="background-color: #14928a; border: 1px solid #14928a"
-          @click="onPartPayment"
-          type="primary"
-        >
-          提前开启缴费
-        </div>
-        <el-popover placement="bottom" width="800" trigger="hover">
-          <div>
-            <el-table
-              style="width: 100% !important"
-              :data="leftList"
-              :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
-            >
-              <el-table-column
-                label="乐团声部"
-                prop="subjectName"
-                align="center"
-              >
-              </el-table-column>
-              <el-table-column
-                label="计划招生"
-                prop="expectedStudentNum"
-                align="center"
-              >
-                <template slot-scope="scope">
-                  <div>
-                    <p v-show="!isEdit">{{ scope.row.expectedStudentNum }}</p>
 
 
-                    <el-input
-                      v-show="isEdit"
-                      v-model.trim="scope.row.expectedStudentNum"
-                    ></el-input>
-                  </div>
-                </template>
-              </el-table-column>
-              <el-table-column
-                label="已报名"
-                prop="applyStudentNum"
-                align="center"
-              >
-              </el-table-column>
-              <el-table-column label="已缴费" prop="payNum" align="center">
-              </el-table-column>
-            </el-table>
-            <div
-              class="btnWrap"
-              v-permission="'musicGroup/updateExpectedStudentNum'"
-              style="margin-right: 20px; margin-top: 20px"
-            >
-              <el-button v-show="!isEdit" @click="isEdit = true"
-                >编辑</el-button
-              >
-              <el-button v-show="isEdit" @click="saveIsEdit">保存</el-button>
-            </div>
-          </div>
-          <!-- <auth :auths="'studentRegistration/openPayment'">
-            <el-button
-              style="background-color: #14928a; border: 1px solid #14928a"
-              @click="onPartPayment"
-              type="primary"
-              >开启缴费</el-button
-            >
-          </auth> -->
-          <div class="newBand" style="margin-bottom: 10px" slot="reference">
-            声部报名计划
-          </div>
-        </el-popover>
-        <div
-          class="newBand"
-          style="
-            background-color: #f97215;
-            border: 1px solid #f97215;
-            margin-left: 15px;
-          "
-          @click="onCreateQRCode('rePayment')"
-        >
-          报名链接(无乐器)
-        </div>
-      </div>
-    </div>
-    <!-- v-if="
-        team_status == 'PAY' ||
-        team_status == 'PROGRESS' ||
-        team_status == 'PREPARE'
-      " -->
 
 
     <!-- 搜索类型 -->
     <!-- 搜索类型 -->
     <save-form
     <save-form
@@ -581,21 +370,9 @@
                 @click="addVisit(scope.row)"
                 @click="addVisit(scope.row)"
                 >新增回访</el-button
                 >新增回访</el-button
               >
               >
-              <auth :auths="'studentRegistration/batchUpdateSubject'">
-                <el-button
-                  type="text"
-                  v-show="
-                    (team_status == 'PAY' || team_status == 'APPLY') &&
-                    scope.row.paymentStatus != 2 &&
-                    isShowResSound() &&
-                    scope.row.studentStatus != 'QUIT'
-                  "
-                  @click="resetSubject(scope.row)"
-                  >修改专业</el-button
-                >
-              </auth>
 
 
-              <!-- APPLY  status == "APPLY" || s-->
+
+
               <el-popover
               <el-popover
                 v-show="scope.row.remark"
                 v-show="scope.row.remark"
                 placement="top-start"
                 placement="top-start"
@@ -606,29 +383,8 @@
               >
               >
                 <el-button type="text" slot="reference">备注</el-button>
                 <el-button type="text" slot="reference">备注</el-button>
               </el-popover>
               </el-popover>
-              <!-- PAY -->
-              <!-- &&  status == "PAY"-->
-              <auth
-                :auths="'studentRegistration/queryFeeDetail'"
-                v-show="scope.row.paymentStatus == 2"
-              >
-                <el-button type="text" @click="lookdetail(scope.row)"
-                  >查看</el-button
-                >
-              </auth>
-              <auth
-                :auths="'subjectChange/getStudentOriginal'"
-                v-show="
-                  (team_status == 'PAY' || team_status == 'APPLY') &&
-                  scope.row.paymentStatus == 2 &&
-                  isShowResSound() &&
-                  scope.row.studentStatus != 'QUIT'
-                "
-              >
-                <el-button type="text" @click="openChangeVoice(scope.row)"
-                  >更改声部</el-button
-                >
-              </auth>
+
+
             </div>
             </div>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
@@ -845,16 +601,6 @@
       </span>
       </span>
     </el-dialog>
     </el-dialog>
 
 
-    <el-dialog title="报名二维码" :visible.sync="qrcodeStatus" width="300px">
-      <div class="left-code">
-        <h2>学员报名链接</h2>
-        <div id="qrcode" class="qrcode code" ref="qrCodeUrl"></div>
-        <p class="code-url" v-if="codeUrl">{{ codeUrl }}</p>
-      </div>
-    </el-dialog>
-    <el-dialog :visible.sync="timesVisible" title="查看剩余可排课时长">
-      <times-view v-if="timesVisible" @close="timesVisible = false" />
-    </el-dialog>
     <el-dialog
     <el-dialog
       title="修改缴费周期"
       title="修改缴费周期"
       :before-close="closePayVisible"
       :before-close="closePayVisible"
@@ -950,108 +696,6 @@
         @close="paymentDetailVisible = false"
         @close="paymentDetailVisible = false"
       />
       />
     </el-dialog>
     </el-dialog>
-    <el-dialog title="选择合并乐团" :visible.sync="mergeVisible" width="950px">
-      <mergeMusic
-        v-if="mergeVisible"
-        style="padding: 0 20px"
-        :organId="organId"
-        @close="mergeVisible = false"
-        @submited="getList"
-      />
-    </el-dialog>
-    <el-dialog
-      title="开始缴费"
-      :visible.sync="paymentStatus"
-      width="400px"
-      destroy-on-close
-    >
-      <el-form
-        ref="paymentForm"
-        class="paymentForm"
-        :model="paymentForm"
-        :rules="paymentRules"
-      >
-        <el-form-item label="请设置缴费截止日期" prop="paymentExpireDate">
-          <el-date-picker
-            v-model.trim="paymentForm.paymentExpireDate"
-            type="date"
-            value-format="yyyy-MM-dd"
-            :picker-options="payDate()"
-            style="width: 100%"
-            placeholder="选择日期"
-          >
-          </el-date-picker>
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button @click="paymentStatus = false">取 消</el-button>
-        <el-button type="primary" @click="onStartPayment('paymentForm')"
-          >确 定</el-button
-        >
-      </div>
-    </el-dialog>
-    <el-dialog
-      :title="!isPay ? '延长报名' : '延长缴费'"
-      :visible.sync="extendPaymentStatus"
-      destroy-on-close
-      width="400px"
-    >
-      <el-form :model="extendForm" ref="extendForm" :rules="extendRule">
-        <el-form-item v-if="isPay" label="延长缴费时间" prop="expireDate">
-          <el-date-picker
-            v-model.trim="extendForm.expireDate"
-            value-format="yyyy-MM-dd"
-            type="date"
-            :picker-options="{
-              firstDayOfWeek: 1,
-            }"
-            placeholder="选择日期"
-          >
-          </el-date-picker>
-        </el-form-item>
-        <el-form-item label="延长报名时间" v-else prop="expireDate">
-          <el-date-picker
-            v-model.trim="extendForm.expireDate"
-            value-format="yyyy-MM-dd"
-            type="date"
-            :picker-options="applyDate"
-            placeholder="选择日期"
-          >
-          </el-date-picker>
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button @click="extendPaymentStatus = false">取 消</el-button>
-        <el-button
-          type="primary"
-          v-if="isPay"
-          @click="onExtendPayment('extendForm', isPay)"
-          >确 定</el-button
-        >
-        <el-button
-          v-else
-          type="primary"
-          @click="onExtendPayment('extendForm', isPay)"
-          >确 定</el-button
-        >
-      </div>
-    </el-dialog>
-    <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
-    <el-dialog
-      title="更改声部"
-      :visible.sync="changeVoiceVisible"
-      @close="closeChangeVoice"
-      v-if="changeVoiceVisible"
-      width="600px"
-    >
-      <changeVoice
-        @close="closeChangeVoice"
-        @submited="getList"
-        :detail.sync="rowDetail"
-        :musicGroupId="teamid"
-        :voiceList="leftList"
-      />
-    </el-dialog>
     <el-dialog
     <el-dialog
       title="订单详情"
       title="订单详情"
       :visible.sync="orderVisible"
       :visible.sync="orderVisible"
@@ -1099,24 +743,6 @@
         >
         >
       </div>
       </div>
     </el-dialog>
     </el-dialog>
-    <el-dialog title="修改专业" :visible.sync="subjectVisible" width="400px">
-      <el-form :model="maskSoundForm">
-        <el-form-item label="选择专业">
-          <el-select v-model.trim="maskSoundForm.subject" filterable clearable>
-            <el-option
-              v-for="(item, index) in soundList"
-              :key="index"
-              :label="item.name"
-              :value="item.id"
-            ></el-option>
-          </el-select>
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button @click="subjectVisible = false">取 消</el-button>
-        <el-button type="primary" @click="okReset">确 定</el-button>
-      </div>
-    </el-dialog>
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
@@ -1344,40 +970,7 @@ export default {
       createUserPayVisible: false,
       createUserPayVisible: false,
       team_status: "",
       team_status: "",
       // 整合报名中
       // 整合报名中
-      paymentExpireDate: "",
-      applyExpireDate: null,
-      mergeVisible: false,
-      team_status: "",
-      paymentNum: 0,
-      paymentStatus: false,
-
-      paymentForm: {
-        paymentExpireDate: null,
 
 
-        // feeType: null
-      },
-      paymentRules: {
-        paymentExpireDate: [
-          { required: true, message: "请设置缴费截止日期", trigger: "blur" },
-        ],
-      },
-      extendForm: {
-        expireDate: null,
-      },
-      extendRule: {
-        expireDate: [
-          { required: true, message: "请选择延长时间", trigger: "change" },
-        ],
-      },
-      isPay: false,
-      extendPaymentStatus: false, // 延长缴费
-      codeStatus: false,
-      qrCodeUrl: null,
-      codeTitle: null,
-      isEdit: false,
-      leftList: [],
-      changeVoiceVisible: false,
-      rowDetail: null,
       orderVisible: false,
       orderVisible: false,
       orderForm: {
       orderForm: {
         name: "",
         name: "",
@@ -1448,12 +1041,12 @@ export default {
       this.teamid = this.$route.query.id;
       this.teamid = this.$route.query.id;
       this.team_status = this.$route.query.team_status;
       this.team_status = this.$route.query.team_status;
       // 获取乐团是否能补招
       // 获取乐团是否能补招
-      try {
-        const ruselt = await checkCanReg({ musicGroupId: this.teamid });
-        this.isCanReg = ruselt.data;
-      } catch (e) {
-        console.log(e);
-      }
+      // try {
+      //   const ruselt = await checkCanReg({ musicGroupId: this.teamid });
+      //   this.isCanReg = ruselt.data;
+      // } catch (e) {
+      //   console.log(e);
+      // }
       getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
       getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
         let result = res.data;
         let result = res.data;
         if (res.code == 200 && result) {
         if (res.code == 200 && result) {
@@ -1466,13 +1059,13 @@ export default {
         }
         }
       });
       });
       // 获取报名截止日期和缴费截止日期
       // 获取报名截止日期和缴费截止日期
-      getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
-        if (res.code == 200) {
-          this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
-          this.applyExpireDate = res.data.musicGroup.applyExpireDate;
-          this.organId = res.data.musicGroup.organId;
-        }
-      });
+      // getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
+      //   if (res.code == 200) {
+      //     this.paymentExpireDate = res.data.musicGroup.paymentExpireDate;
+      //     this.applyExpireDate = res.data.musicGroup.applyExpireDate;
+      //     this.organId = res.data.musicGroup.organId;
+      //   }
+      // });
 
 
       // 获取汇总数据
       // 获取汇总数据
       // this.getTeamStudent();
       // this.getTeamStudent();
@@ -1604,27 +1197,6 @@ export default {
       this.$refs.searchForm.resetFields();
       this.$refs.searchForm.resetFields();
       this.search();
       this.search();
     },
     },
-    onCreateQRCode() {
-      // 生成报名二维码
-      this.qrcodeStatus = true;
-      let id = this.$route.query.id;
-      if (this.qrcodes) {
-        this.qrcodes = false;
-        setTimeout(() => {
-          this.qrcode = new QRCode("qrcode", {
-            width: 200,
-            height: 200,
-            colorDark: "#000000",
-            colorLight: "#ffffff",
-            correctLevel: QRCode.CorrectLevel.H,
-          });
-          this.qrcode.makeCode(
-            vaildStudentUrl() + "/#/login?musicGroupId=" + id
-          );
-          this.codeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
-        }, 500);
-      }
-    },
     getList() {
     getList() {
       getintoClass({ musicGroupId: this.teamid }).then((res) => {
       getintoClass({ musicGroupId: this.teamid }).then((res) => {
         if (res.code == 200) {
         if (res.code == 200) {
@@ -1655,7 +1227,6 @@ export default {
         if (res.code == 200) {
         if (res.code == 200) {
           this.tableList = res.data.rows;
           this.tableList = res.data.rows;
           this.rules.total = res.data.total;
           this.rules.total = res.data.total;
-          this.getStudentStatus();
           return res;
           return res;
         }
         }
       });
       });
@@ -2053,59 +1624,6 @@ export default {
       this.addStudentVisible = true;
       this.addStudentVisible = true;
     },
     },
     // 报名缴费功能
     // 报名缴费功能
-    onGoHome() {
-      if (this.paymentNum <= 0) {
-        this.$message.error("当前缴费人数为0,无法开团");
-        return;
-      }
-      this.$confirm(`是否确认开团?`, "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          musicGroupFound({
-            musicGroupId: this.$route.query.id,
-          }).then((res) => {
-            if (res.code == 200) {
-              // let query = this.$route.query;
-              // this.$message.success("开启成功");
-              // this.$router.push({
-              //   path: "/teamList",
-              //   query: {
-              //     ...query,
-              //   },
-              // });
-              this.$store.dispatch("delVisitedViews", this.$route);
-              this.$router.push({ path: "/teamList" });
-            }
-          });
-        })
-        .catch(() => {});
-    },
-    payStart() {
-      this.paymentStatus = true;
-    },
-    getStudentStatus() {
-      let obj = {
-        musicGroupId: this.teamid,
-        page: 1,
-        rows: 9999,
-      };
-      getStudentList(obj).then((res) => {
-        if (res.code == 200) {
-          res.data.rows.forEach((item) => {
-            // '未开启缴费', '开启缴费', '已缴费'
-            if (item.paymentStatus == 2) {
-              this.paymentNum += 1;
-            }
-          });
-          // this.rightList = res.data.rows;
-          // this.rules.total = res.data.total;
-          // return res;
-        }
-      });
-    },
     payDate() {
     payDate() {
       let self = this;
       let self = this;
       return {
       return {
@@ -2122,38 +1640,6 @@ export default {
         },
         },
       };
       };
     },
     },
-    onStartPayment(formName) {
-      // 开启缴费
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          musicGroupOpenPay({
-            musicGroupId: this.teamid,
-            expireDate: this.paymentForm.paymentExpireDate,
-            // feeType: this.paymentForm.feeType
-          }).then((res) => {
-            if (res.code == 200) {
-              this.$message.success("开启成功");
-              this.paymentStatus = false;
-              this.$store.dispatch("delVisitedViews", this.$route);
-              this.$router.push({ path: "/teamList" });
-              // this.$router.push({
-              //   path: "/business/resetTeaming",
-              //   query: {
-              //     status: "PAY",
-              //     id: this.$route.query.id,
-              //     name: this.$route.query.name,
-              //   },
-              // });
-              // this.team_status = "PAY";
-              // this.paymentExpireDate = this.paymentForm.paymentExpireDate;
-              // this.getList();
-            }
-          });
-        } else {
-          return false;
-        }
-      });
-    },
     applyDate() {
     applyDate() {
       let self = this;
       let self = this;
       return {
       return {
@@ -2170,232 +1656,12 @@ export default {
         },
         },
       };
       };
     },
     },
-    extendTime(isPay) {
-      this.isPay = isPay;
-
-      if (isPay) {
-        // 点击的延长缴费
-        this.extendForm.expireDate = this.paymentExpireDate;
-      } else {
-        // 点击的延长报名
-        this.extendForm.expireDate = this.applyExpireDate;
-      }
-      this.extendPaymentStatus = true;
-    },
-    onExtendPayment(formName, isPay) {
-      this.$refs[formName].validate((valid) => {
-        if (valid) {
-          if (!isPay) {
-            extensionApplyExpire({
-              musicGroupId: this.teamid,
-              expireDate: this.extendForm.expireDate,
-            }).then((res) => {
-              if (res.code == 200) {
-                this.$message.success("延长报名成功");
-                this.extendPaymentStatus = false;
-                getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
-                  if (res.code == 200) {
-                    this.applyExpireDate = res.data.musicGroup.applyExpireDate;
-                    this.setBase(res);
-                  }
-                });
-              } else {
-                this.$message.error(res.msg);
-              }
-            });
-          } else {
-            extensionPayment({
-              musicGroupId: this.teamid,
-              expireDate: this.extendForm.expireDate,
-            }).then((res) => {
-              if (res.code == 200) {
-                this.$message.success("延长缴费成功");
-                this.extendPaymentStatus = false;
-                getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
-                  if (res.code == 200) {
-                    this.paymentExpireDate =
-                      res.data.musicGroup.paymentExpireDate;
-                  }
-                });
-              } else {
-                this.$message.error(res.msg);
-              }
-            });
-          }
-        }
-      });
-    },
-    onCreateQRCode(type) {
-      // 生成报名二维码
-      let id = this.teamid;
-      this.codeStatus = true;
-      if (type == "payment") {
-        this.codeTitle = "学员报名链接";
-        this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id;
-      } else if (type == "detail") {
-        let teamName = this.$route.query.name;
-        this.codeTitle = "报名缴费详情";
-        this.qrCodeUrl =
-          vaildTeacherUrl() +
-          "/#/order?musicGroupId=" +
-          id +
-          "&musicGroupName=" +
-          teamName;
-      } else if (type == "rePayment") {
-        this.codeTitle = "学生报名链接(无乐器)";
-        this.qrCodeUrl =
-          vaildStudentUrl() + "/#/login?musicGroupId=" + id + "&instrument=1";
-      }
-    },
-    saveIsEdit() {
-      // 提交数据
-      this.isEdit = false;
-      resetPlanNum(this.leftList).then((res) => {});
-    },
-    openChangeVoice(row) {
-      // console.log(row);
-      // this.getList
-      this.getList().then((res) => {
-        for (const item of res.data.rows) {
-          if (item.userId === row.userId) {
-            this.rowDetail = { ...item, studentId: row.userId };
-            this.changeVoiceVisible = true;
-            console.log(this.rowDetail);
-          }
-        }
-      });
-      // this.rowDetail = { ...row, studentId: row.userId };
-      // this.changeVoiceVisible = true;
-    },
-    closeChangeVoice() {
-      this.changeVoiceVisible = false;
-      // this.rowDetail = null
-    },
-    lookdetail(row) {
-      this.orderVisible = true;
-      this.activeId = row.userId;
-      this.orderForm.name = row.realName;
-      this.orderForm.subject = row.subjectName;
-      getStudentFeeDetail({
-        musicGroupId: this.teamid,
-        studentId: row.userId,
-      }).then((res) => {
-        if (res.code == 200) {
-          if (res.data) {
-            this.orderForm.totalAmount = res.data.totalAmount;
-            // this.orderForm.subjectFee = res.data.courseFee;
-            let goodStr = "";
-            let goodPrice = 0;
-            let otherStr = "";
-            let othersPrice = 0;
-            for (let i in res.data.goods) {
-              if (res.data.goods[i].goodsType == "INSTRUMENT") {
-                goodStr += res.data.goods[i].goodsName + ",";
-                goodPrice += parseFloat(res.data.goods[i].musicalFee);
-                // this.orderForm.axe = res.data.goods[i].goodsName;
-                // this.orderForm.axePrice = res.data.goods[i].musicalFee;
-              } else if (res.data.goods[i].goodsType == "ACCESSORIES") {
-                otherStr += res.data.goods[i].goodsName + ",";
-                othersPrice += parseFloat(res.data.goods[i].musicalFee);
-                // this.orderForm.others = res.data.goods[i].goodsName;
-                // this.orderForm.othersPrice = res.data.goods[i].musicalFee;
-              } else if (res.data.goods[i].goodsType == "COURSE") {
-                this.orderForm.subjectFee = res.data.goods[i].musicalFee;
-              }
-            }
-            this.orderForm.others = otherStr.substring(0, otherStr.length - 1);
-            this.orderForm.othersPrice = othersPrice;
-            this.orderForm.axe = goodStr.substring(0, goodStr.length - 1);
-            this.orderForm.axePrice = goodPrice;
-          }
-        }
-      });
-    },
-    // 修改专业
-    resetSubject(row) {
-      this.activeId = row.userId;
-      this.maskSoundForm.subject = row.subjectId
-      this.subjectVisible = true;
-      //   resetStudentSubject().then(res=>{]})
-    },
-    okReset() {
-      if (!this.maskSoundForm.subject) {
-        this.$message.error("请选择调剂专业");
-        return;
-      }
-      resetStudentSubject({
-        musicGroupId: this.teamid,
-        userId: this.activeId,
-        subId: this.maskSoundForm.subject,
-      }).then((res) => {
-        if (res.code == 200) {
-          this.$message.success("修改成功");
-          this.subjectVisible = false;
-          this.maskForm.subject = "";
-          // getintoClass({ musicGroupId: this.id }).then((res) => {
-          //   if (res.code == 200) {
-          //     this.leftList = res.data;
-          //   }
-          // });
-          this.getList();
-        }
-      });
-    },
-    onPartPayment() {
-      // 部分缴费
-      let selection = this.multipleSelection;
-      if (selection.length <= 0) {
-        this.$message.error("您还没有选择学生");
-        return false;
-      }
-      let ids = [];
-      selection.forEach((item) => {
-        ids.push(item.studentRegistrationId);
-      });
-
-      this.$confirm(`是否确认开启缴费?`, "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          openPayment({
-            ids: ids.join(","),
-          }).then((res) => {
-            if (res.code == 200) {
-              this.$message.success("开启成功");
-              this.getList();
-            } else {
-              this.$message.error(res.msg);
-            }
-          });
-        })
-        .catch(() => {});
-    },
     handleSelectionChange(val) {
     handleSelectionChange(val) {
       this.multipleSelection = val;
       this.multipleSelection = val;
     },
     },
     checkboxSelect(row) {
     checkboxSelect(row) {
       return row.paymentStatus == 0;
       return row.paymentStatus == 0;
     },
     },
-    isShowResSound() {
-      /**
-       *         team_status == 'PAY' ||
-        team_status == 'APPLY' ||
-        team_status == 'PROGRESS'&&isCanReg ||
-        team_status == 'PREPARE')
-       */
-      if (this.team_status == "PAY" || this.team_status == "APPLY") {
-        return true;
-      } else if (
-        this.team_status == "PROGRESS" ||
-        this.team_status == "PREPARE"
-      ) {
-        return this.isCanReg;
-      } else {
-        return false;
-      }
-    },
   },
   },
   watch: {
   watch: {
     quitVisible(val) {
     quitVisible(val) {

+ 2 - 2
src/views/teamDetail/teamList.vue

@@ -742,7 +742,7 @@ export default {
                 name: row.name,
                 name: row.name,
                 team_status: "APPLY",
                 team_status: "APPLY",
                 type:'look',
                 type:'look',
-                tabrouter:7
+                tabrouter:11
               },
               },
             },
             },
             (router) => {
             (router) => {
@@ -762,7 +762,7 @@ export default {
                 name: row.name,
                 name: row.name,
                 team_status: "PAY",
                 team_status: "PAY",
                 type:'look',
                 type:'look',
-                tabrouter:7
+                tabrouter:11
               },
               },
             },
             },
             (router) => {
             (router) => {