xiugai
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
<div class="kpi-content" style="padding: 14px 16px; display: flex; width: 100%;">
|
||||
<!-- 新增:topItem 专属包裹容器,统一控制样式和布局(原有行内样式不变) -->
|
||||
<div class="topItem-container" style="display: flex; gap: 8px;">
|
||||
<div class="dashboard left" @click="handleDashboardClick('备件丶机物料')">
|
||||
<div class="dashboard left" @click="handleDashboardClick('备品、机物料')">
|
||||
<div class="title">
|
||||
备件丶机物料·单位/万元
|
||||
备品、机物料·元/㎡
|
||||
</div>
|
||||
<div class="line">
|
||||
<!-- 绑定备件丶机物料对应数据:新增数据绑定,样式不变 -->
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="dashboard right" @click="handleDashboardClick('折旧')">
|
||||
<div class="title">
|
||||
折旧·单位/万元
|
||||
折旧·元/㎡
|
||||
</div>
|
||||
<div class="line">
|
||||
<!-- 绑定折旧对应数据:新增数据绑定,样式不变 -->
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="dashboard right" @click="handleDashboardClick('其他')">
|
||||
<div class="title">
|
||||
其他·单位/万元
|
||||
其他·元/㎡
|
||||
</div>
|
||||
<div class="line">
|
||||
<!-- 绑定其他对应数据:新增数据绑定,样式不变 -->
|
||||
@@ -52,6 +52,10 @@ export default {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
dateData: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
factory: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
@@ -72,7 +76,7 @@ export default {
|
||||
computed: {
|
||||
// 1. 备件丶机物料数据:精准筛选对应名称数据,兜底值统一
|
||||
sparePartsData() {
|
||||
return this.relatedData.find(item => (item.name || '').includes('备件丶机物料')) || {
|
||||
return this.relatedData.find(item => (item.name || '').includes('备品、机物料')) || {
|
||||
targetValue: 0,
|
||||
value: 0,
|
||||
completed: 0,
|
||||
@@ -136,7 +140,8 @@ export default {
|
||||
path: 'singleProcMfgOverheadCost',
|
||||
query: {
|
||||
name,
|
||||
factory: this.$route.query.factory ? this.$route.query.factory : this.factory
|
||||
factory: this.$route.query.factory ? this.$route.query.factory : this.factory,
|
||||
dateData: this.dateData
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user