|
@@ -5,21 +5,12 @@
|
|
class="searchForm"
|
|
class="searchForm"
|
|
v-model="searchForm">
|
|
v-model="searchForm">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select v-model="searchForm.classGroupType" placeholder="课程类型">
|
|
|
|
- <el-option v-for="(item, index) in courseArray" :key="index"
|
|
|
|
- :label="item.label" :value="item.value"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
<el-select v-model="searchForm.attendanceStatus" placeholder="考勤状态">
|
|
<el-select v-model="searchForm.attendanceStatus" placeholder="考勤状态">
|
|
- <el-option v-for="(item, index) in att" :key="index"
|
|
|
|
|
|
+ <el-option v-for="(item, index) in attendanceStatus" :key="index"
|
|
:label="item.label" :value="item.value"></el-option>
|
|
:label="item.label" :value="item.value"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-input placeholder="班级名称" v-model="searchForm.classGroupName"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
<el-button @click="getList" type="danger">搜索</el-button>
|
|
<el-button @click="getList" type="danger">搜索</el-button>
|
|
<el-button @click="onReSet" type="primary">重置</el-button>
|
|
<el-button @click="onReSet" type="primary">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -47,18 +38,15 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
label="考勤状态">
|
|
label="考勤状态">
|
|
- <template>
|
|
|
|
-
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.status | clockingIn }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align='center'
|
|
|
|
- label="总计缴费">
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align='center'
|
|
|
|
- label="本次扣费">
|
|
|
|
|
|
+ <el-table-column align='center' prop="actualPrice"
|
|
|
|
+ label="预计扣费">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align='center'
|
|
|
|
- label="课程余额">
|
|
|
|
|
|
+ <el-table-column align='center' prop="expectPrice"
|
|
|
|
+ label="实际扣费">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<pagination :total="pageInfo.total"
|
|
<pagination :total="pageInfo.total"
|
|
@@ -72,34 +60,18 @@
|
|
<script>
|
|
<script>
|
|
import pagination from '@/components/Pagination/index'
|
|
import pagination from '@/components/Pagination/index'
|
|
import { queryStudentPayment } from '@/api/studentManager'
|
|
import { queryStudentPayment } from '@/api/studentManager'
|
|
|
|
+import { attendanceStatus } from '@/utils/searchArray'
|
|
|
|
+import store from '@/store'
|
|
export default {
|
|
export default {
|
|
components: { pagination },
|
|
components: { pagination },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ organId: store.getters.organ,
|
|
searchForm: {
|
|
searchForm: {
|
|
userId: this.$route.query.userId,
|
|
userId: this.$route.query.userId,
|
|
- classGroupType: null,
|
|
|
|
attendanceStatus: null,
|
|
attendanceStatus: null,
|
|
- classGroupName: null,
|
|
|
|
},
|
|
},
|
|
- courseArray: [
|
|
|
|
- { label: '单技课', value: 'NORMAL' },
|
|
|
|
- { label: '合奏课', value: 'MIX' },
|
|
|
|
- { label: '小班课', value: 'HIGH' },
|
|
|
|
- { label: 'VIP课', value: 'VIP' },
|
|
|
|
- { label: '试听课', value: 'DEMO' }
|
|
|
|
- ],
|
|
|
|
- att: [
|
|
|
|
- // { value: "NORMAL", label: "正常" },
|
|
|
|
- // { value: "TRUANT", label: "旷课" },
|
|
|
|
- // { value: "LEAVE", label: "请假" },
|
|
|
|
- // { value: "QUIT_SCHOOL", label: "休学" },
|
|
|
|
- // { value: "DROP_OUT", label: "退学" }
|
|
|
|
- { value: "NORMAL", label: "正常" },
|
|
|
|
- { value: "TRUANT", label: "旷课" },
|
|
|
|
- { value: "LEAVE", label: "请假" },
|
|
|
|
- { value: "DROP_OUT", label: "休学" },
|
|
|
|
- ],
|
|
|
|
|
|
+ attendanceStatus: attendanceStatus,
|
|
pageInfo: {
|
|
pageInfo: {
|
|
// 分页规则
|
|
// 分页规则
|
|
limit: 10, // 限制显示条数
|
|
limit: 10, // 限制显示条数
|
|
@@ -128,11 +100,8 @@ export default {
|
|
onReSet() { // 重置搜索
|
|
onReSet() { // 重置搜索
|
|
this.searchForm = {
|
|
this.searchForm = {
|
|
userId: this.$route.query.userId,
|
|
userId: this.$route.query.userId,
|
|
- classGroupType: null,
|
|
|
|
- attendanceStatus: null,
|
|
|
|
- classGroupName: null
|
|
|
|
|
|
+ attendanceStatus: null
|
|
}
|
|
}
|
|
- this.getList()
|
|
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|