From f3d84d165e7ff885b325e52c52d76cde6afe0c75 Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 18 Dec 2024 13:29:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=97=A5=E6=8A=A5=E7=9A=84=E8=BF=90=E8=BD=AC=E7=8E=87=E5=92=8C?= =?UTF-8?q?=E8=BF=90=E8=BD=AC=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enm_coal/report.vue | 28 ++++++++++++++-------------- src/views/enm_kiln/report.vue | 28 ++++++++++++++-------------- src/views/enm_mill/report.vue | 28 ++++++++++++++-------------- src/views/enm_report/quality.vue | 1 + src/views/enm_rm/report.vue | 28 ++++++++++++++-------------- 5 files changed, 57 insertions(+), 56 deletions(-) diff --git a/src/views/enm_coal/report.vue b/src/views/enm_coal/report.vue index c992449d..795e2e76 100644 --- a/src/views/enm_coal/report.vue +++ b/src/views/enm_coal/report.vue @@ -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( diff --git a/src/views/enm_kiln/report.vue b/src/views/enm_kiln/report.vue index c24593f3..21831f38 100644 --- a/src/views/enm_kiln/report.vue +++ b/src/views/enm_kiln/report.vue @@ -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]), diff --git a/src/views/enm_mill/report.vue b/src/views/enm_mill/report.vue index bfd47898..772c18fb 100644 --- a/src/views/enm_mill/report.vue +++ b/src/views/enm_mill/report.vue @@ -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], diff --git a/src/views/enm_report/quality.vue b/src/views/enm_report/quality.vue index 5264c396..51f6fb7b 100644 --- a/src/views/enm_report/quality.vue +++ b/src/views/enm_report/quality.vue @@ -264,6 +264,7 @@ wrapArr = wrapArr.filter(item=>{ return item }) + console.log(wrapArr,'warpArr') wrapArr.forEach((item1,index1)=>{ if(item1!=undefined){//一天的数据 let itemArr = []; diff --git a/src/views/enm_rm/report.vue b/src/views/enm_rm/report.vue index da2f2461..26f9cfc3 100644 --- a/src/views/enm_rm/report.vue +++ b/src/views/enm_rm/report.vue @@ -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(