|
@@ -42,13 +42,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="m-core">
|
|
|
-
|
|
|
<el-form :inline="true"
|
|
|
:model="searchForm">
|
|
|
<el-form-item>
|
|
|
<el-input v-model.trim="searchForm.search"
|
|
|
@keyup.enter.native="search"
|
|
|
- placeholder='学生编号'></el-input>
|
|
|
+ placeholder='学生编号,手机号'></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-select v-model.trim="searchForm.subjectId"
|
|
@@ -90,6 +89,9 @@
|
|
|
<div class="newBand"
|
|
|
@click="startPay"
|
|
|
v-permission="'musicGroupPaymentCalenderDetail/openPayment'">开启缴费</div>
|
|
|
+ <div class="newBand"
|
|
|
+ @click="addStudentBtn"
|
|
|
+ v-permission="'musicGroupPaymentCalenderDetail/add'">新增学生</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="tableWrap">
|
|
@@ -121,6 +123,15 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ 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="expectAmount"
|
|
|
label="预计缴费金额"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
@@ -233,6 +244,33 @@
|
|
|
@click="submitReset">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :visible.sync="studentVisible"
|
|
|
+ width="600">
|
|
|
+ <el-table :data="studentList"
|
|
|
+ ref='singleTable'
|
|
|
+ highlight-current-row
|
|
|
+ @current-change="handleCurrentChange">
|
|
|
+ <!-- <el-table-column type="selection"
|
|
|
+ width="55">
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column property="userId"
|
|
|
+ align="center"
|
|
|
+ label="学员编号"></el-table-column>
|
|
|
+ <el-table-column property="name"
|
|
|
+ align="center"
|
|
|
+ label="学员姓名"></el-table-column>
|
|
|
+ <el-table-column property="phone"
|
|
|
+ align="center"
|
|
|
+ label="手机号"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer"
|
|
|
+ class="dialog-footer">
|
|
|
+ <el-button @click="cancleAdd">取 消</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ @click="submitAddStudent">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -241,7 +279,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, getMusicGroupPaymentCalenderDetail } from "@/api/buildTeam";
|
|
|
+import { findSound, getmusicGroupPaymentCalenderDetail, openMusicGroupPaymentCalenderDetailPayment, resetMusicGroupPaymentCalenderDetail, getMusicGroupPaymentCalenderDetail, queryCanAddStudent, addMusicGroupPaymentCalenderStudent } from "@/api/buildTeam";
|
|
|
|
|
|
export default {
|
|
|
components: { pagination },
|
|
@@ -264,6 +302,9 @@ export default {
|
|
|
},
|
|
|
payVisible: false,
|
|
|
resetPayVisible: false,
|
|
|
+ studentVisible: false,
|
|
|
+ chioseStudent: null,
|
|
|
+ studentList: [],
|
|
|
pickerOptions: {
|
|
|
disabledDate (time) {
|
|
|
return time.getTime() + 86400000 <= new Date().getTime();
|
|
@@ -355,6 +396,7 @@ export default {
|
|
|
}
|
|
|
this.search()
|
|
|
},
|
|
|
+
|
|
|
startPay () {
|
|
|
if (this.activeChiose.length < 1) {
|
|
|
this.$message.error('请至少选择一名学生')
|
|
@@ -414,6 +456,36 @@ export default {
|
|
|
this.getList();
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ addStudentBtn () {
|
|
|
+ // 获取无缴费学员
|
|
|
+ queryCanAddStudent({ musicGroupId: this.teamid, musicGroupPaymentCalenderId: this.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.studentList = res.data;
|
|
|
+ this.studentVisible = true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ handleCurrentChange (val) {
|
|
|
+ this.chioseStudent = val;
|
|
|
+ },
|
|
|
+ submitAddStudent () {
|
|
|
+ if (!this.chioseStudent) {
|
|
|
+ this.$message.error('请选择学生')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ addMusicGroupPaymentCalenderStudent({ musicGroupPaymentCalenderId: this.id, userId: this.chioseStudent.userId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.studentVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cancleAdd (row) {
|
|
|
+ this.$refs.singleTable.setCurrentRow(row);
|
|
|
+ this.studentVisible = false;
|
|
|
}
|
|
|
}, watch: {
|
|
|
payVisible (val) {
|
|
@@ -423,7 +495,14 @@ export default {
|
|
|
}
|
|
|
this.$refs['payForm'].resetFields()
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ resetPayVisible (val) {
|
|
|
+ if (!val) {
|
|
|
+ this.resetPayForm = {
|
|
|
+ momey: null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|