|
@@ -84,7 +84,7 @@
|
|
|
label="缴费状态">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{scope.row.status | paymentType}}
|
|
|
+ {{scope.row.status | payTypeStatus}}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -227,17 +227,21 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
- title="审核"
|
|
|
+ title="查看"
|
|
|
:visible.sync="reviewVisible"
|
|
|
width="800px"
|
|
|
destroy-on-close
|
|
|
>
|
|
|
- <review
|
|
|
+ <reviewDetail
|
|
|
@close="reviewVisible = false"
|
|
|
@submited="getList"
|
|
|
- :data="{}"
|
|
|
+ :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"
|
|
@@ -247,7 +251,7 @@
|
|
|
>
|
|
|
<userPayForm
|
|
|
@close="userVisible = false"
|
|
|
- @submited="getList"
|
|
|
+ @submited="payedSubmited"
|
|
|
:type="payFormType"
|
|
|
:baseInfo="baseInfo"
|
|
|
:musicGroupId="$route.query.id"
|
|
@@ -267,6 +271,8 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="学员选择"
|
|
|
:visible.sync="chioseStudentVisible"
|
|
|
+ destroy-on-close
|
|
|
+ append-to-body
|
|
|
width='800px'>
|
|
|
<setStudentFee @chioseStudent='chioseStudent'
|
|
|
ref='setStudentFee'
|
|
@@ -291,11 +297,12 @@ import dayjs from 'dayjs'
|
|
|
import QRCode from 'qrcodejs2'
|
|
|
import { vaildStudentUrl } from '@/utils/validate'
|
|
|
import { addMusicGroupPaymentCalender, getMusicGroupPaymentCalender, resetMusicGroupPaymentCalender, delMusicGroupPaymentCalender } from "@/api/buildTeam";
|
|
|
-import { musicGroupPaymentCalenderQueryPage } from '../api'
|
|
|
+import { musicGroupPaymentCalenderQueryPage, getMusicGroupStu } from '../api'
|
|
|
import setStudentFee from './studentPayBase'
|
|
|
import userPayForm from '../modals/user-pay-form'
|
|
|
import schoolPayForm from '../modals/school-pay-form'
|
|
|
import review from '../modals/review'
|
|
|
+import reviewDetail from '../modals/review-detail'
|
|
|
export default {
|
|
|
props: ['baseInfo'],
|
|
|
components: {
|
|
@@ -303,10 +310,12 @@ export default {
|
|
|
setStudentFee,
|
|
|
userPayForm,
|
|
|
schoolPayForm,
|
|
|
- review
|
|
|
+ review,
|
|
|
+ reviewDetail
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ musicGroupStu: [],
|
|
|
payFormType: 'user',
|
|
|
userVisible: false,
|
|
|
schoolVisible: false,
|
|
@@ -314,6 +323,7 @@ export default {
|
|
|
searchForm: {
|
|
|
search: null
|
|
|
},
|
|
|
+ viewDetail: null,
|
|
|
tableList: [{}],
|
|
|
rules: {
|
|
|
// 分页规则
|
|
@@ -354,9 +364,8 @@ export default {
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created () { },
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted () {
|
|
|
+ async mounted () {
|
|
|
// 获取分部
|
|
|
-
|
|
|
this.init();
|
|
|
|
|
|
},
|
|
@@ -369,7 +378,13 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- init () {
|
|
|
+ async init () {
|
|
|
+ try {
|
|
|
+ const res = await getMusicGroupStu({
|
|
|
+ musicGroupId: this.$route.query.id,
|
|
|
+ })
|
|
|
+ console.log(res)
|
|
|
+ } catch (error) {}
|
|
|
this.getList()
|
|
|
},
|
|
|
newUserPay() {
|
|
@@ -381,7 +396,7 @@ export default {
|
|
|
this.userVisible = true
|
|
|
},
|
|
|
getList () {
|
|
|
- musicGroupPaymentCalenderQueryPage({ page: this.rules.page, rows: this.rules.limit, musicGroupId: this.$route.query.id }).then(res => {
|
|
|
+ return musicGroupPaymentCalenderQueryPage({ page: this.rules.page, rows: this.rules.limit, musicGroupId: this.$route.query.id }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.rules.total = res.data.total
|
|
|
this.tableList = res.data.rows;
|
|
@@ -393,6 +408,12 @@ export default {
|
|
|
this.payForm.paymentValidEndDate = null
|
|
|
}
|
|
|
},
|
|
|
+ async payedSubmited() {
|
|
|
+ try {
|
|
|
+ await this.getList()
|
|
|
+ this.chioseStudentVisible = true
|
|
|
+ } catch (error) {}
|
|
|
+ },
|
|
|
onCreateQRCode () { // 生成报名二维码
|
|
|
this.qrcodeStatus = true
|
|
|
let id = this.$route.query.id
|
|
@@ -452,7 +473,12 @@ export default {
|
|
|
lookDetail (row) {
|
|
|
let query = this.$route.query
|
|
|
this.$route.query.paymentId = row.id;
|
|
|
- this.$router.push({ path: '/business/strudentPayInfo', query })
|
|
|
+ this.viewDetail = row
|
|
|
+ if (row.payUserType === 'SCHOOL') {
|
|
|
+ this.reviewVisible = row
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: '/business/strudentPayInfo', query })
|
|
|
+ }
|
|
|
},
|
|
|
setStudentPay () {
|
|
|
let query = this.$route.query
|