|
|
|
|
@ -698,6 +698,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.government.huowu}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -759,6 +761,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.government.fuwu}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -821,6 +825,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.government.gongchen}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -888,6 +894,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.small.huowu}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -950,6 +958,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.small.fuwu}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -1012,6 +1022,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.small.gongchen}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -1075,6 +1087,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.month_total}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -1136,6 +1150,8 @@ export default {
|
|
|
|
|
<xy-table
|
|
|
|
|
list={row.year_total}
|
|
|
|
|
height={300}
|
|
|
|
|
show-summary={true}
|
|
|
|
|
summary-method={this.summaryDetail}
|
|
|
|
|
table-item={[
|
|
|
|
|
{
|
|
|
|
|
prop: "name",
|
|
|
|
|
@ -1345,7 +1361,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
getInfo()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
console.log(response);
|
|
|
|
|
this.user = response;
|
|
|
|
|
this.isShowNoPay =!(this.user.username=="zhongaicheng");
|
|
|
|
|
})
|
|
|
|
|
@ -1353,6 +1368,24 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//合计
|
|
|
|
|
summaryDetail (param) {
|
|
|
|
|
const {
|
|
|
|
|
columns,
|
|
|
|
|
data
|
|
|
|
|
} = param
|
|
|
|
|
return columns.map((column, index) => {
|
|
|
|
|
if (column.property === 'name') {
|
|
|
|
|
return '合计合同金额'
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'money') {
|
|
|
|
|
return `¥ ${data.reduce((pre,cur) => (pre + Number(cur.money)),0).toFixed(2)}`.replace(
|
|
|
|
|
/\B(?=(\d{3})+(?!\d))/g,
|
|
|
|
|
","
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return ''
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
summary(param) {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['xyTable'].$children[0].doLayout()
|
|
|
|
|
@ -1362,7 +1395,6 @@ export default {
|
|
|
|
|
data
|
|
|
|
|
} = param
|
|
|
|
|
const sums = []
|
|
|
|
|
console.log(columns)
|
|
|
|
|
columns.forEach((column, index) => {
|
|
|
|
|
if (index === 1) {
|
|
|
|
|
sums[index] = '总计'
|
|
|
|
|
@ -1454,7 +1486,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
async getStatistic() {
|
|
|
|
|
const res = await statistic(this.select);
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.statistic = res;
|
|
|
|
|
if (res.typeList) {
|
|
|
|
|
var arr = [];
|
|
|
|
|
@ -1472,7 +1503,6 @@ export default {
|
|
|
|
|
this.typeList = arr;
|
|
|
|
|
}
|
|
|
|
|
//this.split = Array.from({ length: Math.ceil(this.typeList/2) },() => 0.5)
|
|
|
|
|
console.log(123, this.typeList);
|
|
|
|
|
},
|
|
|
|
|
getPer(row) {
|
|
|
|
|
let m2 = row.money_total_2;
|
|
|
|
|
|