|
|
|
|
@ -689,6 +689,7 @@ export default {
|
|
|
|
|
{
|
|
|
|
|
label: "货物",
|
|
|
|
|
width: 100,
|
|
|
|
|
prop: "huowu",
|
|
|
|
|
sortable: false,
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
return (
|
|
|
|
|
@ -747,6 +748,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "fuwu",
|
|
|
|
|
label: "服务",
|
|
|
|
|
width: 100,
|
|
|
|
|
sortable: false,
|
|
|
|
|
@ -808,6 +810,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "gongchen",
|
|
|
|
|
label: "工程",
|
|
|
|
|
width: 100,
|
|
|
|
|
sortable: false,
|
|
|
|
|
@ -874,6 +877,7 @@ export default {
|
|
|
|
|
Fprop: "small",
|
|
|
|
|
multiHd: [
|
|
|
|
|
{
|
|
|
|
|
prop: "huowu",
|
|
|
|
|
label: "货物",
|
|
|
|
|
width: 100,
|
|
|
|
|
sortable: false,
|
|
|
|
|
@ -935,6 +939,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "fuwu",
|
|
|
|
|
label: "服务",
|
|
|
|
|
width: 100,
|
|
|
|
|
sortable: false,
|
|
|
|
|
@ -996,6 +1001,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "gongchen",
|
|
|
|
|
label: "工程",
|
|
|
|
|
width: 100,
|
|
|
|
|
sortable: false,
|
|
|
|
|
@ -1356,13 +1362,42 @@ export default {
|
|
|
|
|
data
|
|
|
|
|
} = param
|
|
|
|
|
const sums = []
|
|
|
|
|
columns.map((column, index) => {
|
|
|
|
|
console.log(columns)
|
|
|
|
|
columns.forEach((column, index) => {
|
|
|
|
|
if (index === 1) {
|
|
|
|
|
sums[index] = '总计'
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'government.huowu') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.government?.huowu?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'small.huowu') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.small?.huowu?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'government.fuwu') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.government?.fuwu?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'small.fuwu') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.small?.fuwu?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'government.gongchen') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.government?.gongchen?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'small.gongchen') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + (cur.small?.gongchen?.length || 0)),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'month_total') {
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + cur.month_total.length),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'year_total') {
|
|
|
|
|
sums[index] = 0
|
|
|
|
|
sums[index] = data.reduce((pre,cur) => (pre + cur.year_total.length),0)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'plan_price') {
|
|
|
|
|
|