fix:电石渣工序主要设备单耗计算公式初版
This commit is contained in:
parent
a0a76308d4
commit
ac1bb62f81
|
|
@ -12,7 +12,7 @@
|
|||
<el-button type="primary" @click="handlePrint">打印 </el-button>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-card style="margin-top: 5px">
|
||||
<el-card style="margin-top: 5px;position: relative;">
|
||||
<div class="printWrap">
|
||||
<div ref="print" id="myReport" class="printContainer">
|
||||
<table
|
||||
|
|
@ -55,6 +55,9 @@
|
|||
@click="itemClick('day_s', item)"
|
||||
>
|
||||
{{ item1 }}
|
||||
<div class="tooltip">
|
||||
<p>设备电量({{item[6]}})/工段产量({{item[7]}})</p>
|
||||
</div>
|
||||
</td>
|
||||
<td
|
||||
v-if="ind == 4"
|
||||
|
|
@ -62,6 +65,9 @@
|
|||
@click="itemClick('month_s', item)"
|
||||
>
|
||||
{{ item1 }}
|
||||
<div class="tooltip">
|
||||
<p>设备电量({{item[8]}})/工段产量({{item[9]}})</p>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
</tr>
|
||||
|
|
@ -116,6 +122,9 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="computeFormula" style="">
|
||||
设备单位产品电耗=设备电量/工段产量
|
||||
</div>
|
||||
<charts
|
||||
v-if="asynDialog"
|
||||
:type="type"
|
||||
|
|
@ -342,6 +351,8 @@ export default {
|
|||
let index_d = that.mpoints.indexOf(item.mpoint_name);
|
||||
if (that.tableDatas[index_d]) {
|
||||
that.tableDatas[index_d][3] = item.elec_consume_unit;
|
||||
that.tableDatas[index_d][6] = item.val;
|
||||
that.tableDatas[index_d][7] = item.total_production;
|
||||
} else {
|
||||
let obj = [];
|
||||
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
||||
|
|
@ -349,6 +360,8 @@ export default {
|
|||
obj[2] = "KW·h/t";
|
||||
obj[3] = item.elec_consume_unit;
|
||||
obj[5] = item.mpoint;
|
||||
obj[6] = item.val;
|
||||
obj[7] = item.total_production;
|
||||
that.tableDatas[index_d] = obj;
|
||||
}
|
||||
});
|
||||
|
|
@ -367,8 +380,9 @@ export default {
|
|||
item.mpoint_name
|
||||
);
|
||||
if (that.tableDatas[index_m]) {
|
||||
that.tableDatas[index_m][4] =
|
||||
item.elec_consume_unit;
|
||||
that.tableDatas[index_m][4] =item.elec_consume_unit;
|
||||
that.tableDatas[index_m][8] = item.val;
|
||||
that.tableDatas[index_m][9] = item.total_production;
|
||||
} else {
|
||||
let obj = [];
|
||||
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
|
||||
|
|
@ -376,9 +390,12 @@ export default {
|
|||
obj[2] = "KW·h/t";
|
||||
obj[4] = item.elec_consume_unit;
|
||||
obj[5] = item.mpoint;
|
||||
obj[8] = item.val;
|
||||
obj[9] = item.total_production;
|
||||
that.tableDatas[index_m] = obj;
|
||||
}
|
||||
});
|
||||
console.log("tableDatas", that.tableDatas);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
@ -485,6 +502,12 @@ export default {
|
|||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.computeFormula{
|
||||
position: absolute;left: 1100px;top: 20px;font-size: 16px;color: #666666;border-radius: 5px; box-shadow: inset 0 0 10px 10px rgba(0,0,0,.1);padding: 10px;
|
||||
}
|
||||
.numCell{
|
||||
position: relative;
|
||||
}
|
||||
.printContainer {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
|
@ -497,4 +520,19 @@ export default {
|
|||
padding-top: 10px;
|
||||
position: relative;
|
||||
}
|
||||
.tooltip {
|
||||
width: 280px;
|
||||
position: absolute;
|
||||
bottom: 10%;
|
||||
right:80%;
|
||||
font-size: 14px;
|
||||
background-color: rgba(0,0,0,.5);
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
display: none;
|
||||
padding: 5px;
|
||||
}
|
||||
td:hover .tooltip {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue