|
@@ -1,11 +1,23 @@
|
|
|
<template>
|
|
|
<div class="SalesReportRejectedNew">
|
|
|
- <div class="table-header">北京万宇恒通国际科贸有限公司</div>
|
|
|
+ <div class="table-header" style="line-height:36px">北京万宇恒通国际科贸有限公司</div>
|
|
|
|
|
|
- <el-table>
|
|
|
- <el-table-column label="月指标" />
|
|
|
- <el-table-column label="完成额" />
|
|
|
- <el-table-column label="完成率" />
|
|
|
+ <el-table size="mini" border style="margin-bottom:-1px" :data="[total]">
|
|
|
+ <el-table-column label="月指标" prop="total_tips">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{unit2TenThousand(scope.row.total_tips)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="完成额" prop="completion">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{unit2TenThousand(scope.row.completion)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="完成率">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.completionRate}}%
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<el-table
|
|
@@ -38,9 +50,9 @@
|
|
|
{{ unit2TenThousand(scope.row.monthinfo.monthNetSales) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="净销售完成率(%)" align="center">
|
|
|
+ <el-table-column label="净销售完成率" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.monthinfo.monthProportion }}
|
|
|
+ {{ scope.row.monthinfo.monthProportion }}%
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -75,9 +87,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
total:{
|
|
|
- day:0,
|
|
|
- month:0,
|
|
|
- total_tips: 0
|
|
|
+ completion: 0,
|
|
|
+ total_tips:0,
|
|
|
},
|
|
|
dataTime: this.date,
|
|
|
loading: false,
|
|
@@ -111,6 +122,7 @@ export default {
|
|
|
methods: {
|
|
|
getCompanyLabel,
|
|
|
unit2TenThousand,
|
|
|
+ division,
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
if ((row && row.child && row.child.length > 0) || rowIndex === 0) {
|
|
|
return "warning-row";
|
|
@@ -183,9 +195,17 @@ export default {
|
|
|
/* 占比 = (当前部门销售额 / 各部门总销售额) / 100 **/
|
|
|
proportion:multiplication(
|
|
|
division(monthinfo.msale_total,this.total.month) || 0
|
|
|
- ,100) || 0 + '%',
|
|
|
+ ,100) || 0
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ this.total = {
|
|
|
+ /* 月完成额 **/
|
|
|
+ completion: this.tableData.reduce((prev,current) => addition(prev,current.monthinfo.monthNetSales),0),
|
|
|
+ /* 月指标 **/
|
|
|
+ total_tips:this.tableData.reduce((prev,current) => addition(prev,current.total_tips),0),
|
|
|
+ completionRate:this.tableData.reduce((prev,current) => addition(prev,current.monthinfo.monthProportion),0),
|
|
|
+ }
|
|
|
} else {
|
|
|
this.tableData = [];
|
|
|
}
|