|
@@ -23,15 +23,17 @@
|
|
|
:cell-class-name="setCellClassName">
|
|
|
<el-table-column fixed="left" label="公司" prop="companyName" align="center" width="65px">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="scope.row.companyName.indexOf('普润') === -1">
|
|
|
+ <div v-if="scope.row.companyName.indexOf('普润') === -1 &&scope.row.companyName.indexOf('万宇') === -1">
|
|
|
{{ mapCompany[scope.row.companyName] || scope.row.companyName }}
|
|
|
</div>
|
|
|
|
|
|
<div v-else>
|
|
|
- <el-popover placement="top" width="200" trigger="hover" content="普润&锦兴&知事">
|
|
|
+ <el-popover placement="top" width="200" trigger="hover"
|
|
|
+ :content="scope.row.companyName.indexOf('普润') !== -1 ? '普润&锦兴&知事' : '不含业务公司供应商端数据'"
|
|
|
+ >
|
|
|
<template #reference>
|
|
|
<i class="el-icon-warning-outline" style="font-size:14px;cursor:pointer"></i>
|
|
|
- 普润
|
|
|
+ {{scope.row.companyName.indexOf('普润') !== -1 ? '普润' : '万宇'}}
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
@@ -246,14 +248,42 @@ export default {
|
|
|
}),
|
|
|
}
|
|
|
},
|
|
|
- setCellClassName({ column }) {
|
|
|
+ setCellClassName({ column ,row }) {
|
|
|
const { label } = column;
|
|
|
- // if (label === "营业收入(净)" || label === '当月成本合计') return "pure__cell";
|
|
|
- if (label === "营收目标") return "bg__success"
|
|
|
- if ((label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) && label !== '当日营业收入') return "bg__success_1"
|
|
|
- if (label === "毛利目标") return "bg__primary"
|
|
|
- if (label.indexOf('毛利') !== -1) return "bg__primary_1"
|
|
|
- if (label.indexOf('成本') !== -1) return "bg__warning_1"
|
|
|
+
|
|
|
+ let base = ''
|
|
|
+
|
|
|
+ if(row.companyName === "北京万宇恒通国际科贸有限公司") {
|
|
|
+ base += 'font-bold '
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (label === "营收目标") {
|
|
|
+ base += "bg__success"
|
|
|
+ return base
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((label.indexOf('营业') !== -1 || label.indexOf('营收') !== -1) && label !== '当日营业收入') {
|
|
|
+ base += "bg__success_1"
|
|
|
+ return base;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (label === "毛利目标") {
|
|
|
+ base += "bg__primary"
|
|
|
+ return base
|
|
|
+ }
|
|
|
+
|
|
|
+ if (label.indexOf('毛利') !== -1) {
|
|
|
+ base += "bg__primary_1"
|
|
|
+ return base;
|
|
|
+ }
|
|
|
+ if (label.indexOf('成本') !== -1) {
|
|
|
+ base += "bg__warning_1"
|
|
|
+ return base;
|
|
|
+ }
|
|
|
+
|
|
|
+ return base;
|
|
|
},
|
|
|
setHeaderClassName({ column }) {
|
|
|
const { label } = column;
|
|
@@ -376,6 +406,14 @@ export default {
|
|
|
gross_sale_completion_rate: Number(multiplication(division(gross_completion, prev_msale_total) || 0, 100)).toFixed(2), // 本月毛利率 = 当月毛利完成 / 当月营业收入
|
|
|
}
|
|
|
]
|
|
|
+
|
|
|
+
|
|
|
+ const wanyuIndex = this.tableData.findIndex(item => item.companyName === "北京万宇恒通国际科贸有限公司")
|
|
|
+
|
|
|
+ if(wanyuIndex !== -1) {
|
|
|
+ const item = this.tableData.splice(wanyuIndex, 1);
|
|
|
+ this.tableData = [...item,...this.tableData]
|
|
|
+ }
|
|
|
})
|
|
|
} else {
|
|
|
this.tableData = [];
|