|
|
|
|
@ -557,9 +557,12 @@
|
|
|
|
|
>
|
|
|
|
|
<div slot="content">
|
|
|
|
|
<xy-table
|
|
|
|
|
ref="xyTable"
|
|
|
|
|
:height="300"
|
|
|
|
|
:list="departmentTotal"
|
|
|
|
|
:table-item="departmentTotalTable"
|
|
|
|
|
:show-summary="true"
|
|
|
|
|
:summary-method="summary"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:btns> </template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
@ -1343,6 +1346,37 @@ export default {
|
|
|
|
|
.catch((error) => {});
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//合计
|
|
|
|
|
summary(param) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['xyTable'].$children[0].doLayout()
|
|
|
|
|
})
|
|
|
|
|
const {
|
|
|
|
|
columns,
|
|
|
|
|
data
|
|
|
|
|
} = param
|
|
|
|
|
const sums = []
|
|
|
|
|
columns.map((column, index) => {
|
|
|
|
|
if (index === 1) {
|
|
|
|
|
sums[index] = '总计'
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'year_total') {
|
|
|
|
|
sums[index] = 0
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'plan_price') {
|
|
|
|
|
sums[index] = this.tableTotal.planPriceTotal
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'money') {
|
|
|
|
|
sums[index] = this.tableTotal.moneyTotal
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return sums
|
|
|
|
|
},
|
|
|
|
|
nopayCellStyle({ row }) {
|
|
|
|
|
let per = ((row.fund_log_total / row.money || 0) * 100)?.toFixed(2) || 0;
|
|
|
|
|
let endDay = this.$moment(new Date()).diff(
|
|
|
|
|
|