|  | @@ -1,39 +1,33 @@
 | 
	
		
			
				|  |  |  <!--  -->
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="m-core">
 | 
	
		
			
				|  |  | -    <el-form :inline="true" :model="searchForm">
 | 
	
		
			
				|  |  | +    <el-form :inline="true"
 | 
	
		
			
				|  |  | +             :model="searchForm">
 | 
	
		
			
				|  |  |        <el-form-item>
 | 
	
		
			
				|  |  | -        <el-select
 | 
	
		
			
				|  |  | -          placeholder="缴费类型"
 | 
	
		
			
				|  |  | -          v-model="searchForm.paymentType"
 | 
	
		
			
				|  |  | -          clearable
 | 
	
		
			
				|  |  | -          filterable
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-option
 | 
	
		
			
				|  |  | -            v-for="(item, index) in payOrderTypeList"
 | 
	
		
			
				|  |  | -            :label="item.label"
 | 
	
		
			
				|  |  | -            :value="item.value"
 | 
	
		
			
				|  |  | -            :key="index"
 | 
	
		
			
				|  |  | -          ></el-option>
 | 
	
		
			
				|  |  | +        <el-select placeholder="缴费类型"
 | 
	
		
			
				|  |  | +                   v-model="searchForm.paymentType"
 | 
	
		
			
				|  |  | +                   clearable
 | 
	
		
			
				|  |  | +                   filterable>
 | 
	
		
			
				|  |  | +          <el-option v-for="(item, index) in payOrderTypeList"
 | 
	
		
			
				|  |  | +                     :label="item.label"
 | 
	
		
			
				|  |  | +                     :value="item.value"
 | 
	
		
			
				|  |  | +                     :key="index"></el-option>
 | 
	
		
			
				|  |  |          </el-select>
 | 
	
		
			
				|  |  |        </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        <el-form-item>
 | 
	
		
			
				|  |  | -        <el-button type="danger" @click="getList">搜索</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="danger"
 | 
	
		
			
				|  |  | +                   @click="getList">搜索</el-button>
 | 
	
		
			
				|  |  |          <!-- <el-button @click="onReSet" type="primary">重置</el-button> -->
 | 
	
		
			
				|  |  |        </el-form-item>
 | 
	
		
			
				|  |  |      </el-form>
 | 
	
		
			
				|  |  |      <div class="topWrap">
 | 
	
		
			
				|  |  | -      <!-- <div class="newBand"
 | 
	
		
			
				|  |  | -           @click="newPay"
 | 
	
		
			
				|  |  | -           v-permission="'musicGroupPaymentCalender/add'">新建缴费</div> -->
 | 
	
		
			
				|  |  |        <div class="newBand"
 | 
	
		
			
				|  |  |             @click="newUserPay"
 | 
	
		
			
				|  |  | +           v-if="teamStatus"
 | 
	
		
			
				|  |  |             v-permission="'musicGroupPaymentCalender/add'">新建学员缴费</div>
 | 
	
		
			
				|  |  | -      <!-- <div class="newBand"
 | 
	
		
			
				|  |  | -           @click="newSchoolPay"
 | 
	
		
			
				|  |  | -           v-permission="'musicGroupPaymentCalender/add'">新建学校缴费</div> -->
 | 
	
		
			
				|  |  |        <div class="newBand"
 | 
	
		
			
				|  |  | +           v-if="teamStatus"
 | 
	
		
			
				|  |  |             v-permission="'/studentPayBase'"
 | 
	
		
			
				|  |  |             @click="setStudentPay">学员缴费设置</div>
 | 
	
		
			
				|  |  |        <!-- <div class="newBand"
 | 
	
	
		
			
				|  | @@ -41,97 +35,65 @@
 | 
	
		
			
				|  |  |             @click="onCreateQRCode">续费二维码</div> -->
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <div class="tableWrap">
 | 
	
		
			
				|  |  | -      <el-table
 | 
	
		
			
				|  |  | -        style="width: 100%"
 | 
	
		
			
				|  |  | -        :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
 | 
	
		
			
				|  |  | -        :data="tableList"
 | 
	
		
			
				|  |  | -      >
 | 
	
		
			
				|  |  | -           <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="batchNo"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          label="订单编号"
 | 
	
		
			
				|  |  | -        ></el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="startPaymentDate"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          label="缴费开始日期"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +      <el-table style="width: 100%"
 | 
	
		
			
				|  |  | +                :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
 | 
	
		
			
				|  |  | +                :data="tableList">
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="batchNo"
 | 
	
		
			
				|  |  | +                         width="200"
 | 
	
		
			
				|  |  | +                         label="订单编号"></el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="startPaymentDate"
 | 
	
		
			
				|  |  | +                         width="200"
 | 
	
		
			
				|  |  | +                         label="缴费日期">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  | -              {{ scope.row.startPaymentDate | formatTimer }}
 | 
	
		
			
				|  |  | +              {{ scope.row.startPaymentDate | formatTimer }} ~ {{ scope.row.deadlinePaymentDate | formatTimer }}
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          prop="deadlinePaymentDate"
 | 
	
		
			
				|  |  | -          label="缴费结束日期"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="expectNum"
 | 
	
		
			
				|  |  | +                         width="200"
 | 
	
		
			
				|  |  | +                         label="缴费人数(预计/实际)">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  | -              {{ scope.row.deadlinePaymentDate | formatTimer }}
 | 
	
		
			
				|  |  | +              {{scope.row.expectNum}}/{{scope.row.actualNum}}
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="expectNum"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          label="预计缴费人数"
 | 
	
		
			
				|  |  | -        ></el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column align="center" prop="paymentPattern" label="缴费方式">
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="paymentPattern"
 | 
	
		
			
				|  |  | +                         label="缴费方式">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                {{ scope.row.paymentPattern | teamPayStatus }}
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="paymentValidStartDate"
 | 
	
		
			
				|  |  | -          width="150"
 | 
	
		
			
				|  |  | -          label="缴费有效期开始日期"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <template slot-scope="scope">
 | 
	
		
			
				|  |  | -            <div>
 | 
	
		
			
				|  |  | -              {{ scope.row.paymentValidStartDate | formatTimer }}
 | 
	
		
			
				|  |  | -            </div>
 | 
	
		
			
				|  |  | -          </template>
 | 
	
		
			
				|  |  | -        </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="paymentValidEndDate"
 | 
	
		
			
				|  |  | -          width="150"
 | 
	
		
			
				|  |  | -          label="缴费有效期结束日期"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="paymentValidStartDate"
 | 
	
		
			
				|  |  | +                         width="200"
 | 
	
		
			
				|  |  | +                         label="缴费有效期">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  | -              {{ scope.row.paymentValidEndDate | formatTimer }}
 | 
	
		
			
				|  |  | +              {{ scope.row.paymentValidStartDate | formatTimer }} ~ {{ scope.row.paymentValidEndDate | formatTimer }}
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="actualNum"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          label="实际缴费人数"
 | 
	
		
			
				|  |  | -        ></el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column align="center" prop="status" label="缴费状态">
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="status"
 | 
	
		
			
				|  |  | +                         label="缴费状态">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                {{ scope.row.status | payTypeStatus }}
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="isGiveMusicNetwork"
 | 
	
		
			
				|  |  | -          width="120"
 | 
	
		
			
				|  |  | -          label="是否赠送网管课"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +        <el-table-column align="center"
 | 
	
		
			
				|  |  | +                         prop="isGiveMusicNetwork"
 | 
	
		
			
				|  |  | +                         width="120"
 | 
	
		
			
				|  |  | +                         label="是否赠送网管课">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                {{ scope.row.isGiveMusicNetwork ? "是" : "否" }}
 | 
	
	
		
			
				|  | @@ -141,7 +103,9 @@
 | 
	
		
			
				|  |  |          <el-table-column align="center"
 | 
	
		
			
				|  |  |                           prop="memo"
 | 
	
		
			
				|  |  |                           label="备注"></el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column label="操作" fixed="right" min-width="260px">
 | 
	
		
			
				|  |  | +        <el-table-column label="操作"
 | 
	
		
			
				|  |  | +                         fixed="right"
 | 
	
		
			
				|  |  | +                         min-width="260px">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                <el-button type="text"
 | 
	
	
		
			
				|  | @@ -149,206 +113,176 @@
 | 
	
		
			
				|  |  |                           v-permission="'musicGroupPaymentCalender/auditListDetail'">查看</el-button>
 | 
	
		
			
				|  |  |                <el-button type="text"
 | 
	
		
			
				|  |  |                           @click="openChioseStudent(scope.row)"
 | 
	
		
			
				|  |  | -                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'"
 | 
	
		
			
				|  |  | +                         v-if="scope.row.status != 'REJECT' && scope.row.status != 'AUDITING'&&teamStatus"
 | 
	
		
			
				|  |  |                           v-permission="'musicGroupPaymentCalenderDetail/batchAdd'">添加学员</el-button>
 | 
	
		
			
				|  |  |                <el-button type="text"
 | 
	
		
			
				|  |  | -                         v-if="scope.row.status == 'REJECT'"
 | 
	
		
			
				|  |  | +                         v-if="scope.row.status == 'REJECT'&&teamStatus"
 | 
	
		
			
				|  |  |                           v-permission="'musicGroupPaymentCalender/update'"
 | 
	
		
			
				|  |  |                           @click="resetPay(scope.row)">修改</el-button>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -              <el-button type="text" v-if="!isNewGropu" @click="onCreateQRCode(scope.row)">续费二维码</el-button>
 | 
	
		
			
				|  |  | -              <el-button type="text" v-if="isNewGropu" v-permission="'musicGroup/findMusicGroupSubjectInfo/966'" @click="onPreview(scope.row)">预览</el-button>
 | 
	
		
			
				|  |  | +              <el-button type="text"
 | 
	
		
			
				|  |  | +                         v-if="!isNewGropu&&teamStatus"
 | 
	
		
			
				|  |  | +                         @click="onCreateQRCode(scope.row)">续费二维码</el-button>
 | 
	
		
			
				|  |  | +              <el-button type="text"
 | 
	
		
			
				|  |  | +                         v-if="isNewGropu&&teamStatus"
 | 
	
		
			
				|  |  | +                         v-permission="'musicGroup/findMusicGroupSubjectInfo/966'"
 | 
	
		
			
				|  |  | +                         @click="onPreview(scope.row)">预览</el-button>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |        </el-table>
 | 
	
		
			
				|  |  | -      <pagination
 | 
	
		
			
				|  |  | -        :total="rules.total"
 | 
	
		
			
				|  |  | -        :page.sync="rules.page"
 | 
	
		
			
				|  |  | -        :limit.sync="rules.limit"
 | 
	
		
			
				|  |  | -        :page-sizes="rules.page_size"
 | 
	
		
			
				|  |  | -        @pagination="getList"
 | 
	
		
			
				|  |  | -      />
 | 
	
		
			
				|  |  | +      <pagination :total="rules.total"
 | 
	
		
			
				|  |  | +                  :page.sync="rules.page"
 | 
	
		
			
				|  |  | +                  :limit.sync="rules.limit"
 | 
	
		
			
				|  |  | +                  :page-sizes="rules.page_size"
 | 
	
		
			
				|  |  | +                  @pagination="getList" />
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  | -    <el-dialog
 | 
	
		
			
				|  |  | -      :visible.sync="payVisible"
 | 
	
		
			
				|  |  | -      :close-on-click-modal="false"
 | 
	
		
			
				|  |  | -      width="500px"
 | 
	
		
			
				|  |  | -      :title="diTitle"
 | 
	
		
			
				|  |  | -    >
 | 
	
		
			
				|  |  | -      <el-form
 | 
	
		
			
				|  |  | -        :model="payForm"
 | 
	
		
			
				|  |  | -        :inline="true"
 | 
	
		
			
				|  |  | -        label-width="120px"
 | 
	
		
			
				|  |  | -        label-position="right"
 | 
	
		
			
				|  |  | -        ref="payForm"
 | 
	
		
			
				|  |  | -      >
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="缴费开始日期"
 | 
	
		
			
				|  |  | -          :rules="[
 | 
	
		
			
				|  |  | +    <el-dialog :visible.sync="payVisible"
 | 
	
		
			
				|  |  | +               :close-on-click-modal="false"
 | 
	
		
			
				|  |  | +               width="500px"
 | 
	
		
			
				|  |  | +               :title="diTitle">
 | 
	
		
			
				|  |  | +      <el-form :model="payForm"
 | 
	
		
			
				|  |  | +               :inline="true"
 | 
	
		
			
				|  |  | +               label-width="120px"
 | 
	
		
			
				|  |  | +               label-position="right"
 | 
	
		
			
				|  |  | +               ref="payForm">
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费开始日期"
 | 
	
		
			
				|  |  | +                      :rules="[
 | 
	
		
			
				|  |  |              { required: true, message: '请设置缴费开始日期', trigger: 'blur' },
 | 
	
		
			
				|  |  |            ]"
 | 
	
		
			
				|  |  | -          prop="startPaymentDate"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-date-picker
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.startPaymentDate"
 | 
	
		
			
				|  |  | -            @change="changeStartTime"
 | 
	
		
			
				|  |  | -            type="date"
 | 
	
		
			
				|  |  | -            :picker-options="pickerOptions"
 | 
	
		
			
				|  |  | -            value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | -            placeholder="开始日期"
 | 
	
		
			
				|  |  | -          ></el-date-picker>
 | 
	
		
			
				|  |  | +                      prop="startPaymentDate">
 | 
	
		
			
				|  |  | +          <el-date-picker v-model.trim="payForm.startPaymentDate"
 | 
	
		
			
				|  |  | +                          @change="changeStartTime"
 | 
	
		
			
				|  |  | +                          type="date"
 | 
	
		
			
				|  |  | +                          :picker-options="pickerOptions"
 | 
	
		
			
				|  |  | +                          value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | +                          placeholder="开始日期"></el-date-picker>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="缴费结束日期"
 | 
	
		
			
				|  |  | -          :rules="[
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费结束日期"
 | 
	
		
			
				|  |  | +                      :rules="[
 | 
	
		
			
				|  |  |              { required: true, message: '请设置缴费结束日期', trigger: 'blur' },
 | 
	
		
			
				|  |  |            ]"
 | 
	
		
			
				|  |  | -          prop="deadlinePaymentDate"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-date-picker
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.deadlinePaymentDate"
 | 
	
		
			
				|  |  | -            type="date"
 | 
	
		
			
				|  |  | -            :picker-options="beginDate(payForm.startPaymentDate)"
 | 
	
		
			
				|  |  | -            value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | -            placeholder="结束日期"
 | 
	
		
			
				|  |  | -          ></el-date-picker>
 | 
	
		
			
				|  |  | +                      prop="deadlinePaymentDate">
 | 
	
		
			
				|  |  | +          <el-date-picker v-model.trim="payForm.deadlinePaymentDate"
 | 
	
		
			
				|  |  | +                          type="date"
 | 
	
		
			
				|  |  | +                          :picker-options="beginDate(payForm.startPaymentDate)"
 | 
	
		
			
				|  |  | +                          value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | +                          placeholder="结束日期"></el-date-picker>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="缴费方式"
 | 
	
		
			
				|  |  | -          prop="paymentPattern"
 | 
	
		
			
				|  |  | -          :rules="[{ required: true, message: '请选择缴费方式' }]"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-select
 | 
	
		
			
				|  |  | -            placeholder="缴费方式"
 | 
	
		
			
				|  |  | -            style="width: 220px"
 | 
	
		
			
				|  |  | -            clearable
 | 
	
		
			
				|  |  | -            filterable
 | 
	
		
			
				|  |  | -            @change="paymentPatternChange"
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.paymentPattern"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | -            <el-option :value="0" label="按月"></el-option>
 | 
	
		
			
				|  |  | -            <el-option :value="1" label="按季"></el-option>
 | 
	
		
			
				|  |  | -            <el-option :value="2" label="一次性"></el-option>
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费方式"
 | 
	
		
			
				|  |  | +                      prop="paymentPattern"
 | 
	
		
			
				|  |  | +                      :rules="[{ required: true, message: '请选择缴费方式' }]">
 | 
	
		
			
				|  |  | +          <el-select placeholder="缴费方式"
 | 
	
		
			
				|  |  | +                     style="width: 220px"
 | 
	
		
			
				|  |  | +                     clearable
 | 
	
		
			
				|  |  | +                     filterable
 | 
	
		
			
				|  |  | +                     @change="paymentPatternChange"
 | 
	
		
			
				|  |  | +                     v-model.trim="payForm.paymentPattern">
 | 
	
		
			
				|  |  | +            <el-option :value="0"
 | 
	
		
			
				|  |  | +                       label="按月"></el-option>
 | 
	
		
			
				|  |  | +            <el-option :value="1"
 | 
	
		
			
				|  |  | +                       label="按季"></el-option>
 | 
	
		
			
				|  |  | +            <el-option :value="2"
 | 
	
		
			
				|  |  | +                       label="一次性"></el-option>
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="缴费有效期开始"
 | 
	
		
			
				|  |  | -          :rules="[
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费有效期开始"
 | 
	
		
			
				|  |  | +                      :rules="[
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                required: true,
 | 
	
		
			
				|  |  |                message: '请设置缴费有效期开始日期',
 | 
	
		
			
				|  |  |                trigger: 'blur',
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |            ]"
 | 
	
		
			
				|  |  | -          prop="paymentValidStartDate"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-date-picker
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.paymentValidStartDate"
 | 
	
		
			
				|  |  | -            type="date"
 | 
	
		
			
				|  |  | -            @change="changePaymentStartTime"
 | 
	
		
			
				|  |  | -            :picker-options="pickerOptions"
 | 
	
		
			
				|  |  | -            value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | -            placeholder="有效期开始日期"
 | 
	
		
			
				|  |  | -          ></el-date-picker>
 | 
	
		
			
				|  |  | +                      prop="paymentValidStartDate">
 | 
	
		
			
				|  |  | +          <el-date-picker v-model.trim="payForm.paymentValidStartDate"
 | 
	
		
			
				|  |  | +                          type="date"
 | 
	
		
			
				|  |  | +                          @change="changePaymentStartTime"
 | 
	
		
			
				|  |  | +                          :picker-options="pickerOptions"
 | 
	
		
			
				|  |  | +                          value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | +                          placeholder="有效期开始日期"></el-date-picker>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="缴费有效期结束"
 | 
	
		
			
				|  |  | -          :rules="[
 | 
	
		
			
				|  |  | +        <el-form-item label="缴费有效期结束"
 | 
	
		
			
				|  |  | +                      :rules="[
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                required: payForm.paymentPattern !== 2,
 | 
	
		
			
				|  |  |                message: '请设置缴费有效期结束日期',
 | 
	
		
			
				|  |  |                trigger: 'blur',
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |            ]"
 | 
	
		
			
				|  |  | -          prop="paymentValidEndDate"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-date-picker
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.paymentValidEndDate"
 | 
	
		
			
				|  |  | -            type="date"
 | 
	
		
			
				|  |  | -            :disabled="payForm.paymentPattern === 2"
 | 
	
		
			
				|  |  | -            :picker-options="beginDate(payForm.paymentValidStartDate)"
 | 
	
		
			
				|  |  | -            value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | -            placeholder="有效期结束日期"
 | 
	
		
			
				|  |  | -          ></el-date-picker>
 | 
	
		
			
				|  |  | +                      prop="paymentValidEndDate">
 | 
	
		
			
				|  |  | +          <el-date-picker v-model.trim="payForm.paymentValidEndDate"
 | 
	
		
			
				|  |  | +                          type="date"
 | 
	
		
			
				|  |  | +                          :disabled="payForm.paymentPattern === 2"
 | 
	
		
			
				|  |  | +                          :picker-options="beginDate(payForm.paymentValidStartDate)"
 | 
	
		
			
				|  |  | +                          value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | +                          placeholder="有效期结束日期"></el-date-picker>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="收费类型"
 | 
	
		
			
				|  |  | -          v-if="isNew"
 | 
	
		
			
				|  |  | -          :rules="[
 | 
	
		
			
				|  |  | +        <el-form-item label="收费类型"
 | 
	
		
			
				|  |  | +                      v-if="isNew"
 | 
	
		
			
				|  |  | +                      :rules="[
 | 
	
		
			
				|  |  |              { required: true, message: '请选择收费类型', trigger: 'blur' },
 | 
	
		
			
				|  |  |            ]"
 | 
	
		
			
				|  |  | -          prop="type"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-select
 | 
	
		
			
				|  |  | -            v-model.trim="payForm.type"
 | 
	
		
			
				|  |  | -            style="width: 220px !important"
 | 
	
		
			
				|  |  | -            placeholder="课程类型"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | -            <el-option label="线上" value="ONLINE"></el-option>
 | 
	
		
			
				|  |  | -            <el-option label="线下" value="OFFLINE"></el-option>
 | 
	
		
			
				|  |  | +                      prop="type">
 | 
	
		
			
				|  |  | +          <el-select v-model.trim="payForm.type"
 | 
	
		
			
				|  |  | +                     style="width: 220px !important"
 | 
	
		
			
				|  |  | +                     placeholder="课程类型">
 | 
	
		
			
				|  |  | +            <el-option label="线上"
 | 
	
		
			
				|  |  | +                       value="ONLINE"></el-option>
 | 
	
		
			
				|  |  | +            <el-option label="线下"
 | 
	
		
			
				|  |  | +                       value="OFFLINE"></el-option>
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item
 | 
	
		
			
				|  |  | -          label="备注"
 | 
	
		
			
				|  |  | -          v-if="isNew"
 | 
	
		
			
				|  |  | -          :rules="[{ required: true, message: '请填写备注', trigger: 'blur' }]"
 | 
	
		
			
				|  |  | -          prop="memo"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <el-input
 | 
	
		
			
				|  |  | -            type="textarea"
 | 
	
		
			
				|  |  | -            style="width: 220px !important"
 | 
	
		
			
				|  |  | -            :rows="4"
 | 
	
		
			
				|  |  | -            placeholder="请填写备注"
 | 
	
		
			
				|  |  | -            v-model="payForm.memo"
 | 
	
		
			
				|  |  | -          ></el-input>
 | 
	
		
			
				|  |  | +        <el-form-item label="备注"
 | 
	
		
			
				|  |  | +                      v-if="isNew"
 | 
	
		
			
				|  |  | +                      :rules="[{ required: true, message: '请填写备注', trigger: 'blur' }]"
 | 
	
		
			
				|  |  | +                      prop="memo">
 | 
	
		
			
				|  |  | +          <el-input type="textarea"
 | 
	
		
			
				|  |  | +                    style="width: 220px !important"
 | 
	
		
			
				|  |  | +                    :rows="4"
 | 
	
		
			
				|  |  | +                    placeholder="请填写备注"
 | 
	
		
			
				|  |  | +                    v-model="payForm.memo"></el-input>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |        </el-form>
 | 
	
		
			
				|  |  | -      <div slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | +      <div slot="footer"
 | 
	
		
			
				|  |  | +           class="dialog-footer">
 | 
	
		
			
				|  |  |          <el-button @click="payVisible = false">取 消</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="primary" v-if="isNew" @click="newPayInfo"
 | 
	
		
			
				|  |  | -          >确 定</el-button
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -        <el-button type="primary" v-else @click="resetPayDate">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   v-if="isNew"
 | 
	
		
			
				|  |  | +                   @click="newPayInfo">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   v-else
 | 
	
		
			
				|  |  | +                   @click="resetPayDate">确 定</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | -    <el-dialog
 | 
	
		
			
				|  |  | -      title="查看"
 | 
	
		
			
				|  |  | -      :visible.sync="reviewVisible"
 | 
	
		
			
				|  |  | -      width="900px"
 | 
	
		
			
				|  |  | -      destroy-on-close
 | 
	
		
			
				|  |  | -    >
 | 
	
		
			
				|  |  | -      <reviewDetail
 | 
	
		
			
				|  |  | -        @close="reviewVisible = false"
 | 
	
		
			
				|  |  | -        @submited="getList"
 | 
	
		
			
				|  |  | -        :detail="viewDetail"
 | 
	
		
			
				|  |  | -        :musicGroupId="$route.query.id"
 | 
	
		
			
				|  |  | -        destroy-on-close
 | 
	
		
			
				|  |  | -      />
 | 
	
		
			
				|  |  | -      <div slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="reviewVisible = false"
 | 
	
		
			
				|  |  | -          >关闭</el-button
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +    <el-dialog title="查看"
 | 
	
		
			
				|  |  | +               :visible.sync="reviewVisible"
 | 
	
		
			
				|  |  | +               width="900px"
 | 
	
		
			
				|  |  | +               destroy-on-close>
 | 
	
		
			
				|  |  | +      <reviewDetail @close="reviewVisible = false"
 | 
	
		
			
				|  |  | +                    @submited="getList"
 | 
	
		
			
				|  |  | +                    :detail="viewDetail"
 | 
	
		
			
				|  |  | +                    :musicGroupId="$route.query.id"
 | 
	
		
			
				|  |  | +                    destroy-on-close />
 | 
	
		
			
				|  |  | +      <div slot="footer"
 | 
	
		
			
				|  |  | +           class="dialog-footer">
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   @click="reviewVisible = false">关闭</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | -    <el-dialog
 | 
	
		
			
				|  |  | -      :title="payFormTitle"
 | 
	
		
			
				|  |  | -      :visible.sync="userVisible"
 | 
	
		
			
				|  |  | -      width="830px"
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    >
 | 
	
		
			
				|  |  | -      <userPayForm
 | 
	
		
			
				|  |  | -        v-if="userVisible"
 | 
	
		
			
				|  |  | -        @close="userVisible = false"
 | 
	
		
			
				|  |  | -        @submited="payedSubmited"
 | 
	
		
			
				|  |  | -        @changeActive="$listeners.changeActive"
 | 
	
		
			
				|  |  | -        :organizationCourseUnitPriceSettings="organizationCourseUnitPriceSettings"
 | 
	
		
			
				|  |  | -        :rowDetail='activeRow'
 | 
	
		
			
				|  |  | -        :type="payFormType"
 | 
	
		
			
				|  |  | -        :baseInfo="baseInfo"
 | 
	
		
			
				|  |  | -        :paymentType="isNewGropu ? 0 : undefined"
 | 
	
		
			
				|  |  | -        :musicGroupId="$route.query.id"
 | 
	
		
			
				|  |  | -      />
 | 
	
		
			
				|  |  | +    <el-dialog :title="payFormTitle"
 | 
	
		
			
				|  |  | +               :visible.sync="userVisible"
 | 
	
		
			
				|  |  | +               width="830px">
 | 
	
		
			
				|  |  | +      <userPayForm v-if="userVisible"
 | 
	
		
			
				|  |  | +                   @close="userVisible = false"
 | 
	
		
			
				|  |  | +                   @submited="payedSubmited"
 | 
	
		
			
				|  |  | +                   @changeActive="$listeners.changeActive"
 | 
	
		
			
				|  |  | +                   :organizationCourseUnitPriceSettings="organizationCourseUnitPriceSettings"
 | 
	
		
			
				|  |  | +                   :rowDetail='activeRow'
 | 
	
		
			
				|  |  | +                   :type="payFormType"
 | 
	
		
			
				|  |  | +                   :baseInfo="baseInfo"
 | 
	
		
			
				|  |  | +                   :paymentType="isNewGropu ? 0 : undefined"
 | 
	
		
			
				|  |  | +                   :musicGroupId="$route.query.id" />
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <el-dialog title="学员选择"
 | 
	
	
		
			
				|  | @@ -365,34 +299,44 @@
 | 
	
		
			
				|  |  |        <div slot="footer"
 | 
	
		
			
				|  |  |             class="dialog-footer">
 | 
	
		
			
				|  |  |          <el-button @click="chioseStudentVisible = false">取 消</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="submitNewPay">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   @click="submitNewPay">确 定</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <qr-code v-model="qrcodeStatus" title="续费二维码" :codeUrl="codeUrl" />
 | 
	
		
			
				|  |  | +    <qr-code v-model="qrcodeStatus"
 | 
	
		
			
				|  |  | +             title="续费二维码"
 | 
	
		
			
				|  |  | +             :codeUrl="codeUrl" />
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <el-dialog
 | 
	
		
			
				|  |  | -      title="选择预览声部"
 | 
	
		
			
				|  |  | -      :visible.sync="dialogSubjectVisible"
 | 
	
		
			
				|  |  | -      width="400px">
 | 
	
		
			
				|  |  | +    <el-dialog title="选择预览声部"
 | 
	
		
			
				|  |  | +               :visible.sync="dialogSubjectVisible"
 | 
	
		
			
				|  |  | +               width="400px">
 | 
	
		
			
				|  |  |        <el-radio-group v-model="dialogSubjectId">
 | 
	
		
			
				|  |  | -        <el-radio style="margin-right: 15px;" border size="medium" :label="item.subjectId" v-for="(item, index) in dialogSubjectList" :key="index">{{ item.subName }}</el-radio>
 | 
	
		
			
				|  |  | +        <el-radio style="margin-right: 15px;"
 | 
	
		
			
				|  |  | +                  border
 | 
	
		
			
				|  |  | +                  size="medium"
 | 
	
		
			
				|  |  | +                  :label="item.subjectId"
 | 
	
		
			
				|  |  | +                  v-for="(item, index) in dialogSubjectList"
 | 
	
		
			
				|  |  | +                  :key="index">{{ item.subName }}</el-radio>
 | 
	
		
			
				|  |  |        </el-radio-group>
 | 
	
		
			
				|  |  |        <div slot="footer">
 | 
	
		
			
				|  |  |          <el-button @click="dialogSubjectVisible = false">取 消</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="primary" v-permission="'studentRegistration/getSubjectGoodsAndInfo/967'" @click="onPreviewSubmit">预 览</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   v-permission="'studentRegistration/getSubjectGoodsAndInfo/967'"
 | 
	
		
			
				|  |  | +                   @click="onPreviewSubmit">预 览</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <el-dialog
 | 
	
		
			
				|  |  | -      title="预览"
 | 
	
		
			
				|  |  | -      :visible.sync="previewVisible"
 | 
	
		
			
				|  |  | -      v-if="previewVisible"
 | 
	
		
			
				|  |  | -      class="previewContainer"
 | 
	
		
			
				|  |  | -      width="400px">
 | 
	
		
			
				|  |  | -      <subject-preview :subjectId="dialogSubjectId" :calenderId="dialogCalenderId"></subject-preview>
 | 
	
		
			
				|  |  | +    <el-dialog title="预览"
 | 
	
		
			
				|  |  | +               :visible.sync="previewVisible"
 | 
	
		
			
				|  |  | +               v-if="previewVisible"
 | 
	
		
			
				|  |  | +               class="previewContainer"
 | 
	
		
			
				|  |  | +               width="400px">
 | 
	
		
			
				|  |  | +      <subject-preview :subjectId="dialogSubjectId"
 | 
	
		
			
				|  |  | +                       :calenderId="dialogCalenderId"></subject-preview>
 | 
	
		
			
				|  |  |        <div slot="footer">
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="previewVisible = false">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary"
 | 
	
		
			
				|  |  | +                   @click="previewVisible = false">确 定</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
	
		
			
				|  | @@ -419,7 +363,7 @@ import reviewDetail from '../modals/review-detail'
 | 
	
		
			
				|  |  |  import subjectPreview from '@/views/resetTeaming/modals/subject-preview'
 | 
	
		
			
				|  |  |  import { userPaymentType } from '@/constant'
 | 
	
		
			
				|  |  |  import { objectToOptions } from '@/utils'
 | 
	
		
			
				|  |  | -import { payOrderTypeList}  from "@/utils/searchArray";
 | 
	
		
			
				|  |  | +import { payOrderTypeList } from "@/utils/searchArray";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    props: ["baseInfo", "isNewGropu"],
 | 
	
		
			
				|  |  |    components: {
 | 
	
	
		
			
				|  | @@ -432,7 +376,7 @@ export default {
 | 
	
		
			
				|  |  |      reviewDetail,
 | 
	
		
			
				|  |  |      subjectPreview
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  data() {
 | 
	
		
			
				|  |  | +  data () {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        musicGroupStu: [],
 | 
	
		
			
				|  |  |        payFormType: "user",
 | 
	
	
		
			
				|  | @@ -468,7 +412,7 @@ export default {
 | 
	
		
			
				|  |  |        activeRow: null,
 | 
	
		
			
				|  |  |        pickerOptions: {
 | 
	
		
			
				|  |  |          firstDayOfWeek: 1,
 | 
	
		
			
				|  |  | -        disabledDate(time) {
 | 
	
		
			
				|  |  | +        disabledDate (time) {
 | 
	
		
			
				|  |  |            return time.getTime() + 86400000 <= new Date().getTime();
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |        },
 | 
	
	
		
			
				|  | @@ -487,50 +431,54 @@ export default {
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    //生命周期 - 创建完成(可以访问当前this实例)
 | 
	
		
			
				|  |  | -  created() {},
 | 
	
		
			
				|  |  | +  created () { },
 | 
	
		
			
				|  |  |    //生命周期 - 挂载完成(可以访问DOM元素)
 | 
	
		
			
				|  |  | -  async mounted() {
 | 
	
		
			
				|  |  | +  async mounted () {
 | 
	
		
			
				|  |  |      // 获取分部
 | 
	
		
			
				|  |  |      try {
 | 
	
		
			
				|  |  |        const res = await getOrganizationCourseUnitPriceSettings({
 | 
	
		
			
				|  |  |          rows: 9999
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |        this.organizationCourseUnitPriceSettings = res.data.rows
 | 
	
		
			
				|  |  | -    } catch (error) {}
 | 
	
		
			
				|  |  | +    } catch (error) { }
 | 
	
		
			
				|  |  |      this.init();
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 | 
	
		
			
				|  |  | -    payOrderTypeList() {
 | 
	
		
			
				|  |  | +    payOrderTypeList () {
 | 
	
		
			
				|  |  |        return objectToOptions(userPaymentType);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    payFormTitle() {
 | 
	
		
			
				|  |  | +    payFormTitle () {
 | 
	
		
			
				|  |  |        if (this.isNew) {
 | 
	
		
			
				|  |  |          return this.payFormType === "user" ? "新增学员缴费" : "新增学校缴费";
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          return this.payFormType === "user" ? "修改学员缴费" : "修改学校缴费";
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    teamStatus () {
 | 
	
		
			
				|  |  | +      let type = this.$route.query.type;
 | 
	
		
			
				|  |  | +      return type == 'teamDraft' || type == 'resetTeam'
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  activated() {
 | 
	
		
			
				|  |  | +  activated () {
 | 
	
		
			
				|  |  |      this.init();
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | -    async init() {
 | 
	
		
			
				|  |  | +    async init () {
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  |          const res = await getMusicGroupStu({
 | 
	
		
			
				|  |  |            musicGroupId: this.$route.query.id,
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      } catch (error) {}
 | 
	
		
			
				|  |  | +      } catch (error) { }
 | 
	
		
			
				|  |  |        this.getList();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    newUserPay() {
 | 
	
		
			
				|  |  | +    newUserPay () {
 | 
	
		
			
				|  |  |        this.payFormType = "user";
 | 
	
		
			
				|  |  |        this.isNew = true;
 | 
	
		
			
				|  |  |        this.activeRow = null
 | 
	
		
			
				|  |  |        this.userVisible = true;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    newSchoolPay() {
 | 
	
		
			
				|  |  | +    newSchoolPay () {
 | 
	
		
			
				|  |  |        this.payFormType = "school";
 | 
	
		
			
				|  |  |        this.isNew = true;
 | 
	
		
			
				|  |  |        this.activeRow = null
 | 
	
	
		
			
				|  | @@ -551,7 +499,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    paymentPatternChange(val) {
 | 
	
		
			
				|  |  | +    paymentPatternChange (val) {
 | 
	
		
			
				|  |  |        if (val === 2) {
 | 
	
		
			
				|  |  |          this.payForm.paymentValidEndDate = null;
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -560,22 +508,22 @@ export default {
 | 
	
		
			
				|  |  |        this.qrcodeStatus = true
 | 
	
		
			
				|  |  |        this.codeUrl = vaildStudentUrl() + '/#/musicGroupRenew?calenderId=' + row.id
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    chioseStudent(val) {
 | 
	
		
			
				|  |  | +    chioseStudent (val) {
 | 
	
		
			
				|  |  |        this.chioseStudentList = val;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    newPay() {
 | 
	
		
			
				|  |  | +    newPay () {
 | 
	
		
			
				|  |  |        this.diTitle = "新增缴费";
 | 
	
		
			
				|  |  |        this.isNew = true;
 | 
	
		
			
				|  |  |        this.payVisible = true;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    resetPay(row) {
 | 
	
		
			
				|  |  | +    resetPay (row) {
 | 
	
		
			
				|  |  |        this.diTitle = "修改缴费";
 | 
	
		
			
				|  |  |        this.isNew = false;
 | 
	
		
			
				|  |  |        this.activeRow = row;
 | 
	
		
			
				|  |  | -      this.payFormType = row.payUserType==='SCHOOL'?'school':'user'
 | 
	
		
			
				|  |  | +      this.payFormType = row.payUserType === 'SCHOOL' ? 'school' : 'user'
 | 
	
		
			
				|  |  |        this.userVisible = true;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    async chioseStudentSubmited() {
 | 
	
		
			
				|  |  | +    async chioseStudentSubmited () {
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  |          await this.$confirm('缴费创建完成, 是否立即排课?', '提示', {
 | 
	
		
			
				|  |  |            confirmButtonText: '确定',
 | 
	
	
		
			
				|  | @@ -587,9 +535,9 @@ export default {
 | 
	
		
			
				|  |  |              name: '5'
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -      } catch (error) {}
 | 
	
		
			
				|  |  | +      } catch (error) { }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    detelePay(row) {
 | 
	
		
			
				|  |  | +    detelePay (row) {
 | 
	
		
			
				|  |  |        let id = row.id;
 | 
	
		
			
				|  |  |        this.$confirm(`确定删除该缴费周期?`, "提示", {
 | 
	
		
			
				|  |  |          confirmButtonText: "确定",
 | 
	
	
		
			
				|  | @@ -604,9 +552,9 @@ export default {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  | -        .catch(() => {});
 | 
	
		
			
				|  |  | +        .catch(() => { });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    lookDetail(row) {
 | 
	
		
			
				|  |  | +    lookDetail (row) {
 | 
	
		
			
				|  |  |        let query = this.$route.query;
 | 
	
		
			
				|  |  |        this.$route.query.paymentId = row.id;
 | 
	
		
			
				|  |  |        this.viewDetail = row;
 | 
	
	
		
			
				|  | @@ -616,11 +564,11 @@ export default {
 | 
	
		
			
				|  |  |          this.$router.push({ path: "/business/strudentPayInfo", query });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    setStudentPay() {
 | 
	
		
			
				|  |  | +    setStudentPay () {
 | 
	
		
			
				|  |  |        let query = this.$route.query;
 | 
	
		
			
				|  |  |        this.$router.push({ path: "/business/studentPayBase", query });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    newPayInfo() {
 | 
	
		
			
				|  |  | +    newPayInfo () {
 | 
	
		
			
				|  |  |        this.$refs["payForm"].validate((res) => {
 | 
	
		
			
				|  |  |          if (res) {
 | 
	
		
			
				|  |  |            /**
 | 
	
	
		
			
				|  | @@ -637,7 +585,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    submitNewPay() {
 | 
	
		
			
				|  |  | +    submitNewPay () {
 | 
	
		
			
				|  |  |        if (this.chioseStudentList.length < 1) {
 | 
	
		
			
				|  |  |          this.$message.error("请至少选择一名学员");
 | 
	
		
			
				|  |  |          return;
 | 
	
	
		
			
				|  | @@ -658,7 +606,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    resetPayDate() {
 | 
	
		
			
				|  |  | +    resetPayDate () {
 | 
	
		
			
				|  |  |        resetMusicGroupPaymentCalender({
 | 
	
		
			
				|  |  |          id: this.activeRow.id,
 | 
	
		
			
				|  |  |          startPaymentDate: this.payForm.startPaymentDate,
 | 
	
	
		
			
				|  | @@ -678,13 +626,13 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    changeStartTime(val) {
 | 
	
		
			
				|  |  | +    changeStartTime (val) {
 | 
	
		
			
				|  |  |        this.payForm.deadlinePaymentDate = this.dateAddDays(val, 3);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    changePaymentStartTime(val) {
 | 
	
		
			
				|  |  | +    changePaymentStartTime (val) {
 | 
	
		
			
				|  |  |        this.payForm.paymentValidEndDate = null;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    dateAddDays(dataStr, dayCount) {
 | 
	
		
			
				|  |  | +    dateAddDays (dataStr, dayCount) {
 | 
	
		
			
				|  |  |        let strdate = dataStr; //日期字符串
 | 
	
		
			
				|  |  |        let isdate = new Date(strdate.replace(/-/g, "/")); //把日期字符串转换成日期格式
 | 
	
		
			
				|  |  |        isdate = new Date((isdate / 1000 + 86400 * dayCount) * 1000); //日期加1天
 | 
	
	
		
			
				|  | @@ -696,10 +644,10 @@ export default {
 | 
	
		
			
				|  |  |          isdate.getDate(); //把日期格式转换成字符串
 | 
	
		
			
				|  |  |        return pdate;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    beginDate(end) {
 | 
	
		
			
				|  |  | +    beginDate (end) {
 | 
	
		
			
				|  |  |        return {
 | 
	
		
			
				|  |  |          firstDayOfWeek: 1,
 | 
	
		
			
				|  |  | -        disabledDate(time) {
 | 
	
		
			
				|  |  | +        disabledDate (time) {
 | 
	
		
			
				|  |  |            if (end) {
 | 
	
		
			
				|  |  |              return new Date(end).getTime() - 86400000 >= time.getTime();
 | 
	
		
			
				|  |  |            } else {
 | 
	
	
		
			
				|  | @@ -709,18 +657,18 @@ export default {
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    search() {
 | 
	
		
			
				|  |  | +    search () {
 | 
	
		
			
				|  |  |        this.rules.page = 1;
 | 
	
		
			
				|  |  |        this.getList();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    onReSet() {
 | 
	
		
			
				|  |  | +    onReSet () {
 | 
	
		
			
				|  |  |        this.searchForm = { payUserType: null };
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      openChioseStudent (row) {
 | 
	
		
			
				|  |  |        this.chioseStudentVisible = true;
 | 
	
		
			
				|  |  |        this.musicGroupPaymentCalenderId = row.id;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    async payedSubmited(data) {
 | 
	
		
			
				|  |  | +    async payedSubmited (data) {
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  |          await this.getList();
 | 
	
		
			
				|  |  |          // if (!this.isNewGropu) {
 | 
	
	
		
			
				|  | @@ -729,13 +677,13 @@ export default {
 | 
	
		
			
				|  |  |          //     this.musicGroupPaymentCalenderId = data.musicGroupPaymentCalenderId;
 | 
	
		
			
				|  |  |          //   }
 | 
	
		
			
				|  |  |          // }
 | 
	
		
			
				|  |  | -      } catch (error) {}
 | 
	
		
			
				|  |  | +      } catch (error) { }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    async onPreview(row) { // 开始预览
 | 
	
		
			
				|  |  | +    async onPreview (row) { // 开始预览
 | 
	
		
			
				|  |  |        this.dialogCalenderId = row.id
 | 
	
		
			
				|  |  |        const musicGroupId = this.$route.query.id
 | 
	
		
			
				|  |  |        await findMusicGroupSubjectInfo({ musicGroupId: musicGroupId }).then(res => {
 | 
	
		
			
				|  |  | -        if(res.code == 200) {
 | 
	
		
			
				|  |  | +        if (res.code == 200) {
 | 
	
		
			
				|  |  |            this.dialogSubjectList = res.data.musicGroupSubjectPlans
 | 
	
		
			
				|  |  |            this.dialogSubjectVisible = true
 | 
	
		
			
				|  |  |          } else {
 | 
	
	
		
			
				|  | @@ -743,12 +691,12 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    onPreviewSubmit() {
 | 
	
		
			
				|  |  | +    onPreviewSubmit () {
 | 
	
		
			
				|  |  |        this.previewVisible = true
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    watch: {
 | 
	
		
			
				|  |  | -    chioseStudentVisible() {
 | 
	
		
			
				|  |  | +    chioseStudentVisible () {
 | 
	
		
			
				|  |  |        this.chioseStudentList = [];
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      payVisible (val) {
 |