fix: tkx bug

This commit is contained in:
zty 2024-09-26 18:12:56 +08:00
parent f0aa7a2d2f
commit 9c1c1fd39b
21 changed files with 230 additions and 168 deletions

View File

@ -417,8 +417,8 @@ export default {
}); });
let chartDom = document.getElementById("myChart"); let chartDom = document.getElementById("myChart");
that.myChart = echarts.init(chartDom); that.myChart = echarts.init(chartDom);
that.option.xAxis.data = xAxisData; that.option.xAxis.data = xAxisData.reverse();
that.option.series[0].data = lineData; that.option.series[0].data = lineData.reverse();
that.myChart.setOption(that.option); that.myChart.setOption(that.option);
}); });
}, },

View File

@ -1869,15 +1869,6 @@ const routes = [
}, },
component: "inm/mioitem", component: "inm/mioitem",
}, },
{
name: "workshop_mio",
path: "/inm/workshop_mio",
meta: {
title: "车间出入库记录",
// hidden: true,
},
component: "inm/workshop_mio",
},
], ],
}, },

View File

@ -216,17 +216,17 @@
<td class="numCell">煤粉细度合格率%</td> <td class="numCell">煤粉细度合格率%</td>
<td <td
class="numCell" class="numCell"
v-if="reportItem.煤粉_细度_rate_pass" v-if="reportItem.出磨煤粉_细度_rate_pass"
> >
{{ reportItem.煤粉_细度_rate_pass * 100 }} {{ reportItem.出磨煤粉_细度_rate_pass * 100 }}
</td> </td>
<td class="numCell" v-else>0</td> <td class="numCell" v-else>0</td>
<td class="numCell">煤粉水分合格率%</td> <td class="numCell">煤粉水分合格率%</td>
<td <td
class="numCell" class="numCell"
v-if="reportItem.煤粉_水分_rate_pass" v-if="reportItem.出磨煤粉_水分_rate_pass"
> >
{{ reportItem.煤粉_水分_rate_pass * 100 }} {{ reportItem.出磨煤粉_水分_rate_pass * 100 }}
</td> </td>
<td class="numCell" v-else>0</td> <td class="numCell" v-else>0</td>
<td class="numCell"></td> <td class="numCell"></td>

View File

@ -95,7 +95,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="2" :key="2"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 2" v-else-if="query.type == 2"
> >
@ -145,7 +145,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="3" :key="3"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 3" v-else-if="query.type == 3"
> >
@ -195,7 +195,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="4" :key="4"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 4" v-else-if="query.type == 4"
> >

View File

@ -172,7 +172,7 @@
</el-card> </el-card>
</el-main> </el-main>
<el-dialog v-model="itemVisible" :title="tableName"> <el-dialog v-model="itemVisible" :title="tableName" width="1100px">
<scEcharts <scEcharts
height="400px" height="400px"
width="1033px" width="1033px"
@ -208,19 +208,19 @@ export default {
timeStamp: null, timeStamp: null,
tableWidth: "3300", tableWidth: "3300",
itemChartTitle: "", itemChartTitle: "",
tableName: "全厂电量日统计", tableName: "电量日统计",
sourceData: {}, sourceData: {},
mgroupObj: {}, mgroupObj: {},
option: { option: {
title: { title: {
text: "全厂电量日统计", // text: "",
x: "center", x: "center",
}, },
grid: { grid: {
// px // px
top: "20%", top: "20%",
left: "3%", left: "3%",
right: "10%", right: "6%",
bottom: "5%", bottom: "5%",
containLabel: true, containLabel: true,
}, },
@ -452,7 +452,8 @@ export default {
let that = this; let that = this;
let index = that.tableDatas2.indexOf(row); let index = that.tableDatas2.indexOf(row);
console.log(index, "index"); console.log('row', row)
that.tableName = `${row.nickname}-电量日统计`
let lineData = that.tableDatas[index].slice(3, that.days + 3); let lineData = that.tableDatas[index].slice(3, that.days + 3);
that.option.xAxis.data = that.xAxisData; that.option.xAxis.data = that.xAxisData;
that.option.series[0].data = lineData; that.option.series[0].data = lineData;

View File

@ -78,7 +78,7 @@
<el-card style="margin-top:5px"> <el-card style="margin-top:5px">
<div ref="print" id="myReport" class="printContainer"> <div ref="print" id="myReport" class="printContainer">
<h3 style="text-align: center;">{{ tableName }}</h3> <h3 style="text-align: center;">{{ tableName }}</h3>
<table border="1" cellspacing="0" :key="timeStamp" id="myTable1" class="myTable"> <table border="1" cellspacing="0" :key="timeStamp" id="myTable" class="myTable">
<thead class="myTableHead"> <thead class="myTableHead">
<tr> <tr>
<th rowspan="3">日期</th> <th rowspan="3">日期</th>

View File

@ -162,7 +162,7 @@
</div> </div>
</el-card> </el-card>
</el-main> </el-main>
<el-dialog v-model="itemVisible" :title="itemChartTitle"> <el-dialog v-model="itemVisible" :title="itemChartTitle" width="1100px">
<scEcharts <scEcharts
height="400px" height="400px"
width="1033px" width="1033px"
@ -221,7 +221,7 @@ export default {
sourceData: {}, sourceData: {},
option: { option: {
title: { title: {
text: "全厂电量小时统计", // text: "",
x: "center", x: "center",
}, },
grid: { grid: {
@ -511,6 +511,7 @@ export default {
}, },
itemClick(item, index) { itemClick(item, index) {
let that = this; let that = this;
that.tableName = `${row.nickname}-电量日统计`
let lineData = that.tableDatas[index].slice(3, that.headerLength); let lineData = that.tableDatas[index].slice(3, that.headerLength);
that.option.xAxis.data = that.xAxisData; that.option.xAxis.data = that.xAxisData;
that.option.series[0].data = lineData; that.option.series[0].data = lineData;

View File

@ -161,7 +161,7 @@
</el-card> </el-card>
</el-main> </el-main>
<el-dialog v-model="itemVisible" :title="tableName"> <el-dialog v-model="itemVisible" :title="tableName" width="1100px">
<scEcharts <scEcharts
height="400px" height="400px"
width="1033px" width="1033px"
@ -197,7 +197,7 @@ export default {
xAxisData: [], xAxisData: [],
option: { option: {
title: { title: {
text: "全厂电量月统计", // text: "",
x: "center", x: "center",
}, },
grid: { grid: {
@ -424,11 +424,8 @@ export default {
}, },
handleCellClick(row, column, cell, event) { handleCellClick(row, column, cell, event) {
let that = this; let that = this;
console.log("row", row);
console.log("column", column);
console.log("cell", cell);
let index = that.tableDatas2.indexOf(row); let index = that.tableDatas2.indexOf(row);
console.log(index, "index"); that.tableName = `${row.nickname}-电量日统计`
// //
let lineData = that.tableDatas[index].slice(3, 14); let lineData = that.tableDatas[index].slice(3, 14);
that.option.xAxis.data = that.xAxisData; that.option.xAxis.data = that.xAxisData;

View File

@ -82,9 +82,10 @@ export default {
if (res.length > 0) { if (res.length > 0) {
res.forEach((item) => { res.forEach((item) => {
let ind = item.month_s - 1; let ind = item.month_s - 1;
wrapArr[ind] = item; wrapArr[ind] = item; //
}); });
} else { } else {
wrapArr = [];
} }
let obj2 = {}; let obj2 = {};
obj2.year_s = this.year_s; obj2.year_s = this.year_s;
@ -93,7 +94,7 @@ export default {
if (res2.length > 0) { if (res2.length > 0) {
res2.forEach((item2) => { res2.forEach((item2) => {
let ind2 = item2.month_s - 1; let ind2 = item2.month_s - 1;
wrapArr2[ind2] = item2; wrapArr2[ind2] = item2; //
}); });
} else { } else {
} }
@ -141,8 +142,8 @@ export default {
} else { } else {
hPercent3 = "/"; hPercent3 = "/";
} }
this.tableDatas[i][4] = hPercent3; // this.tableDatas[i][4] = tPercent3; //
this.tableDatas[i][5] = tPercent3; // this.tableDatas[i][5] = hPercent3; //
this.tableDatas[i][6] = wrapArr2[i].en_consume_unit; // this.tableDatas[i][6] = wrapArr2[i].en_consume_unit; //
let tValue6 = 0, let tValue6 = 0,
hValue6 = 0, hValue6 = 0,
@ -157,7 +158,7 @@ export default {
? wrapArr[12].en_consume_unit ? wrapArr[12].en_consume_unit
: "/"; : "/";
} }
if (tValue6 !== "/" && tValue6 !== 0) { if (tValue6 !== "/" && tValue6 !== 0 && wrapArr2[i].en_consume_unit !== 0) {
tPercent6 = tPercent6 =
((wrapArr2[i].en_consume_unit - tValue6) / ((wrapArr2[i].en_consume_unit - tValue6) /
tValue6) * tValue6) *
@ -165,6 +166,9 @@ export default {
} else { } else {
tPercent6 = "/"; tPercent6 = "/";
} }
if (isNaN(tPercent6)){
tPercent6 = 0
}
hValue6 = wrapArr[i] hValue6 = wrapArr[i]
? wrapArr[i].en_consume_unit ? wrapArr[i].en_consume_unit
: "/"; : "/";
@ -176,8 +180,11 @@ export default {
} else { } else {
hPercent6 = "/"; hPercent6 = "/";
} }
this.tableDatas[i][7] = hPercent6; // if(isNaN(hPercent6)){
this.tableDatas[i][8] = tPercent6; // hPercent6 = 0
}
this.tableDatas[i][7] = tPercent6; //
this.tableDatas[i][8] = hPercent6; //
this.tableDatas[i][9] = this.tableDatas[i][9] =
wrapArr2[i].en_add_consume_unit; wrapArr2[i].en_add_consume_unit;
let tValue9 = 0, let tValue9 = 0,
@ -192,7 +199,7 @@ export default {
tValue9 = wrapArr[12] tValue9 = wrapArr[12]
? wrapArr[12].en_add_consume_unit ? wrapArr[12].en_add_consume_unit
: "/"; : "/";
} };
if (tValue9 !== "/" && tValue9 !== 0) { if (tValue9 !== "/" && tValue9 !== 0) {
tPercent9 = tPercent9 =
((wrapArr2[i].en_add_consume_unit - ((wrapArr2[i].en_add_consume_unit -
@ -201,7 +208,10 @@ export default {
100; 100;
} else { } else {
tPercent9 = "/"; tPercent9 = "/";
} };
if (isNaN(tPercent9)) {
tPercent9=0
};
hValue9 = wrapArr[i] hValue9 = wrapArr[i]
? wrapArr[i].en_add_consume_unit ? wrapArr[i].en_add_consume_unit
: "/"; : "/";
@ -213,9 +223,9 @@ export default {
100; 100;
} else { } else {
hPercent9 = "/"; hPercent9 = "/";
} };
this.tableDatas[i][10] = hPercent9; this.tableDatas[i][10] = tPercent9;
this.tableDatas[i][11] = tPercent9; this.tableDatas[i][11] = hPercent9;
} else { } else {
} }
} }

View File

@ -232,9 +232,9 @@
<td class="numCell">熟料f-CaO合格率%</td> <td class="numCell">熟料f-CaO合格率%</td>
<td <td
class="numCell" class="numCell"
v-if="reportItem.出窑熟料_f-CaO_rate_pass" v-if="reportItem.出窑熟料_fCaO_rate_pass"
> >
{{reportItem.出窑熟料_f-CaO_rate_pass*100}} {{reportItem.出窑熟料_fCaO_rate_pass*100}}
</td> </td>
<td class="numCell" v-else>0</td> <td class="numCell" v-else>0</td>
</tr> </tr>

View File

@ -95,7 +95,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="2" :key="2"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 2" v-else-if="query.type == 2"
> >
@ -145,7 +145,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="3" :key="3"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 3" v-else-if="query.type == 3"
> >
@ -195,7 +195,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="4" :key="4"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 4" v-else-if="query.type == 4"
> >

View File

@ -95,7 +95,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="2" :key="2"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 2" v-else-if="query.type == 2"
> >
@ -145,7 +145,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="3" :key="3"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 3" v-else-if="query.type == 3"
> >
@ -195,7 +195,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="4" :key="4"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else-if="query.type == 4" v-else-if="query.type == 4"
> >

View File

@ -95,7 +95,7 @@
width="1075" width="1075"
cellspacing="0" cellspacing="0"
:key="1" :key="1"
id="myTable1" id="myTable"
class="myTable" class="myTable"
v-else v-else
> >

View File

@ -1,4 +1,4 @@
<!-- 成本分析 --> <!-- 异常动态报表 -->
<template> <template>
<el-container class="app-container"> <el-container class="app-container">
<el-header> <el-header>
@ -47,15 +47,25 @@
</el-button> </el-button>
</div> </div>
</el-header> </el-header>
<el-main> <el-main class="nopadding">
<el-container>
<el-main class="nopadding">
<scTable <scTable
ref="stlogTable" ref="stlogTable"
:apiObj="apiObjStlog" :apiObj="apiObjStlog"
:query="query" :query="query"
:params="params" :params="params"
row-key="id" row-key="id"
stripe
hideSetting
@row-click="stlogRowClick"
highlightCurrentRow
hideDo
> >
<el-table-column type="index" width="100" /> <el-table-column
label="工段"
prop="mgroup_name"
></el-table-column>
<el-table-column <el-table-column
label="异常类别" label="异常类别"
prop="duration" prop="duration"
@ -97,10 +107,69 @@
></el-table-column> ></el-table-column>
</scTable> </scTable>
</el-main> </el-main>
<el-aside width="600px">
<el-container>
<el-header>
对应值班记录
</el-header>
<el-main class="nopadding">
<scTable
ref="expTable"
:data="sflogexpList"
row-key="id"
stripe
:height="heightTable"
hidePagination
highlightCurrentRow
hideDo
>
<el-table-column type="index" width="50" />
<el-table-column label="班组名称">
<template #default="scope">
<span v-if="scope.row.sflog_">{{
scope.row.sflog_.shift_name
}}</span>
</template>
</el-table-column>
<el-table-column label="开始时间">
<template #default="scope">
<span v-if="scope.row.sflog_">{{
scope.row.sflog_.start_time
}}</span>
</template>
</el-table-column>
<el-table-column label="结束时间">
<template #default="scope">
<span v-if="scope.row.sflog_">{{
scope.row.sflog_.end_time
}}</span>
</template>
</el-table-column>
<el-table-column label="所在工段">
<template #default="scope">
<span v-if="scope.row.sflog_">{{
scope.row.sflog_.mgroup_name
}}</span>
</template>
</el-table-column>
<el-table-column
label="处理备注"
prop="note"
></el-table-column>
</scTable>
</el-main>
</el-container>
</el-aside>
</el-container>
</el-main>
</el-container> </el-container>
</template> </template>
<script> <script>
import stlogDialog from "../enm_rm/stlog_form.vue";
export default { export default {
components: {
stlogDialog
},
data() { data() {
return { return {
query: { query: {
@ -119,6 +188,7 @@ export default {
}, },
value1:[], value1:[],
materialList: [], materialList: [],
sflogexpList: [],
mgroupOptions: [], mgroupOptions: [],
tableName: '班组成本计算', tableName: '班组成本计算',
options: [ options: [
@ -128,8 +198,9 @@ export default {
], ],
tableNmae: '', tableNmae: '',
tableData1: [], tableData1: [],
stlogVisiable: false,
apiObjStlog: null, apiObjStlog: null,
sourceData: {} sourceData: {},
}; };
}, },
mounted() { mounted() {
@ -150,8 +221,8 @@ export default {
this.mgroupOptions.push(item); this.mgroupOptions.push(item);
}) })
this.mgroupOptions = this.mgroupOptions.reverse(); this.mgroupOptions = this.mgroupOptions.reverse();
this.query.mgroup = this.mgroupOptions[0].id; // this.query.mgroup = this.mgroupOptions[0].id;
this.params.mgroup = this.mgroupOptions[0].id; // this.params.mgroup = this.mgroupOptions[0].id;
this.apiObjStlog = this.$API.wpm.stlog.list; this.apiObjStlog = this.$API.wpm.stlog.list;
this.tableName = this.mgroupOptions[0].name; this.tableName = this.mgroupOptions[0].name;
this.getTableData(); this.getTableData();
@ -163,33 +234,6 @@ export default {
this.optionsShift = res; this.optionsShift = res;
}) })
}, },
//
// getData() {
// let that = this;
// that.tableData1 = [];
// let params = {};
// params.mgroup = that.query.mgroup;
// // if (that.query.type == 0) {//
// // arr = that.query.day.split('-');
// // params.year_s = Number(arr[0]);
// // params.month_s = Number(arr[1]);
// // params.day_s = Number(arr[2]);
// // params.type = "day_s"
// // } else if (that.query.type == 1) {//
// // arr = that.query.month.split('-');
// // params.start_time__year = Number(arr[0]);
// // params.start_time__month = Number(arr[1]);
// // params.start_time__day = Number(arr[2]);
// // } else {//
// // params.start_time__year = Number(that.query.year);
// // params.start_time__month = Number(that.query.month);
// // }
// params.start_time__gt = that.query[0];
// params.start_time__lt = that.query[1];
// this.$API.wpm.stlog.list.req(params).then(res => {
// that.apiObjStlog = res;
// })
// },
getTableData() { getTableData() {
let that = this; let that = this;
let arr = []; let arr = [];
@ -197,7 +241,6 @@ export default {
this.query.start_time__gt = this.value1[0]; this.query.start_time__gt = this.value1[0];
this.query.start_time__lt = this.value1[1];} this.query.start_time__lt = this.value1[1];}
else if (that.query.type == 2) { else if (that.query.type == 2) {
console.log(this.query.month);
arr = that.query.month.split('-'); arr = that.query.month.split('-');
this.query.start_time__year = Number(arr[0]); this.query.start_time__year = Number(arr[0]);
this.query.start_time__month = Number(arr[1]); this.query.start_time__month = Number(arr[1]);
@ -213,6 +256,22 @@ export default {
this.$XLSX('#myTable', this.tableName) this.$XLSX('#myTable', this.tableName)
this.exportLoading = false; this.exportLoading = false;
}, },
//stlogsflogexp
stlogRowClick(row) {
console.log(row);
this.sflogexpList = [];
this.clickItem = row;
this.getSflogexp(row.id);
},
getSflogexp(id) {
let obj = {};
obj.page = 0;
obj.stlog = id;
this.$API.wpm.sflogexp.list.req(obj).then((res) => {
this.sflogexpList = res;
console.log(this.sflogexpList);
});
},
} }
}; };
</script> </script>

View File

@ -69,7 +69,7 @@
</el-header> </el-header>
<el-card style="margin-top:5px"> <el-card style="margin-top:5px">
<div class="tableContainer"> <div class="tableContainer">
<table border="1" cellspacing="0" :key="timeStamp" id="myTable1" class="myTable"> <table border="1" cellspacing="0" :key="timeStamp" id="myTable" class="myTable">
<thead class="myTableHead"> <thead class="myTableHead">
<tr> <tr>
<th rowspan="41">日期</th> <th rowspan="41">日期</th>
@ -163,6 +163,7 @@
if(days<10){ if(days<10){
days = '0'+days; days = '0'+days;
} }
this.query.month = myDate.getFullYear()+'-'+month
this.query.day = myDate.getFullYear()+'-'+month+'-'+days; this.query.day = myDate.getFullYear()+'-'+month+'-'+days;
this.getGroup(); this.getGroup();
}, },

View File

@ -230,10 +230,10 @@
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;
that.tableDatas[35][3] = dataList.煤磨.elec_consume; // that.tableDatas[35][3] = dataList..elec_consume;
that.tableDatas[36][3] = dataList.水泥磨.elec_consume; that.tableDatas[35][3] = dataList.水泥磨.elec_consume;
that.tableDatas[37][3] = dataList.水泥包装.elec_consume; that.tableDatas[36][3] = dataList.水泥包装.elec_consume;
// that.tableDatas[39][3] = dataList..elec_consume; that.tableDatas[37][3] = dataList.生活区.elec_consume;
}).then(res=>{ }).then(res=>{
// //
let params1 = {}; let params1 = {};

View File

@ -75,30 +75,30 @@
[4,'主机设备台产','回转窑台产t/h'], [4,'主机设备台产','回转窑台产t/h'],
[5,'主机设备台产','水泥磨台产t/h'], [5,'主机设备台产','水泥磨台产t/h'],
[6,'能耗','熟料综合电耗kw.h/t'], [6,'能耗','熟料综合电耗kw.h/t'],
[7,'能耗','熟料单位标煤耗(kgce/t)'], [7,'能耗','熟料单位标煤耗(kgce/t)'],
[8,'能耗','熟料综合能耗(kgce/t)'], [8,'能耗','熟料综合能耗(kgce/t)'],
[9,'能耗','水泥综合能耗(kgce/t)'], [9,'能耗','水泥综合能耗(kgce/t)'],
[10,'能耗','电石渣分布电耗kw.h/t'], [10,'能耗','电石渣分布电耗kw.h/t'],
[11,'能耗','生料分布电耗kw.h/t'], [11,'能耗','生料分布电耗kw.h/t'],
[12,'能耗','熟料分布电耗kw.h/t'], [12,'能耗','熟料分布电耗kw.h/t'],
[13,'能耗','水泥粉磨分布电耗kw.h/t'], [13,'能耗','水泥粉磨分布电耗kw.h/t'],
[14,'能耗','水泥包装分布电耗kw.h/t'], [14,'能耗','水泥包装分布电耗kw.h/t'],
[15,'产量','电石渣产量(t)'], [15,'产量','电石渣产量(t)'],
[16,'产量','月电石渣产量完成率(%)'], [16,'产量','月电石渣产量完成率(%)'],
[17,'产量','生料产量(t)'], [17,'产量','生料产量(t)'],
[18,'产量','月生料产量完成率(%)'], [18,'产量','月生料产量完成率(%)'],
[19,'产量','熟料产量(t)'], [19,'产量','熟料产量(t)'],
[20,'产量','月熟料产量完成率(%)'], [20,'产量','月熟料产量完成率(%)'],
[21,'产量','水泥产量(t)'], [21,'产量','水泥产量(t)'],
[22,'产量','月水泥产量完成率(%)'], [22,'产量','月水泥产量完成率(%)'],
[23,'产量','熟料出厂量(t)'], [23,'产量','熟料出厂量(t)'],
[24,'产量','月熟料累计出厂量(t)'], [24,'产量','月熟料累计出厂量(t)'],
[25,'产量','散装水泥出厂量(t)'], [25,'产量','散装水泥出厂量(t)'],
[26,'产量','月散装水泥出厂量(t)'], [26,'产量','月散装水泥出厂量(t)'],
[27,'产量','袋装水泥出厂量(t)'], [27,'产量','袋装水泥出厂量(t)'],
[28,'产量','月袋装水泥出厂量(t)'], [28,'产量','月袋装水泥出厂量(t)'],
@ -346,9 +346,9 @@
that.tableDatas[33][4] = this.canCompute(that.nowData[33],dataList.电石渣.elec_consume); that.tableDatas[33][4] = this.canCompute(that.nowData[33],dataList.电石渣.elec_consume);
that.tableDatas[34][4] = this.canCompute(that.nowData[34],dataList.原料磨.elec_consume); that.tableDatas[34][4] = this.canCompute(that.nowData[34],dataList.原料磨.elec_consume);
that.tableDatas[35][4] = this.canCompute(that.nowData[35],dataList.回转窑.elec_consume); that.tableDatas[35][4] = this.canCompute(that.nowData[35],dataList.回转窑.elec_consume);
that.tableDatas[36][4] = this.canCompute(that.nowData[36],dataList..elec_consume); that.tableDatas[36][4] = this.canCompute(that.nowData[36],dataList.水泥.elec_consume);
that.tableDatas[37][4] = this.canCompute(that.nowData[37],dataList.水泥.elec_consume); that.tableDatas[37][4] = this.canCompute(that.nowData[37],dataList.水泥包装.elec_consume);
that.tableDatas[38][4] = this.canCompute(that.nowData[38],dataList.水泥包装.elec_consume); that.tableDatas[38][4] = this.canCompute(that.nowData[38],dataList.生活区.elec_consume);
// that.tableDatas[39][3] = dataList..elec_consume; // that.tableDatas[39][3] = dataList..elec_consume;
}).then(res=>{ }).then(res=>{
// //
@ -440,9 +440,9 @@
that.tableDatas[33][5] = this.canCompute(that.nowData[33],dataList.电石渣.elec_consume); that.tableDatas[33][5] = this.canCompute(that.nowData[33],dataList.电石渣.elec_consume);
that.tableDatas[34][5] = this.canCompute(that.nowData[34],dataList.原料磨.elec_consume); that.tableDatas[34][5] = this.canCompute(that.nowData[34],dataList.原料磨.elec_consume);
that.tableDatas[35][5] = this.canCompute(that.nowData[35],dataList.回转窑.elec_consume); that.tableDatas[35][5] = this.canCompute(that.nowData[35],dataList.回转窑.elec_consume);
that.tableDatas[36][5] = this.canCompute(that.nowData[36],dataList..elec_consume); that.tableDatas[36][5] = this.canCompute(that.nowData[36],dataList.水泥.elec_consume);
that.tableDatas[37][5] = this.canCompute(that.nowData[37],dataList.水泥.elec_consume); that.tableDatas[37][5] = this.canCompute(that.nowData[37],dataList.水泥包装.elec_consume);
that.tableDatas[38][5] = this.canCompute(that.nowData[38],dataList.水泥包装.elec_consume); that.tableDatas[38][5] = this.canCompute(that.nowData[38],dataList.生活区.elec_consume);
} }
// that.tableDatas[39][4] = dataList..elec_consume; // that.tableDatas[39][4] = dataList..elec_consume;
}).then(res=>{ }).then(res=>{

View File

@ -202,9 +202,9 @@
<td class="numCell"> <td class="numCell">
{{ reportItem.run_rate }} {{ reportItem.run_rate }}
</td> </td>
<td class="numCell">停机时长s</td> <td class="numCell">停机时长h</td>
<td class="numCell"> <td class="numCell">
{{ reportItem.shut_sec }} {{ (reportItem.shut_sec/3600).toFixed(2) }}
</td> </td>
<td class="numCell"> <td class="numCell">
当期单位产品电耗kW·h/t 当期单位产品电耗kW·h/t

View File

@ -737,18 +737,18 @@ export default {
that.mpointOptions = []; that.mpointOptions = [];
res.forEach((item) => { res.forEach((item) => {
item.mpFormVal = null; item.mpFormVal = null;
item.mpFormValAble = false; item.mpFormValAble = false;
that.mpointOptions.push(item);
});
that.mpointOptions.forEach((item) =>{
that.$API.enm.mpoint.stat.req({mpoint: item.id, sflog: this.form.id, page: 0}).then(res=>{ that.$API.enm.mpoint.stat.req({mpoint: item.id, sflog: this.form.id, page: 0}).then(res=>{
if(res.length>0){ if(res.length>0){
item.mpFormVal = res[0].val; item.mpFormVal = res[0].val;
}else{ }else{
item.mpFormVal = 0; item.mpFormVal = 0;
} }
that.mpointOptions.push(item);
}) })
})
});
that.getMpointStat(); that.getMpointStat();
} }
}); });

View File

@ -645,7 +645,9 @@ export default {
let item = i + "日"; let item = i + "日";
dayXAxis.push(item); dayXAxis.push(item);
} }
console.log(dayXAxis);
options.xAxis.data = dayXAxis; options.xAxis.data = dayXAxis;
console.log(dayXAxis);
that.optionDay = options; that.optionDay = options;
}); });
}, },

View File

@ -254,7 +254,7 @@ export default {
let lastDiff = 0; let lastDiff = 0;
if (arrs[1] !== "/" && arrs[4] !== "/") { if (arrs[1] !== "/" && arrs[4] !== "/") {
lastDiff = arrs[1] - arrs[4]; lastDiff = (arrs[1] - arrs[4]).toFixed(2);
} else { } else {
lastDiff = "/"; lastDiff = "/";
} }