Commit eddaf3d6 authored by 黄奎's avatar 黄奎

生成单据修改

parent dc3e6ec3
...@@ -41,10 +41,21 @@ export function queryBackBillAduitInfo(data) { ...@@ -41,10 +41,21 @@ export function queryBackBillAduitInfo(data) {
* 学员退课预计金额 * 学员退课预计金额
*/ */
export function queryBackBillMoney(data) { export function queryBackBillMoney(data) {
return request({ return request({
url: '/stu/GetBackBillMoney', url: '/stu/GetBackBillMoney',
method: 'post', method: 'post',
data data
}) })
} }
\ No newline at end of file
/**
* 学员退课审核
*/
export function saveStudentBackFinance(data) {
return request({
url: '/stu/SetStudentBackFinance',
method: 'post',
data
})
}
...@@ -51,11 +51,10 @@ ...@@ -51,11 +51,10 @@
{{props.row.School_Id>0? props.row.SchoolName:'总部'}} {{props.row.School_Id>0? props.row.SchoolName:'总部'}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-DeptPostList="props"> <template v-slot:body-cell-RealityBackMoney="props">
<q-td :props="props"> <q-td :props="props">
<template v-if="props.row.DeptPostList&&props.row.DeptPostList.length>0" <template v-if="props.row.AuditStatus==2">
v-for="(item,index) in props.row.DeptPostList"> <span style="color:red">{{props.row.RealityBackMoney}}</span>
<q-badge :key="index" color="red" :label="item.PostName" class="q-mr-xs" />
</template> </template>
</q-td> </q-td>
</template> </template>
...@@ -66,16 +65,15 @@ ...@@ -66,16 +65,15 @@
<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'">
<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,2)" />
@click="showBillForm(props.row,2)" />
</div>
</template> </template>
<template v-else> <template v-else>
<div> <q-btn v-if="tabCheck=='1' && props.row.AuditStatus==2" flat size="xs" icon="edit" color="accent"
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="查看" style="font-weight:400" label="生成单据" @click="createBillForm(props.row)" />
@click="showBillForm(props.row,1)" />
</div> <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>
...@@ -88,7 +86,8 @@ ...@@ -88,7 +86,8 @@
</template> </template>
<script> <script>
import { import {
queryStudentBackClassPage queryStudentBackClassPage,
saveStudentBackFinance, //生成财务单据
} from '../../api/sale/bill' } from '../../api/sale/bill'
import backbillForm from '../../components/sale/backbill-form'; import backbillForm from '../../components/sale/backbill-form';
export default { export default {
...@@ -143,6 +142,12 @@ ...@@ -143,6 +142,12 @@
field: 'BackMoney', field: 'BackMoney',
align: 'left' align: 'left'
}, },
{
name: 'RealityBackMoney',
label: '实际退费金额',
field: 'RealityBackMoney',
align: 'left'
},
{ {
name: 'CreateTimeStr', name: 'CreateTimeStr',
label: '申请时间', label: '申请时间',
...@@ -210,6 +215,20 @@ ...@@ -210,6 +215,20 @@
this.getStuBackBill(); this.getStuBackBill();
}, },
methods: { methods: {
//生成财务单据
createBillForm(item) {
console.log("item", item);
var billMsg = {
BackClassId: item.BackId,
IsPublic: 1,
CurrencyId: 1,
ClientType: 1,
ClientId: item.GuestId
};
saveStudentBackFinance(billMsg).then(res => {
console.log("createBillForm", res);
});
},
//关闭表单 //关闭表单
closeBillForm() { closeBillForm() {
this.isShowBillForm = false; this.isShowBillForm = false;
......
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