Commit aa7fc9e6 authored by zhengke's avatar zhengke

修改

parents d6308d36 c361d348
...@@ -40,6 +40,12 @@ ...@@ -40,6 +40,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>
...@@ -54,7 +60,6 @@ ...@@ -54,7 +60,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">
...@@ -74,14 +79,22 @@ ...@@ -74,14 +79,22 @@
</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,
CreateWeChatCode CreateWeChatCode
} from "../../api/sale/contract"; } from "../../api/sale/contract";
import {
GetEducationReceiptPage,
} from "../../api/teacher/index";
import html2canvas from "html2canvas"; import html2canvas from "html2canvas";
export default { export default {
props: { props: {
dataList: { dataList: {
...@@ -97,6 +110,9 @@ ...@@ -97,6 +110,9 @@
type: Object, type: Object,
}, },
}, },
components: {
backbillForm,
},
data() { data() {
return { return {
columns: [{ columns: [{
...@@ -158,9 +174,12 @@ ...@@ -158,9 +174,12 @@
isShowCopyLink: true, //是否显示复制链接 isShowCopyLink: true, //是否显示复制链接
isShowSure: false, //是否显示确认按钮 isShowSure: false, //是否显示确认按钮
}, },
isShowBillForm: false, //是否显示退课详情
showType: 1, //1-查看,2-审核
pageMsg: { pageMsg: {
rowsPerPage: 12, rowsPerPage: 12,
}, },
billObj: {},
imgUrl:'http://192.168.20.24:8300/upfile/temporary/20210805/637637591390867572.jpg', imgUrl:'http://192.168.20.24:8300/upfile/temporary/20210805/637637591390867572.jpg',
getBlob:'', getBlob:'',
ProtocolNum:'' ProtocolNum:''
...@@ -172,6 +191,27 @@ ...@@ -172,6 +191,27 @@
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