Commit bda3e2a9 authored by 黄奎's avatar 黄奎

页面修改

parent fe1d3726
...@@ -50,8 +50,9 @@ ...@@ -50,8 +50,9 @@
<q-tab :ripple="false" name="2" label="已审批" /> <q-tab :ripple="false" name="2" label="已审批" />
<q-tab :ripple="false" name="4" label="抄送给我的" /> <q-tab :ripple="false" name="4" label="抄送给我的" />
</q-tabs> </q-tabs>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table sticky-right-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
separator="none" :data="data" :columns="columns" row-key="name"> class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns"
row-key="name">
<template v-slot:body-cell-ReceiptTypeName="props"> <template v-slot:body-cell-ReceiptTypeName="props">
<q-td :props="props"> <q-td :props="props">
<span class="ReceipTypeName">{{props.row.ReceiptTypeName}}</span> <span class="ReceipTypeName">{{props.row.ReceiptTypeName}}</span>
...@@ -60,7 +61,8 @@ ...@@ -60,7 +61,8 @@
<template v-slot:body-cell-ApplyReason="props"> <template v-slot:body-cell-ApplyReason="props">
<q-td :props="props"> <q-td :props="props">
<div class="bill_Rearsons"> <div class="bill_Rearsons">
<template v-if="props.row.ReceiptType==1||props.row.ReceiptType==5||props.row.ReceiptType==3||props.row.ReceiptType==4"> <template
v-if="props.row.ReceiptType==1||props.row.ReceiptType==5||props.row.ReceiptType==3||props.row.ReceiptType==4">
<span v-if="props.row.DataObj&&props.row.DataObj.Remarks"> <span v-if="props.row.DataObj&&props.row.DataObj.Remarks">
{{props.row.DataObj.Remarks}} {{props.row.DataObj.Remarks}}
<q-tooltip :offset="[0, 10]"> <q-tooltip :offset="[0, 10]">
...@@ -90,23 +92,17 @@ ...@@ -90,23 +92,17 @@
@click="showBillForm(props.row,2)" /> @click="showBillForm(props.row,2)" />
</template> </template>
<template v-else> <template v-else>
<template v-if="props.row.FinanceId&& props.row.FinanceId>0"> <template
<a style="cursor:pointer;color:blue;" title="退课财务单据号" v-if="props.row.VerifyStatus==2&&props.row.ReceiptType==2&&props.row.DataObj.FinanceId<=0&& tabCheck=='1'">
@click="goFinaceUrl('FinancialDocumentsDetail',props.row)">{{props.row.FinanceId}}</a> <q-btn flat size="xs" icon="directions" color="secondary" style="font-weight:400" label="制单"
</template>
<template v-else>
<q-btn v-if="tabCheck=='1' && props.row.AuditStatus==2" flat size="xs" icon="edit" color="accent"
style="font-weight:400" label="生成单据" @click="createBillForm(props.row)" />
</template>
<template v-if="props.row.DataObj.FinanceId>0">
<span @click="goFinaceUrl('FinancialDocumentsDetail',props.row.DataObj)" style="color: #2961FE;font-weight: bold;cursor: pointer;">{{props.row.DataObj.FinanceId}}</span>
</template>
<template v-if="props.row.DataObj.FinanceId<=0">
<q-btn v-if="tabCheck=='1'&& props.row.VerifyStatus==2&&props.row.ReceiptType==2" flat size="xs" icon="directions" color="secondary" style="font-weight:400" label="制单"
@click="createBillForm(props.row)" /> @click="createBillForm(props.row)" />
</template> </template>
<q-btn v-if="props.row.VerifyStatus==0 && tabCheck=='1'" flat size="xs" icon="delete" color="negative" style="font-weight:400" label="作废" <template v-if="props.row.VerifyStatus==2&&props.row.ReceiptType==2&&props.row.DataObj.FinanceId>0">
@click="invalidBillForm(props.row)" /> <span @click="goFinaceUrl('FinancialDocumentsDetail',props.row.DataObj)" title="退课财务单据号"
style="color: #2961FE;font-weight: bold;cursor: pointer;">{{props.row.DataObj.FinanceId}}</span>
</template>
<q-btn v-if="props.row.VerifyStatus==0 && tabCheck=='1'" flat size="xs" icon="delete" color="negative"
style="font-weight:400" label="作废" @click="invalidBillForm(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="查看" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="查看"
@click="showBillForm(props.row,1)" /> @click="showBillForm(props.row,1)" />
</template> </template>
...@@ -126,11 +122,11 @@ ...@@ -126,11 +122,11 @@
@success="refreshPage"> @success="refreshPage">
</stopbill-form> </stopbill-form>
<!-- 订单转班-查看 --> <!-- 订单转班-查看 -->
<ordertrans-form v-if="isShowClassTrans" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <ordertrans-form v-if="isShowClassTrans" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"> @success="refreshPage">
</ordertrans-form> </ordertrans-form>
<!-- 订单临时上课邀请-查看 --> <!-- 订单临时上课邀请-查看 -->
<temporaryClass-form v-if="isShowTemporaryClass" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <temporaryClass-form v-if="isShowTemporaryClass" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"> @success="refreshPage">
</temporaryClass-form> </temporaryClass-form>
</div> </div>
...@@ -169,7 +165,7 @@ ...@@ -169,7 +165,7 @@
label: '单号', label: '单号',
field: 'Id', field: 'Id',
align: 'left' align: 'left'
}, },
{ {
name: 'ReceiptTypeName', name: 'ReceiptTypeName',
label: '单据类型', label: '单据类型',
...@@ -230,7 +226,7 @@ ...@@ -230,7 +226,7 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
Id:"", Id: "",
VerifyStatus: "", //审核状态 VerifyStatus: "", //审核状态
StartTime: "", //开始时间 StartTime: "", //开始时间
EndTime: "", //结束时间 EndTime: "", //结束时间
...@@ -245,9 +241,9 @@ ...@@ -245,9 +241,9 @@
billObj: {}, //单据信息 billObj: {}, //单据信息
showType: 1, //1-查看,2-审核 showType: 1, //1-查看,2-审核
OrderTypeList: [], OrderTypeList: [],
isShowStopBillForm:false,//是否显示停课订单详情 isShowStopBillForm: false, //是否显示停课订单详情
isShowClassTrans:false, //是否显示订单转班详情 isShowClassTrans: false, //是否显示订单转班详情
isShowTemporaryClass:false,//是否显示临时上课邀请订单详情 isShowTemporaryClass: false, //是否显示临时上课邀请订单详情
} }
}, },
created() { created() {
...@@ -261,13 +257,8 @@ ...@@ -261,13 +257,8 @@
methods: { methods: {
//跳转到财务单据 //跳转到财务单据
goFinaceUrl(path, rowData) { goFinaceUrl(path, rowData) {
this.$router.push({ this.OpenNewUrl('/financial/financalDocument/' + path, {
path: '/financial/financalDocument/' + path, 'id': rowData.FinanceId
query: {
"id": rowData.FinanceId,
blank: 'y',
tab: '单据详情'
}
}) })
}, },
//生成财务单据 //生成财务单据
...@@ -280,7 +271,7 @@ ...@@ -280,7 +271,7 @@
this.isShowBillForm = false; this.isShowBillForm = false;
this.isShowChangeBillForm = false; this.isShowChangeBillForm = false;
this.isShowCreateBillForm = false; this.isShowCreateBillForm = false;
this.isShowStopBillForm=false; this.isShowStopBillForm = false;
this.isShowClassTrans = false; this.isShowClassTrans = false;
this.isShowTemporaryClass = false; this.isShowTemporaryClass = false;
this.billObj = {}; this.billObj = {};
...@@ -295,17 +286,17 @@ ...@@ -295,17 +286,17 @@
else if (item.ReceiptType == 2) { else if (item.ReceiptType == 2) {
this.isShowBillForm = true; this.isShowBillForm = true;
} }
//停课 //停课
else if (item.ReceiptType == 3) { else if (item.ReceiptType == 3) {
this.isShowStopBillForm = true; this.isShowStopBillForm = true;
} }
//临时上课邀请 //临时上课邀请
else if (item.ReceiptType == 4){ else if (item.ReceiptType == 4) {
this.isShowTemporaryClass =true; this.isShowTemporaryClass = true;
} }
//转班 //转班
else if (item.ReceiptType == 5 || item.ReceiptType==6){ else if (item.ReceiptType == 5 || item.ReceiptType == 6) {
this.isShowClassTrans =true; this.isShowClassTrans = true;
} }
this.showType = type; this.showType = type;
this.billObj = item; this.billObj = item;
...@@ -346,7 +337,7 @@ ...@@ -346,7 +337,7 @@
this.isShowBillForm = false; this.isShowBillForm = false;
this.isShowChangeBillForm = false; this.isShowChangeBillForm = false;
this.isShowCreateBillForm = false; this.isShowCreateBillForm = false;
this.isShowStopBillForm=false; this.isShowStopBillForm = false;
this.isShowClassTrans = false; this.isShowClassTrans = false;
this.billObj = {}; this.billObj = {};
this.getStuBackBill(); this.getStuBackBill();
...@@ -360,12 +351,12 @@ ...@@ -360,12 +351,12 @@
}).catch(() => {}) }).catch(() => {})
}, },
//作废 //作废
invalidBillForm(item){ invalidBillForm(item) {
let delMsg = { let delMsg = {
Id: item.Id, Id: item.Id,
}; };
var message = "是否要作废此单据?"; var message = "是否要作废此单据?";
this.$q.dialog({ this.$q.dialog({
title: '提示信息', title: '提示信息',
message: message, message: message,
......
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