|
@@ -19,8 +19,8 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
- <el-button type="danger" @click="search">搜索</el-button>
|
|
|
- <el-button @click="onReSet" type="primary">重置</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">
|
|
@@ -252,7 +252,7 @@
|
|
|
<el-dialog
|
|
|
title="查看"
|
|
|
:visible.sync="reviewVisible"
|
|
|
- width="800px"
|
|
|
+ width="900px"
|
|
|
destroy-on-close
|
|
|
>
|
|
|
<reviewDetail
|
|
@@ -320,12 +320,14 @@ import dayjs from 'dayjs'
|
|
|
import QRCode from 'qrcodejs2'
|
|
|
import { vaildStudentUrl } from '@/utils/validate'
|
|
|
import { addMusicGroupPaymentCalender, getMusicGroupPaymentCalender, resetMusicGroupPaymentCalender, delMusicGroupPaymentCalender } from "@/api/buildTeam";
|
|
|
-import { musicGroupPaymentCalenderQueryPage, getMusicGroupStu } from '../api'
|
|
|
+import { musicGroupPaymentCalenderQueryPage, getMusicGroupStu, musicGroupPaymentCalenderDetailBatchAdd } 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'
|
|
|
+import { userPaymentType } from '@/constant'
|
|
|
+import { objectToOptions } from '@/utils'
|
|
|
export default {
|
|
|
props: ['baseInfo','isNewGropu'],
|
|
|
components: {
|
|
@@ -379,9 +381,10 @@ export default {
|
|
|
qrcodes: true,
|
|
|
qrcode: null,
|
|
|
codeUrl: null,
|
|
|
- chioseStudentVisible: false,
|
|
|
+ chioseStudentVisible: true,
|
|
|
chioseStudentList: [],
|
|
|
- clearStduent: true
|
|
|
+ clearStduent: true,
|
|
|
+ musicGroupPaymentCalenderId: '',
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -393,6 +396,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
computed: {
|
|
|
+ payOrderTypeList() {
|
|
|
+ return objectToOptions(userPaymentType)
|
|
|
+ },
|
|
|
payFormTitle() {
|
|
|
return this.payFormType === 'user' ? '新增学员缴费' : '新增学校缴费'
|
|
|
}
|
|
@@ -431,10 +437,13 @@ export default {
|
|
|
this.payForm.paymentValidEndDate = null
|
|
|
}
|
|
|
},
|
|
|
- async payedSubmited() {
|
|
|
+ async payedSubmited(data) {
|
|
|
try {
|
|
|
await this.getList()
|
|
|
this.chioseStudentVisible = true
|
|
|
+ if (data) {
|
|
|
+ this.musicGroupPaymentCalenderId = data.musicGroupPaymentCalenderId
|
|
|
+ }
|
|
|
} catch (error) {}
|
|
|
},
|
|
|
onCreateQRCode () { // 生成报名二维码
|
|
@@ -535,17 +544,11 @@ export default {
|
|
|
obj.studentIds = this.chioseStudentList.map(stu => {
|
|
|
return stu.userId
|
|
|
}).join(',')
|
|
|
- obj.musicGroupId = this.$route.query.id
|
|
|
- obj.startPaymentDate = this.payForm.startPaymentDate + ' 00:00:00'
|
|
|
- obj.deadlinePaymentDate = this.payForm.deadlinePaymentDate + ' 23:59:59'
|
|
|
- obj.paymentValidStartDate = this.payForm.paymentValidStartDate ? dayjs(this.payForm.paymentValidStartDate).format('YYYY-MM-DD') : this.payForm.paymentValidStartDate,
|
|
|
- obj.paymentValidEndDate = this.payForm.paymentValidEndDate ? dayjs(this.payForm.paymentValidEndDate).format('YYYY-MM-DD') : this.payForm.paymentValidEndDate,
|
|
|
- obj.paymentPattern = this.payForm.paymentPattern
|
|
|
- obj.type = this.payForm.type
|
|
|
- obj.memo = this.payForm.memo
|
|
|
- addMusicGroupPaymentCalender(obj).then(res => {
|
|
|
+ obj.musicGroupPaymentCalenderId = this.musicGroupPaymentCalenderId
|
|
|
+ return
|
|
|
+ musicGroupPaymentCalenderDetailBatchAdd(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success('恭喜你创建成功')
|
|
|
+ this.$message.success('添加成功')
|
|
|
this.$refs.setStudentFee.clearTable()
|
|
|
this.payVisible = false;
|
|
|
this.chioseStudentVisible = false;
|