|
@@ -4,27 +4,40 @@
|
|
|
<el-page-header @back="goBack"
|
|
|
content="学员缴费记录">
|
|
|
</el-page-header>
|
|
|
+ <!-- this.info = {
|
|
|
+ paymentStatus: res.data.calender.paymentStatus,
|
|
|
+ startPaymentDate: res.data.calender.startPaymentDate,
|
|
|
+ deadlinePaymentDate: res.data.calender.deadlinePaymentDate,
|
|
|
+ expectNum: res.data.calender.expectNum,
|
|
|
+ actualNum: res.data.calender.actualNum,
|
|
|
+ sumActualAmount: res.data.sumActualAmount
|
|
|
+ } -->
|
|
|
<div class="infoMsg">
|
|
|
<div class="left">
|
|
|
<p class="title">状态</p>
|
|
|
- <p class="status">未开始</p>
|
|
|
+ <p class="status"
|
|
|
+ style="color:#ff6a6a"
|
|
|
+ v-if="info.paymentStatus == 1">{{'已开启'}}</p>
|
|
|
+ <p class="status"
|
|
|
+ style="color:#5ccdb8"
|
|
|
+ v-if="info.paymentStatus == 2">{{'已完成'}}</p>
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
<div class="expectBox first">
|
|
|
<p class="title">预计缴费日期</p>
|
|
|
- <p class="status">2020-05-18~2020-05-19</p>
|
|
|
+ <p class="status">{{info.startPaymentDate|formatTimer}}~{{info.deadlinePaymentDate|formatTimer}}</p>
|
|
|
</div>
|
|
|
<div class='expectBox'>
|
|
|
<p class="title">预计缴费人数</p>
|
|
|
- <p class="status">188</p>
|
|
|
+ <p class="status">{{info.expectNum?info.expectNum:0}}</p>
|
|
|
</div>
|
|
|
<div class='expectBox'>
|
|
|
<p class="title">实际缴费人数</p>
|
|
|
- <p class="status">188</p>
|
|
|
+ <p class="status">{{info.actualNum?info.actualNum:0}}</p>
|
|
|
</div>
|
|
|
<div class='expectBox'>
|
|
|
<p class="title">收款金额</p>
|
|
|
- <p class="status">188</p>
|
|
|
+ <p class="status">{{info.sumActualAmount?info.sumActualAmount:0}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -72,9 +85,11 @@
|
|
|
</el-form>
|
|
|
<div class="wrap">
|
|
|
<div class="newBand"
|
|
|
- @click="resetPay">修改缴费金额</div>
|
|
|
+ @click="resetPay"
|
|
|
+ v-permission="'musicGroupPaymentCalenderDetail/updateExpectAmount'">修改缴费金额</div>
|
|
|
<div class="newBand"
|
|
|
- @click="startPay">开启缴费</div>
|
|
|
+ @click="startPay"
|
|
|
+ v-permission="'musicGroupPaymentCalenderDetail/openPayment'">开启缴费</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="tableWrap">
|
|
@@ -109,6 +124,30 @@
|
|
|
prop="expectAmount"
|
|
|
label="预计缴费金额"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
+ label="缴费开始日期">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.startPaymentDate | formatTimer}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ label="缴费截止日期">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.deadlinePaymentDate | formatTimer}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ label="是否开启缴费">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.open?'是':'否'}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
label="缴费状态">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -202,7 +241,7 @@ import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
-import { findSound, getmusicGroupPaymentCalenderDetail, openMusicGroupPaymentCalenderDetailPayment, resetMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
|
|
|
+import { findSound, getmusicGroupPaymentCalenderDetail, openMusicGroupPaymentCalenderDetailPayment, resetMusicGroupPaymentCalenderDetail, getMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
|
|
|
|
|
|
export default {
|
|
|
components: { pagination },
|
|
@@ -238,7 +277,15 @@ export default {
|
|
|
},
|
|
|
activeChiose: [],
|
|
|
id: null,
|
|
|
- ids: null
|
|
|
+ ids: null,
|
|
|
+ info: {
|
|
|
+ paymentStatus: null,
|
|
|
+ startPaymentDate: null,
|
|
|
+ deadlinePaymentDate: null,
|
|
|
+ expectNum: null,
|
|
|
+ actualNum: null,
|
|
|
+ sumActualAmount: null
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -261,7 +308,21 @@ export default {
|
|
|
methods: {
|
|
|
init () {
|
|
|
this.id = this.$route.query.paymentId
|
|
|
- this.getList()
|
|
|
+ // 获取缴费状态
|
|
|
+ getMusicGroupPaymentCalenderDetail({ id: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.info = {
|
|
|
+ paymentStatus: res.data.calender.paymentStatus,
|
|
|
+ startPaymentDate: res.data.calender.startPaymentDate,
|
|
|
+ deadlinePaymentDate: res.data.calender.deadlinePaymentDate,
|
|
|
+ expectNum: res.data.calender.expectNum,
|
|
|
+ actualNum: res.data.calender.actualNum,
|
|
|
+ sumActualAmount: res.data.sumActualAmount
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
getList () {
|
|
|
this.searchForm.id = this.id;
|
|
@@ -271,6 +332,14 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.rules.total = res.data.total;
|
|
|
this.tableList = res.data.rows;
|
|
|
+ if (this.info.paymentStatus == 1) {
|
|
|
+ this.tableList = this.tableList.map(item => {
|
|
|
+ item.startPaymentDate = this.info.startPaymentDate
|
|
|
+ item.deadlinePaymentDate = this.info.deadlinePaymentDate
|
|
|
+ item.open = 1;
|
|
|
+ return item;
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -278,7 +347,14 @@ export default {
|
|
|
this.rules.page = 1;
|
|
|
this.getList()
|
|
|
},
|
|
|
- onReSet () { },
|
|
|
+ onReSet () {
|
|
|
+ this.searchForm = {
|
|
|
+ userId: null,
|
|
|
+ subjectId: null,
|
|
|
+ paymentStatus: null
|
|
|
+ }
|
|
|
+ this.search()
|
|
|
+ },
|
|
|
startPay () {
|
|
|
if (this.activeChiose.length < 1) {
|
|
|
this.$message.error('请至少选择一名学生')
|