|
@@ -5,9 +5,7 @@
|
|
|
content="学员缴费记录">
|
|
|
</el-page-header>
|
|
|
<div class="m-core">
|
|
|
- <div class="newBand"
|
|
|
- @click="resetTime">修改缴费时间</div>
|
|
|
- <!-- <el-form :inline="true"
|
|
|
+ <el-form :inline="true"
|
|
|
:model="searchForm">
|
|
|
<el-form-item>
|
|
|
<el-input v-model.trim="searchForm.search"
|
|
@@ -15,12 +13,26 @@
|
|
|
placeholder='学生编号'></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
+ <el-select v-model.trim="searchForm.subjectId"
|
|
|
+ style="width:180px"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择声部">
|
|
|
+ <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-item>
|
|
|
<el-button @click="search"
|
|
|
type="danger">搜索</el-button>
|
|
|
<el-button @click="onReSet"
|
|
|
type="primary">重置</el-button>
|
|
|
</el-form-item>
|
|
|
- </el-form> -->
|
|
|
+ </el-form>
|
|
|
+ <div class="newBand"
|
|
|
+ @click="resetPays">修改缴费金额</div>
|
|
|
<div class="tableWrap">
|
|
|
<el-table style="width: 100%"
|
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
@@ -30,16 +42,28 @@
|
|
|
width="55">
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="userId"
|
|
|
label="学员编号"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
prop="studentId"
|
|
|
- label="学员姓名"></el-table-column>
|
|
|
+ label="学员姓名">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.sysUser">
|
|
|
+ {{scope.row.sysUser.username}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
prop="studentId"
|
|
|
- label="联系电话"></el-table-column>
|
|
|
+ label="联系电话">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.sysUser">
|
|
|
+ {{scope.row.sysUser.phone}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
- prop="studentId"
|
|
|
+ prop="courseFee"
|
|
|
label="缴费金额"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
label="操作">
|
|
@@ -82,7 +106,11 @@
|
|
|
class="dialog-footer">
|
|
|
<el-button @click="resetPayVisible = false">取 消</el-button>
|
|
|
<el-button type="primary"
|
|
|
- @click="">确 定</el-button>
|
|
|
+ v-if="isSigan"
|
|
|
+ @click="submitSigan(true)">确 定</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="!isSigan"
|
|
|
+ @click="submitSigan(false)">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -93,7 +121,7 @@ import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
-import { findSound, } from "@/api/buildTeam";
|
|
|
+import { findSound, getMusicGroupStudentFee, resetMusicGroupStudentFee } from "@/api/buildTeam";
|
|
|
|
|
|
export default {
|
|
|
components: { pagination },
|
|
@@ -101,8 +129,7 @@ export default {
|
|
|
return {
|
|
|
searchForm: {
|
|
|
search: null,
|
|
|
- sound: null,
|
|
|
- status: null
|
|
|
+ subjectId: null,
|
|
|
},
|
|
|
teacherList: [],
|
|
|
soundList: [],
|
|
@@ -128,6 +155,7 @@ export default {
|
|
|
momey: null
|
|
|
},
|
|
|
activeChiose: [],
|
|
|
+ isSigan: false,
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -153,10 +181,19 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
- this.isInit = true;
|
|
|
- this.isInit = false;
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getList () {
|
|
|
+ this.searchForm.page = this.rules.page;
|
|
|
+ this.searchForm.rows = this.rules.limit;
|
|
|
+ this.searchForm.musicGroupId = this.teamid;
|
|
|
+ getMusicGroupStudentFee(this.searchForm).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.rules.total = res.data.total;
|
|
|
+ this.tableList = res.data.rows;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- getList () { },
|
|
|
search () {
|
|
|
this.rules.page = 1;
|
|
|
this.getList()
|
|
@@ -165,8 +202,15 @@ export default {
|
|
|
startPay (row) { },
|
|
|
resetPay (row) {
|
|
|
this.activeRow = row;
|
|
|
+ this.resetPayForm.momey = row.courseFee;
|
|
|
+ this.isSigan = true
|
|
|
this.resetPayVisible = true
|
|
|
},
|
|
|
+ resetPays () {
|
|
|
+ this.isSigan = false
|
|
|
+ this.resetPayVisible = true
|
|
|
+
|
|
|
+ },
|
|
|
resetTime () {
|
|
|
this.payVisible = true;
|
|
|
},
|
|
@@ -177,14 +221,32 @@ export default {
|
|
|
},
|
|
|
handleSelectionChange (val) {
|
|
|
this.activeChiose = val;
|
|
|
+ },
|
|
|
+ submitSigan (sigan) {
|
|
|
+ let obj = {}
|
|
|
+ if (sigan) {
|
|
|
+ obj.ids = this.activeRow.id
|
|
|
+ } else {
|
|
|
+ obj.ids = this.activeChiose.map(item => {
|
|
|
+ return item.id
|
|
|
+ }).join(',')
|
|
|
+ }
|
|
|
+ obj.courseFee = this.resetPayForm.momey;
|
|
|
+ resetMusicGroupStudentFee(obj).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.resetPayVisible = false
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}, watch: {
|
|
|
- payVisible (val) {
|
|
|
+ resetPayVisible (val) {
|
|
|
if (!val) {
|
|
|
- this.payForm = {
|
|
|
- startDate: null
|
|
|
- }
|
|
|
- this.$refs['payForm'].resetFields()
|
|
|
+ this.resetPayForm = {
|
|
|
+ momey: null
|
|
|
+ },
|
|
|
+ this.$refs['resetPayForm'].resetFields()
|
|
|
}
|
|
|
}
|
|
|
}
|