|
@@ -1,22 +1,44 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
-
|
|
|
<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>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <div class="topWrap">
|
|
|
+ <div class="newBand"
|
|
|
+ @click="newPay">新建缴费</div>
|
|
|
+ <div class="newBand">学员缴费设置</div>
|
|
|
+ </div>
|
|
|
<div class="tableWrap">
|
|
|
<el-table style="width: 100%"
|
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
:data="tableList">
|
|
|
<el-table-column align="center"
|
|
|
prop="studentId"
|
|
|
- label="分部"></el-table-column>
|
|
|
+ label="缴费开始日期"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="缴费结束日期"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="预计缴费人数"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="实际缴费人数"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="状态"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="备注"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-button type="text">查看</el-button>
|
|
|
+ <el-button type="text"
|
|
|
+ @click="resetPay(scope.row)">修改</el-button>
|
|
|
+ <el-button type="text">删除</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<pagination :total="rules.total"
|
|
|
:page.sync="rules.page"
|
|
@@ -24,9 +46,34 @@
|
|
|
:page-sizes="rules.page_size"
|
|
|
@pagination="getList" />
|
|
|
</div>
|
|
|
+ <el-dialog :visible.sync="payVisible"
|
|
|
+ width="500px"
|
|
|
+ :title="diTitle">
|
|
|
+ <el-form :model="payForm"
|
|
|
+ ref='payForm'>
|
|
|
+ <el-form-item label="缴费开始日期"
|
|
|
+ :rules="[{ required: true, message: '请设置缴费开始日期',trigger: 'blur'}]"
|
|
|
+ prop="startDate">
|
|
|
+ <el-date-picker v-model.trim="payForm.startDate"
|
|
|
+ type="date"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="开始日期"></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer"
|
|
|
+ class="dialog-footer">
|
|
|
+ <el-button @click="payVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="isNew"
|
|
|
+ @click="">确 定</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-else
|
|
|
+ @click="">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
@@ -42,7 +89,7 @@ export default {
|
|
|
search: null
|
|
|
},
|
|
|
teacherList: [],
|
|
|
- tableList: [],
|
|
|
+ tableList: [{}],
|
|
|
organList: [],
|
|
|
rules: {
|
|
|
// 分页规则
|
|
@@ -51,7 +98,19 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
- isInit: false
|
|
|
+ isInit: false,
|
|
|
+ diTitle: '新增缴费',
|
|
|
+ payVisible: false,
|
|
|
+ payForm: {
|
|
|
+ startDate: null
|
|
|
+ },
|
|
|
+ isNew: false,
|
|
|
+ activeRow: null,
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate (time) {
|
|
|
+ return time.getTime() + 86400000 <= new Date().getTime();
|
|
|
+ }
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -69,12 +128,39 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
- this.isInit = true;
|
|
|
- this.isInit = false;
|
|
|
},
|
|
|
- getList () { }
|
|
|
+ getList () { },
|
|
|
+ newPay () {
|
|
|
+ this.diTitle = '新增缴费'
|
|
|
+ this.isNew = true
|
|
|
+ this.payVisible = true;
|
|
|
+ },
|
|
|
+ resetPay (row) {
|
|
|
+ this.diTitle = '修改缴费'
|
|
|
+ this.isNew = false
|
|
|
+ this.activeRow = row
|
|
|
+ this.payVisible = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ payVisible (val) {
|
|
|
+ if (!val) {
|
|
|
+ this.payForm = {
|
|
|
+ startDate: null
|
|
|
+ }
|
|
|
+ this.$refs['payForm'].resetFields()
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang='scss' scoped>
|
|
|
+.topWrap {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: flex-start;
|
|
|
+ div {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|