运营驾驶舱对接
This commit is contained in:
@@ -60,16 +60,13 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isDropdownShow: false,
|
||||
selectedProfit: '利润总额', // 选中的名称,初始为null
|
||||
selectedProfit: '原片电费', // 选中的名称,初始为null
|
||||
profitOptions: [
|
||||
'利润总额',
|
||||
'销量',
|
||||
'单价',
|
||||
'制造成本',
|
||||
'管理费用',
|
||||
'销售费用',
|
||||
'财务费用',
|
||||
'非经营性利润',
|
||||
'原片电费',
|
||||
'加工电费',
|
||||
'外围电费',
|
||||
'发电量',
|
||||
'日均发电量'
|
||||
]
|
||||
};
|
||||
},
|
||||
|
||||
@@ -65,13 +65,13 @@ export default {
|
||||
*/
|
||||
factoryData() { // 整合原始数据 + 计算flag
|
||||
return {
|
||||
completeRate: this.monData.proportion ? Number(this.monData.proportion) : 0,
|
||||
diff: this.monData.diffValue,
|
||||
real: this.monData.value,
|
||||
target: this.monData.targetValue,
|
||||
thb: this.monData.thb,
|
||||
completeRate: this.monData.rate ? Number(this.monData.rate) : 0,
|
||||
diff: this.monData.diff,
|
||||
real: this.monData.real,
|
||||
target: this.monData.target,
|
||||
thb: this.monData.momRate,
|
||||
// ...rawData,
|
||||
flag: this.monData.completed // 新增flag字段
|
||||
flag: this.monData.rate >= 100 ? 1 : 0,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
@@ -67,13 +67,11 @@ export default {
|
||||
computed: {
|
||||
indicatorDefs() {
|
||||
return [
|
||||
{ key: 'sales', name: '销量', unit: '万㎡', route: '/salesVolumeAnalysis/salesVolumeAnalysisBase'},
|
||||
{ key: 'price', name: '单价', unit: '元/㎡', route: '/unitPriceAnalysis/unitPriceAnalysisBase'},
|
||||
{ key: 'mfgCost', name: '制造成本', unit: '元/㎡', route: '/productionCostAnalysis/productionCostAnalysisBase'},
|
||||
{ key: 'mgmtFee', name: '管理费用', unit: '万元', route: '/expenseAnalysis/expenseAnalysisBase'},
|
||||
{ key: 'salesFee', name: '销售费用', unit: '万元', route: '/expenseAnalysis/expenseAnalysisBase'},
|
||||
{ key: 'finFee', name: '财务费用', unit: '万元', route: '/expenseAnalysis/expenseAnalysisBase'},
|
||||
{ key: 'nonOpProfit', name: '非经营性利润', unit: '万元', route: null}
|
||||
{ key: 'elecFee', name: '原片电费', unit: '万元', route: null},
|
||||
{ key: 'elecCost', name: '加工电费', unit: '万元', route: null},
|
||||
{ key: 'elecCostW', name: '外围电费', unit: '万元', route: null},
|
||||
{ key: 'fdl', name: '发电量', unit: '度', route: null},
|
||||
{ key: 'rjfdl', name: '日均发电量', unit: '度', route: null},
|
||||
]
|
||||
},
|
||||
indicators() {
|
||||
@@ -90,7 +88,7 @@ export default {
|
||||
})
|
||||
},
|
||||
sortedIndicators() {
|
||||
const unitOrder = ['万㎡', '元/㎡', '万元']
|
||||
const unitOrder = ['万元', '度']
|
||||
const unitRank = (u) => {
|
||||
const idx = unitOrder.indexOf(u)
|
||||
return idx === -1 ? 999 : idx
|
||||
@@ -173,7 +171,7 @@ export default {
|
||||
}
|
||||
|
||||
.dashboard {
|
||||
width: 220px;
|
||||
width: 312px;
|
||||
height: 205px;
|
||||
background: #F9FCFF;
|
||||
padding: 16px 0 0 10px;
|
||||
|
||||
@@ -68,13 +68,13 @@ export default {
|
||||
*/
|
||||
factoryData() { // 整合原始数据 + 计算flag
|
||||
return {
|
||||
completeRate: this.totalData.proportion ? Number(this.totalData.proportion) : 0,
|
||||
diff: this.totalData.diffValue,
|
||||
real: this.totalData.value,
|
||||
target: this.totalData.targetValue,
|
||||
thb: this.totalData.thb,
|
||||
completeRate: this.totalData.rate ? Number(this.totalData.rate) : 0,
|
||||
diff: this.totalData.diff,
|
||||
real: this.totalData.real,
|
||||
target: this.totalData.target,
|
||||
thb: this.totalData.yoyRate,
|
||||
// ...rawData,
|
||||
flag: this.totalData.completed// 新增flag字段
|
||||
flag: this.totalData.rate >= 100 ? 1 : 0,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user