Commit 63ccff78 authored by 黄奎's avatar 黄奎

页面修改

parent 3806dba8
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
{{ props.row.StudentName }} {{ props.row.StudentName }}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-ReceiptId="props">
<q-td auto-width :props="props">
<span style="color: blue;text-decoration:underline;cursor:pointer;"
@click="showBackBill(props.row)">{{props.row.ReceiptId}}</span>
</q-td>
</template>
<template v-slot:body-cell-AuditStatus="props"> <template v-slot:body-cell-AuditStatus="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<span v-if="props.row.AuditStatus == 1||props.row.AuditStatus == 0" style="color: #409eff">审核中</span> <span v-if="props.row.AuditStatus == 1||props.row.AuditStatus == 0" style="color: #409eff">审核中</span>
...@@ -38,7 +44,6 @@ ...@@ -38,7 +44,6 @@
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
...@@ -58,12 +63,20 @@ ...@@ -58,12 +63,20 @@
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="refreshPage"
@success="refreshPage">
</backbill-form>
</div> </div>
</template> </template>
<script> <script>
import backbillForm from "../../components/sale/backbill-form";
import { import {
SetBackClassProtocolSure, SetBackClassProtocolSure,
} from "../../api/sale/contract"; } from "../../api/sale/contract";
import {
GetEducationReceiptPage,
} from "../../api/teacher/index";
export default { export default {
props: { props: {
dataList: { dataList: {
...@@ -79,6 +92,9 @@ ...@@ -79,6 +92,9 @@
type: Object, type: Object,
}, },
}, },
components: {
backbillForm,
},
data() { data() {
return { return {
columns: [{ columns: [{
...@@ -140,16 +156,42 @@ ...@@ -140,16 +156,42 @@
isShowCopyLink: false, //是否显示复制链接 isShowCopyLink: false, //是否显示复制链接
isShowSure: false, //是否显示确认按钮 isShowSure: false, //是否显示确认按钮
}, },
isShowBillForm: false, //是否显示退课详情
showType: 1, //1-查看,2-审核
pageMsg: { pageMsg: {
rowsPerPage: 12, rowsPerPage: 12,
}, },
billObj: {},
} }
}, },
created() { created() {
this.initAuth(); this.initAuth();
}, },
mounted() {}, mounted() {
},
methods: { methods: {
//显示退课详情
showBackBill(item) {
var qMsg = {
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
Id: item.ReceiptId,
}
GetEducationReceiptPage(qMsg).then(res => {
if (res.Code == 1) {
this.billObj = res.Data.PageData[0];
this.isShowBillForm = true;
}
})
},
//刷新页面
refreshPage() {
this.isShowBillForm = false;
this.billObj = {};
this.$emit("success");
},
//初始化权限信息 //初始化权限信息
initAuth() { initAuth() {
if (this.authObj) { if (this.authObj) {
......
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
} }
this.showType = type; this.showType = type;
this.billObj = item; this.billObj = item;
console.log(this.billObj);
}, },
//重新查询 //重新查询
resetSearch() { resetSearch() {
......
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