feat: 修改生成日报的运转率和运转时间

This commit is contained in:
zty 2024-12-18 13:29:37 +08:00
parent 376b65364f
commit f3d84d165e
5 changed files with 57 additions and 56 deletions

View File

@ -268,8 +268,8 @@ export default {
tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 0, 0, "/", 0, 0, "/","/"],
["能耗", "煤磨分布电耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "总电耗KW·h", 0, 0, 0, 0, "/", "/", "/", "/"]
],
@ -538,12 +538,12 @@ export default {
item5.goal_cate_name == "运转时间h"
) {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
// that.tableDatas[2][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转率(%"
) {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
// that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name ==
"单位产品分布电耗KW·h/t"
@ -574,16 +574,16 @@ export default {
that.tableDatas[1][5],
that.tableDatas[1][8]
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
// that.tableDatas[2][5] = data1.run_hour;
// that.tableDatas[2][9] = precen(
// that.tableDatas[2][5],
// that.tableDatas[2][8]
// );
// that.tableDatas[3][5] = data1.run_rate;
// that.tableDatas[3][9] = precen(
// that.tableDatas[3][5],
// that.tableDatas[3][8]
// );
that.tableDatas[4][5] = data1.elec_consume_unit;
that.tableDatas[5][5] = data1.elec_consume;
that.tableDatas[4][9] = precen(

View File

@ -438,8 +438,8 @@ export default {
tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", "/", 0, "/", "/"],
["运转时间", "运转率(%", "/", 0, 0, "/", "/", 0, "/", "/"],
["能耗", "单位产品分布电耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "单位产品综合电耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "单位产品标煤耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
@ -748,12 +748,12 @@ export default {
item5.goal_cate_name == "运转时间h"
) {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
// that.tableDatas[2][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转率(%"
) {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
// that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name ==
"单位产品分布电耗KW·h/t"
@ -808,16 +808,16 @@ export default {
that.tableDatas[1][5],
that.tableDatas[1][8]
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
// that.tableDatas[2][5] = data1.run_hour;
// that.tableDatas[2][9] = precen(
// that.tableDatas[2][5],
// that.tableDatas[2][8]
// );
// that.tableDatas[3][5] = data1.run_rate;
// that.tableDatas[3][9] = precen(
// that.tableDatas[3][5],
// that.tableDatas[3][8]
// );
that.tableDatas[4][5] = data1.elec_consume_unit;
that.tableDatas[4][9] = precen(
(that.tableDatas[4][5]-that.tableDatas[4][8]),

View File

@ -404,8 +404,8 @@ export default {
tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 0, 0, "/", 0, 0, "/", "/"],
["能耗", "单位产品分布电耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "单位产品综合能耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "总电耗KW·h", 0, 0, 0, 0, "/", "/", "/", "/"],
@ -684,12 +684,12 @@ export default {
item5.goal_cate_name == "运转时间h"
) {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
// that.tableDatas[2][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转率(%"
) {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
// that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name ==
"单位产品分布电耗KW·h/t"
@ -732,16 +732,16 @@ export default {
that.tableDatas[1][5],
that.tableDatas[1][8]
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
// that.tableDatas[2][5] = data1.run_hour;
// that.tableDatas[2][9] = precen(
// that.tableDatas[2][5],
// that.tableDatas[2][8]
// );
// that.tableDatas[3][5] = data1.run_rate;
// that.tableDatas[3][9] = precen(
// that.tableDatas[3][5],
// that.tableDatas[3][8]
// );
that.tableDatas[4][5] = data1.elec_consume_unit;
that.tableDatas[4][9] = precen(
that.tableDatas[4][5]-that.tableDatas[4][8],

View File

@ -264,6 +264,7 @@
wrapArr = wrapArr.filter(item=>{
return item
})
console.log(wrapArr,'warpArr')
wrapArr.forEach((item1,index1)=>{
if(item1!=undefined){//
let itemArr = [];

View File

@ -405,8 +405,8 @@ export default {
tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 0, 0, "/", 0, 0, "/", "/"],
["能耗", "生料分布电耗KW·h/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "总电耗KW·h", 0, 0, 0, 0, "/", "/", "/","/"],
["成本", "生料成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
@ -881,12 +881,12 @@ export default {
item5.goal_cate_name == "运转时间h"
) {
that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val;
// that.tableDatas[2][8] = item5.goal_val;
} else if (
item5.goal_cate_name == "运转率(%"
) {
that.tableDatas[3][6] = item5[str];
that.tableDatas[3][8] = item5.goal_val;
// that.tableDatas[3][8] = item5.goal_val;
} else if (
item5.goal_cate_name ==
"单位产品分布电耗KW·h/t"
@ -925,16 +925,16 @@ export default {
that.tableDatas[1][5],
that.tableDatas[1][8]
);
that.tableDatas[2][5] = data1.run_hour;
that.tableDatas[2][9] = precen(
that.tableDatas[2][5],
that.tableDatas[2][8]
);
that.tableDatas[3][5] = data1.run_rate;
that.tableDatas[3][9] = precen(
that.tableDatas[3][5],
that.tableDatas[3][8]
);
// that.tableDatas[2][5] = data1.run_hour;
// that.tableDatas[2][9] = precen(
// that.tableDatas[2][5],
// that.tableDatas[2][8]
// );
// that.tableDatas[3][5] = data1.run_rate;
// that.tableDatas[3][9] = precen(
// that.tableDatas[3][5],
// that.tableDatas[3][8]
// );
that.tableDatas[4][5] =
data1.elec_consume_unit;
that.tableDatas[4][9] = precen(