Commit cefd1a82 authored by zhengke's avatar zhengke

1

parent dbc9f6d9
......@@ -71,3 +71,16 @@ export function GetEducationReceiptType() {
})
}
/**
* 获取下拉数据
* @param {JSON参数} data
*/
export function GetEduReceiptInfo (data) {
return request({
url: '/EducationReceipt/GetEduReceiptInfo ',
method: 'post',
data
})
}
......@@ -50,7 +50,7 @@
<div class="className">
<div class="classFirst">退课审批</div>
</div>
<div class="classStatus">{{setingObj.AuditStatusName}}</div>
<!-- <div class="classStatus">{{setingObj.AuditStatusName}}</div> -->
</div>
</div>
<q-tabs style="margin:15px;" v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
......
......@@ -103,10 +103,10 @@
<span class="backInfo_Title">学员姓名:</span>
<span class="backOtherInfo">{{setingObj.GuestName}}</span>
</div>
<div class="col-6">
<!-- <div class="col-6">
<span class="backInfo_Title">申请时间:</span>
<span class="backOtherInfo">{{setingObj.CreateTimeStr}}</span>
</div>
</div> -->
</div>
<div class="backinfo_Item">
<span class="role_Line" style="background-color:#F28C1D"></span>教学信息
......
......@@ -6,7 +6,14 @@
.Sysuser_Date .el-range-editor.el-input__inner {
background-color: transparent;
}
.ReceipTypeName{
display: inline-block;
padding: 2px 8px;
color: white;
background-color: rgb(233, 82, 82);
line-height: 16px;
border-radius: 4px;
}
</style>
<template>
<div class="page-body">
......@@ -32,6 +39,7 @@
 </el-date-picker>       
</template>
</q-field>
<span @click="goDetail()">跳转</span>
</div>
</div>
</div>
......@@ -44,22 +52,9 @@
</q-tabs>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
separator="none" :data="data" :columns="columns" row-key="name">
<template v-slot:body-cell-Status="props">
<q-td :props="props">
<q-toggle size="sm" color="secondary" :false-value="1" :true-value="0" v-model="props.row.Status"
title="注意:关闭后,分类将无法正常使用." @input="SetDeptStatus(props.row)" />
</q-td>
</template>
<template v-slot:body-cell-School_Id="props">
<template v-slot:body-cell-ReceiptTypeName="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>
<span class="ReceipTypeName">{{props.row.ReceiptTypeName}}</span>
</q-td>
</template>
<template v-slot:bottom>
......@@ -99,7 +94,8 @@
<script>
import {
GetEducationReceiptPage,
GetEducationReceiptType
GetEducationReceiptType,
GetEduReceiptInfo
} from '../../api/teacher/index'
import backbillForm from '../../components/sale/backbill-form';
......@@ -116,65 +112,35 @@
return {
currentUrl: "",
columns: [{
name: 'AuditStatusName',
label: '状态',
align: 'left',
field: row => row.AuditStatusName
},
{
name: 'GuestName',
label: '学员名称',
field: 'GuestName',
align: 'left'
},
{
name: 'SchoolName',
label: '所属校区',
field: 'SchoolName',
name: 'Title',
label: '标题',
field: 'Title',
align: 'left'
},
{
name: 'ClassName',
label: '所属班级',
field: 'ClassName',
name: 'ReceiptTypeName',
label: '单据类型',
field: 'ReceiptTypeName',
align: 'left'
},
{
name: 'TeacherName',
label: '带班老师',
field: 'TeacherName',
align: 'left'
},
{
name: 'FinishHours',
label: '已上课时',
field: 'FinishHours',
name: 'AuditStatusName',
label: '审核状态',
field: 'AuditStatusName',
align: 'left'
},
{
name: 'BackMoney',
label: '预计退费金额',
field: 'BackMoney',
name: 'CreateByName',
label: '创建人',
field: 'CreateByName',
align: 'left'
},
{
name: 'RealityBackMoney',
label: '实际退费金额',
field: 'RealityBackMoney',
name: 'CreateTime',
label: '创建时间',
field: 'CreateTime',
align: 'left'
},
{
name: 'CreateTimeStr',
label: '申请时间',
field: 'CreateTimeStr',
align: 'left',
},
{
name: 'CreateByName',
label: '申请人',
field: 'CreateByName',
align: 'left',
},
{
name: 'optioned',
label: '操作',
......@@ -260,7 +226,7 @@
showBillForm(item, type) {
this.isShowBillForm = true;
this.showType = type;
this.billObj = item;
this.billObj = item.DataObj;
},
//重新查询
resetSearch() {
......@@ -302,11 +268,21 @@
//获取下拉数据
getEducationType() {
GetEducationReceiptType().then(res => {
console.log(res, '属于');
if (res.Code == 1) {
this.OrderTypeList = res.Data;
}
}).catch(() => {})
},
//详情
goDetail(){
let msg={
Id:1
}
GetEduReceiptInfo (msg).then(res => {
if (res.Code == 1) {
console.log(res,'数据');
}
}).catch(() => {})
}
},
watch: {
......
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