Commit 8b084af0 authored by youjie's avatar youjie

人头奖励制单

parent 52836c76
......@@ -18,7 +18,7 @@
</div>
</div>
<div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
<q-table style="max-height: 65vh;overflow: auto;" :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
separator="none" :data="data.List" :columns="columns" row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">教师课时费明细</div>
......
......@@ -1413,6 +1413,23 @@
this.msg.detailList[i - 1] = list;
} else {
this.msg.detailList.push(list);
// 人头奖励类型
if(this.orderObj.PeopleCostType&&this.orderObj.PeopleCostType>0) {
let num = (1 * this.orderObj.PeopleMoney) * list.Rate;
num = Math.round(num * 100) / 100;
this.msg.detailList.push({
...list,
UnitPrice: this.orderObj.PeopleMoney,
UnitPriceTo: this.$commonUtils.addCommas(Math.round(this.orderObj.PeopleMoney * 100) / 100),
yTotalPrice: this.orderObj.PeopleMoney,
yTotalPriceTo: this.$commonUtils.addCommas(Math.round(this.orderObj.PeopleMoney * 100) /
100),
bTotalPrice: num,
bTotalPriceTo: this.$commonUtils.addCommas(num),
CostTypeId: this.orderObj.PeopleCostType
})
};
}
let allPrice = 0
this.msg.detailList.forEach(x => {
......
......@@ -293,7 +293,9 @@
OtherType:50,//业绩提成
ReFinanceId:Id,
ReFinanceId2:this.msg.SchoolId,
EduCommissionEmp:EmpIds
EduCommissionEmp:EmpIds,
PeopleCostType: this.totalPeople>0?486:0,
PeopleMoney: this.totalPeople,
}
let query = {
blank: "y",
......@@ -403,4 +405,3 @@
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
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