Commit 63c82e4e authored by 黄奎's avatar 黄奎

新增页面

parent 9d1be477
......@@ -17,21 +17,34 @@ export function queryStudentBackClassPage(data) {
* 学员退课审核
*/
export function saveBackBillAduit(data) {
return request({
url: '/stu/SetBackBillAduit',
method: 'post',
data
})
}
return request({
url: '/stu/SetBackBillAduit',
method: 'post',
data
})
}
/**
/**
* 学员退课审核
*/
export function queryBackBillAduitInfo(data) {
return request({
url: '/stu/GetBackBillAduitInfo',
method: 'post',
data
})
}
/**
* 学员退课预计金额
*/
export function queryBackBillMoney(data) {
return request({
url: '/stu/GetBackBillAduitInfo',
url: '/stu/GetBackBillMoney',
method: 'post',
data
})
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -126,7 +126,7 @@
<div class="backflow_Top">
<div class="back_Circle">{{item.AduitStatusName}}</div>
<span class="back_Name">{{item.NodeName}}</span>
<span class="back_OrderStatus" v-if="item.AuditWayName">{{item.AuditWayName}}</span>
<span class="back_OrderStatus" v-if="item.AuditWayName && item.SubList&&item.SubList.length>1">{{item.AuditWayName}}</span>
</div>
<div class="back_Bottom" v-for="(subItem,subIndex) in item.SubList" :key="subIndex">
<div class="back_subList">
......
......@@ -176,16 +176,14 @@
{{setingObj.ApplyReason}}
</div>
</div>
<template>
<span v-if="showType==1">
退课金额: {{setingObj.BackMoney}}
</span>
</template>
<template v-if="setingObj.SpecialNode==1">
<span>
<q-input filled stack-label :dense="false" v-model="backBillMsg.BackMoney" class="col-12" label="退课金额"
:rules="[val => !!val || '请填退课金额']" />
</span>
<span>
系统计算课时费为:(课时)*30(课单价)=7200元,请你最终确认退款金额
</span>
</template>
<div v-if="showType==2">
<div style="display:flex;justify-content:space-between;align-items:center;">
......@@ -211,7 +209,7 @@
</template>
</div>
<div class="col-6" style="justify-content: flex-end;display:flex;align-items:center;">
<i class="iconfont icon-aite" style="font-size:20px;margin:7px 20px 0 0;cursor:pointer;">
<i class="iconfont icon-aite" style="font-size:20px;margin:7px 20px 0 0;cursor:pointer;" v-if="showType==2">
<q-popup-proxy>
<q-banner>
<div style="width:350px;">
......@@ -231,7 +229,7 @@
</q-banner>
</q-popup-proxy>
</i>
<q-btn class="q-mr-md" label="取消" @click="closeBackInfo" />
<q-btn class="q-mr-md" label="关闭" @click="closeBackInfo" />
<q-btn v-if="showType==2" color="accent q-px-md" label="确认" @click="saveBackClassInfo()" />
</div>
</div>
......@@ -242,7 +240,8 @@
<script>
import {
saveBackBillAduit
saveBackBillAduit,
queryBackBillMoney
} from '../../api/sale/bill'
import {
queryEmployee
......@@ -270,8 +269,10 @@
BackMoney: 0, //实际退款金额
Description: "", //审批意见
AuditStatus: 0, //审核状态
SpecialNode:0,//是否特殊节点
SpecialNode: 0, //是否特殊节点
RecipientIds: "", //抄送人
},
classPriceObj: {}, //课程价格信息
EmployeeList: [],
AllemployeeList: [],
tempPeople: [], //抄送人数组
......@@ -280,30 +281,47 @@
created() {},
mounted() {
this.backBillMsg.BackId = this.setingObj.BackId;
this.backBillMsg.SpecialNode=this.setingObj.SpecialNode;
this.backBillMsg.SpecialNode = this.setingObj.SpecialNode;
if (this.backBillMsg.SpecialNode == 1) {
this.getBackBillMoney();
}
this.getEmployee();
},
methods: {
getBackBillMoney() {
queryBackBillMoney({
BackId: this.backBillMsg.BackId
}).then(res => {
if (res.Code == 1) {
this.classPriceObj = res.Data;
console.log(" this.classPriceObj", this.classPriceObj);
}
});
},
closeBackInfo() {
this.persistent = false;
this.$emit('close');
},
//退课单据审核
saveBackClassInfo() {
saveBackBillAduit(this.backBillMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '审核成功!',
position: 'top'
})
//调用父页面成功方法
this.$emit('success');
this.$emit('close');
}
})
console.log("this.tempPeople", this.tempPeople);
if (this.tempPeople && this.tempPeople.length > 0) {
}
// saveBackBillAduit(this.backBillMsg).then(res => {
// if (res.Code == 1) {
// this.$q.notify({
// icon: 'iconfont icon-chenggong',
// color: 'accent',
// timeout: 2000,
// message: '审核成功!',
// position: 'top'
// })
// //调用父页面成功方法
// this.$emit('success');
// this.$emit('close');
// }
// })
},
//获取员工列表
getEmployee() {
......
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