Commit 008ab575 authored by 黄奎's avatar 黄奎

页面修改

parent dbc9f6d9
...@@ -52,7 +52,7 @@ export function GetClassPlanStatisticalPage(data) { ...@@ -52,7 +52,7 @@ export function GetClassPlanStatisticalPage(data) {
* 获取我调课申请列表 * 获取我调课申请列表
* @param {JSON参数} data * @param {JSON参数} data
*/ */
export function GetEducationReceiptPage(data) { export function queryEducationReceiptPage(data) {
return request({ return request({
url: '/EducationReceipt/GetEducationReceiptPage', url: '/EducationReceipt/GetEducationReceiptPage',
method: 'post', method: 'post',
...@@ -71,3 +71,15 @@ export function GetEducationReceiptType() { ...@@ -71,3 +71,15 @@ export function GetEducationReceiptType() {
}) })
} }
/**
* 获取下拉数据
* @param {JSON参数} data
*/
export function queryEduReceiptInfo() {
return request({
url: '/EducationReceipt/GetEduReceiptInfo',
method: 'post'
})
}
...@@ -12,18 +12,12 @@ ...@@ -12,18 +12,12 @@
<div class="page-body"> <div class="page-body">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-col-gutter-md"> <div class="col row wrap q-col-gutter-md">
<div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="msg.ClassName"
label="学员名称/班级名称/老师名称" />
</div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.AuditStatus" :options="ShowOpts" <q-select @input="resetSearch" filled v-model="msg.AuditStatus" :options="ShowOpts"
emit-value map-options label="流程状态" /> emit-value map-options label="流程状态" />
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" option-value="Id" option-label="Name" filled v-model="aa" :options="OrderTypeList"
emit-value map-options label="订单类型" />
</div>
<div class="col-3 Sysuser_Date"> <div class="col-3 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
...@@ -50,18 +44,8 @@ ...@@ -50,18 +44,8 @@
title="注意:关闭后,分类将无法正常使用." @input="SetDeptStatus(props.row)" /> title="注意:关闭后,分类将无法正常使用." @input="SetDeptStatus(props.row)" />
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-School_Id="props">
<q-td :props="props">
{{props.row.School_Id>0? props.row.SchoolName:'总部'}}
</q-td>
</template>
<template v-slot:body-cell-RealityBackMoney="props">
<q-td :props="props">
<template v-if="props.row.AuditStatus==2">
<span style="color:red">{{props.row.RealityBackMoney}}</span>
</template>
</q-td>
</template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
...@@ -98,7 +82,7 @@ ...@@ -98,7 +82,7 @@
</template> </template>
<script> <script>
import { import {
GetEducationReceiptPage, queryEducationReceiptPage,
GetEducationReceiptType GetEducationReceiptType
} from '../../api/teacher/index' } from '../../api/teacher/index'
...@@ -116,52 +100,23 @@ ...@@ -116,52 +100,23 @@
return { return {
currentUrl: "", currentUrl: "",
columns: [{ columns: [{
name: 'AuditStatusName', name: '编号',
label: '状态', label: '状态',
align: 'left', align: 'left',
field: row => row.AuditStatusName field: row => row.Id
},
{
name: 'GuestName',
label: '学员名称',
field: 'GuestName',
align: 'left'
}, },
{ {
name: 'SchoolName', name: 'ReceiptTypeName',
label: '所属校区', label: '类型',
field: 'SchoolName', field: 'ReceiptTypeName',
align: 'left' align: 'left',
},
{
name: 'ClassName',
label: '所属班级',
field: 'ClassName',
align: 'left'
},
{
name: 'TeacherName',
label: '带班老师',
field: 'TeacherName',
align: 'left'
},
{
name: 'FinishHours',
label: '已上课时',
field: 'FinishHours',
align: 'left'
},
{
name: 'BackMoney',
label: '预计退费金额',
field: 'BackMoney',
align: 'left'
}, },
{ {
name: 'RealityBackMoney', name: '单据信息',
label: '实际退费金额', label: '状态',
field: 'RealityBackMoney', align: 'left',
align: 'left' field: row => row.DataObj
}, },
{ {
name: 'CreateTimeStr', name: 'CreateTimeStr',
...@@ -178,7 +133,7 @@ ...@@ -178,7 +133,7 @@
{ {
name: 'optioned', name: 'optioned',
label: '操作', label: '操作',
field: 'BackId' field: 'Id'
} }
], ],
data: [], data: [],
...@@ -209,11 +164,11 @@ ...@@ -209,11 +164,11 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
ClassName: "", //学员、班级、老师名称 Title: "", //学员、班级、老师名称
AuditStatus: "0", //审核状态 AuditStatus: "0", //审核状态
QStartTime: "", //开始时间 StartTime: "", //开始时间
QEndTime: "", //结束时间 EndTime: "", //结束时间
Conditon: 1, // Conditon: 1,
}, },
tabCheck: "1", tabCheck: "1",
pageCount: 0, pageCount: 0,
...@@ -278,14 +233,8 @@ ...@@ -278,14 +233,8 @@
this.data = []; this.data = [];
this.pageCount = 0; this.pageCount = 0;
this.msg.Conditon = this.tabCheck; this.msg.Conditon = this.tabCheck;
if (this.applyDateList && this.applyDateList.length > 0) {
this.msg.QStartTime = this.applyDateList[0]; queryEducationReceiptPage(this.msg).then(res => {
this.msg.QEndTime = this.applyDateList[1];
} else {
this.msg.QStartTime = '';
this.msg.QEndTime = '';
}
GetEducationReceiptPage(this.msg).then(res => {
this.loading = false; this.loading = false;
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment