fix:原料磨生产报告修改
This commit is contained in:
parent
aee0427138
commit
bd3ae583fc
|
@ -457,16 +457,6 @@ export default {
|
|||
dataY2: [],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
let that = this;
|
||||
this.$API.mtm.mgroup.list
|
||||
.req({ page: 0, search: "石灰石破碎" })
|
||||
.then((res) => {
|
||||
console.log("石灰石破碎", res);
|
||||
this.mgroup = res[0];
|
||||
this.query.mgroup = res[0].id;
|
||||
});
|
||||
},
|
||||
mounted() {
|
||||
function precen(a, b) {
|
||||
if (b !== 0 && b !== null && a !== null) {
|
||||
|
@ -505,9 +495,9 @@ export default {
|
|||
let days_h = hourDate.getDate();
|
||||
let hours_h = hourDate.getHours();
|
||||
this.$API.mtm.mgroup.list
|
||||
.req({ page: 0, search: "电石渣" })
|
||||
.req({ page: 0, search: "石灰石破碎" })
|
||||
.then((res) => {
|
||||
console.log("电石渣", res);
|
||||
console.log("石灰石破碎", res);
|
||||
that.query.mgroup = res[0].id;
|
||||
//昨日
|
||||
let params3 = {};
|
||||
|
|
|
@ -923,7 +923,7 @@ export default {
|
|||
console.log("获取小时数据", response);
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour;
|
||||
let ind = item.hour - 1;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = Number(item.production_hour).toFixed(2);
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
@ -957,12 +957,9 @@ export default {
|
|||
seriesData1 = [],
|
||||
seriesData2 = [],
|
||||
seriesData3 = [];
|
||||
// debugger;
|
||||
console.log(response);
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
// debugger;
|
||||
let ind = item.day_s;
|
||||
let ind = item.day_s - 1;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = Number(item.production_hour).toFixed(2);
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
@ -991,15 +988,13 @@ export default {
|
|||
query2.type = "month_s";
|
||||
query2.mgroup = that.query.mgroup;
|
||||
this.$API.enm.enstat.req(query2).then((response) => {
|
||||
// debugger;
|
||||
let seriesData0 = [],
|
||||
seriesData1 = [],
|
||||
seriesData2 = [],
|
||||
seriesData3 = [];
|
||||
console.log(response);
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.month_s;
|
||||
let ind = item.month_s - 1;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = Number(item.production_hour).toFixed(2);
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
|
Loading…
Reference in New Issue