Commit 11ada4b4 authored by 黄奎's avatar 黄奎
parents 2ba2c8b9 7c11483c
...@@ -208,10 +208,10 @@ ...@@ -208,10 +208,10 @@
<div class="examPaper page-body"> <div class="examPaper page-body">
<div class="examPaper_Top"> <div class="examPaper_Top">
<div style="width:80%;display:flex;"> <div style="width:80%;display:flex;">
<div style="width:40%;margin:0 20px;"> <div style="width:36%;margin:0 20px;">
<q-input filled label="标题" v-model="DataObj.PaperName" /> <q-input filled label="标题" v-model="DataObj.PaperName" />
</div> </div>
<div style="width:20%;"> <div style="width:24%;">
<q-select filled option-value="Id" option-label="Name" :options="questionDifficultyTypeList" emit-value <q-select filled option-value="Id" option-label="Name" :options="questionDifficultyTypeList" emit-value
map-options label="难度" use-input clearable v-model="DataObj.DifficultyType" /> map-options label="难度" use-input clearable v-model="DataObj.DifficultyType" />
</div> </div>
...@@ -224,8 +224,8 @@ ...@@ -224,8 +224,8 @@
<div class="Exam-main"> <div class="Exam-main">
<div class="Exam-left f1"> <div class="Exam-left f1">
<p class="Left-ptitel"> <p class="Left-ptitel">
<span>题量:<i>10</i></span> <span>题量:<i>{{examNum}}</i></span>
<span>  总分:<i>50.0</i></span> <span>  总分:<i>{{examScore}}</i></span>
</p> </p>
<div class="Left-list" style="height:740px;overflow:auto;"> <div class="Left-list" style="height:740px;overflow:auto;">
<template v-if="DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0"> <template v-if="DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0">
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
<span class="exam_ListSHow"> <span class="exam_ListSHow">
<i class="iconfont icon-shangyi2" @click.stop="MoveChildItem(gIndex,dIndex,0)" style="margin-right:5px;" v-if="dIndex!=0"></i> <i class="iconfont icon-shangyi2" @click.stop="MoveChildItem(gIndex,dIndex,0)" style="margin-right:5px;" v-if="dIndex!=0"></i>
<i class="iconfont icon-xiayi" @click.stop="MoveChildItem(gIndex,dIndex,1)" v-if="dIndex!=gItem.DetailsList.length-1"></i> <i class="iconfont icon-xiayi" @click.stop="MoveChildItem(gIndex,dIndex,1)" v-if="dIndex!=gItem.DetailsList.length-1"></i>
<i class="iconfont icon-shanchu2" style="margin-left:5px;font-size:17px;"></i> <i class="iconfont icon-shanchu2" @click.stop="delExam(gItem.DetailsList,dIndex)" style="margin-left:5px;font-size:17px;"></i>
</span> </span>
</li> </li>
</ul> </ul>
...@@ -436,7 +436,9 @@ ...@@ -436,7 +436,9 @@
firstTypeList: [], //第一类题型 firstTypeList: [], //第一类题型
secondTypeList: [], //第二类题型 secondTypeList: [], //第二类题型
isShowQuestion: false, isShowQuestion: false,
commonIndex: -1 commonIndex: -1,
examNum:0, //题量
examScore:0 //总分
} }
}, },
created() { created() {
...@@ -494,6 +496,10 @@ ...@@ -494,6 +496,10 @@
} }
} }
}, },
//删除题目
delExam(item,index){
item.splice(index,1);
},
//点击修改标题名字和分数 //点击修改标题名字和分数
getNameEdit(item,index){ getNameEdit(item,index){
item.forEach(x=>{ item.forEach(x=>{
...@@ -566,8 +572,14 @@ ...@@ -566,8 +572,14 @@
if (res.Code == 1) { if (res.Code == 1) {
this.DataObj = res.Data; this.DataObj = res.Data;
} }
this.examScore = 0;
this.examNum = 0;
this.DataObj.GroupList.forEach(x=>{ this.DataObj.GroupList.forEach(x=>{
x.isShowEdit = false; x.isShowEdit = false;
this.examNum += x.DetailsList.length;
x.DetailsList.forEach(y=>{
this.examScore += y.Score;
})
}) })
}) })
}, },
......
<style> <style>
.Sysuser_Date .el-range-editor .el-range-input { .Sysuser_Date .el-range-editor .el-range-input {
background-color: transparent; background-color: transparent;
} }
.Sysuser_Date .el-range-editor.el-input__inner { .Sysuser_Date .el-range-editor.el-input__inner {
background-color: transparent; background-color: transparent;
} }
.ReceipTypeName { .ReceipTypeName {
display: inline-block; display: inline-block;
padding: 2px 8px; padding: 2px 8px;
color: white; color: white;
background-color: rgb(233, 82, 82); background-color: rgb(233, 82, 82);
line-height: 16px; line-height: 16px;
border-radius: 4px; border-radius: 4px;
} }
.bill_Rearsons {
width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis
}
.bill_Rearsons {
width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
</style> </style>
<template> <template>
<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"> <div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="msg.Id" label="单号" maxlength="10" /> <q-input
@change="resetSearch"
clearable
filled
v-model="msg.Id"
label="单号"
maxlength="10"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" clearable filled v-model="msg.VerifyStatus" :options="ShowOpts" emit-value <q-select
map-options label="审核状态" /> @input="resetSearch"
clearable
filled
v-model="msg.VerifyStatus"
:options="ShowOpts"
emit-value
map-options
label="审核状态"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" clearable filled option-value="Id" option-label="Name" <q-select
v-model="msg.ReceiptType" :options="OrderTypeList" emit-value map-options label="单据类型" /> @input="resetSearch"
clearable
filled
option-value="Id"
option-label="Name"
v-model="msg.ReceiptType"
:options="OrderTypeList"
emit-value
map-options
label="单据类型"
/>
</div> </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>
<el-date-picker v-model="applyDateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" <el-date-picker
style="border: none" range-separator="至" start-placeholder="申请开始日期" end-placeholder="申请结束日期"> v-model="applyDateList"
 </el-date-picker>        @change="resetSearch()"
value-format="yyyy-MM-dd"
type="daterange"
style="border: none"
range-separator="至"
start-placeholder="申请开始日期"
end-placeholder="申请结束日期"
>
 </el-date-picker
>       
</template> </template>
</q-field> </q-field>
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-tabs style="margin-bottom: 20px" v-model="tabCheck" narrow-indicator dense align="left" class="text-primary"> <q-tabs
style="margin-bottom: 20px"
v-model="tabCheck"
narrow-indicator
dense
align="left"
class="text-primary"
>
<q-tab :ripple="false" name="1" label="我发起的" /> <q-tab :ripple="false" name="1" label="我发起的" />
<q-tab :ripple="false" name="3" label="待我审批" /> <q-tab :ripple="false" name="3" label="待我审批" />
<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 <q-table
class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns" :pagination="msg"
row-key="name"> :loading="loading"
no-data-label="暂无相关数据"
flat
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>
...@@ -68,24 +116,19 @@ ...@@ -68,24 +116,19 @@
<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=" <template v-if="props.row.ReceiptType == 2">
props.row.ReceiptType == 1 || <span v-if="props.row.DataObj && props.row.DataObj.ApplyReason">
props.row.ReceiptType == 5 || {{ props.row.DataObj.ApplyReason }}
props.row.ReceiptType == 3 ||
props.row.ReceiptType == 4
">
<span v-if="props.row.DataObj && props.row.DataObj.Remarks">
{{ props.row.DataObj.Remarks }}
<q-tooltip :offset="[0, 10]"> <q-tooltip :offset="[0, 10]">
{{ props.row.DataObj.Remarks }} {{ props.row.DataObj.ApplyReason }}
</q-tooltip> </q-tooltip>
</span> </span>
</template> </template>
<template v-if="props.row.ReceiptType == 2 && props.row.DataObj&&props.row.DataObj.ApplyReason"> <template v-else>
<span> <span v-if="props.row.DataObj && props.row.DataObj.Remarks">
{{ props.row.DataObj.ApplyReason }} {{ props.row.DataObj.Remarks }}
<q-tooltip :offset="[0, 10]"> <q-tooltip :offset="[0, 10]">
{{ props.row.DataObj.ApplyReason }} {{ props.row.DataObj.Remarks }}
</q-tooltip> </q-tooltip>
</span> </span>
</template> </template>
...@@ -93,355 +136,429 @@ ...@@ -93,355 +136,429 @@
</q-td> </q-td>
</template> </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
:input="true" @input="changePage" /> class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<template v-if="tabCheck == '3'"> <template v-if="tabCheck == '3'">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight: 400" label="审核" <q-btn
@click="showBillForm(props.row, 2)" /> flat
size="xs"
icon="edit"
color="accent"
style="font-weight: 400"
label="审核"
@click="showBillForm(props.row, 2)"
/>
</template> </template>
<template v-else> <template v-else>
<template v-if=" <template
props.row.DataObj&& v-if="
props.row.DataObj &&
props.row.VerifyStatus == 2 && props.row.VerifyStatus == 2 &&
props.row.ReceiptType == 2 && props.row.ReceiptType == 2 &&
props.row.DataObj.FinanceId <= 0 && props.row.DataObj.FinanceId <= 0 &&
tabCheck == '1' tabCheck == '1'
"> "
<q-btn flat size="xs" icon="directions" color="secondary" style="font-weight: 400" label="制单" >
@click="createBillForm(props.row)" /> <q-btn
flat
size="xs"
icon="directions"
color="secondary"
style="font-weight: 400"
label="制单"
@click="createBillForm(props.row)"
/>
</template> </template>
<template v-if=" <template
v-if="
props.row.DataObj && props.row.DataObj &&
props.row.VerifyStatus == 2 && props.row.VerifyStatus == 2 &&
props.row.ReceiptType == 2 && props.row.ReceiptType == 2 &&
props.row.DataObj.FinanceId > 0 props.row.DataObj.FinanceId > 0
"> "
<span @click=" >
<span
@click="
goFinaceUrl('FinancialDocumentsDetail', props.row.DataObj) goFinaceUrl('FinancialDocumentsDetail', props.row.DataObj)
" title="退课财务单据号" "
style="color: #2961fe; font-weight: bold; cursor: pointer">{{ props.row.DataObj.FinanceId }}</span> title="退课财务单据号"
style="color: #2961fe; font-weight: bold; cursor: pointer"
>{{ props.row.DataObj.FinanceId }}</span
>
</template> </template>
<q-btn v-if="props.row.VerifyStatus == 0 && tabCheck == '1'" flat size="xs" icon="delete" color="negative" <q-btn
style="font-weight: 400" label="作废" @click="invalidBillForm(props.row)" /> v-if="props.row.VerifyStatus == 0 && tabCheck == '1'"
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight: 400" label="查看" flat
@click="showBillForm(props.row, 1)" /> 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="查看"
@click="showBillForm(props.row, 1)"
/>
</template> </template>
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <backbill-form
@success="refreshPage"> v-if="isShowBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
</backbill-form> </backbill-form>
<createbackbill-form v-if="isShowCreateBillForm" :seting-obj="billObj" @close="closeBillForm" <createbackbill-form
@success="refreshPage"> v-if="isShowCreateBillForm"
:seting-obj="billObj"
@close="closeBillForm"
@success="refreshPage"
>
</createbackbill-form> </createbackbill-form>
<changebill-form v-if="isShowChangeBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <changebill-form
@success="refreshPage"> v-if="isShowChangeBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
</changebill-form> </changebill-form>
<stopbill-form v-if="isShowStopBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <stopbill-form
@success="refreshPage"> v-if="isShowStopBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
</stopbill-form> </stopbill-form>
<!-- 订单转班-查看 --> <!-- 订单转班-查看 -->
<ordertrans-form v-if="isShowClassTrans" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <ordertrans-form
@success="refreshPage"> v-if="isShowClassTrans"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
</ordertrans-form> </ordertrans-form>
<!-- 订单临时上课邀请-查看 --> <!-- 订单临时上课邀请-查看 -->
<temporaryClass-form v-if="isShowTemporaryClass" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <temporaryClass-form
@success="refreshPage"> v-if="isShowTemporaryClass"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
</temporaryClass-form> </temporaryClass-form>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
GetEducationReceiptPage, GetEducationReceiptPage,
GetEducationReceiptType, GetEducationReceiptType,
invalidReceiptInfo, invalidReceiptInfo,
} from "../../api/teacher/index"; } from "../../api/teacher/index";
import backbillForm from "../../components/sale/backbill-form"; import backbillForm from "../../components/sale/backbill-form";
import changebillForm from "../../components/sale/changebill-form"; import changebillForm from "../../components/sale/changebill-form";
import stopbillForm from "../../components/sale/stopbill-form"; import stopbillForm from "../../components/sale/stopbill-form";
import createbackbillForm from "../../components/sale/createbackbill-form"; import createbackbillForm from "../../components/sale/createbackbill-form";
import ordertransForm from "../../components/sale/ordertrans-form"; import ordertransForm from "../../components/sale/ordertrans-form";
import temporaryClassForm from "../../components/sale/temporaryClassbill-form"; import temporaryClassForm from "../../components/sale/temporaryClassbill-form";
export default { export default {
meta: { meta: {
title: "业务单据", title: "业务单据",
},
components: {
backbillForm,
createbackbillForm,
changebillForm,
stopbillForm,
ordertransForm,
temporaryClassForm,
},
data() {
return {
currentUrl: "",
columns: [
{
name: "Id",
label: "单号",
field: "Id",
align: "left",
},
{
name: "ReceiptTypeName",
label: "单据类型",
field: "ReceiptTypeName",
align: "left",
},
{
name: "AuditStatusName",
label: "审核状态",
field: "AuditStatusName",
align: "left",
},
{
name: "CreateByName",
label: "创建人",
field: "CreateByName",
align: "left",
},
{
name: "CreateTime",
label: "创建时间",
field: "CreateTime",
align: "left",
},
{
name: "ApplyReason",
label: "申请原因",
field: "ApplyReason",
align: "left",
},
{
name: "optioned",
label: "操作",
field: "BackId",
},
],
data: [],
loading: true,
applyDateList: [], //申请日期
ShowOpts: [
{
label: "审核中",
value: "1",
},
{
label: "通过",
value: "2",
},
{
label: "驳回",
value: "3",
},
{
label: "作废",
value: "6",
},
],
msg: {
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
Id: "",
VerifyStatus: "", //审核状态
StartTime: "", //开始时间
EndTime: "", //结束时间
Conditon: 1,
ReceiptType: "", //单据类型
},
tabCheck: "1",
pageCount: 0,
isShowBillForm: false, //是否显示单据表单
isShowCreateBillForm: false, //是否显示制单表单
isShowChangeBillForm: false, //是否显示调课单据
billObj: {}, //单据信息
showType: 1, //1-查看,2-审核
OrderTypeList: [],
isShowStopBillForm: false, //是否显示停课订单详情
isShowClassTrans: false, //是否显示订单转班详情
isShowTemporaryClass: false, //是否显示临时上课邀请订单详情
};
},
created() {
if (this.$route.query.tab) {
this.tabCheck = this.$route.query.tab;
}
if (this.$route.query.id) {
this.msg.Id = this.$route.query.id;
}
},
mounted() {
this.currentUrl = this.$route.path;
this.getEducationType();
this.getStuBackBill();
},
methods: {
//跳转到财务单据
goFinaceUrl(path, rowData) {
this.OpenNewUrl("/financial/financalDocument/" + path, {
id: rowData.FinanceId,
});
}, },
components: { //生成财务单据
backbillForm, createBillForm(item) {
createbackbillForm, this.$q
changebillForm, .dialog({
stopbillForm, title: "提示信息",
ordertransForm, message: "退课单据将扣除10%违约金",
temporaryClassForm, cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
})
.onOk(() => {
this.isShowCreateBillForm = true;
this.billObj = item;
})
.onCancel(() => {});
}, },
data() { //关闭表单
return { closeBillForm() {
currentUrl: "", this.isShowBillForm = false;
columns: [{ this.isShowChangeBillForm = false;
name: "Id", this.isShowCreateBillForm = false;
label: "单号", this.isShowStopBillForm = false;
field: "Id", this.isShowClassTrans = false;
align: "left", this.isShowTemporaryClass = false;
}, this.billObj = {};
{
name: "ReceiptTypeName",
label: "单据类型",
field: "ReceiptTypeName",
align: "left",
},
{
name: "AuditStatusName",
label: "审核状态",
field: "AuditStatusName",
align: "left",
},
{
name: "CreateByName",
label: "创建人",
field: "CreateByName",
align: "left",
},
{
name: "CreateTime",
label: "创建时间",
field: "CreateTime",
align: "left",
},
{
name: "ApplyReason",
label: "申请原因",
field: "ApplyReason",
align: "left",
},
{
name: "optioned",
label: "操作",
field: "BackId",
},
],
data: [],
loading: true,
applyDateList: [], //申请日期
ShowOpts: [{
label: "审核中",
value: "1",
},
{
label: "通过",
value: "2",
},
{
label: "驳回",
value: "3",
},
{
label: "作废",
value: "6",
},
],
msg: {
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
Id: "",
VerifyStatus: "", //审核状态
StartTime: "", //开始时间
EndTime: "", //结束时间
Conditon: 1,
ReceiptType: "", //单据类型
},
tabCheck: "1",
pageCount: 0,
isShowBillForm: false, //是否显示单据表单
isShowCreateBillForm: false, //是否显示制单表单
isShowChangeBillForm: false, //是否显示调课单据
billObj: {}, //单据信息
showType: 1, //1-查看,2-审核
OrderTypeList: [],
isShowStopBillForm: false, //是否显示停课订单详情
isShowClassTrans: false, //是否显示订单转班详情
isShowTemporaryClass: false, //是否显示临时上课邀请订单详情
};
}, },
created() { //显示表单
if(this.$route.query.tab){ showBillForm(item, type) {
this.tabCheck=this.$route.query.tab //调课
if (item.ReceiptType == 1) {
this.isShowChangeBillForm = true;
}
//退课
else if (item.ReceiptType == 2) {
this.isShowBillForm = true;
} }
if(this.$route.query.id){ //停课
this.msg.Id=this.$route.query.id else if (item.ReceiptType == 3) {
this.isShowStopBillForm = true;
} }
//临时上课邀请
else if (item.ReceiptType == 4) {
this.isShowTemporaryClass = true;
}
//转班
else if (item.ReceiptType == 5 || item.ReceiptType == 6) {
this.isShowClassTrans = true;
}
this.showType = type;
this.billObj = item;
},
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getStuBackBill();
}, },
mounted() { //翻页
this.currentUrl = this.$route.path; changePage(val) {
this.getEducationType(); this.msg.pageIndex = val;
this.getStuBackBill(); this.getStuBackBill();
}, },
methods: { //获取退课单据分页列表
//跳转到财务单据 getStuBackBill() {
goFinaceUrl(path, rowData) { this.loading = true;
this.OpenNewUrl("/financial/financalDocument/" + path, { this.data = [];
id: rowData.FinanceId, this.pageCount = 0;
this.msg.Conditon = this.tabCheck;
if (this.applyDateList && this.applyDateList.length > 0) {
this.msg.StartTime = this.applyDateList[0];
this.msg.EndTime = this.applyDateList[1];
} else {
this.msg.StartTime = "";
this.msg.EndTime = "";
}
GetEducationReceiptPage(this.msg)
.then((res) => {
this.loading = false;
this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
}); });
}, },
//生成财务单据 //刷新页面
createBillForm(item) { refreshPage() {
this.$q.dialog({ this.isShowBillForm = false;
title: "提示信息", this.isShowChangeBillForm = false;
message: '退课单据将扣除10%违约金', this.isShowCreateBillForm = false;
cancel: true, this.isShowStopBillForm = false;
persistent: true, this.isShowClassTrans = false;
ok: "确定", this.billObj = {};
cancel: "取消", this.getStuBackBill();
}) },
.onOk(() => { //获取下拉数据
this.isShowCreateBillForm = true; getEducationType() {
this.billObj = item; GetEducationReceiptType()
}) .then((res) => {
.onCancel(() => {}); if (res.Code == 1) {
}, this.OrderTypeList = res.Data;
//关闭表单 }
closeBillForm() { })
this.isShowBillForm = false; .catch(() => {});
this.isShowChangeBillForm = false; },
this.isShowCreateBillForm = false; //作废
this.isShowStopBillForm = false; invalidBillForm(item) {
this.isShowClassTrans = false; let delMsg = {
this.isShowTemporaryClass = false; Id: item.Id,
this.billObj = {}; };
}, var message = "是否要作废此单据?";
//显示表单
showBillForm(item, type) { this.$q
//调课 .dialog({
if (item.ReceiptType == 1) { title: "提示信息",
this.isShowChangeBillForm = true; message: message,
} cancel: true,
//退课 persistent: true,
else if (item.ReceiptType == 2) { ok: "确定",
this.isShowBillForm = true; cancel: "取消",
} })
//停课 .onOk(() => {
else if (item.ReceiptType == 3) { invalidReceiptInfo(delMsg).then((res) => {
this.isShowStopBillForm = true;
}
//临时上课邀请
else if (item.ReceiptType == 4) {
this.isShowTemporaryClass = true;
}
//转班
else if (item.ReceiptType == 5 || item.ReceiptType == 6) {
this.isShowClassTrans = true;
}
this.showType = type;
this.billObj = item;
},
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getStuBackBill();
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.getStuBackBill();
},
//获取退课单据分页列表
getStuBackBill() {
this.loading = true;
this.data = [];
this.pageCount = 0;
this.msg.Conditon = this.tabCheck;
if (this.applyDateList && this.applyDateList.length > 0) {
this.msg.StartTime = this.applyDateList[0];
this.msg.EndTime = this.applyDateList[1];
} else {
this.msg.StartTime = "";
this.msg.EndTime = "";
}
GetEducationReceiptPage(this.msg)
.then((res) => {
this.loading = false;
this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
});
},
//刷新页面
refreshPage() {
this.isShowBillForm = false;
this.isShowChangeBillForm = false;
this.isShowCreateBillForm = false;
this.isShowStopBillForm = false;
this.isShowClassTrans = false;
this.billObj = {};
this.getStuBackBill();
},
//获取下拉数据
getEducationType() {
GetEducationReceiptType()
.then((res) => {
if (res.Code == 1) { if (res.Code == 1) {
this.OrderTypeList = res.Data; this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "删除成功!",
position: "top",
});
this.refreshPage();
} else {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: res.Message,
position: "top",
});
} }
}) });
.catch(() => {}); })
}, .onCancel(() => {});
//作废
invalidBillForm(item) {
let delMsg = {
Id: item.Id,
};
var message = "是否要作废此单据?";
this.$q.dialog({
title: "提示信息",
message: message,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
})
.onOk(() => {
invalidReceiptInfo(delMsg).then((res) => {
if (res.Code == 1) {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "删除成功!",
position: "top",
});
this.refreshPage();
} else {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: res.Message,
position: "top",
});
}
});
})
.onCancel(() => {});
},
}, },
watch: { },
tabCheck: function (val) { watch: {
this.resetSearch(); tabCheck: function (val) {
}, this.resetSearch();
}, },
}; },
};
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
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