制造成本分析接口+单位修改
This commit is contained in:
@@ -53,7 +53,7 @@ export default {
|
||||
month: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -66,8 +66,8 @@ export default {
|
||||
indicatorDefs() {
|
||||
return [
|
||||
{ key: 'rawMaterialCost', name: '采购单价', unit: '元/吨'},
|
||||
{ key: 'fuelCost', name: '产量', unit: '吨'},
|
||||
{ key: 'electricityCost', name: '单耗', unit: '吨'},
|
||||
{ key: 'fuelCost', name: '产量', unit: '㎡'},
|
||||
{ key: 'electricityCost', name: '单耗', unit: '千克/㎡'},
|
||||
{ key: 'laborCost', name: '消耗量', unit: '吨'},
|
||||
{ key: 'laborCostDay', name: '日均消耗量', unit: '吨'}
|
||||
]
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
})
|
||||
},
|
||||
sortedIndicators() {
|
||||
const unitOrder = ['元/吨', '吨']
|
||||
const unitOrder = ['元/吨','㎡','千克/㎡', '吨']
|
||||
const unitRank = (u) => {
|
||||
const idx = unitOrder.indexOf(u)
|
||||
return idx === -1 ? 999 : idx
|
||||
|
||||
Reference in New Issue
Block a user