Commit 4d191789 authored by 黄奎's avatar 黄奎

页面修改

parent fa3bc92e
...@@ -10,4 +10,17 @@ export function queryStudentBackClassPage(data) { ...@@ -10,4 +10,17 @@ export function queryStudentBackClassPage(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 学员退课审核
*/
export function saveBackBillAduit(data) {
return request({
url: '/stu/SetBackBillAduit',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -58,10 +58,10 @@ ...@@ -58,10 +58,10 @@
<q-tab :ripple="false" name="second" label="审批记录" /> <q-tab :ripple="false" name="second" label="审批记录" />
</q-tabs> </q-tabs>
<div v-if="tabCheck=='first'" style="margin:0 15px;"> <div v-if="tabCheck=='first'" style="margin:0 15px;">
 <backinfoForm :seting-obj="setingObj"></backinfoForm>  <backinfoForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm"></backinfoForm>
</div> </div>
<div v-if="tabCheck=='second'"> <div v-if="tabCheck=='second'">
 <backflowForm :seting-obj="setingObj"></backflowForm>  <backflowForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm"></backflowForm>
</div> </div>
</q-card> </q-card>
<div class="dialog-out-close" @click="closeShenheForm" <div class="dialog-out-close" @click="closeShenheForm"
...@@ -79,6 +79,10 @@ ...@@ -79,6 +79,10 @@
setingObj: { setingObj: {
type: Object, type: Object,
default: null default: null
},
showType: {
type: Number,
default: 1
} }
}, },
components: { components: {
...@@ -96,7 +100,7 @@ ...@@ -96,7 +100,7 @@
}, },
mounted() { mounted() {
console.log("setingObj",this.setingObj) console.log("setingObj", this.setingObj)
}, },
methods: { methods: {
closeShenheForm() { closeShenheForm() {
......
...@@ -75,35 +75,47 @@ ...@@ -75,35 +75,47 @@
</span> </span>
<br /> <br />
<template v-if="showType==1">
<span>
退课金额: {{setingObj.BackMoney}}
</span>
</template>
<template v-if="showType==2">
<span> <span>
退课金额:
<q-input filled stack-label :dense="false" v-model="backBillMsg.BackMoney" class="col-12" label="退课金额" <q-input filled stack-label :dense="false" v-model="backBillMsg.BackMoney" class="col-12" label="退课金额"
:rules="[val => !!val || '请填退课金额']" /> :rules="[val => !!val || '请填退课金额']" />
</span> </span>
</template>
<br /> <br />
<span>
审批意见:
<q-radio v-model="backBillMsg.AuditStatus" ::val="2" label="通过" />
<q-radio v-model="backBillMsg.AuditStatus" :val="3" label="驳回" />
<q-input filled stack-label :dense="false" v-model="backBillMsg.Description"
type="textarea" label="审批意见" />
</span>
<div> <div>
抄送: 抄送:
RecipientIds RecipientIds
<q-btn class="q-mr-md" label="取消" @click="closeEditOrder" /> <q-btn class="q-mr-md" label="取消" @click="closeBackInfo" />
<q-btn color="accent" class="q-mr-md" label="确认" @click="saveOrderInfo()" /> <q-btn v-if="showType==2" label="确认" @click="saveBackClassInfo()" />
</div> </div>
<span v-if="showType==2">
审批意见:
<q-radio v-model="backBillMsg.AuditStatus" :val="2" label="通过" />
<q-radio v-model="backBillMsg.AuditStatus" :val="3" label="驳回" />
<q-input filled stack-label :dense="false" v-model="backBillMsg.Description" type="textarea" label="审批意见" />
</span>
</div> </div>
</template> </template>
<script> <script>
import {
saveBackBillAduit
} from '../../api/sale/bill'
export default { export default {
props: { props: {
setingObj: { setingObj: {
type: Object, type: Object,
default: null default: null
},
showType: {
type: Number,
default: 1
} }
}, },
components: { components: {
...@@ -113,6 +125,7 @@ ...@@ -113,6 +125,7 @@
return { return {
persistent: true, persistent: true,
backBillMsg: { backBillMsg: {
BackId: 0,
BackMoney: 0, //实际退款金额 BackMoney: 0, //实际退款金额
Description: "", //审批意见 Description: "", //审批意见
AuditStatus: 0, //审核状态 AuditStatus: 0, //审核状态
...@@ -121,14 +134,19 @@ ...@@ -121,14 +134,19 @@
}, },
created() {}, created() {},
mounted() { mounted() {
this.backBillMsg.BackId = this.setingObj.BackId;
console.log("setingObj", this.setingObj); console.log("setingObj", this.setingObj);
}, },
methods: { methods: {
closeEditOrder() { closeBackInfo() {
this.persistent = false;
this.$emit('close');
}, },
saveOrderInfo() { //退课单据审核
saveBackClassInfo() {
saveBackBillAduit(this.backBillMsg).then(res => {
console.log("res", res);
})
} }
}, },
} }
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
<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="2" 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="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" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
...@@ -65,12 +65,22 @@ ...@@ -65,12 +65,22 @@
</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'">
<div>
<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)" /> @click="showBillForm(props.row,2)" />
</div>
</template>
<template v-else>
<div>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="查看"
@click="showBillForm(props.row,1)" />
</div>
</template>
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" @close="closeBillForm" @success="refreshPage"> <backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm" @success="refreshPage">
</backbill-form> </backbill-form>
</div> </div>
</div> </div>
...@@ -188,6 +198,7 @@ ...@@ -188,6 +198,7 @@
pageCount: 0, pageCount: 0,
isShowBillForm: false, //是否显示单据表单 isShowBillForm: false, //是否显示单据表单
billObj: {}, //单据信息 billObj: {}, //单据信息
showType:1,//1-查看,2-审核
} }
}, },
created() { created() {
...@@ -204,8 +215,9 @@ ...@@ -204,8 +215,9 @@
this.billObj = {}; this.billObj = {};
}, },
//显示表单 //显示表单
showBillForm(item) { showBillForm(item,type) {
this.isShowBillForm = true; this.isShowBillForm = true;
this.showType=type;
this.billObj = item; this.billObj = item;
}, },
//重新查询 //重新查询
...@@ -221,6 +233,8 @@ ...@@ -221,6 +233,8 @@
//获取退课单据分页列表 //获取退课单据分页列表
getStuBackBill() { getStuBackBill() {
this.loading = true; this.loading = true;
this.data = [];
this.pageCount = 0;
this.msg.Conditon = this.tabCheck; this.msg.Conditon = this.tabCheck;
if (this.applyDateList && this.applyDateList.length > 0) { if (this.applyDateList && this.applyDateList.length > 0) {
this.msg.QStartTime = this.applyDateList[0]; this.msg.QStartTime = this.applyDateList[0];
...@@ -241,6 +255,11 @@ ...@@ -241,6 +255,11 @@
refreshPage() { refreshPage() {
this.getStuBackBill(); this.getStuBackBill();
}, },
},
watch: {
tabCheck: function (val) {
this.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