This commit is contained in:
shijing 2024-12-30 10:07:31 +08:00
parent 11d38f5508
commit f1a031bcd7
71 changed files with 772 additions and 761 deletions

View File

@ -310,9 +310,9 @@ export default {
if (that.cate == "总产量t" || that.cate == "出厂水泥合计t") { if (that.cate == "总产量t" || that.cate == "出厂水泥合计t") {
that.cateName = "total_production"; that.cateName = "total_production";
} else if ( } else if (
that.cate == "单位产品分布电耗(KW·h/t" || that.cate == "单位产品分布电耗(kW·h/t" ||
that.cate == "生料分布电耗(KW·h/t" || that.cate == "生料分布电耗(kW·h/t" ||
that.cate == "煤磨分布电耗(KW·h/t" that.cate == "煤磨分布电耗(kW·h/t"
) { ) {
that.cateName = "elec_consume_unit"; that.cateName = "elec_consume_unit";
} else if (that.cate == "台时产量t/h") { } else if (that.cate == "台时产量t/h") {
@ -328,17 +328,17 @@ export default {
that.cate == "生料成本(元/吨)" that.cate == "生料成本(元/吨)"
) { ) {
that.cateName = "production_cost_unit"; that.cateName = "production_cost_unit";
} else if (that.cate == "单位产品综合电耗(KW·h/t") { } else if (that.cate == "单位产品综合电耗(kW·h/t") {
that.cateName = "celec_consume_unit"; that.cateName = "celec_consume_unit";
} else if (that.cate == "单位产品标煤耗kgce/t") { } else if (that.cate == "单位产品标煤耗kgce/t") {
that.cateName = "coal_consume_unit"; that.cateName = "coal_consume_unit";
} else if (that.cate == "单位产品综合能耗kgce/t") { } else if (that.cate == "单位产品综合能耗kgce/t") {
that.cateName = "cen_consume_unit"; that.cateName = "cen_consume_unit";
} else if (that.cate == "发电功率(KW·h") { } else if (that.cate == "发电功率(kW·h") {
that.cateName = "production_hour"; that.cateName = "production_hour";
} else if (that.cate == "吨熟料发电量(KW·h/t") { } else if (that.cate == "吨熟料发电量(kW·h/t") {
that.cateName = "production_elec_unit"; that.cateName = "production_elec_unit";
} else if (that.cate == "总电耗(KW·h"||that.cate =="总电量KW·h") { } else if (that.cate == "总电耗(kW·h"||that.cate =="总电量kW·h") {
that.cateName = "elec_consume"; that.cateName = "elec_consume";
}else if (that.cate == "消耗") { }else if (that.cate == "消耗") {
that.cateName = "amount_consume"; that.cateName = "amount_consume";

View File

@ -176,7 +176,7 @@
font-weight: 500; font-weight: 500;
font-size: 12px; font-size: 12px;
" "
>kw.h</span >kW·h</span
> >
</th> </th>
</tr> </tr>
@ -200,7 +200,7 @@
<div class="flexItem"> <div class="flexItem">
<div class="itemTitle"> <div class="itemTitle">
<div class="itemTitleIcon"></div> <div class="itemTitleIcon"></div>
<div>能源消耗</div> <div>本月能源消耗</div>
</div> </div>
<div class="itemBody" id="line3"></div> <div class="itemBody" id="line3"></div>
</div> </div>
@ -215,7 +215,7 @@
<span>熟料综合电耗</span> <span>熟料综合电耗</span>
<p class="elec_number"> <p class="elec_number">
{{ (Number(hotData.celec_consume_unit)+Number(dicData.b_sl_elec)).toFixed(2) }} {{ (Number(hotData.celec_consume_unit)+Number(dicData.b_sl_elec)).toFixed(2) }}
<span class="elec_unit">kw.h/t</span> <span class="elec_unit">kW·h/t</span>
</p> </p>
</div> </div>
</div> </div>
@ -251,7 +251,7 @@
<span>水泥工序电耗</span> <span>水泥工序电耗</span>
<p class="elec_number"> <p class="elec_number">
{{ (Number(hotData.sn_elec_consume_unit)+Number(dicData.b_sn_elec)).toFixed(2) }} {{ (Number(hotData.sn_elec_consume_unit)+Number(dicData.b_sn_elec)).toFixed(2) }}
<span class="elec_unit">kw.h/t</span> <span class="elec_unit">kW·h/t</span>
</p> </p>
</div> </div>
</div> </div>
@ -260,7 +260,7 @@
<span>水泥包装工序电耗</span> <span>水泥包装工序电耗</span>
<p class="elec_number"> <p class="elec_number">
{{(Number(hotData.bz_elec_consume_unit) + Number(dicData.b_snbz_elec)).toFixed(2) }} {{(Number(hotData.bz_elec_consume_unit) + Number(dicData.b_snbz_elec)).toFixed(2) }}
<span class="elec_unit">kw.h/t</span> <span class="elec_unit">kW·h/t</span>
</p> </p>
</div> </div>
</div> </div>
@ -819,7 +819,7 @@ export default {
option1.color = ['#FFFF00','#CC00FF', '#FFBF00'] option1.color = ['#FFFF00','#CC00FF', '#FFBF00']
option1.legend.data = [ option1.legend.data = [
{ {
name: "熟料", name: "熟料(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -829,7 +829,7 @@ export default {
}, },
}, },
{ {
name: "水泥", name: "水泥(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -839,7 +839,7 @@ export default {
}, },
}, },
{ {
name: "出厂水泥", name: "出厂水泥(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -851,7 +851,7 @@ export default {
]; ];
option1.series = [ option1.series = [
{ {
name: "熟料", name: "熟料(t)",
type: "line", type: "line",
smooth: true, smooth: true,
lineStyle: { lineStyle: {
@ -868,7 +868,7 @@ export default {
data: seriesData, data: seriesData,
}, },
{ {
name: "水泥", name: "水泥(t)",
type: "line", type: "line",
smooth: true, smooth: true,
lineStyle: { lineStyle: {
@ -885,7 +885,7 @@ export default {
data: seriesData1, data: seriesData1,
}, },
{ {
name: "出厂水泥", name: "出厂水泥(t)",
type: "line", type: "line",
smooth: true, smooth: true,
lineStyle: { lineStyle: {
@ -1048,7 +1048,7 @@ export default {
option3.color = ['#FFBF00','#6495ED', '#CC00FF'] option3.color = ['#FFBF00','#6495ED', '#CC00FF']
option3.legend.data = [ option3.legend.data = [
{ {
name: "生活水", name: "生活水(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -1058,7 +1058,7 @@ export default {
}, },
}, },
{ {
name: "绿化水", name: "绿化水(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -1068,7 +1068,7 @@ export default {
}, },
}, },
{ {
name: "工业水", name: "工业水(t)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -1080,7 +1080,7 @@ export default {
]; ];
option3.series = [ option3.series = [
{ {
name: '生活水', name: '生活水(t)',
type: 'line', type: 'line',
data: seriesData1, data: seriesData1,
lineStyle: { lineStyle: {
@ -1088,7 +1088,7 @@ export default {
}, },
}, },
{ {
name: '绿化水', name: '绿化水(t)',
type: 'line', type: 'line',
data: seriesData3, data: seriesData3,
lineStyle: { lineStyle: {
@ -1096,7 +1096,7 @@ export default {
}, },
}, },
{ {
name: '工业水', name: '工业水(t)',
type: 'line', type: 'line',
data: seriesData5, data: seriesData5,
lineStyle: { lineStyle: {
@ -1285,25 +1285,26 @@ export default {
let myChart = echarts.init(chartDom); let myChart = echarts.init(chartDom);
// series // series
let seriesData = new Array(12).fill(0); let seriesData = new Array(31).fill(0);
let seriesData1 = new Array(12).fill(0); let seriesData1 = new Array(31).fill(0);
// //
function generateQuery(mgroupId) { function generateQuery(mgroupId) {
return { return {
page: 0, page: 0,
// //
start_time: that.currentYear + "-01-01 00:00:00", year_s: that.currentYear,
end_time: that.currentYear + "-12-31 00:00:00", month_s: that.currentMonth,
type: "month_s", type: "day_s",
mgroup: mgroupId, mgroup: mgroupId,
}; };
} }
function generateQueryMpoint(mpointId) { function generateQueryMpoint(mpointId) {
return { return {
page: 0, page: 0,
type: "month", type: "day_s",
year: that.currentYear, year_s: that.currentYear,
month_s: that.currentMonth,
mpoint: mpointId, mpoint: mpointId,
}; };
} }
@ -1312,18 +1313,18 @@ export default {
this.$API.enm.enstat.req(query1).then((response) => { this.$API.enm.enstat.req(query1).then((response) => {
response.forEach((item) => { response.forEach((item) => {
if (item.qua_data.length > 0) { if (item.qua_data.length > 0) {
let ind = item.month_s - 1; let ind = item.day_s - 1;
seriesData[ind] = item.total_production || 0; seriesData[ind] = item.total_production || 0;
} }
}); });
// //
let query2 = generateQueryMpoint("3631880992400515072"); let query2 = generateQueryMpoint("3631880992400515072");
return this.$API.enm.mpointstat.list.req(query2); return this.$API.enm.mpointstat.list.req(query2);
}).then((response) => { }).then((response) => {
let maxId; let maxId;
response.forEach((item) => { response.forEach((item) => {
let ind = item.month - 1; let ind = item.day_s - 1;
maxId = 12; maxId = 31;
seriesData1[ind] = item.val || 0; seriesData1[ind] = item.val || 0;
}); });
// //
@ -1340,7 +1341,7 @@ export default {
}, },
}, },
{ {
name: "全厂电量(kwh)", name: "全厂电量(kh)",
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
@ -1371,7 +1372,7 @@ export default {
}, },
{ {
name: '全厂电量(kwh)', name: '全厂电量(kh)',
type: 'line', type: 'line',
yAxisIndex: 1, yAxisIndex: 1,
data: seriesData1, data: seriesData1,
@ -1389,20 +1390,7 @@ export default {
}, },
}, },
]; ];
option5.xAxis.data = [ // option5.xAxis.data = that.datelist;
"1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"9月",
"10月",
"11月",
"12月",
];
myChart.setOption(option5); // myChart.setOption(option5); //
let index3 = 0; let index3 = 0;
intervalId = setInterval(function () { intervalId = setInterval(function () {
@ -1682,7 +1670,7 @@ export default {
value: 100, value: 100,
}, },
{ {
label: "单位电耗(kwh)", label: "单位电耗(kh)",
field: "elec_consume_unit", field: "elec_consume_unit",
value: 100, value: 100,
}, },
@ -1926,7 +1914,7 @@ export default {
if (value == "余热发电") { if (value == "余热发电") {
info.rows = [ info.rows = [
{ {
label: "发电量(kwh)", label: "发电量(kh)",
field: "total_production", field: "total_production",
value: res[0].total_production, value: res[0].total_production,
}, },
@ -1936,7 +1924,7 @@ export default {
value: res[0].run_rate, value: res[0].run_rate,
}, },
{ {
label: "发电量(kwh/t)", label: "发电量(kh/t)",
field: "production_elec_unit", field: "production_elec_unit",
value: res[0].production_elec_unit value: res[0].production_elec_unit
? res[0].production_elec_unit ? res[0].production_elec_unit
@ -1956,7 +1944,7 @@ export default {
value: res[0].run_rate, value: res[0].run_rate,
}, },
{ {
label: "单位电耗(kwh)", label: "单位电耗(kh)",
field: "elec_consume_unit", field: "elec_consume_unit",
value: res[0].elec_consume_unit, value: res[0].elec_consume_unit,
}, },

View File

@ -170,7 +170,7 @@
font-weight: 500; font-weight: 500;
font-size: 12px; font-size: 12px;
" "
>kwh</span >kW·h</span
> >
</th> </th>
</tr> </tr>
@ -237,7 +237,7 @@
<span>当月发电量</span> <span>当月发电量</span>
<p class="elec_number"> <p class="elec_number">
{{ hotData.total_production }} {{ hotData.total_production }}
<span class="elec_unit">kwh</span> <span class="elec_unit">kW·h</span>
</p> </p>
</div> </div>
</div> </div>
@ -255,7 +255,7 @@
<span>发电量</span> <span>发电量</span>
<p class="elec_number"> <p class="elec_number">
{{ hotData.production_elec_unit }} {{ hotData.production_elec_unit }}
<span class="elec_unit">kwh</span> <span class="elec_unit">kW·h</span>
</p> </p>
</div> </div>
</div> </div>
@ -274,7 +274,7 @@
<span>自用电量</span> <span>自用电量</span>
<p class="elec_number"> <p class="elec_number">
{{ hotData.elec_consume }} {{ hotData.elec_consume }}
<span class="elec_unit">kwh</span> <span class="elec_unit">kW·h</span>
</p> </p>
</div> </div>
</div> </div>
@ -1232,7 +1232,7 @@ export default {
value: 100, value: 100,
}, },
{ {
label: "单位电耗(kwh)", label: "单位电耗(kh)",
field: "elec_consume_unit", field: "elec_consume_unit",
value: 100, value: 100,
}, },
@ -1475,7 +1475,7 @@ export default {
if (value == "余热发电") { if (value == "余热发电") {
info.rows = [ info.rows = [
{ {
label: "发电量(kwh)", label: "发电量(kh)",
field: "total_production", field: "total_production",
value: res[0].total_production, value: res[0].total_production,
}, },
@ -1485,7 +1485,7 @@ export default {
value: res[0].run_rate, value: res[0].run_rate,
}, },
{ {
label: "发电量(kwh/t)", label: "发电量(kh/t)",
field: "production_elec_unit", field: "production_elec_unit",
value: res[0].production_elec_unit value: res[0].production_elec_unit
? res[0].production_elec_unit ? res[0].production_elec_unit
@ -1505,7 +1505,7 @@ export default {
value: res[0].run_rate, value: res[0].run_rate,
}, },
{ {
label: "单位电耗(kwh)", label: "单位电耗(kh)",
field: "elec_consume_unit", field: "elec_consume_unit",
value: res[0].elec_consume_unit, value: res[0].elec_consume_unit,
}, },

View File

@ -51,6 +51,8 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="工段运行" prop="indicate_mgroup_running">
</el-table-column>
<el-table-column label="生产厂家" prop="factory" show-overflow-tooltip> <el-table-column label="生产厂家" prop="factory" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="检定日期" prop="check_date" ></el-table-column> <el-table-column label="检定日期" prop="check_date" ></el-table-column>

View File

@ -41,6 +41,11 @@
prop="name" prop="name"
min-width="100" min-width="100"
></el-table-column> ></el-table-column>
<el-table-column
label="标识"
prop="code"
min-width="100"
></el-table-column>
<el-table-column label="分类" prop="cate" min-width="100"> <el-table-column label="分类" prop="cate" min-width="100">
<template #default="scope"> <template #default="scope">
<span>{{ cates_[scope.row.cate] }}</span> <span>{{ cates_[scope.row.cate] }}</span>

View File

@ -19,6 +19,9 @@
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="form.name" clearable></el-input> <el-input v-model="form.name" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标识" prop="code">
<el-input v-model="form.code" clearable></el-input>
</el-form-item>
<!-- <el-form-item label="排班规则"> <!-- <el-form-item label="排班规则">
<el-input v-model="form.shift_rule" clearable></el-input> <el-input v-model="form.shift_rule" clearable></el-input>
</el-form-item> --> </el-form-item> -->
@ -221,9 +224,9 @@ export default {
// //
getGroup() { getGroup() {
this.$API.system.dept.list this.$API.system.dept.list
.req({ page_size: 3, type: "dept" }) .req({ page: 0, type: "dept" })
.then((res) => { .then((res) => {
this.group = res.results; this.group = res;
}); });
}, },
// //

View File

@ -206,7 +206,7 @@
<td class="numCell"> <td class="numCell">
{{ reportItem.shut_sec }} {{ reportItem.shut_sec }}
</td> </td>
<td class="numCell">煤磨分布电耗KW·h/t</td> <td class="numCell">煤磨分布电耗kW·h/t</td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}
</td> </td>

View File

@ -196,7 +196,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -236,8 +236,8 @@ export default {
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["煤磨排风机主电机", "", "KW·h/t", "", "", ""], ["煤磨排风机主电机", "", "kW·h/t", "", "", ""],
["煤磨主电机", "", "KW·h/t", "", "", ""], ["煤磨主电机", "", "kW·h/t", "", "", ""],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -432,7 +432,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[4] = 0; obj[4] = 0;
obj[5] = 0; obj[5] = 0;
@ -471,7 +471,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -498,7 +498,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[5] = item.elec_consume_unit; obj[5] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -170,7 +170,7 @@
</div> </div>
</template> </template>
<script> <script>
const colors = ["#647bfe", "#8698fe", "#a9b6fe", "#91CC75", "#EE6666"]; const colors = ["#5b9bd5", "#ed7d31", "#70ad47", "#ffc000", "#4472c4"];
let tooltip = { let tooltip = {
show: true, show: true,
trigger: "axis", trigger: "axis",
@ -182,8 +182,8 @@ let tooltip = {
triggerOn: "mousemove", triggerOn: "mousemove",
}; };
let grid = { let grid = {
right: "10%", right: "11%",
left: "4%", left: "11%",
top: "20%", top: "20%",
}; };
let toolbox = { let toolbox = {
@ -235,14 +235,31 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
nameRotate: 30, nameRotate: 30,
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
color: colors[3], color: colors[2],
},
},
axisLabel: {
formatter: "{value}",
},
},
{
type: "value",
name: "台时(t/h)",
position: "left",
alignTicks: true,
nameRotate: 30,
offset: 60,
axisLine: {
show: true,
lineStyle: {
color: colors[1],
}, },
}, },
axisLabel: { axisLabel: {
@ -281,8 +298,8 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"], ["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 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, "/", "/", "/", "/"] ["能耗", "总电耗(kW·h", 0, 0, 0, 0, "/", "/", "/", "/"]
], ],
tableName: "生产报告", tableName: "生产报告",
modelValue: true, modelValue: true,
@ -375,7 +392,7 @@ export default {
{ {
name: "台时产量", name: "台时产量",
type: "bar", type: "bar",
yAxisIndex: 0, yAxisIndex: 3,
data: [], data: [],
}, },
{ {
@ -574,7 +591,7 @@ export default {
// that.tableDatas[3][8] = item5.goal_val; // that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;

View File

@ -53,7 +53,7 @@
<tr> <tr>
<th>细度%</th> <th>细度%</th>
<th>水分%</th> <th>水分%</th>
<th>煤磨排风机主电机KW·h/t</th> <th>煤磨排风机主电机kW·h/t</th>
<th>当期值kW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值kW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标值差值kW·h/t</th> <th>当期与目标值差值kW·h/t</th>
@ -113,7 +113,7 @@ export default {
// let data = []; // let data = [];
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
that.getGoalData(); that.getGoalData();
} }
}) })
@ -132,7 +132,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
this.getData(item); this.getData(item);
} }
}) })
@ -217,9 +217,9 @@ export default {
? item.煤磨排风机主电机_consume_unit ? item.煤磨排风机主电机_consume_unit
: "/"; : "/";
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[8] = item.elec_consume_unit; //KW·h/t arr[8] = item.elec_consume_unit; //kW·h/t
arr[9] = goalData[keyVale]; //KW·h/t// arr[9] = goalData[keyVale]; //kW·h/t//
arr[10] = (arr[8] - arr[9]).toFixed(2); //KW·h/t arr[10] = (arr[8] - arr[9]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanqi = 0, huanqi = 0,
huanqicha = 0, huanqicha = 0,
@ -238,18 +238,18 @@ export default {
} }
}) })
} }
arr[11] = huanqi; //KW·h/t arr[11] = huanqi; //kW·h/t
if (huanqi !== "/") { if (huanqi !== "/") {
huanqicha = (arr[8] - arr[11]).toFixed(2); huanqicha = (arr[8] - arr[11]).toFixed(2);
} else { } else {
huanqicha = 0; huanqicha = 0;
} }
arr[12] = huanqicha; //KW·h/t arr[12] = huanqicha; //kW·h/t
// arr[13] = // arr[13] =
if (arr[11] !=="/" && arr[11]!=0 && arr[12] !=0 && arr[12] !== "undefined"){ if (arr[11] !=="/" && arr[11]!=0 && arr[12] !=0 && arr[12] !== "undefined"){
arr[13] = ((arr[12]/arr[11])*100).toFixed(2); arr[13] = ((arr[12]/arr[11])*100).toFixed(2);
}else{ }else{
arr[13] = "/"; //%= KW·h/t/KW·h/t*100% arr[13] = "/"; //%= kW·h/t/kW·h/t*100%
} }
arr[14] = tongqi; //% arr[14] = tongqi; //%
// arr[15] = 0.0; // // arr[15] = 0.0; //

View File

@ -44,11 +44,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -126,47 +126,42 @@ export default {
asynDialog: false, asynDialog: false,
}; };
}, },
mounted() { async mounted() {
let that = this; let that = this;
var myDate = new Date(); var myDate = new Date();
let year = myDate.getFullYear(); let year = myDate.getFullYear();
that.query.year_s = year; that.query.year_s = year;
try{
var res = await this.$API.mtm.mgroup.list.req({ page: 0, search: "煤磨" });
that.query.mgroup = res[0].id;
}catch(e){
this.$message.error("获取工段失败");
}
// //
let paramsGoal = {}; let paramsGoal = {};
paramsGoal.page = 0; paramsGoal.page = 0;
paramsGoal.mgroup = that.query.mgroup; paramsGoal.mgroup = that.query.mgroup;
that.$API.mtm.goal.list.req(paramsGoal).then((ress) => { paramsGoal.goal_cate__code = "elec_consume_unit";
if (ress.length > 0) { var ress = await that.$API.mtm.goal.list.req(paramsGoal);
if (ress.length > 0) {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if (goal.goal_cate_name == "单位产品分布电耗KW·h/t") { monthGoal[0] = goal.goal_val;
monthGoal[0] = goal.goal_val; monthGoal[1] = goal.goal_val_2;
monthGoal[1] = goal.goal_val_2; monthGoal[2] = goal.goal_val_3;
monthGoal[2] = goal.goal_val_3; monthGoal[3] = goal.goal_val_4;
monthGoal[3] = goal.goal_val_4; monthGoal[4] = goal.goal_val_5;
monthGoal[4] = goal.goal_val_5; monthGoal[5] = goal.goal_val_6;
monthGoal[5] = goal.goal_val_6; monthGoal[6] = goal.goal_val_7;
monthGoal[6] = goal.goal_val_7; monthGoal[7] = goal.goal_val_8;
monthGoal[7] = goal.goal_val_8; monthGoal[8] = goal.goal_val_9;
monthGoal[8] = goal.goal_val_9; monthGoal[9] = goal.goal_val_10;
monthGoal[9] = goal.goal_val_10; monthGoal[10] = goal.goal_val_11;
monthGoal[10] = goal.goal_val_11; monthGoal[11] = goal.goal_val_12;
monthGoal[11] = goal.goal_val_12; monthGoal[12] = goal.goal_val_12;
monthGoal[12] = goal.goal_val_12;
that.monthGoal = monthGoal;
}
}); });
} else {
this.getData();
} }
}); this.getData();
this.$API.mtm.mgroup.list
.req({ page: 0, search: "煤磨" })
.then((res) => {
console.log("煤磨", res);
that.query.mgroup = res[0].id;
this.getData();
});
}, },
methods: { methods: {
// Class // Class
@ -227,7 +222,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -241,8 +236,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = (item[1] - item[2]).toFixed(2); diff = (item[1] - item[2]).toFixed(2);
@ -250,7 +245,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 0) { if (index > 0) {
let num = index - 1; let num = index - 1;
@ -268,7 +263,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -194,7 +194,7 @@
<td class="numCell"> <td class="numCell">
{{ reportItem.shut_hour }} {{ reportItem.shut_hour }}
</td> </td>
<td class="numCell">煤磨分布电耗KW·h/t</td> <td class="numCell">煤磨分布电耗kW·h/t</td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}
</td> </td>

View File

@ -190,7 +190,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -229,8 +229,8 @@ export default {
searchDate: "", searchDate: "",
tableName: "主要设备单位产品电耗数据表", tableName: "主要设备单位产品电耗数据表",
tableDatas: [ tableDatas: [
["煤磨排风机主电机", "", "KW·h/t", "", "", ""], ["煤磨排风机主电机", "", "kW·h/t", "", "", ""],
["煤磨主电机", "", "KW·h/t", "", "", ""], ["煤磨主电机", "", "kW·h/t", "", "", ""],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -389,7 +389,7 @@ export default {
let index = that.mpoints.indexOf(item.mpoint_nickname); let index = that.mpoints.indexOf(item.mpoint_nickname);
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[2] = item.elec_consume_unit; obj[2] = item.elec_consume_unit;
obj[3] = 0; obj[3] = 0;
obj[4] = 0; obj[4] = 0;
@ -424,7 +424,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -450,7 +450,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -227,7 +227,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h)", name: "分布电耗(kW·h)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -270,7 +270,7 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 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],
], ],
tableName: "生产报告", tableName: "生产报告",
modelValue: true, modelValue: true,
@ -330,7 +330,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -567,7 +567,7 @@ export default {
that.tableDatas[3][8] = item5.goal_val; that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;

View File

@ -165,9 +165,9 @@ export default {
arr.push(item.run_rate); arr.push(item.run_rate);
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[5] = item.elec_consume_unit; //KW·h/t arr[5] = item.elec_consume_unit; //kW·h/t
arr[6] = goalData[keyVale]; //KW·h/t// arr[6] = goalData[keyVale]; //kW·h/t//
arr[7] = item.celec_consume_unit - arr[10]; //KW·h/t arr[7] = item.celec_consume_unit - arr[10]; //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanqi = 0, huanqi = 0,
huanqicha = 0, huanqicha = 0,
@ -186,13 +186,13 @@ export default {
: "/" : "/"
: "/"; : "/";
} }
arr[8] = huanqi; //KW·h/t arr[8] = huanqi; //kW·h/t
if (huanqi !== "/") { if (huanqi !== "/") {
huanqicha = item.celec_consume_unit - huanqi; huanqicha = item.celec_consume_unit - huanqi;
} else { } else {
huanqicha = item.celec_consume_unit; huanqicha = item.celec_consume_unit;
} }
arr[9] = huanqicha; //KW·h/t arr[9] = huanqicha; //kW·h/t
arr[10] = arr[10] =
huanqi != "/" ? (huanqicha / huanqi) * 100 : 0; //% huanqi != "/" ? (huanqicha / huanqi) * 100 : 0; //%
if (wrapArr0[n]) { if (wrapArr0[n]) {

View File

@ -43,11 +43,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -132,7 +132,7 @@ export default {
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == goal.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -207,7 +207,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -219,8 +219,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = item[1] - item[2]; diff = item[1] - item[2];
@ -228,7 +228,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -246,7 +246,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -210,7 +210,7 @@
<td class="numCell"> <td class="numCell">
{{ reportItem.shut_hour }} {{ reportItem.shut_hour }}
</td> </td>
<td class="numCell">自用电量KW·h/t</td> <td class="numCell">自用电量kW·h/t</td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}
</td> </td>

View File

@ -320,7 +320,7 @@ let legend = {
let yAxis = [ let yAxis = [
{ {
type: "value", type: "value",
name: "电量 (KW·h)", name: "电量 (kW·h)",
position: "left", position: "left",
offset: 80, offset: 80,
@ -352,7 +352,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "吨熟料发电量(KW·h/t)", name: "吨熟料发电量(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -394,12 +394,12 @@ export default {
mgroup: "3347217246321065984", mgroup: "3347217246321065984",
}, },
tableDatas: [ tableDatas: [
["产量", "总发电量(KW·h", 0, 0, 0, 0, 0, 0, 0, 0], ["产量", "总发电量(kW·h", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "发电功率(KW·h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "发电功率(kW·h", "/", 0, 0, 0, 0, 0, 0, 0],
["产量", "吨熟料发电量(KW·h/t", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "吨熟料发电量(kW·h/t", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 0],
["自用电量", "用电量(KW·h", 0, 0, 0, 0, 0, 0, 0, 0], ["自用电量", "用电量(kW·h", 0, 0, 0, 0, 0, 0, 0, 0],
], ],
tableName: "生产报告", tableName: "生产报告",
modelValue: true, modelValue: true,
@ -430,7 +430,7 @@ export default {
yAxis: [ yAxis: [
{ {
type: "value", type: "value",
name: "电量 (KW·h)", name: "电量 (kW·h)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -445,7 +445,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "吨熟料发电量(KW·h/t", name: "吨熟料发电量(kW·h/t",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -689,13 +689,13 @@ export default {
that.tableDatas[0][6] = item5[str]; that.tableDatas[0][6] = item5[str];
that.tableDatas[0][8] = item5.goal_val; that.tableDatas[0][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == "发电功率(KW·h" item5.goal_cate_name == "发电功率(kW·h"
) { ) {
that.tableDatas[1][6] = item5[str]; that.tableDatas[1][6] = item5[str];
that.tableDatas[1][8] = item5.goal_val; that.tableDatas[1][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"吨熟料发电量(KW·h/t" "吨熟料发电量(kW·h/t"
) { ) {
that.tableDatas[2][6] = item5[str]; that.tableDatas[2][6] = item5[str];
that.tableDatas[2][8] = item5.goal_val; that.tableDatas[2][8] = item5.goal_val;
@ -710,7 +710,7 @@ export default {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == "用电量(KW·h" item5.goal_cate_name == "用电量(kW·h"
) { ) {
that.tableDatas[5][6] = item5[str]; that.tableDatas[5][6] = item5[str];
that.tableDatas[5][8] = item5.goal_val; that.tableDatas[5][8] = item5.goal_val;

View File

@ -161,9 +161,9 @@ export default {
arr.push(item.production_hour); arr.push(item.production_hour);
arr.push(item.run_rate); arr.push(item.run_rate);
// //
arr[5] = item.elec_consume_unit; //KW·h/t arr[5] = item.elec_consume_unit; //kW·h/t
arr[6] = item.celec_consume_unit; //KW·h/t// arr[6] = item.celec_consume_unit; //kW·h/t//
arr[7] = item.celec_consume_unit; //KW·h/t arr[7] = item.celec_consume_unit; //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -179,8 +179,8 @@ export default {
: "/" : "/"
: "/"; : "/";
} }
arr[8] = huanbi; //KW·h/t arr[8] = huanbi; //kW·h/t
arr[9] = item.celec_consume_unit; //KW·h/t arr[9] = item.celec_consume_unit; //kW·h/t
arr[10] = item.celec_consume_unit; //% arr[10] = item.celec_consume_unit; //%
arr[11] = item.celec_consume_unit; //% arr[11] = item.celec_consume_unit; //%
wrapArr[ind] = arr; wrapArr[ind] = arr;

View File

@ -55,11 +55,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -107,10 +107,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -157,10 +157,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -207,10 +207,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -344,7 +344,7 @@ export default {
monthGoal4 = []; monthGoal4 = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -362,7 +362,7 @@ export default {
that.monthGoal = monthGoal; that.monthGoal = monthGoal;
} }
if ( if (
goal.goal_cate_name == "单位产品综合电耗(KW·h/t" goal.goal_cate_name == "单位产品综合电耗(kW·h/t"
) { ) {
monthGoal2[0] = goal.goal_val; monthGoal2[0] = goal.goal_val;
monthGoal2[1] = goal.goal_val_2; monthGoal2[1] = goal.goal_val_2;
@ -474,7 +474,7 @@ export default {
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
: "/"; : "/";
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (arrs[2] !== "/") { if (arrs[2] !== "/") {
diff = arrs[1] - arrs[2]; diff = arrs[1] - arrs[2];
@ -482,7 +482,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -500,7 +500,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {
@ -545,7 +545,7 @@ export default {
arrs2[3] = 48; arrs2[3] = 48;
arrs2[4] = 57; arrs2[4] = 57;
arrs2[5] = 61; arrs2[5] = 61;
//KW·h/t //kW·h/t
let lastNum2 = 0, let lastNum2 = 0,
lastDiff2 = 0; lastDiff2 = 0;
if (index > 1) { if (index > 1) {
@ -606,7 +606,7 @@ export default {
arrs3[3] = 94; arrs3[3] = 94;
arrs3[4] = 100; arrs3[4] = 100;
arrs3[5] = 109; arrs3[5] = 109;
//KW·h/t //kW·h/t
let lastNum3 = 0, let lastNum3 = 0,
lastDiff3 = 0; lastDiff3 = 0;
if (index > 1) { if (index > 1) {
@ -667,7 +667,7 @@ export default {
arrs4[3] = 100; arrs4[3] = 100;
arrs4[4] = 107; arrs4[4] = 107;
arrs4[5] = 117; arrs4[5] = 117;
//KW·h/t //kW·h/t
let lastNum4 = 0, let lastNum4 = 0,
lastDiff4 = 0; lastDiff4 = 0;
if (index > 1) { if (index > 1) {
@ -730,8 +730,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -739,7 +739,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -752,7 +752,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){
@ -786,8 +786,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -795,7 +795,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -808,7 +808,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){
@ -842,8 +842,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -851,7 +851,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -864,7 +864,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){

View File

@ -26,10 +26,10 @@
<th>车间</th> <th>车间</th>
<th>工段</th> <th>工段</th>
<th>设备</th> <th>设备</th>
<th>上一个小时KW·h</th> <th>上一个小时kW·h</th>
<th>昨日电量累计KW·h</th> <th>昨日电量累计kW·h</th>
<th>本月电量累计KW·h</th> <th>本月电量累计kW·h</th>
<th>本年电量累计KW·h</th> <th>本年电量累计kW·h</th>
</tr> </tr>
</thead> </thead>
<tr v-for="(item,index) in tableData" :key="index"> <tr v-for="(item,index) in tableData" :key="index">

View File

@ -116,6 +116,7 @@ import * as echarts from 'echarts';
{id:2,name:'年统计'}, {id:2,name:'年统计'},
], ],
row_list : ['peak','high','low','deep','flat'], row_list : ['peak','high','low','deep','flat'],
row_translate: ['峰值', '高峰', '低谷', '深谷', '平谷'],
}; };
}, },
@ -149,7 +150,9 @@ import * as echarts from 'echarts';
} }
} }
}, },
translate(){
},
dateChange() { dateChange() {
let that = this; let that = this;
let arr = [], let arr = [],
@ -211,9 +214,9 @@ import * as echarts from 'echarts';
let seriesData = []; let seriesData = [];
let categories = this.mpoint_name; // let categories = this.mpoint_name; //
let rowList = this.row_list; // ['peak', 'high', 'low', 'deep', 'flat'] let rowList = this.row_list; // ['peak', 'high', 'low', 'deep', 'flat']
let row_translate = this.row_translate; // ['', '', '', '', '']
// 'peak', 'high', 'low', 'deep', 'flat' // 'peak', 'high', 'low', 'deep', 'flat'
rowList.forEach(level => { rowList.forEach((level, index) => {
let data = categories.map(device => { let data = categories.map(device => {
// //
let deviceData = chartData[device]?.find(item => item.level === level); let deviceData = chartData[device]?.find(item => item.level === level);
@ -221,7 +224,7 @@ import * as echarts from 'echarts';
}); });
seriesData.push({ seriesData.push({
name: level, // peakhigh name: row_translate[index], // peakhigh
type: 'bar', type: 'bar',
data: data, // data: data, //
label: { label: {
@ -243,7 +246,7 @@ import * as echarts from 'echarts';
axisPointer: { type: 'shadow' } // axisPointer: { type: 'shadow' } //
}, },
legend: { legend: {
data: rowList, // 'peak', 'high' data: row_translate, // 'peak', 'high'
top: '10%' top: '10%'
}, },
xAxis: { xAxis: {
@ -256,7 +259,7 @@ import * as echarts from 'echarts';
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLabel: { axisLabel: {
formatter: '{value} kWh' // kWh formatter: '{value} kW·h' // kW·h
} }
}, },
series: seriesData series: seriesData
@ -264,7 +267,7 @@ import * as echarts from 'echarts';
// //
myChart.setOption(option); myChart.setOption(option);
}, },
handlePrint() { handlePrint() {
this.$PRINT('#myReport'); this.$PRINT('#myReport');

View File

@ -105,7 +105,7 @@
prop="mpoint__code" prop="mpoint__code"
align="center" align="center"
></el-table-column><el-table-column ></el-table-column><el-table-column
label="统计值(kwh)" label="统计值(kh)"
prop="total_val" prop="total_val"
align="center" align="center"
></el-table-column> ></el-table-column>

View File

@ -106,7 +106,7 @@
<th rowspan="2">单位压缩空气m3/t</th> <th rowspan="2">单位压缩空气m3/t</th>
</tr> </tr>
<tr> <tr>
<th>电量KW.h</th> <th>电量kW·h</th>
<th>电量折标煤tce</th> <th>电量折标煤tce</th>
<th v-if="deptName=='烧成车间'">煤粉t</th> <th v-if="deptName=='烧成车间'">煤粉t</th>
<th v-if="deptName=='烧成车间'">煤粉折标煤tce</th> <th v-if="deptName=='烧成车间'">煤粉折标煤tce</th>
@ -118,7 +118,7 @@
<th>产品产量t</th> <th>产品产量t</th>
<th v-if="deptName=='烧成车间'">单位产品综合能耗tce/t</th> <th v-if="deptName=='烧成车间'">单位产品综合能耗tce/t</th>
<th v-else>单位产品能耗tce/t</th> <th v-else>单位产品能耗tce/t</th>
<th>电量KW.h</th> <th>电量kW·h</th>
<th>电量折标煤tce</th> <th>电量折标煤tce</th>
<!-- <th v-if="deptName=='原料车间'">t</th> --> <!-- <th v-if="deptName=='原料车间'">t</th> -->
<!-- <th v-if="deptName=='原料车间'">窑尾余热利用tce</th> --> <!-- <th v-if="deptName=='原料车间'">窑尾余热利用tce</th> -->

View File

@ -106,9 +106,9 @@
tableDatas:[ tableDatas:[
{index:1,name:'水泥单位产品综合能耗(kgce/t)',value:0,note:''}, {index:1,name:'水泥单位产品综合能耗(kgce/t)',value:0,note:''},
{index:2,name:'熟料单位产品综合能耗(kgce/t)',value:0,note:''}, {index:2,name:'熟料单位产品综合能耗(kgce/t)',value:0,note:''},
{index:3,name:'熟料单位产品综合电耗(kw.h/t)',value:0,note:''}, {index:3,name:'熟料单位产品综合电耗(kh/t)',value:0,note:''},
{index:4,name:'熟料单位产品综合煤耗(kgce/t)',value:0,note:''}, {index:4,name:'熟料单位产品综合煤耗(kgce/t)',value:0,note:''},
{index:5,name:'水泥单位产品分布电耗(kw.h/t)',value:0,note:''}, {index:5,name:'水泥单位产品分布电耗(kh/t)',value:0,note:''},
], ],
}; };

View File

@ -10,99 +10,99 @@
<div class="energyNumber energyNumberLeft" style="top: 183px;"> <div class="energyNumber energyNumberLeft" style="top: 183px;">
<img v-if="dataObj.全厂用电合计" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.全厂用电合计" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.全厂用电合计 }} {{ dataObj.全厂用电合计 }}
<span v-if="dataObj.全厂用电合计">kWh</span> <span v-if="dataObj.全厂用电合计">kW·h</span>
</div> </div>
<div class="energyNumber energyNumberLeft2" style="top: 84px;"> <div class="energyNumber energyNumberLeft2" style="top: 84px;">
<img v-if="dataObj.电石渣配电室用电_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.电石渣配电室用电_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.电石渣配电室用电_电 }} {{ dataObj.电石渣配电室用电_电 }}
<span v-if="dataObj.电石渣配电室用电_电">kWh</span> <span v-if="dataObj.电石渣配电室用电_电">kW·h</span>
</div> </div>
<!-- 窑头配电室用电_电 --> <!-- 窑头配电室用电_电 -->
<div class="energyNumber energyNumberLeft2" style="top: 181px;"> <div class="energyNumber energyNumberLeft2" style="top: 181px;">
<img v-if="dataObj.回转窑_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.回转窑_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.回转窑_电 }} {{ dataObj.回转窑_电 }}
<span v-if="dataObj.回转窑_电">kWh</span> <span v-if="dataObj.回转窑_电">kW·h</span>
</div> </div>
<div class="energyNumber energyNumberLeft2" style="top: 331px;"> <div class="energyNumber energyNumberLeft2" style="top: 331px;">
<img v-if="dataObj.水泥配电室用电_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.水泥配电室用电_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.水泥配电室用电_电 }} {{ dataObj.水泥配电室用电_电 }}
<span v-if="dataObj.水泥配电室用电_电">kWh</span> <span v-if="dataObj.水泥配电室用电_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 77px;"> <div class="energyNumber" style="top: 77px;">
<img v-if="dataObj.烘干破碎机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.烘干破碎机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.烘干破碎机_电 }} {{ dataObj.烘干破碎机_电 }}
<span v-if="dataObj.烘干破碎机_电">kWh</span> <span v-if="dataObj.烘干破碎机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 131px;"> <div class="energyNumber" style="top: 131px;">
<img v-if="dataObj.原料立磨主电机" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.原料立磨主电机" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.原料立磨主电机 }} {{ dataObj.原料立磨主电机 }}
<span v-if="dataObj.原料立磨主电机">kWh</span> <span v-if="dataObj.原料立磨主电机">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 175px;"> <div class="energyNumber" style="top: 175px;">
<img v-if="dataObj.生粉制备_循环风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.生粉制备_循环风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.生粉制备_循环风机_电 }} {{ dataObj.生粉制备_循环风机_电 }}
<span v-if="dataObj.生粉制备_循环风机_电">kWh</span> <span v-if="dataObj.生粉制备_循环风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 219px;"> <div class="energyNumber" style="top: 219px;">
<img v-if="dataObj.生粉制备_选粉机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.生粉制备_选粉机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.生粉制备_选粉机_电 }} {{ dataObj.生粉制备_选粉机_电 }}
<span v-if="dataObj.生粉制备_选粉机_电">kWh</span> <span v-if="dataObj.生粉制备_选粉机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 269px;"> <div class="energyNumber" style="top: 269px;">
<img v-if="dataObj.高温风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.高温风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.高温风机_电 }} {{ dataObj.高温风机_电 }}
<span v-if="dataObj.高温风机_电">kWh</span> <span v-if="dataObj.高温风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 325px;"> <div class="energyNumber" style="top: 325px;">
<img v-if="dataObj.尾排风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.尾排风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.尾排风机_电 }} {{ dataObj.尾排风机_电 }}
<span v-if="dataObj.尾排风机_电">kWh</span> <span v-if="dataObj.尾排风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 379px;"> <div class="energyNumber" style="top: 379px;">
<img v-if="dataObj.烧成工序用电合计" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.烧成工序用电合计" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.烧成工序用电合计 }} {{ dataObj.烧成工序用电合计 }}
<span v-if="dataObj.烧成工序用电合计">kWh</span> <span v-if="dataObj.烧成工序用电合计">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 430px;"> <div class="energyNumber" style="top: 430px;">
<img v-if="dataObj.原料立磨主电机" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.原料立磨主电机" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.原料立磨主电机}} {{ dataObj.原料立磨主电机}}
<span v-if="dataObj.原料立磨主电机">kWh</span> <span v-if="dataObj.原料立磨主电机">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 488px;"> <div class="energyNumber" style="top: 488px;">
<img v-if="dataObj.煤磨排风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.煤磨排风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.煤磨排风机_电 }} {{ dataObj.煤磨排风机_电 }}
<span v-if="dataObj.煤磨排风机_电">kWh</span> <span v-if="dataObj.煤磨排风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 538px;"> <div class="energyNumber" style="top: 538px;">
<img v-if="dataObj.窑头排风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.窑头排风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.窑头排风机_电 }} {{ dataObj.窑头排风机_电 }}
<span v-if="dataObj.窑头排风机_电">kWh</span> <span v-if="dataObj.窑头排风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 608px;"> <div class="energyNumber" style="top: 608px;">
<img v-if="dataObj.水泥磨用电合计" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.水泥磨用电合计" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.水泥磨用电合计 }} {{ dataObj.水泥磨用电合计 }}
<span v-if="dataObj.水泥磨用电合计">kWh</span> <span v-if="dataObj.水泥磨用电合计">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 665px;"> <div class="energyNumber" style="top: 665px;">
<img v-if="dataObj.辊压机动_电||dataObj.辊压机定_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.辊压机动_电||dataObj.辊压机定_电" class="iconImg" src="img/tkx_ele.png">
{{ (Number(dataObj.辊压机动_电) + Number(dataObj.辊压机定_电)).toFixed(2) }} {{ (Number(dataObj.辊压机动_电) + Number(dataObj.辊压机定_电)).toFixed(2) }}
<span v-if="dataObj.辊压机动_电||dataObj.辊压机定_电">kWh</span> <span v-if="dataObj.辊压机动_电||dataObj.辊压机定_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 721px;"> <div class="energyNumber" style="top: 721px;">
<img v-if="dataObj.系统风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.系统风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.系统风机_电 }} {{ dataObj.系统风机_电 }}
<span v-if="dataObj.系统风机_电">kWh</span> <span v-if="dataObj.系统风机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 776px;"> <div class="energyNumber" style="top: 776px;">
<img v-if="dataObj.水泥磨_选粉机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.水泥磨_选粉机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.水泥磨_选粉机_电 }} {{ dataObj.水泥磨_选粉机_电 }}
<span v-if="dataObj.水泥磨_选粉机_电">kWh</span> <span v-if="dataObj.水泥磨_选粉机_电">kW·h</span>
</div> </div>
<div class="energyNumber" style="top: 833px;"> <div class="energyNumber" style="top: 833px;">
<img v-if="dataObj.水泥磨_循环风机_电" class="iconImg" src="img/tkx_ele.png"> <img v-if="dataObj.水泥磨_循环风机_电" class="iconImg" src="img/tkx_ele.png">
{{ dataObj.水泥磨_循环风机_电 }} {{ dataObj.水泥磨_循环风机_电 }}
<span v-if="dataObj.水泥磨_循环风机_电">kWh</span> <span v-if="dataObj.水泥磨_循环风机_电">kW·h</span>
</div> </div>
<!-- --> <!-- -->
<div class="energyNumberLeft coalNumber" style="top: 478px;"> <div class="energyNumberLeft coalNumber" style="top: 478px;">

View File

@ -207,7 +207,7 @@
{{ reportItem.shut_sec }} {{ reportItem.shut_sec }}
</td> </td>
<td class="numCell"> <td class="numCell">
单位产品分布电耗KW·h/t 单位产品分布电耗kW·h/t
</td> </td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}

View File

@ -205,7 +205,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -247,8 +247,8 @@ export default {
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["高温风机", "", "KW·h/t", "", "", ""], ["高温风机", "", "kW·h/t", "", "", ""],
["窑主电机", "", "KW·h/t", "", "", ""], ["窑主电机", "", "kW·h/t", "", "", ""],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -550,7 +550,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[4] = 0; obj[4] = 0;
obj[5] = 0; obj[5] = 0;
@ -589,7 +589,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -616,7 +616,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[5] = item.elec_consume_unit; obj[5] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -365,7 +365,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
nameRotate: 30, nameRotate: 30,
@ -398,7 +398,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "成本(元)", name: "成本(元/吨)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
nameRotate: 30, nameRotate: 30,
@ -409,9 +409,9 @@ let yAxis = [
color: colors[5], color: colors[5],
}, },
}, },
axisLabel: { // axisLabel: {
formatter: "{value}/元", // formatter: "{value}/",
}, // },
}, },
]; ];
import scEcharts from "@/components/scEcharts"; import scEcharts from "@/components/scEcharts";
@ -446,11 +446,11 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", "/", 0, "/", "/"], ["运转时间", "运转时间h", "/", 0, 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/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], ["能耗", "单位产品标煤耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0], ["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "总电耗(KW·h", 0, 0, 0, 0, "/", "/", "/", "/"], ["能耗", "总电耗(kW·h", 0, 0, 0, 0, "/", "/", "/", "/"],
["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0], ["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
["氨水", "氨水消耗量(t)", 0, 0, 0, 0, "/", "/", "/", "/"], ["氨水", "氨水消耗量(t)", 0, 0, 0, 0, "/", "/", "/", "/"],
["氨水", "单位氨水消耗量(kg/t)", 0, 0, 0, 0, "/", "/", "/", "/"], ["氨水", "单位氨水消耗量(kg/t)", 0, 0, 0, 0, "/", "/", "/", "/"],
@ -469,7 +469,15 @@ export default {
tooltip: tooltip, tooltip: tooltip,
grid: grid, grid: grid,
toolbox: toolbox, toolbox: toolbox,
legend: legend, legend: {
top: "2%",
data: [
"总产量",
"分布电耗",
"单位产品标煤耗",
"成本",
],
},
xAxis: { xAxis: {
axisTick: { axisTick: {
show: true, show: true,
@ -773,13 +781,13 @@ export default {
// that.tableDatas[3][8] = item5.goal_val; // that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品综合电耗(KW·h/t" "单位产品综合电耗(kW·h/t"
) { ) {
that.tableDatas[5][6] = item5[str]; that.tableDatas[5][6] = item5[str];
that.tableDatas[5][8] = item5.goal_val; that.tableDatas[5][8] = item5.goal_val;
@ -987,16 +995,16 @@ export default {
data.forEach((item) => { data.forEach((item) => {
let ind = item.hour; let ind = item.hour;
seriesData0[ind] = item.total_production; seriesData0[ind] = item.total_production;
seriesData1[ind] = item.production_hour; // seriesData1[ind] = item.production_hour;
seriesData2[ind] = item.run_rate; // seriesData2[ind] = item.run_rate;
seriesData3[ind] = item.elec_consume_unit; seriesData3[ind] = item.elec_consume_unit;
seriesData4[ind] = item.coal_consume_unit; seriesData4[ind] = item.coal_consume_unit;
seriesData5[ind] = item.production_cost_unit; seriesData5[ind] = item.production_cost_unit;
}); });
let options = { ...that.option1 }; let options = { ...that.option1 };
options.series[0].data = seriesData0; options.series[0].data = seriesData0;
options.series[1].data = seriesData1; // options.series[1].data = seriesData1;
options.series[2].data = seriesData2; // options.series[2].data = seriesData2;
options.series[3].data = seriesData3; options.series[3].data = seriesData3;
options.series[4].data = seriesData4; options.series[4].data = seriesData4;
options.series[5].data = seriesData5; options.series[5].data = seriesData5;

View File

@ -245,20 +245,20 @@ export default {
: "/"; : "/";
// //
arr[12] = item.coal_consume_unit; //KW·h/t arr[12] = item.coal_consume_unit; //kW·h/t
let keyValue = "goal_val_" + n; let keyValue = "goal_val_" + n;
if (goalData.length > 0){ if (goalData.length > 0){
goalData.forEach((item) => { goalData.forEach((item) => {
if (item.goal_cate_name == "单位产品标煤耗kgce/t") { if (item.goal_cate_name == "单位产品标煤耗kgce/t") {
arr[13] = item[keyValue]; //KW·h/t// arr[13] = item[keyValue]; //kW·h/t//
}else if (item.goal_cate_name == "单位产品分布电耗(KW·h/t"){ }else if (item.goal_cate_name == "单位产品分布电耗(kW·h/t"){
arr[25] = item[keyValue]; //KW·h/t// arr[25] = item[keyValue]; //kW·h/t//
} }
}); });
}; };
let dq = 0 let dq = 0
if (arr[13] !== null && arr[13] !== undefined){ if (arr[13] !== null && arr[13] !== undefined){
dq = (arr[12] - arr[13]).toFixed(2); //KW·h/t dq = (arr[12] - arr[13]).toFixed(2); //kW·h/t
}else{ }else{
dq == "/" dq == "/"
}; };
@ -278,9 +278,9 @@ export default {
} }
}) })
} }
arr[15] = huanbi; //KW·h/t arr[15] = huanbi; //kW·h/t
if(huanbi !=="/"){ if(huanbi !=="/"){
arr[16] = (arr[12] - arr[15]).toFixed(2); //KW·h/t arr[16] = (arr[12] - arr[15]).toFixed(2); //kW·h/t
}else{ }else{
arr[16] = "/" arr[16] = "/"
}; };
@ -325,10 +325,10 @@ export default {
item.窑头排风机主电机_consume_unit != null item.窑头排风机主电机_consume_unit != null
? item.窑头排风机主电机_consume_unit ? item.窑头排风机主电机_consume_unit
: "/"; : "/";
arr[24] = item.elec_consume_unit; //KW·h/t arr[24] = item.elec_consume_unit; //kW·h/t
// arr[25] = item.celec_consume_unit; //KW·h/t// // arr[25] = item.celec_consume_unit; //kW·h/t//
if (item.elec_consume_unit != null &&item.elec_consume_unit !== "/"){ if (item.elec_consume_unit != null &&item.elec_consume_unit !== "/"){
arr[26] = (arr[24]-arr[25]).toFixed(2); //KW·h/t arr[26] = (arr[24]-arr[25]).toFixed(2); //kW·h/t
} }
let huanbiec = 0; let huanbiec = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -344,9 +344,9 @@ export default {
} }
}) })
} }
arr[27] = huanbiec; //KW·h/t arr[27] = huanbiec; //kW·h/t
if(arr[27]!=="/" && huanbiec!=="/"){ if(arr[27]!=="/" && huanbiec!=="/"){
arr[28] = (arr[24] - huanbiec).toFixed(2); //KW·h/t arr[28] = (arr[24] - huanbiec).toFixed(2); //kW·h/t
}else{ }else{
arr[28] = "/" arr[28] = "/"
} }

View File

@ -56,11 +56,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -121,10 +121,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
<th rowspan="2">分析说明</th> <th rowspan="2">分析说明</th>
@ -190,10 +190,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
<th rowspan="2">分析说明</th> <th rowspan="2">分析说明</th>
@ -259,10 +259,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
<th rowspan="2">分析说明</th> <th rowspan="2">分析说明</th>
@ -467,7 +467,7 @@ export default {
monthGoal4 = []; monthGoal4 = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -485,7 +485,7 @@ export default {
that.monthGoal = monthGoal; that.monthGoal = monthGoal;
} }
if ( if (
goal.goal_cate_name == "单位产品综合电耗(KW·h/t" goal.goal_cate_name == "单位产品综合电耗(kW·h/t"
) { ) {
monthGoal2[0] = goal.goal_val; monthGoal2[0] = goal.goal_val;
monthGoal2[1] = goal.goal_val_2; monthGoal2[1] = goal.goal_val_2;
@ -597,7 +597,7 @@ export default {
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
: "/"; : "/";
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (arrs[2] !== "/") { if (arrs[2] !== "/") {
diff = (arrs[1] - arrs[2]).toFixed(2) diff = (arrs[1] - arrs[2]).toFixed(2)
@ -606,7 +606,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -624,7 +624,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {
@ -671,7 +671,7 @@ export default {
arrs2[3] = 48; arrs2[3] = 48;
arrs2[4] = 57; arrs2[4] = 57;
arrs2[5] = 61; arrs2[5] = 61;
//KW·h/t //kW·h/t
let lastNum2 = 0, let lastNum2 = 0,
lastDiff2 = 0; lastDiff2 = 0;
if (index > 1) { if (index > 1) {
@ -734,7 +734,7 @@ export default {
arrs3[3] = 94; arrs3[3] = 94;
arrs3[4] = 100; arrs3[4] = 100;
arrs3[5] = 109; arrs3[5] = 109;
//KW·h/t //kW·h/t
let lastNum3 = 0, let lastNum3 = 0,
lastDiff3 = 0; lastDiff3 = 0;
if (index > 1) { if (index > 1) {
@ -797,7 +797,7 @@ export default {
arrs4[3] = 100; arrs4[3] = 100;
arrs4[4] = 107; arrs4[4] = 107;
arrs4[5] = 117; arrs4[5] = 117;
//KW·h/t //kW·h/t
let lastNum4 = 0, let lastNum4 = 0,
lastDiff4 = 0; lastDiff4 = 0;
if (index > 1) { if (index > 1) {
@ -862,8 +862,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -871,7 +871,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -884,7 +884,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){
@ -918,8 +918,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -927,7 +927,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -940,7 +940,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){
@ -974,8 +974,8 @@ export default {
// arrs[0]=item[0]; // arrs[0]=item[0];
// arrs[1]=item[1]; // arrs[1]=item[1];
// arrs[2]=item[2]; // arrs[2]=item[2];
// //KW·h/t// // //kW·h/t//
// //KW·h/t // //kW·h/t
// let diff = 0; // let diff = 0;
// if(item[2]!=='/'){ // if(item[2]!=='/'){
// diff = item[1]-item[2]; // diff = item[1]-item[2];
@ -983,7 +983,7 @@ export default {
// diff = '/'; // diff = '/';
// } // }
// arrs[3]=diff; // arrs[3]=diff;
// //KW·h/t // //kW·h/t
// let lastNum = 0; // let lastNum = 0;
// if(index>1){ // if(index>1){
// let num = index-1; // let num = index-1;
@ -996,7 +996,7 @@ export default {
// lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/'; // lastNum = wrapArr0[12]?wrapArr0[12].elec_consume_unit:'/';
// } // }
// arrs[4]=lastNum; // arrs[4]=lastNum;
// //KW·h/t // //kW·h/t
// let lastDiff = 0; // let lastDiff = 0;
// if(arrs[1]!=='/'&&arrs[4]!=='/'){ // if(arrs[1]!=='/'&&arrs[4]!=='/'){

View File

@ -195,7 +195,7 @@
{{ reportItem.shut_hour }} {{ reportItem.shut_hour }}
</td> </td>
<td class="numCell"> <td class="numCell">
单位产品分布电耗KW·h/t 单位产品分布电耗kW·h/t
</td> </td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}

View File

@ -191,7 +191,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "电耗(KW.h/t)", name: "电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -233,9 +233,9 @@ export default {
searchDate: "", searchDate: "",
tableName: "主要设备单位产品电耗数据表", tableName: "主要设备单位产品电耗数据表",
tableDatas: [ tableDatas: [
["尾排风机", "KW·h/t", "", "", ""], ["尾排风机", "kW·h/t", "", "", ""],
["高温风机", "KW·h/t", "", "", ""], ["高温风机", "kW·h/t", "", "", ""],
["头排风机", "KW·h/t", "", "", ""], ["头排风机", "kW·h/t", "", "", ""],
], ],
modelValue: true, modelValue: true,
type: "hour_s", type: "hour_s",
@ -390,7 +390,7 @@ export default {
let index = that.mpoints.indexOf(item.mpoint_nickname); let index = that.mpoints.indexOf(item.mpoint_nickname);
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[2] = item.elec_consume_unit; obj[2] = item.elec_consume_unit;
obj[3] = 0; obj[3] = 0;
obj[4] = 0; obj[4] = 0;
@ -424,7 +424,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -449,7 +449,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -403,8 +403,8 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 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/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], ["能耗", "单位产品标煤耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0], ["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
], ],
@ -729,13 +729,13 @@ export default {
that.tableDatas[3][8] = item5.goal_val; that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品综合电耗(KW·h/t" "单位产品综合电耗(kW·h/t"
) { ) {
that.tableDatas[5][6] = item5[str]; that.tableDatas[5][6] = item5[str];
that.tableDatas[5][8] = item5.goal_val; that.tableDatas[5][8] = item5.goal_val;

View File

@ -183,9 +183,9 @@ export default {
arr.push(item.run_rate); arr.push(item.run_rate);
// //
arr[5] = item.elec_consume_unit; //KW·h/t arr[5] = item.elec_consume_unit; //kW·h/t
arr[6] = item.celec_consume_unit; //KW·h/t// arr[6] = item.celec_consume_unit; //kW·h/t//
arr[7] = item.celec_consume_unit; //KW·h/t arr[7] = item.celec_consume_unit; //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -201,15 +201,15 @@ export default {
: "/" : "/"
: "/"; : "/";
} }
arr[8] = huanbi; //KW·h/t arr[8] = huanbi; //kW·h/t
arr[9] = item.celec_consume_unit; //KW·h/t arr[9] = item.celec_consume_unit; //kW·h/t
arr[10] = item.celec_consume_unit; //% arr[10] = item.celec_consume_unit; //%
arr[11] = item.celec_consume_unit; //% arr[11] = item.celec_consume_unit; //%
// //
arr[12] = item.elec_consume_unit; //KW·h/t arr[12] = item.elec_consume_unit; //kW·h/t
arr[13] = item.celec_consume_unit; //KW·h/t// arr[13] = item.celec_consume_unit; //kW·h/t//
arr[14] = item.celec_consume_unit; //KW·h/t arr[14] = item.celec_consume_unit; //kW·h/t
let ind_pre1 = 0, let ind_pre1 = 0,
huanbi1 = 0; huanbi1 = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -225,8 +225,8 @@ export default {
: "/" : "/"
: "/"; : "/";
} }
arr[15] = huanbi; //KW·h/t arr[15] = huanbi; //kW·h/t
arr[16] = item.celec_consume_unit; //KW·h/t arr[16] = item.celec_consume_unit; //kW·h/t
arr[17] = item.celec_consume_unit; //% arr[17] = item.celec_consume_unit; //%
arr[18] = item.celec_consume_unit; //% arr[18] = item.celec_consume_unit; //%
arr[19] = item.celec_consume_unit; //% arr[19] = item.celec_consume_unit; //%

View File

@ -55,11 +55,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -107,10 +107,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -157,10 +157,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -207,10 +207,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
</tr> </tr>
@ -348,7 +348,7 @@ export default {
monthGoal4 = []; monthGoal4 = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -366,7 +366,7 @@ export default {
that.monthGoal = monthGoal; that.monthGoal = monthGoal;
} }
if ( if (
goal.goal_cate_name == "单位产品综合电耗(KW·h/t" goal.goal_cate_name == "单位产品综合电耗(kW·h/t"
) { ) {
monthGoal2[0] = goal.goal_val; monthGoal2[0] = goal.goal_val;
monthGoal2[1] = goal.goal_val_2; monthGoal2[1] = goal.goal_val_2;
@ -478,7 +478,7 @@ export default {
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
: "/"; : "/";
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (arrs[2] !== "/") { if (arrs[2] !== "/") {
diff = arrs[1] - arrs[2]; diff = arrs[1] - arrs[2];
@ -486,7 +486,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -504,7 +504,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {
@ -549,7 +549,7 @@ export default {
arrs2[3] = 48; arrs2[3] = 48;
arrs2[4] = 57; arrs2[4] = 57;
arrs2[5] = 61; arrs2[5] = 61;
//KW·h/t //kW·h/t
let lastNum2 = 0, let lastNum2 = 0,
lastDiff2 = 0; lastDiff2 = 0;
if (index > 1) { if (index > 1) {
@ -610,7 +610,7 @@ export default {
arrs3[3] = 94; arrs3[3] = 94;
arrs3[4] = 100; arrs3[4] = 100;
arrs3[5] = 109; arrs3[5] = 109;
//KW·h/t //kW·h/t
let lastNum3 = 0, let lastNum3 = 0,
lastDiff3 = 0; lastDiff3 = 0;
if (index > 1) { if (index > 1) {
@ -671,7 +671,7 @@ export default {
arrs4[3] = 100; arrs4[3] = 100;
arrs4[4] = 107; arrs4[4] = 107;
arrs4[5] = 117; arrs4[5] = 117;
//KW·h/t //kW·h/t
let lastNum4 = 0, let lastNum4 = 0,
lastDiff4 = 0; lastDiff4 = 0;
if (index > 1) { if (index > 1) {

View File

@ -302,7 +302,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -345,7 +345,7 @@ export default {
}, },
tableDatas: [ tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0], ["产量", "总产量t", 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],
], ],
searchDate: "", searchDate: "",
tableName: "生产报告", tableName: "生产报告",
@ -572,7 +572,7 @@ export default {
that.tableDatas[0][8] = item5.goal_val; that.tableDatas[0][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[1][6] = item5[str]; that.tableDatas[1][6] = item5[str];
that.tableDatas[1][8] = item5.goal_val; that.tableDatas[1][8] = item5.goal_val;

View File

@ -43,11 +43,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -156,7 +156,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -213,7 +213,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -225,8 +225,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = item[1] - item[2]; diff = item[1] - item[2];
@ -234,7 +234,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -252,7 +252,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -207,7 +207,7 @@
<td class="numCell"> <td class="numCell">
{{ reportItem.shut_sec }} {{ reportItem.shut_sec }}
</td> </td>
<td class="numCell">分布电耗KW·h/t</td> <td class="numCell">分布电耗kW·h/t</td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}
</td> </td>

View File

@ -203,7 +203,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -245,8 +245,8 @@ export default {
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["循环风机1906", "", "KW·h/t", "", "", ""], ["循环风机1906", "", "kW·h/t", "", "", ""],
["系统风机", "", "KW·h/t", "", "", ""], ["系统风机", "", "kW·h/t", "", "", ""],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -507,7 +507,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index] = obj; that.tableDatas[index] = obj;
@ -544,7 +544,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -571,7 +571,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[5] = item.elec_consume_unit; obj[5] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -293,8 +293,8 @@ let tooltip = {
triggerOn: "mousemove", triggerOn: "mousemove",
}; };
let grid = { let grid = {
right: "10%", right: "11%",
left: "10%", left: "11%",
top: "20%", top: "20%",
}; };
let toolbox = { let toolbox = {
@ -345,7 +345,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
nameRotate: 30, nameRotate: 30,
@ -361,7 +361,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "成本(元)", name: "成本(元/吨)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
nameRotate: 30, nameRotate: 30,
@ -409,9 +409,9 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"], ["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 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],
["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0], ["能耗", "单位产品综合能耗kgce/t", 0, 0, 0, 0, 0, 0, 0, 0],
["能耗", "总电耗(KW·h", 0, 0, 0, 0, "/", "/", "/", "/"], ["能耗", "总电耗(kW·h", 0, 0, 0, 0, "/", "/", "/", "/"],
["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0], ["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
], ],
tableName: "生产报告", tableName: "生产报告",
@ -428,7 +428,10 @@ export default {
tooltip: tooltip, tooltip: tooltip,
grid: grid, grid: grid,
toolbox: toolbox, toolbox: toolbox,
legend: legend, legend: {
top: "2%",
data: ["总产量", "分布电耗", "成本"],
},
xAxis: { xAxis: {
axisTick: { axisTick: {
show: true, show: true,
@ -713,7 +716,7 @@ export default {
// that.tableDatas[3][8] = item5.goal_val; // that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
@ -877,15 +880,15 @@ export default {
data.forEach((item) => { data.forEach((item) => {
let ind = item.hour; let ind = item.hour;
seriesData0[ind] = item.total_production; seriesData0[ind] = item.total_production;
seriesData1[ind] = item.production_hour; // seriesData1[ind] = item.production_hour;
seriesData2[ind] = item.run_rate; // seriesData2[ind] = item.run_rate;
seriesData3[ind] = item.production_cost_unit; seriesData3[ind] = item.production_cost_unit;
seriesData4[ind] = item.elec_consume_unit; seriesData4[ind] = item.elec_consume_unit;
}); });
let options = { ...that.option1 }; let options = { ...that.option1 };
options.series[0].data = seriesData0; options.series[0].data = seriesData0;
options.series[1].data = seriesData1; // options.series[1].data = seriesData1;
options.series[2].data = seriesData2; // options.series[2].data = seriesData2;
options.series[3].data = seriesData4; options.series[3].data = seriesData4;
options.series[4].data = seriesData3; options.series[4].data = seriesData3;
let hourXAxis = []; let hourXAxis = [];

View File

@ -58,8 +58,8 @@
<th>比表面积%</th> <th>比表面积%</th>
<th>SO3%</th> <th>SO3%</th>
<th>掺量%</th> <th>掺量%</th>
<th>原料循环风机KW·h/t</th> <th>原料循环风机kW·h/t</th>
<th>系统风机KW·h/t</th> <th>系统风机kW·h/t</th>
<th>目标值kW·h/t</th> <th>目标值kW·h/t</th>
<th>当期值kW·h/t</th> <th>当期值kW·h/t</th>
<th>当期与目标值差值kW·h/t</th> <th>当期与目标值差值kW·h/t</th>
@ -129,7 +129,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
this.getData(item); this.getData(item);
} }
}) })
@ -225,13 +225,13 @@ export default {
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
if (goalData.length > 0){ if (goalData.length > 0){
goalData.forEach((item) => { goalData.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t"){ if (item.goal_cate_name == "单位产品分布电耗(kW·h/t"){
arr[11] = item[keyVale]; //KW·h/t// arr[11] = item[keyVale]; //kW·h/t//
} }
}); });
}; };
arr[12] = item.elec_consume_unit; //KW·h/t arr[12] = item.elec_consume_unit; //kW·h/t
arr[13] = (item.elec_consume_unit - arr[11]).toFixed(2); //KW·h/t arr[13] = (item.elec_consume_unit - arr[11]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanqi = 0, huanqi = 0,
huanqicha = 0, huanqicha = 0,
@ -250,13 +250,13 @@ export default {
} }
}) })
} }
arr[14] = huanqi; //KW·h/t arr[14] = huanqi; //kW·h/t
if (huanqi !== "/") { if (huanqi !== "/") {
huanqicha = (item.elec_consume_unit - huanqi).toFixed(2); huanqicha = (item.elec_consume_unit - huanqi).toFixed(2);
} else { } else {
huanqicha = item.elec_consume_unit; huanqicha = item.elec_consume_unit;
} }
arr[15] = huanqicha; //KW·h/t arr[15] = huanqicha; //kW·h/t
arr[16] = arr[16] =
huanqi != "/" && huanqicha!=0 && huanqi!=0 ? ((huanqicha / huanqi) * 100).toFixed(2) :"/" ; //% huanqi != "/" && huanqicha!=0 && huanqi!=0 ? ((huanqicha / huanqi) * 100).toFixed(2) :"/" ; //%
if (wrapArr0[n]) { if (wrapArr0[n]) {

View File

@ -57,10 +57,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
<th rowspan="2">分析说明</th> <th rowspan="2">分析说明</th>
@ -120,10 +120,10 @@
</tr> </tr>
<tr> <tr>
<th rowspan="2">月份</th> <th rowspan="2">月份</th>
<th rowspan="2">当期值KW·h/t</th> <th rowspan="2">当期值kW·h/t</th>
<th rowspan="2">目标值KW·h/t</th> <th rowspan="2">目标值kW·h/t</th>
<th colspan="3">国家标准KW·h/t</th> <th colspan="3">国家标准kW·h/t</th>
<th rowspan="2">当期与环期差值KW·h/t</th> <th rowspan="2">当期与环期差值kW·h/t</th>
<th rowspan="2">环比增长率%</th> <th rowspan="2">环比增长率%</th>
<th rowspan="2">同比增长率%</th> <th rowspan="2">同比增长率%</th>
<th rowspan="2">分析说明</th> <th rowspan="2">分析说明</th>
@ -260,7 +260,7 @@ export default {
let monthGoal2 = []; let monthGoal2 = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -335,12 +335,12 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
: "/"; : "/";
arr.push(item.cen_consume_unit); //KW·h/t arr.push(item.cen_consume_unit); //kW·h/t
arr[4] = that.monthGoal2[ind] !== undefined arr[4] = that.monthGoal2[ind] !== undefined
? that.monthGoal2[ind] ? that.monthGoal2[ind]
: "/"; : "/";
@ -358,7 +358,7 @@ export default {
arrs[3] = 26; arrs[3] = 26;
arrs[4] = 29; arrs[4] = 29;
arrs[5] = 34; arrs[5] = 34;
//KW·h/t //kW·h/t
let lastNum = 0, let lastNum = 0,
lastDiff = 0; lastDiff = 0;
if (index > 0) { if (index > 0) {
@ -421,7 +421,7 @@ export default {
arrs2[3] = 80; arrs2[3] = 80;
arrs2[4] = 87; arrs2[4] = 87;
arrs2[5] = 94; arrs2[5] = 94;
//KW·h/t //kW·h/t
let lastNum2 = 0, let lastNum2 = 0,
lastDiff2 = 0; lastDiff2 = 0;
if (index >= 1) { if (index >= 1) {

View File

@ -76,6 +76,10 @@
width="190" width="190"
fixed="left" fixed="left"
></el-table-column> ></el-table-column>
<el-table-column
label="年份"
prop="year"
></el-table-column>
<el-table-column <el-table-column
label="1月" label="1月"
prop="goal_val_1" prop="goal_val_1"

View File

@ -190,7 +190,7 @@
{{ reportItem.total_production }} {{ reportItem.total_production }}
</td> </td>
<td class="numCell"> <td class="numCell">
单位产品分布电耗KW·h/t 单位产品分布电耗kW·h/t
</td> </td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}

View File

@ -289,7 +289,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -345,8 +345,8 @@ export default {
["出厂水泥", "袋装水泥(t)", 0,0, 0, 0], ["出厂水泥", "袋装水泥(t)", 0,0, 0, 0],
["出厂水泥", "出厂水泥合计t", 0,0, 0, 0, 0, 0, 0, 0], ["出厂水泥", "出厂水泥合计t", 0,0, 0, 0, 0, 0, 0, 0],
["出厂熟料", "熟料t", 0,0, 0, 0], ["出厂熟料", "熟料t", 0,0, 0, 0],
["能耗", "单位产品分布电耗(KW·h/t", 0,0, 0, 0], ["能耗", "单位产品分布电耗(kW·h/t", 0,0, 0, 0],
["能耗", "总电耗(KW·h", 0,0, 0, 0], ["能耗", "总电耗(kW·h", 0,0, 0, 0],
], ],
tableName: "生产报告", tableName: "生产报告",

View File

@ -175,11 +175,11 @@ export default {
arr.push(item.team_name); arr.push(item.team_name);
arr.push(item.total_production); arr.push(item.total_production);
arr[3] = item.elec_consume_unit; //KW·h/t arr[3] = item.elec_consume_unit; //kW·h/t
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[4] = goalData[keyVale]; //KW·h/t// arr[4] = goalData[keyVale]; //kW·h/t//
arr[5] = (arr[3] - arr[4]).toFixed(2); //KW·h/t arr[5] = (arr[3] - arr[4]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -195,17 +195,17 @@ export default {
} }
}) })
} }
arr[6] = huanbi; //KW·h/t\ arr[6] = huanbi; //kW·h/t\
if (arr[6] !== "/"){ if (arr[6] !== "/"){
arr[7] = (arr[3] - arr[6]).toFixed(2); //KW·h/t arr[7] = (arr[3] - arr[6]).toFixed(2); //kW·h/t
}else{ }else{
arr[7] = "/"; //KW·h/t arr[7] = "/"; //kW·h/t
} }
// console.log(arr[7], arr[6]) // console.log(arr[7], arr[6])
if (arr[7] !=="/" && arr[6] !==0 && arr[7] !== "undefined"){ if (arr[7] !=="/" && arr[6] !==0 && arr[7] !== "undefined"){
arr[8] = ((arr[7]/arr[6])*100).toFixed(2); arr[8] = ((arr[7]/arr[6])*100).toFixed(2);
}else{ }else{
arr[8] = "/"; //%= KW·h/t/KW·h/t*100% arr[8] = "/"; //%= kW·h/t/kW·h/t*100%
} }
let sameRate = 0; let sameRate = 0;
if ( if (

View File

@ -44,11 +44,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -171,7 +171,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -228,7 +228,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -242,8 +242,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = (item[1] - item[2]).toFixed(2); diff = (item[1] - item[2]).toFixed(2);
@ -251,7 +251,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -269,7 +269,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -115,15 +115,15 @@
[4,'主机设备台产','回转窑台产t/h'], [4,'主机设备台产','回转窑台产t/h'],
[5,'主机设备台产','水泥磨台产t/h'], [5,'主机设备台产','水泥磨台产t/h'],
[6,'能耗','熟料日综合电耗kw.h/t'], [6,'能耗','熟料日综合电耗kh/t'],
[7,'能耗','熟料日单位标煤耗(kgce/t)'], [7,'能耗','熟料日单位标煤耗(kgce/t)'],
[8,'能耗','熟料日综合能耗(kgce/t)'], [8,'能耗','熟料日综合能耗(kgce/t)'],
[9,'能耗','水泥日综合能耗(kgce/t)'], [9,'能耗','水泥日综合能耗(kgce/t)'],
[10,'能耗','日电石渣分布电耗kw.h/t'], [10,'能耗','日电石渣分布电耗kh/t'],
[11,'能耗','日生料分布电耗kw.h/t'], [11,'能耗','日生料分布电耗kh/t'],
[12,'能耗','日熟料分布电耗kw.h/t'], [12,'能耗','日熟料分布电耗kh/t'],
[13,'能耗','日水泥粉磨分布电耗kw.h/t'], [13,'能耗','日水泥粉磨分布电耗kh/t'],
[14,'能耗','日水泥包装分布电耗kw.h/t'], [14,'能耗','日水泥包装分布电耗kh/t'],
[15,'产量','日电石渣产量(t)'], [15,'产量','日电石渣产量(t)'],
@ -150,12 +150,12 @@
// [33,'','(/)'], // [33,'','(/)'],
[33,'耗电量','日电石渣耗电量kw.h'], [33,'耗电量','日电石渣耗电量kh'],
[34,'耗电量','日生料耗电量kw.h'], [34,'耗电量','日生料耗电量kh'],
[35,'耗电量','日熟料耗电量kw.h'], [35,'耗电量','日熟料耗电量kh'],
[36,'耗电量','日水泥粉磨耗电量kw.h'], [36,'耗电量','日水泥粉磨耗电量kh'],
[37,'耗电量','日水泥包装耗电量kw.h'], [37,'耗电量','日水泥包装耗电量kh'],
[38,'耗电量','日生活区耗电量kw.h'], [38,'耗电量','日生活区耗电量kh'],
], ],
year:'', year:'',
@ -233,7 +233,7 @@
that.tableDatas[2][3] = dataList.煤磨.production_hour; that.tableDatas[2][3] = dataList.煤磨.production_hour;
that.tableDatas[3][3] = dataList.回转窑.production_hour; that.tableDatas[3][3] = dataList.回转窑.production_hour;
that.tableDatas[4][3] = dataList.水泥磨.production_hour; that.tableDatas[4][3] = dataList.水泥磨.production_hour;
//kw.h/t //kW·h/t
that.tableDatas[5][3] = dataList.回转窑.celec_consume_unit; that.tableDatas[5][3] = dataList.回转窑.celec_consume_unit;
that.tableDatas[6][3] = dataList.回转窑.coal_consume_unit; that.tableDatas[6][3] = dataList.回转窑.coal_consume_unit;
that.tableDatas[7][3] = dataList.回转窑.cen_consume_unit; that.tableDatas[7][3] = dataList.回转窑.cen_consume_unit;
@ -254,7 +254,7 @@
that.tableDatas[30][3] = dataList.回转窑.production_cost_unit; that.tableDatas[30][3] = dataList.回转窑.production_cost_unit;
that.tableDatas[31][3] = dataList.水泥磨.production_cost_unit; that.tableDatas[31][3] = dataList.水泥磨.production_cost_unit;
// that.tableDatas[32][3] = dataList..production_cost_unit; // that.tableDatas[32][3] = dataList..production_cost_unit;
//kw.h //kW·h
that.tableDatas[32][3] = dataList.电石渣.elec_consume; that.tableDatas[32][3] = dataList.电石渣.elec_consume;
that.tableDatas[33][3] = dataList.原料磨.elec_consume; that.tableDatas[33][3] = dataList.原料磨.elec_consume;
that.tableDatas[34][3] = dataList.回转窑.elec_consume; that.tableDatas[34][3] = dataList.回转窑.elec_consume;

View File

@ -114,7 +114,7 @@
['台产(t/h)'], ['台产(t/h)'],
['质量'], ['质量'],
['煤耗(t)'], ['煤耗(t)'],
['电耗(kw.h)'], ['电耗(kh)'],
['柴油消耗(t)'], ['柴油消耗(t)'],
['绿化水耗(m³)'], ['绿化水耗(m³)'],
['生活水耗(m³)'], ['生活水耗(m³)'],

View File

@ -94,15 +94,15 @@
[4,'主机设备台产','回转窑台产t/h'], [4,'主机设备台产','回转窑台产t/h'],
[5,'主机设备台产','水泥磨台产t/h'], [5,'主机设备台产','水泥磨台产t/h'],
[6,'能耗','熟料月综合电耗kw.h/t'], [6,'能耗','熟料月综合电耗kh/t'],
[7,'能耗','熟料月单位标煤耗(kgce/t)'], [7,'能耗','熟料月单位标煤耗(kgce/t)'],
[8,'能耗','熟料月综合能耗(kgce/t)'], [8,'能耗','熟料月综合能耗(kgce/t)'],
[9,'能耗','水泥月综合能耗(kgce/t)'], [9,'能耗','水泥月综合能耗(kgce/t)'],
[10,'能耗','月电石渣分布电耗kw.h/t'], [10,'能耗','月电石渣分布电耗kh/t'],
[11,'能耗','月生料分布电耗kw.h/t'], [11,'能耗','月生料分布电耗kh/t'],
[12,'能耗','月熟料分布电耗kw.h/t'], [12,'能耗','月熟料分布电耗kh/t'],
[13,'能耗','月水泥粉磨分布电耗kw.h/t'], [13,'能耗','月水泥粉磨分布电耗kh/t'],
[14,'能耗','月水泥包装分布电耗kw.h/t'], [14,'能耗','月水泥包装分布电耗kh/t'],
[15,'产量','月电石渣产量(t)'], [15,'产量','月电石渣产量(t)'],
@ -123,12 +123,12 @@
[29,'成本','月水泥粉磨成本(元/吨)'], [29,'成本','月水泥粉磨成本(元/吨)'],
// [30,'','(/)'], // [30,'','(/)'],
[30,'耗电量','月电石渣耗电量kw.h'], [30,'耗电量','月电石渣耗电量kh'],
[31,'耗电量','月生料耗电量kw.h'], [31,'耗电量','月生料耗电量kh'],
[32,'耗电量','月熟料耗电量kw.h'], [32,'耗电量','月熟料耗电量kh'],
[33,'耗电量','月水泥粉磨耗电量kw.h'], [33,'耗电量','月水泥粉磨耗电量kh'],
[34,'耗电量','月水泥包装耗电量kw.h'], [34,'耗电量','月水泥包装耗电量kh'],
[35,'耗电量','月生活区耗电量kw.h'], [35,'耗电量','月生活区耗电量kh'],
], ],
year:'', year:'',
month:'', month:'',
@ -199,7 +199,7 @@
that.tableDatas[3][3] = dataList.回转窑.production_hour; that.tableDatas[3][3] = dataList.回转窑.production_hour;
that.nowData[4] = dataList.水泥磨.production_hour; that.nowData[4] = dataList.水泥磨.production_hour;
that.tableDatas[4][3] = dataList.水泥磨.production_hour; that.tableDatas[4][3] = dataList.水泥磨.production_hour;
//kw.h/t //kW·h/t
that.nowData[5] = dataList.回转窑.celec_consume_unit; that.nowData[5] = dataList.回转窑.celec_consume_unit;
that.tableDatas[5][3] = dataList.回转窑.celec_consume_unit; that.tableDatas[5][3] = dataList.回转窑.celec_consume_unit;
that.nowData[6] = dataList.回转窑.coal_consume_unit; that.nowData[6] = dataList.回转窑.coal_consume_unit;
@ -239,7 +239,7 @@
that.tableDatas[28][3] = dataList.水泥磨.production_cost_unit; that.tableDatas[28][3] = dataList.水泥磨.production_cost_unit;
that.nowData[29] = dataList.水泥包装.production_cost_unit; that.nowData[29] = dataList.水泥包装.production_cost_unit;
that.tableDatas[29][3] = dataList.水泥包装.production_cost_unit; that.tableDatas[29][3] = dataList.水泥包装.production_cost_unit;
//kw.h //kW·h
// that.nowData[30] = dataList..elec_consume; // that.nowData[30] = dataList..elec_consume;
// that.tableDatas[30][3] = dataList..elec_consume; // that.tableDatas[30][3] = dataList..elec_consume;
that.nowData[30] = dataList.原料磨.elec_consume; that.nowData[30] = dataList.原料磨.elec_consume;
@ -331,7 +331,7 @@
that.tableDatas[2][4] = this.canCompute(that.nowData[2],dataList.煤磨.production_hour); that.tableDatas[2][4] = this.canCompute(that.nowData[2],dataList.煤磨.production_hour);
that.tableDatas[3][4] = this.canCompute(that.nowData[3],dataList.回转窑.production_hour); that.tableDatas[3][4] = this.canCompute(that.nowData[3],dataList.回转窑.production_hour);
that.tableDatas[4][4] = this.canCompute(that.nowData[4],dataList.水泥磨.production_hour); that.tableDatas[4][4] = this.canCompute(that.nowData[4],dataList.水泥磨.production_hour);
//kw.h/t //kW·h/t
that.tableDatas[5][4] = this.canCompute(that.nowData[5],dataList.回转窑.celec_consume_unit); that.tableDatas[5][4] = this.canCompute(that.nowData[5],dataList.回转窑.celec_consume_unit);
that.tableDatas[6][4] = this.canCompute(that.nowData[6],dataList.回转窑.coal_consume_unit); that.tableDatas[6][4] = this.canCompute(that.nowData[6],dataList.回转窑.coal_consume_unit);
that.tableDatas[7][4] = this.canCompute(that.nowData[7],dataList.回转窑.cen_consume_unit); that.tableDatas[7][4] = this.canCompute(that.nowData[7],dataList.回转窑.cen_consume_unit);
@ -352,7 +352,7 @@
that.tableDatas[27][4] = this.canCompute(that.nowData[27],dataList.回转窑.production_cost_unit); that.tableDatas[27][4] = this.canCompute(that.nowData[27],dataList.回转窑.production_cost_unit);
that.tableDatas[28][4] = this.canCompute(that.nowData[28],dataList.水泥磨.production_cost_unit); that.tableDatas[28][4] = this.canCompute(that.nowData[28],dataList.水泥磨.production_cost_unit);
that.tableDatas[29][4] = this.canCompute(that.nowData[29],dataList.水泥包装.production_cost_unit); that.tableDatas[29][4] = this.canCompute(that.nowData[29],dataList.水泥包装.production_cost_unit);
//kw.h //kW·h
// that.tableDatas[30][4] = this.canCompute(that.nowData[30],dataList..elec_consume); // that.tableDatas[30][4] = this.canCompute(that.nowData[30],dataList..elec_consume);
that.tableDatas[30][4] = this.canCompute(that.nowData[30],dataList.原料磨.elec_consume); that.tableDatas[30][4] = this.canCompute(that.nowData[30],dataList.原料磨.elec_consume);
that.tableDatas[31][4] = this.canCompute(that.nowData[31],dataList.回转窑.elec_consume); that.tableDatas[31][4] = this.canCompute(that.nowData[31],dataList.回转窑.elec_consume);
@ -414,7 +414,7 @@
that.tableDatas[2][5] = this.canCompute(that.nowData[2],dataList.煤磨.production_hour); that.tableDatas[2][5] = this.canCompute(that.nowData[2],dataList.煤磨.production_hour);
that.tableDatas[3][5] = this.canCompute(that.nowData[3],dataList.回转窑.production_hour); that.tableDatas[3][5] = this.canCompute(that.nowData[3],dataList.回转窑.production_hour);
that.tableDatas[4][5] = this.canCompute(that.nowData[4],dataList.水泥磨.production_hour); that.tableDatas[4][5] = this.canCompute(that.nowData[4],dataList.水泥磨.production_hour);
//kw.h/t //kW·h/t
that.tableDatas[5][5] = this.canCompute(that.nowData[5],dataList.回转窑.celec_consume_unit); that.tableDatas[5][5] = this.canCompute(that.nowData[5],dataList.回转窑.celec_consume_unit);
that.tableDatas[6][5] = this.canCompute(that.nowData[6],dataList.回转窑.coal_consume_unit); that.tableDatas[6][5] = this.canCompute(that.nowData[6],dataList.回转窑.coal_consume_unit);
that.tableDatas[7][5] = this.canCompute(that.nowData[7],dataList.回转窑.cen_consume_unit); that.tableDatas[7][5] = this.canCompute(that.nowData[7],dataList.回转窑.cen_consume_unit);
@ -435,7 +435,7 @@
that.tableDatas[27][5] = this.canCompute(that.nowData[27],dataList.回转窑.production_cost_unit); that.tableDatas[27][5] = this.canCompute(that.nowData[27],dataList.回转窑.production_cost_unit);
that.tableDatas[28][5] = this.canCompute(that.nowData[28],dataList.水泥磨.production_cost_unit); that.tableDatas[28][5] = this.canCompute(that.nowData[28],dataList.水泥磨.production_cost_unit);
that.tableDatas[29][5] = this.canCompute(that.nowData[29],dataList.水泥包装.production_cost_unit); that.tableDatas[29][5] = this.canCompute(that.nowData[29],dataList.水泥包装.production_cost_unit);
//kw.h //kW·h
// that.tableDatas[30][5] = this.canCompute(that.nowData[30],dataList..elec_consume); // that.tableDatas[30][5] = this.canCompute(that.nowData[30],dataList..elec_consume);
that.tableDatas[30][5] = this.canCompute(that.nowData[30],dataList.原料磨.elec_consume); that.tableDatas[30][5] = this.canCompute(that.nowData[30],dataList.原料磨.elec_consume);
that.tableDatas[31][5] = this.canCompute(that.nowData[31],dataList.回转窑.elec_consume); that.tableDatas[31][5] = this.canCompute(that.nowData[31],dataList.回转窑.elec_consume);

View File

@ -195,7 +195,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -237,11 +237,11 @@ export default {
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["立磨主电机", "", "KW·h/t", "", "", ""], ["立磨主电机", "", "kW·h/t", "", "", ""],
["循环风机", "", "KW·h/t", "", "", ""], ["循环风机", "", "kW·h/t", "", "", ""],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -484,7 +484,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[4] = 0; obj[4] = 0;
obj[5] = 0; obj[5] = 0;
@ -523,7 +523,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -553,7 +553,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[5] = item.elec_consume_unit; obj[5] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -25,7 +25,7 @@
> >
<thead class="myTableHead"> <thead class="myTableHead">
<tr> <tr>
<th colspan="10">生料工序生产报告</th> <th colspan="10">生料辅料工序生产报告</th>
</tr> </tr>
<tr> <tr>
<th colspan="2">参数</th> <th colspan="2">参数</th>
@ -295,8 +295,8 @@ let tooltip = {
// alwaysShowContent:true, // alwaysShowContent:true,
}; };
let grid = { let grid = {
right: "10%", right: "11%",
left: "10%", left: "11%",
top: "15%", top: "15%",
}; };
let toolbox = { let toolbox = {
@ -344,7 +344,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h)", name: "分布电耗(kW·h)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -388,11 +388,11 @@ export default {
}, },
tableDatas: [ tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0], ["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0],
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", 0, 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"], ["运转时间", "运转时间h", 0, 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 0, 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, "/", "/", "/","/"], ["能耗", "总电耗(kW·h", 0, 0, 0, 0, "/", "/", "/","/"],
// ["", "/", 0, 0, 0, 0, 0, 0, 0, 0], // ["", "/", 0, 0, 0, 0, 0, 0, 0, 0],
], ],
tableName: "生产报告", tableName: "生产报告",
@ -409,7 +409,10 @@ export default {
tooltip: tooltip, tooltip: tooltip,
grid: grid, grid: grid,
toolbox: toolbox, toolbox: toolbox,
legend: legend, legend: {
top: "2%",
data: ["总产量", "分布电耗"],
},
xAxis: { xAxis: {
axisTick: { axisTick: {
show: true, show: true,
@ -641,7 +644,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h)", name: "分布电耗(kW·h)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -806,6 +809,9 @@ export default {
that.tableDatas[4][2] = 0; that.tableDatas[4][2] = 0;
that.tableDatas[5][2] = 0; that.tableDatas[5][2] = 0;
}else { }else {
that.tableDatas[1][2] = data4.production_hour;
that.tableDatas[2][2] = data4.run_hour;
that.tableDatas[3][2] = data4.run_rate;
that.tableDatas[4][2] = data4.elec_consume_unit; that.tableDatas[4][2] = data4.elec_consume_unit;
that.tableDatas[5][2] = data4.elec_consume; that.tableDatas[5][2] = data4.elec_consume;
} }
@ -846,7 +852,7 @@ export default {
// that.tableDatas[3][8] = item5.goal_val; // that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
@ -996,14 +1002,14 @@ export default {
data.forEach((item) => { data.forEach((item) => {
let ind = item.hour; let ind = item.hour;
seriesData0[ind] = item.total_production; seriesData0[ind] = item.total_production;
seriesData1[ind] = Number(item.production_hour).toFixed(2); // seriesData1[ind] = Number(item.production_hour).toFixed(2);
seriesData2[ind] = item.run_rate; // seriesData2[ind] = item.run_rate;
seriesData3[ind] = item.elec_consume_unit; seriesData3[ind] = item.elec_consume_unit;
}); });
let options = { ...that.option1 }; let options = { ...that.option1 };
options.series[0].data = seriesData0; options.series[0].data = seriesData0;
options.series[1].data = seriesData1; // options.series[1].data = seriesData1;
options.series[2].data = seriesData2; // options.series[2].data = seriesData2;
options.series[3].data = seriesData3; options.series[3].data = seriesData3;
let hourXAxis = []; let hourXAxis = [];
for (let i = 0; i < 24; i++) { for (let i = 0; i < 24; i++) {

View File

@ -62,14 +62,14 @@
<th>Fe₂O₃%</th> <th>Fe₂O₃%</th>
<th>水分%</th> <th>水分%</th>
<th>CaO%</th> <th>CaO%</th>
<th>循环风机KW·h/t</th> <th>循环风机kW·h/t</th>
<th>立磨主电机KW·h/t</th> <th>立磨主电机kW·h/t</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -121,7 +121,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
that.getData(item); that.getData(item);
} }
}) })
@ -140,7 +140,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
this.getData(item); this.getData(item);
} }
}) })
@ -247,10 +247,10 @@ export default {
? item.立磨主电机_consume_unit ? item.立磨主电机_consume_unit
: "/"; : "/";
// //
arr[15] = item.elec_consume_unit; //KW·h/t arr[15] = item.elec_consume_unit; //kW·h/t
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[16] = goalData[keyVale]?goalData[keyVale]:0; //KW·h/t// arr[16] = goalData[keyVale]?goalData[keyVale]:0; //kW·h/t//
arr[17] = (arr[15] - arr[16]).toFixed(2); //KW·h/t arr[17] = (arr[15] - arr[16]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -266,18 +266,18 @@ export default {
} }
}) })
} }
arr[18] = huanbi; //KW·h/t arr[18] = huanbi; //kW·h/t
//KW·h/t //kW·h/t
if (arr[19] !== "/"){ if (arr[19] !== "/"){
arr[19] = (arr[15] - arr[18]).toFixed(2); //KW·h/t arr[19] = (arr[15] - arr[18]).toFixed(2); //kW·h/t
}else{ }else{
arr[19] = "/"; //KW·h/t arr[19] = "/"; //kW·h/t
} }
arr[20] = 0; //% arr[20] = 0; //%
if (arr[18] !=="/" && arr[19] !==0 && arr[19] !== "undefined" && arr[18] !== 0){ if (arr[18] !=="/" && arr[19] !==0 && arr[19] !== "undefined" && arr[18] !== 0){
arr[20] = ((arr[19]/arr[18])*100).toFixed(2); arr[20] = ((arr[19]/arr[18])*100).toFixed(2);
}else{ }else{
arr[20] = "/"; //%= KW·h/t/KW·h/t*100% arr[20] = "/"; //%= kW·h/t/kW·h/t*100%
} }
arr[21] = item.celec_consume_unit; //% arr[21] = item.celec_consume_unit; //%

View File

@ -44,11 +44,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -172,7 +172,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -228,7 +228,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -242,8 +242,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = (item[1] - item[2]).toFixed(2); diff = (item[1] - item[2]).toFixed(2);
@ -251,7 +251,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 0) { if (index > 0) {
let num = index - 1; let num = index - 1;
@ -269,7 +269,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -195,7 +195,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -237,11 +237,11 @@ export default {
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [ tableDatas: [
["立磨主电机", "", "KW·h/t", "", "", ""], ["立磨主电机", "", "kW·h/t", "", "", ""],
["循环风机", "", "KW·h/t", "", "", ""], ["循环风机", "", "kW·h/t", "", "", ""],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
// ['','','KW·h/t','','',''], // ['','','kW·h/t','','',''],
], ],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
@ -484,7 +484,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[4] = 0; obj[4] = 0;
obj[5] = 0; obj[5] = 0;
@ -523,7 +523,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -553,7 +553,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[5] = item.elec_consume_unit; obj[5] = item.elec_consume_unit;
obj[6] = item.mpoint; obj[6] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -344,7 +344,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h)", name: "分布电耗(kW·h)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -359,7 +359,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "成本(元)", name: "成本(元/吨)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
offset: 70, offset: 70,
@ -407,8 +407,8 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"], ["运转时间", "运转时间h", "/", 0, 0, "/", 0, 0, "/", "/"],
["运转时间", "运转率(%", "/", 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, "/", "/", "/","/"], ["能耗", "总电耗(kW·h", 0, 0, 0, 0, "/", "/", "/","/"],
["成本", "生料成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0], ["成本", "生料成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
], ],
tableName: "生产报告", tableName: "生产报告",
@ -425,7 +425,10 @@ export default {
tooltip: tooltip, tooltip: tooltip,
grid: grid, grid: grid,
toolbox: toolbox, toolbox: toolbox,
legend: legend, legend: {
top: "2%",
data: ["总产量", "分布电耗", "成本"],
},
xAxis: { xAxis: {
axisTick: { axisTick: {
show: true, show: true,
@ -676,7 +679,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "成本(元)", name: "成本(元/吨)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
offset: 160, offset: 160,
@ -692,7 +695,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h)", name: "分布电耗(kW·h)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -858,6 +861,9 @@ export default {
that.tableDatas[5][2] = 0; that.tableDatas[5][2] = 0;
that.tableDatas[6][2] = 0; that.tableDatas[6][2] = 0;
}else { }else {
that.tableDatas[1][2] = data4.production_hour;
that.tableDatas[2][2] = data4.run_hour;
that.tableDatas[3][2] = data4.run_rate;
that.tableDatas[4][2] = data4.elec_consume_unit; that.tableDatas[4][2] = data4.elec_consume_unit;
that.tableDatas[5][2] = data4.elec_consume; that.tableDatas[5][2] = data4.elec_consume;
that.tableDatas[6][2] = data4.production_cost_unit;} that.tableDatas[6][2] = data4.production_cost_unit;}
@ -898,7 +904,7 @@ export default {
// that.tableDatas[3][8] = item5.goal_val; // that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;
@ -1070,15 +1076,15 @@ export default {
data.forEach((item) => { data.forEach((item) => {
let ind = item.hour; let ind = item.hour;
seriesData0[ind] = item.total_production; seriesData0[ind] = item.total_production;
seriesData1[ind] = Number(item.production_hour).toFixed(2); // seriesData1[ind] = Number(item.production_hour).toFixed(2);
seriesData2[ind] = item.run_rate; // seriesData2[ind] = item.run_rate;
seriesData3[ind] = item.elec_consume_unit; seriesData3[ind] = item.elec_consume_unit;
seriesData4[ind] = item.production_cost_unit; seriesData4[ind] = item.production_cost_unit;
}); });
let options = { ...that.option1 }; let options = { ...that.option1 };
options.series[0].data = seriesData0; options.series[0].data = seriesData0;
options.series[1].data = seriesData1; // options.series[1].data = seriesData1;
options.series[2].data = seriesData2; // options.series[2].data = seriesData2;
options.series[3].data = seriesData3; options.series[3].data = seriesData3;
options.series[4].data = seriesData4; options.series[4].data = seriesData4;
let hourXAxis = []; let hourXAxis = [];

View File

@ -62,14 +62,14 @@
<th>Fe₂O₃%</th> <th>Fe₂O₃%</th>
<th>水分%</th> <th>水分%</th>
<th>CaO%</th> <th>CaO%</th>
<th>循环风机KW·h/t</th> <th>循环风机kW·h/t</th>
<th>立磨主电机KW·h/t</th> <th>立磨主电机kW·h/t</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -121,7 +121,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
that.getData(item); that.getData(item);
} }
}) })
@ -140,7 +140,7 @@ export default {
this.$API.mtm.goal.list.req(params).then((res) => { this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗(KW·h/t") { if (item.goal_cate_name == "单位产品分布电耗(kW·h/t") {
this.getData(item); this.getData(item);
} }
}) })
@ -247,10 +247,10 @@ export default {
? item.立磨主电机_consume_unit ? item.立磨主电机_consume_unit
: "/"; : "/";
// //
arr[15] = item.elec_consume_unit; //KW·h/t arr[15] = item.elec_consume_unit; //kW·h/t
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[16] = goalData[keyVale]?goalData[keyVale]:0; //KW·h/t// arr[16] = goalData[keyVale]?goalData[keyVale]:0; //kW·h/t//
arr[17] = (arr[15] - arr[16]).toFixed(2); //KW·h/t arr[17] = (arr[15] - arr[16]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -266,18 +266,18 @@ export default {
} }
}) })
} }
arr[18] = huanbi; //KW·h/t arr[18] = huanbi; //kW·h/t
//KW·h/t //kW·h/t
if (arr[19] !== "/"){ if (arr[19] !== "/"){
arr[19] = (arr[15] - arr[18]).toFixed(2); //KW·h/t arr[19] = (arr[15] - arr[18]).toFixed(2); //kW·h/t
}else{ }else{
arr[19] = "/"; //KW·h/t arr[19] = "/"; //kW·h/t
} }
arr[20] = 0; //% arr[20] = 0; //%
if (arr[18] !=="/" && arr[19] !==0 && arr[19] !== "undefined" && arr[18] !== 0){ if (arr[18] !=="/" && arr[19] !==0 && arr[19] !== "undefined" && arr[18] !== 0){
arr[20] = ((arr[19]/arr[18])*100).toFixed(2); arr[20] = ((arr[19]/arr[18])*100).toFixed(2);
}else{ }else{
arr[20] = "/"; //%= KW·h/t/KW·h/t*100% arr[20] = "/"; //%= kW·h/t/kW·h/t*100%
} }
arr[21] = item.celec_consume_unit; //% arr[21] = item.celec_consume_unit; //%

View File

@ -44,11 +44,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -172,7 +172,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -228,7 +228,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -242,8 +242,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = (item[1] - item[2]).toFixed(2); diff = (item[1] - item[2]).toFixed(2);
@ -251,7 +251,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 0) { if (index > 0) {
let num = index - 1; let num = index - 1;
@ -269,7 +269,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -183,7 +183,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -225,8 +225,8 @@ export default {
searchDate: "", searchDate: "",
tableName: "主要设备单位产品电耗数据表", tableName: "主要设备单位产品电耗数据表",
tableDatas: [ tableDatas: [
// ["", "KW·h/t", "", "", ""], // ["", "kW·h/t", "", "", ""],
// ["", "KW·h/t", "", "", ""], // ["", "kW·h/t", "", "", ""],
], ],
modelValue: true, modelValue: true,
type: "hour_s", type: "hour_s",
@ -380,7 +380,7 @@ export default {
let index = that.mpoints.indexOf(item.mpoint_nickname); let index = that.mpoints.indexOf(item.mpoint_nickname);
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[2] = item.elec_consume_unit; obj[2] = item.elec_consume_unit;
obj[3] = 0; obj[3] = 0;
obj[4] = 0; obj[4] = 0;
@ -414,7 +414,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_d] = obj; that.tableDatas[index_d] = obj;
@ -440,7 +440,7 @@ export default {
} else { } else {
let obj = []; let obj = [];
obj[0] = item.mpoint_nickname; obj[0] = item.mpoint_nickname;
obj[1] = "KW·h/t"; obj[1] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
that.tableDatas[index_m] = obj; that.tableDatas[index_m] = obj;

View File

@ -24,7 +24,7 @@
> >
<thead class="myTableHead"> <thead class="myTableHead">
<tr> <tr>
<th colspan="10">生料工序生产报告</th> <th colspan="10">生料辅料工序生产报告</th>
</tr> </tr>
<tr> <tr>
<th colspan="2">参数</th> <th colspan="2">参数</th>
@ -352,7 +352,7 @@ let yAxis = [
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -399,7 +399,7 @@ export default {
["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0], ["产量", "台时产量t/h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转时间h", "/", 0, 0, 0, 0, 0, 0, 0],
["运转时间", "运转率(%", "/", 0, 0, 0, 0, 0, 0, 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],
], ],
tableName: "生产报告", tableName: "生产报告",
modelValue: true, modelValue: true,
@ -446,7 +446,7 @@ export default {
}, },
{ {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "right", position: "right",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
@ -691,7 +691,7 @@ export default {
that.tableDatas[3][8] = item5.goal_val; that.tableDatas[3][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[4][6] = item5[str]; that.tableDatas[4][6] = item5[str];
that.tableDatas[4][8] = item5.goal_val; that.tableDatas[4][8] = item5.goal_val;

View File

@ -50,11 +50,11 @@
<th>总产量t</th> <th>总产量t</th>
<th>台时产量t/h</th> <th>台时产量t/h</th>
<th>运转率%</th> <th>运转率%</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -168,10 +168,10 @@ export default {
arr.push(item.run_rate); arr.push(item.run_rate);
// //
arr[5] = item.elec_consume_unit; //KW·h/t arr[5] = item.elec_consume_unit; //kW·h/t
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[6] = goalData[keyVale]; //KW·h/t// arr[6] = goalData[keyVale]; //kW·h/t//
arr[7] = item.celec_consume_unit - arr[16]; //KW·h/t arr[7] = item.celec_consume_unit - arr[16]; //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanbi = 0; huanbi = 0;
if (item.month_s == 1) { if (item.month_s == 1) {
@ -187,8 +187,8 @@ export default {
: "/" : "/"
: "/"; : "/";
} }
arr[8] = huanbi; //KW·h/t arr[8] = huanbi; //kW·h/t
arr[9] = item.celec_consume_unit; //KW·h/t arr[9] = item.celec_consume_unit; //kW·h/t
arr[10] = item.celec_consume_unit; //% arr[10] = item.celec_consume_unit; //%
arr[11] = item.celec_consume_unit; //% arr[11] = item.celec_consume_unit; //%
arr[12] = item.celec_consume_unit; //% arr[12] = item.celec_consume_unit; //%

View File

@ -43,11 +43,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -156,7 +156,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -213,7 +213,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -225,8 +225,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = item[1] - item[2]; diff = item[1] - item[2];
@ -234,7 +234,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -252,7 +252,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -186,7 +186,7 @@
{{ reportItem.total_production }} {{ reportItem.total_production }}
</td> </td>
<td class="numCell"> <td class="numCell">
单位产品分布电耗KW·h/t 单位产品分布电耗kW·h/t
</td> </td>
<td class="numCell"> <td class="numCell">
{{ reportItem.elec_consume_unit }} {{ reportItem.elec_consume_unit }}

View File

@ -171,7 +171,7 @@ let legend = {
}; };
let yAxis = { let yAxis = {
type: "value", type: "value",
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
alignTicks: true, alignTicks: true,
axisLine: { axisLine: {
show: true, show: true,
@ -210,7 +210,7 @@ export default {
}, },
mpoint: "", mpoint: "",
tableName: "主要设备100KW以上单位产品电耗数据表", tableName: "主要设备100KW以上单位产品电耗数据表",
tableDatas: [["烘干破主电机", "", "kw.h/t", "", "", ""]], tableDatas: [["烘干破主电机", "", "kh/t", "", "", ""]],
tableData: [], tableData: [],
modelValue: true, modelValue: true,
type: "day_s", type: "day_s",
@ -357,7 +357,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[3] = item.elec_consume_unit; obj[3] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
obj[6] = item.val; obj[6] = item.val;
@ -387,7 +387,7 @@ export default {
let obj = []; let obj = [];
obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name; obj[0] = item.ep_monitored_name?item.ep_monitored_name:item.mpoint_nickname?item.mpoint_nickname:item.mpoint_name;
obj[1] = item.ep_monitored_number; obj[1] = item.ep_monitored_number;
obj[2] = "KW·h/t"; obj[2] = "kW·h/t";
obj[4] = item.elec_consume_unit; obj[4] = item.elec_consume_unit;
obj[5] = item.mpoint; obj[5] = item.mpoint;
obj[8] = item.val; obj[8] = item.val;

View File

@ -298,7 +298,7 @@ let yAxis = [
{ {
type: "value", type: "value",
nameRotate: 45, nameRotate: 45,
name: "分布电耗(KW.h/t)", name: "分布电耗(kW·h/t)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
offset: 100, offset: 100,
@ -315,7 +315,7 @@ let yAxis = [
{ {
type: "value", type: "value",
nameRotate: 45, nameRotate: 45,
name: "总电量(KW.h)", name: "总电量(kW·h)",
position: "left", position: "left",
alignTicks: true, alignTicks: true,
offset: 50, offset: 50,
@ -406,8 +406,8 @@ export default {
}, },
tableDatas: [ tableDatas: [
["产量", "总产量t", 0, 0, 0, 0, 0, 0, 0, 0], ["产量", "总产量t", 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, "/", "/", "/", "/", "/"], ["能耗", "总电量(kW·h", 0, 0, 0, "/", "/", "/", "/", "/"],
["成本", "电石渣成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0], ["成本", "电石渣成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
["湿电石渣", "消耗", 0, 0, 0, "/", "/", "/", "/", "/"], ["湿电石渣", "消耗", 0, 0, 0, "/", "/", "/", "/", "/"],
["湿电石渣", "进厂", 0, 0, 0, "/", "/", "/", "/", "/"], ["湿电石渣", "进厂", 0, 0, 0, "/", "/", "/", "/", "/"],
@ -640,7 +640,7 @@ export default {
that.tableDatas[0][8] = item5.goal_val; that.tableDatas[0][8] = item5.goal_val;
} else if ( } else if (
item5.goal_cate_name == item5.goal_cate_name ==
"单位产品分布电耗(KW·h/t" "单位产品分布电耗(kW·h/t"
) { ) {
that.tableDatas[1][6] = item5[str]; that.tableDatas[1][6] = item5[str];
that.tableDatas[1][8] = item5.goal_val; that.tableDatas[1][8] = item5.goal_val;

View File

@ -49,11 +49,11 @@
<th rowspan="2">得分</th> <th rowspan="2">得分</th>
</tr> </tr>
<tr> <tr>
<th>当期值kKW·h/t</th> <th>当期值kkW·h/t</th>
<th>目标值kKW·h/t</th> <th>目标值kkW·h/t</th>
<th>当期与目标值差值KW·h/t</th> <th>当期与目标值差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期值差值KW·h/t</th> <th>当期与环期值差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
</tr> </tr>
@ -95,11 +95,24 @@ export default {
let year = myDate.getFullYear(); let year = myDate.getFullYear();
this.timeStamp = myDate.getTime(); this.timeStamp = myDate.getTime();
that.query.year_s = year; that.query.year_s = year;
this.$API.mtm.mgroup.list.req({ page: 0, search: "电石渣" }).then((res) => { this.$API.mtm.mgroup.list
console.log("工段数据:", res); .req({ page: 0, search: "电石渣" })
that.query.mgroup = res[0].id; .then((res) => {
that.getGoalData(); that.query.mgroup = res[0].id;
}); let params = {};
params.page = 0;
params.year = year;
params.mgroup = that.query.mgroup;
this.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) {
res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗kW·h/t") {
that.getData(item);
}
})
}
});
});
}, },
methods: { methods: {
getGoalData() { getGoalData() {
@ -110,16 +123,16 @@ export default {
params.mgroup = self.query.mgroup; params.mgroup = self.query.mgroup;
self.$API.mtm.goal.list.req(params).then((res) => { self.$API.mtm.goal.list.req(params).then((res) => {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
if (item.goal_cate_name == "单位产品分布电耗kW·h/t") { if (item.goal_cate_name == "单位产品分布电耗kW·h/t") {
console.log("目标数据:", item); this.getData(item);
self.getData(item); }
} })
}) }
} })
}).catch((error) => { .catch((error) => {
console.error('获取目标数据失败:', error); console.error('获取目标数据失败:', error);
}); });
}, },
getData(goalData) { getData(goalData) {
let that = this; let that = this;
@ -174,64 +187,50 @@ export default {
arr.push(item.total_production); arr.push(item.total_production);
arr.push(item.production_hour); arr.push(item.production_hour);
arr[4] = item.elec_consume_unit; //KW·h/t arr[4] = item.elec_consume_unit; //kW·h/t
let keyVale = "goal_val_" + n; let keyVale = "goal_val_" + n;
arr[5] = goalData[keyVale]; //KW·h/t// arr[5] = goalData[keyVale]; //kW·h/t//
arr[6] = (arr[4] - arr[5]).toFixed(2); //KW·h/t arr[6] = (arr[4] - arr[5]).toFixed(2); //kW·h/t
let ind_pre = 0, let ind_pre = 0,
huanqi = 0, huanqi = 0,
tongqi = 0, huanqicha = 0,
tongqicha = 0; tongqi = 0,
if (n == 1) { tongqicha = 0;
ind_pre = 12; if (n == 1) {
huanqi = wrapArr0[ind_pre] ind_pre = 12;
? wrapArr0[ind_pre].elec_consume_unit huanqi = wrapArr0[ind_pre]
: "/"; ? wrapArr0[ind_pre].elec_consume_unit
} else { : "/";
// wrapArr0wrapArritem.month_s1 item.namehuanbi } else {
compareArr0.forEach((item0) => { // wrapArr0wrapArritem.month_s1 item.namehuanbi
if (item0[0] == item.month_s - 1 && item0[1] == item.team_name) { compareArr0.forEach((item0) => {
huanqi = item0[2]; if (item0[0] == item.month_s - 1 && item0[1] == item.team_name) {
huanqi = item0[2];
}
})
} }
}) arr[7] = huanqi; //kW·h/t
} if (arr[6] !== "/"){
arr[7] = Number(huanqi); //KW·h/t arr[8] = (arr[4] - arr[7]).toFixed(2); //kW·h/t
if (arr[6] !== "/"){ }else{
arr[8] = (Number(arr[4]) - arr[7]).toFixed(2); //KW·h/t arr[8] = "/"; //kW·h/t
}else{ }
arr[8] = "/"; //KW·h/t // arr[8] = huanqicha; //kW·h/t
} let growthRate = 0;
let growthRate = 0; if (arr[8]!== "/" && arr[7]!== 0 && arr[8]!== 0 ) {
if (arr[8]!== "/" && arr[7]!== 0 && arr[8]!== 0 ) { growthRate = ((arr[8] / arr[7]) * 100).toFixed(2);
growthRate = ((Number(arr[8]) /arr[7]) * 100).toFixed(2); } else{
} else{ growthRate = "/";
growthRate = "/"; }
} arr[9] = growthRate; //%
arr[9] = growthRate; //% if (wrapArr0[n]) {
if (wrapArr0[n]) { tongqicha =
tongqicha = item.celec_consume_unit -
item.celec_consume_unit - wrapArr0[n].celec_consume_unit;
wrapArr0[n].celec_consume_unit; tongqi = tongqicha / tongqi;
tongqi = tongqicha / tongqi; } else {
} else { tongqicha = item.celec_consume_unit;
tongqicha = item.celec_consume_unit; tongqi = 0;
tongqi = 0;
}
arr[10] = tongqi; //%
//n = month_listkeyvalue, index==0arr[11] = 100 index==1arr[11] = 80 index==2arr[11] = 70 index==3arr[11] = 0
if (month_obj[n]) {
const monthData = month_obj[n];
const itemValue = item.elec_consume_unit; //
const sortedData = monthData.sort((a, b) => parseFloat(b.value) - parseFloat(a.value));
const index = sortedData.findIndex(obj => parseFloat(obj.value) === parseFloat(itemValue));
if (index === 0){
arr[11] = 50;
} else if (index === 1) {
arr[11] = 40;
} else if (index === 2) {
arr[11] = 30;
} else if (index === 3) {
arr[11] = 20;
} }
const total_elec_consume = item.elec_consume; const total_elec_consume = item.elec_consume;
const sortedTotalData = monthData.sort((a, b) => parseFloat(b.elec_consume) - parseFloat(a.elec_consume)); const sortedTotalData = monthData.sort((a, b) => parseFloat(b.elec_consume) - parseFloat(a.elec_consume));

View File

@ -42,11 +42,11 @@
</tr> </tr>
<tr> <tr>
<th>月份</th> <th>月份</th>
<th>当期值KW·h/t</th> <th>当期值kW·h/t</th>
<th>目标值KW·h/t</th> <th>目标值kW·h/t</th>
<th>当期与目标差值KW·h/t</th> <th>当期与目标差值kW·h/t</th>
<th>环期值KW·h/t</th> <th>环期值kW·h/t</th>
<th>当期与环期差值KW·h/t</th> <th>当期与环期差值kW·h/t</th>
<th>环比增长率%</th> <th>环比增长率%</th>
<th>同比增长率%</th> <th>同比增长率%</th>
<th>分析说明</th> <th>分析说明</th>
@ -153,7 +153,7 @@ export default {
let monthGoal = []; let monthGoal = [];
ress.forEach((goal) => { ress.forEach((goal) => {
if ( if (
goal.goal_cate_name == "单位产品分布电耗(KW·h/t" goal.goal_cate_name == "单位产品分布电耗(kW·h/t"
) { ) {
monthGoal[0] = goal.goal_val; monthGoal[0] = goal.goal_val;
monthGoal[1] = goal.goal_val_2; monthGoal[1] = goal.goal_val_2;
@ -227,7 +227,7 @@ export default {
let arr = []; let arr = [];
let time = "" + item.year_s + "." + item.month_s; let time = "" + item.year_s + "." + item.month_s;
arr.push(time); arr.push(time);
arr.push(item.elec_consume_unit); //KW·h/t arr.push(item.elec_consume_unit); //kW·h/t
arr[2] = arr[2] =
that.monthGoal[ind] !== undefined that.monthGoal[ind] !== undefined
? that.monthGoal[ind] ? that.monthGoal[ind]
@ -241,8 +241,8 @@ export default {
arrs[0] = item[0]; arrs[0] = item[0];
arrs[1] = item[1]; arrs[1] = item[1];
arrs[2] = item[2]; arrs[2] = item[2];
//KW·h/t// //kW·h/t//
//KW·h/t //kW·h/t
let diff = 0; let diff = 0;
if (item[2] !== "/") { if (item[2] !== "/") {
diff = (item[1] - item[2]).toFixed(2); diff = (item[1] - item[2]).toFixed(2);
@ -250,7 +250,7 @@ export default {
diff = "/"; diff = "/";
} }
arrs[3] = diff; arrs[3] = diff;
//KW·h/t //kW·h/t
let lastNum = 0; let lastNum = 0;
if (index > 1) { if (index > 1) {
let num = index - 1; let num = index - 1;
@ -268,7 +268,7 @@ export default {
: "/"; : "/";
} }
arrs[4] = lastNum; arrs[4] = lastNum;
//KW·h/t //kW·h/t
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {

View File

@ -401,7 +401,7 @@ export default {
key = "退火"; key = "退火";
} else if ( } else if (
item5.车间 == "6车间" && item5.车间 == "6车间" &&
item5.工序 == "管料成型" item5.工序 == "管料退火"
) { ) {
key = "库存"; key = "库存";
} else if ( } else if (

View File

@ -195,6 +195,7 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<!-- 检测项和判断项 -->
<div style="padding-left: 50px" v-else> <div style="padding-left: 50px" v-else>
<el-descriptions :column="4"> <el-descriptions :column="4">
<el-descriptions-item label="划伤">{{ <el-descriptions-item label="划伤">{{

View File

@ -34,37 +34,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="批次号" prop="wm_in"> <el-form-item label="批次号" prop="wm_in">
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange"></el-input> <el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
<!-- <el-select
v-model="form.wm_in"
placeholder="交接物料"
clearable
style="width: 100%"
>
<el-option
v-for="item in materialOptions"
:key="item.id"
:label="item.batch"
:value="item.id"
>
<div
style="
display: flex;
justify-content: space-between;
"
>
<span>{{ item.batch }}</span
><span>{{ item.count }}</span>
</div>
</el-option>
</el-select> -->
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-main> </el-main>
<el-footer>
<el-button type="primary" :loading="isSaveing" @click="submit">保存</el-button>
<el-button @click="visible = false">取消</el-button>
</el-footer>
</el-container> </el-container>
</el-dialog> </el-dialog>
</template> </template>
@ -74,7 +47,9 @@ const defaultForm = {
mlog: "", mlog: "",
mtask: "", mtask: "",
batch: "", batch: "",
wn_in: "",
count_use: 1, count_use: 1,
note:''
}; };
export default { export default {
props: { props: {
@ -110,14 +85,7 @@ export default {
message: "请填写批次号", message: "请填写批次号",
trigger: "blur", trigger: "blur",
}, },
], ]
count_use: [
{
required: true,
message: "请填写领用数量",
trigger: "blur",
},
],
}, },
wm_in:'', wm_in:'',
options: [], options: [],
@ -135,6 +103,7 @@ export default {
open() { open() {
this.visible = true; this.visible = true;
}, },
//
getMtask() { getMtask() {
let that = this; let that = this;
this.$API.pm.mtask.list this.$API.pm.mtask.list
@ -158,29 +127,31 @@ export default {
}); });
}, },
// //
formWminChange(){ formWminChange(wm_in){
// // wn_in:
this.materialOptions.forEach((item) => { let that = this;
if (item.batch == this.wm_in) { let arr = that.materialOptions.filter((item) => {
this.form.wm_in = item.id; return item.batch == wm_in;
//
this.submit();
}
}); });
if (arr.length > 0) {
that.form.wm_in = arr[0].id;
that.form.mlog = that.mlog;
that.form.mtask = that.mtask;
//
that.submit();
}else{
that.wm_in = '';
that.$message.error("批次号不存在");
}
}, },
// //
submit() { submit() {
let that = this; let that = this;
that.$refs.dialogForm.validate(async (valid) => { that.form.mlog = that.mlog;
if (valid) { that.$API.wpm.mlogb.in.req(that.form).then((res) => {
that.form.mlog = that.mlog; that.$message.success("添加成功");
that.$API.wpm.mlogb.in.req(that.form).then((res) => { that.wm_in = '';
that.$emit("mlogbinSuccess"); }).catch((err) => {});
that.$message.success("添加成功");
}).catch((err) => {
});
}
});
}, },
// //
setFilters(filters) { setFilters(filters) {