制造成本分析接口+单位修改

This commit is contained in:
2026-04-08 15:26:20 +08:00
parent ed0fd63474
commit 0c8bd440ae
51 changed files with 2651 additions and 718 deletions

View File

@@ -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