diff --git a/src/views/enm_rm/handoverLog.vue b/src/views/enm_rm/handoverLog.vue index aeb808e3..7f860dc1 100644 --- a/src/views/enm_rm/handoverLog.vue +++ b/src/views/enm_rm/handoverLog.vue @@ -1,155 +1,324 @@ + + + + + +
+ 导出xlsx + + 打印 +
+ +
+
+ {{ sflogItem.end_time.slice(0, 10) + }}{{ sflogItem.shift_name }} + {{ + sflogItem.team_name + }} + 交接班记录 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
日期 + {{ sflogItem.end_time.slice(0, 10) }} + 班次 + {{ sflogItem.shift_name }} + 班组 + {{ + sflogItem.team_name + }} +
产量(t) + {{ reportItem.total_production }} + 台时(t/h) + {{ reportItem.production_hour }} + 运转时间(h) + {{ reportItem.run_hour }} +
运转率(%) + {{ reportItem.run_rate * 100 }} + 停机时长(h) + {{ reportItem.shut_hour }} + + 当期单位产品电耗(kW·h/t) + + {{ reportItem.elec_consume_unit }} +
辅料细度合格率(%) + {{ reportItem.辅料_细度_rate_pass * 100 }} + 0辅料Fe₂O₃合格率(%) + {{ reportItem.辅料_Fe2O3_rate_pass * 100 }} + 0辅料水分合格率(%) + {{ reportItem.辅料_水分_rate_pass * 100 }} + 0
干混生料CaO合格率(%) + {{ + reportItem.干混生料_CaO_rate_pass * 100 + }} + 0 + 干混生料Fe₂O₃合格率(%) + + {{ + reportItem.干混生料_Fe2O3_rate_pass * + 100 + }} + 0干混生料细度合格率(%) + {{ + reportItem.干混生料_细度_rate_pass * 100 + }} + 0
干混生料水分合格率(%) + {{ + reportItem.干混生料_水分_rate_pass * 100 + }} + 0单位成本(元/吨) + {{ reportItem.production_cost_unit }} +
+ 生产情况记录 + 时间类别原因处置措施处置人
{{ item.happen_time }}{{ item.cate }}{{ item.reason }}{{ item.measure }}{{ item.handler }}
+
+
+
+ + -
-
小时生产参数统计图
- -
-
-
本月生产参数统计图
- -
-
-
本年生产参数统计图
- -
- - - - -
- - - - 查询 -
-
- - - 查询 -
-
- - - 查询 -
-
- - - 查询 -
- - -
- - - - +
+ +
+ 导出xlsx + + 打印 +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
原料磨工段生产报告
参数上个小时昨日本月本年月目标值月完成度年目标值年完成度
+ {{ item[0] }} + + {{ item[0] }} + {{ item[1] }} + {{ item[2] }} + + {{ item[3] }} + + {{ item[4] }} + + {{ item[5] }} + {{ item[6] }}{{ item[7] }}{{ item[8] }}{{ item[9] }}
+ +
+
小时生产参数统计图
+ +
+
+
本月生产参数统计图
+ +
+
+
本年生产参数统计图
+ +
+
+
+ + +
+ + + + 查询 +
+
+ + + 查询 +
+
+ + + 查询 +
+
+ + + 查询 +
+ +
+ +
+
+ \ No newline at end of file + diff --git a/src/views/enm_rm/teamAnalysis.vue b/src/views/enm_rm/teamAnalysis.vue index 091353d0..2a3eeaa3 100644 --- a/src/views/enm_rm/teamAnalysis.vue +++ b/src/views/enm_rm/teamAnalysis.vue @@ -1,242 +1,285 @@ + 当期值(KW·h/t) + 目标值(KW·h/t) + 当期与目标差值(KW·h/t) + 环期值(KW·h/t) + 当期与环期差值(KW·h/t) + 环比增长率(%) + 同比增长率(%) + + + + + {{ item0 }} + + + + + + + + \ No newline at end of file +.printWrap { + width: 100%; + overflow-x: scroll; +} + diff --git a/src/views/enm_rm/workshopAnalysis.vue b/src/views/enm_rm/workshopAnalysis.vue index 8a51c814..63a6adc8 100644 --- a/src/views/enm_rm/workshopAnalysis.vue +++ b/src/views/enm_rm/workshopAnalysis.vue @@ -1,274 +1,322 @@ +
+ +
+ + + 导出xlsx + + 打印 +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ 原料磨工段车间单位产品电耗月度分析表 +
月份当期值(KW·h/t)目标值(KW·h/t)当期与目标差值(KW·h/t)环期值(KW·h/t)当期与环期差值(KW·h/t)环比增长率(%)同比增长率(%)
+
+ + + + + {{ item1 }} +
+
+
+
+
+
+ \ No newline at end of file +.printWrap { + width: 100%; + overflow-x: scroll; +} + diff --git a/src/views/enm_rmbase/logDetail.vue b/src/views/enm_rmbase/logDetail.vue deleted file mode 100644 index 97a33a8b..00000000 --- a/src/views/enm_rmbase/logDetail.vue +++ /dev/null @@ -1,937 +0,0 @@ - - - - diff --git a/src/views/enm_rmbase/power.vue b/src/views/enm_rmbase/power.vue index 442a26e4..7d144b67 100644 --- a/src/views/enm_rmbase/power.vue +++ b/src/views/enm_rmbase/power.vue @@ -168,8 +168,10 @@ export default { }, data() { return { + exportLoading: false, chartShow: false, myOption: null, + timeStamp: null, optionHour: {}, optionDay: {}, optionMonth: {}, @@ -178,17 +180,13 @@ export default { days: 1, hours: 1, query: { - mgroup: "3346520558031773696", + mgroup: "", }, tableName: "主要设备(100KW以上)单位产品电耗数据表", tableDatas: [ ["辊压机", "", "KW·h/t", "", "", ""], ["循环风机", "", "KW·h/t", "", "", ""], - // ['烘干破主','','KW·h/t','','',''], - // ['废气风机','','KW·h/t','','',''], - // ['尾排风机','','KW·h/t','','',''], ], - modelValue: true, type: "hour_s", title: "原料磨工段", @@ -337,6 +335,7 @@ export default { let days = (that.days = myDate.getDate()); let hours = (that.hours = myDate.getHours()); let timeDate = myDate.getTime(); + that.timeStamp = timeDate; let dayTime = 24 * 60 * 60 * 1000; //昨天的计算 let year_d = year, @@ -357,97 +356,115 @@ export default { let month_h = hourDate.getMonth() + 1; let days_h = hourDate.getDate(); let hours_h = hourDate.getHours(); - //本月 - let params2 = {}; - params2.page = 0; - params2.year_s = year; - params2.month_s = month; - params2.type = "month_s"; - params2.mgroup = this.query.mgroup; - this.$API.enm.enstat - .req(params2) - .then((res2) => { - if (res2.length > 0) { - let hourProduct = (that.allValMonth = - res2[0].total_production); //当前条件下的总产量 - params2.mpoint__ep_monitored__power_kw__gte = 100; - this.$API.enm.mpoint.stat.req(params2).then((res) => { - let data2 = res; - for (let i = 0; i < data2.length; i++) { - that.tableDatas[i] = []; - that.tableDatas[i][0] = data2[i].ep_monitored_name; - that.tableDatas[i][1] = - data2[i].ep_monitored_number; - that.tableDatas[i][2] = "KW·h/t"; - let val = - hourProduct == 0 - ? "/" - : (data2[i].val / hourProduct).toFixed(2); - that.tableDatas[i][5] = val; + this.$API.mtm.mgroup.list + .req({ page: 0, search: "原料磨" }) + .then((res) => { + console.log("原料磨", res); + that.query.mgroup = res[0].id; + //本月 + let params2 = {}; + params2.page = 0; + params2.year_s = year; + params2.month_s = month; + params2.type = "month_s"; + params2.mgroup = this.query.mgroup; + this.$API.enm.enstat + .req(params2) + .then((res2) => { + if (res2.length > 0) { + let hourProduct = (that.allValMonth = + res2[0].total_production); //当前条件下的总产量 + params2.mpoint__ep_monitored__power_kw__gte = 100; + this.$API.enm.mpoint.stat + .req(params2) + .then((res) => { + let data2 = res; + for (let i = 0; i < data2.length; i++) { + that.tableDatas[i] = []; + that.tableDatas[i][0] = + data2[i].ep_monitored_name; + that.tableDatas[i][1] = + data2[i].ep_monitored_number; + that.tableDatas[i][2] = "KW·h/t"; + let val = + hourProduct == 0 + ? "/" + : ( + data2[i].val / + hourProduct + ).toFixed(2); + that.tableDatas[i][5] = val; + } + }); } + }) + .then((res2) => { + //昨日 + let params3 = {}; + params3.page = 0; + params3.year_s = year_d; + params3.month_s = month_d; + params3.day_s = days_d; + params3.type = "day_s"; + params3.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params3).then((res3) => { + if (res3.length > 0) { + let hourProduct = (that.allValDays = + res3[0].total_production); + params3.mpoint__ep_monitored__power_kw__gte = 100; + this.$API.enm.mpoint.stat + .req(params3) + .then((res) => { + let data3 = res3; + for (let j = 0; j < data3.length; j++) { + let val = + hourProduct == 0 + ? "/" + : ( + data3[j].val / + hourProduct + ).toFixed(2); + that.tableDatas[j][4] = val; + } + }); + } + }); + //上小时 + let params4 = {}; + params4.page = 0; + params4.year = year_h; + params4.month = month_h; + params4.day = days_h; + params4.hour = hours_h; + params4.type = "hour_s"; + params4.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params4).then((res4) => { + if (res4.length > 0) { + let hourProduct = (that.allValHour = + res4[0].total_production); + params4.mpoint__ep_monitored__power_kw__gte = 100; + this.$API.enm.mpoint.stat + .req(params4) + .then((res) => { + let data4 = res4; + for (let k = 0; k < data4.length; k++) { + let val = + hourProduct == 0 + ? "/" + : ( + data4[k].val / + hourProduct + ).toFixed(2); + that.tableDatas[k][3] = val; + } + }); + } + }); }); - } - }) - .then((res2) => { - //昨日 - let params3 = {}; - params3.page = 0; - params3.year_s = year_d; - params3.month_s = month_d; - params3.day_s = days_d; - params3.type = "day_s"; - params3.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params3).then((res3) => { - if (res3.length > 0) { - let hourProduct = (that.allValDays = - res3[0].total_production); - params3.mpoint__ep_monitored__power_kw__gte = 100; - this.$API.enm.mpoint.stat.req(params3).then((res) => { - let data3 = res3; - for (let j = 0; j < data3.length; j++) { - let val = - hourProduct == 0 - ? "/" - : (data3[j].val / hourProduct).toFixed( - 2 - ); - that.tableDatas[j][4] = val; - } - }); - } - }); - //上小时 - let params4 = {}; - params4.page = 0; - params4.year = year_h; - params4.month = month_h; - params4.day = days_h; - params4.hour = hours_h; - params4.type = "hour_s"; - params4.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params4).then((res4) => { - if (res4.length > 0) { - let hourProduct = (that.allValHour = - res4[0].total_production); - params4.mpoint__ep_monitored__power_kw__gte = 100; - this.$API.enm.mpoint.stat.req(params4).then((res) => { - let data4 = res4; - for (let k = 0; k < data4.length; k++) { - let val = - hourProduct == 0 - ? "/" - : (data4[k].val / hourProduct).toFixed( - 2 - ); - that.tableDatas[k][3] = val; - } - }); - } - }); + that.getHourData(); + that.getDayData(); + that.getMonthData(); }); - that.getHourData(); - that.getDayData(); - that.getMonthData(); }, methods: { //获取小时数据 diff --git a/src/views/enm_rmbase/report.vue b/src/views/enm_rmbase/report.vue index 9f64d2bc..16affa26 100644 --- a/src/views/enm_rmbase/report.vue +++ b/src/views/enm_rmbase/report.vue @@ -85,7 +85,6 @@ -
小时生产参数统计图
{ - this.dataX = this.list.map((item) => item.x); - // 第1个Y轴 - this.dataY.push({ - name: "AA", - type: "line", // 直线 - yAxisIndex: 0, // 第几个Y轴 索引值 - symbolSize: "10", - // lineStyle: { color: '#4485f4' }, - data: this.list.map((item) => item.y), - }); - // 第2个Y轴 - this.dataY.push({ - name: "BB", - type: "line", - yAxisIndex: 1, // 第几个Y轴 索引值 - data: this.list.map((item) => item.z), - }); - // 第3个Y轴 - this.dataY.push({ - name: "CC", - type: "line", - yAxisIndex: 2, // 第几个Y轴 索引值 - data: this.list.map((item) => item.k), - }); - - this.init(this.dataX, this.dataY); - }); this.$nextTick(() => { var myDate = new Date(); let year = (that.year = myDate.getFullYear()); @@ -778,6 +707,7 @@ export default { let days = (that.days = myDate.getDate()); let hours = (that.hours = myDate.getHours()); let timeDate = myDate.getTime(); + that.timeStamp = timeDate; let dayTime = 24 * 60 * 60 * 1000; //昨天的计算 let year_d = year, @@ -798,171 +728,183 @@ export default { let month_h = hourDate.getMonth() + 1; let days_h = hourDate.getDate(); let hours_h = hourDate.getHours(); - - //昨日 - let params3 = {}; - params3.page = 0; - params3.year_s = year_d; - params3.month_s = month_d; - params3.day_s = days_d; - params3.type = "day_s"; - params3.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params3).then((res3) => { - if (res3.length > 0) { - let data3 = res3[0]; - that.tableDatas[0][3] = data3.total_production; - that.tableDatas[1][3] = data3.production_hour; - that.tableDatas[2][3] = data3.run_hour; - that.tableDatas[3][3] = data3.run_rate; - that.tableDatas[4][3] = data3.elec_consume_unit; - } - }); - //上小时 - let params4 = {}; - params4.page = 0; - params4.year = year_h; - params4.month = month_h; - params4.day = days_h; - params4.hour = hours_h; - params4.type = "hour_st"; - params4.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params4).then((res4) => { - if (res4.length > 0) { - let data4 = res4[0]; - that.tableDatas[0][2] = data4.total_production; - that.tableDatas[4][2] = data4.elec_consume_unit; - } - }); - //月目标 - let params5 = {}; - params5.page = 0; - params5.mgroup = "3346520558031773696"; - this.$API.mtm.goal.list - .req(params5) - .then((res5) => { - if (res5.length > 0) { - let data5 = res5; - data5.forEach((item5) => { - let str = "goal_val_" + that.month; - debugger; - console.log(str, item5[str]); - - if (item5.goal_cate_name == "总产量(t)") { - that.tableDatas[0][6] = item5[str]; - that.tableDatas[0][8] = item5.goal_val; - } else if ( - item5.goal_cate_name == "台时产量(t/h)" - ) { - that.tableDatas[1][6] = item5[str]; - that.tableDatas[1][8] = item5.goal_val; - } else if ( - item5.goal_cate_name == "运转时间(h)" - ) { - that.tableDatas[2][6] = item5[str]; - that.tableDatas[2][8] = item5.goal_val; - } else if (item5.goal_cate_name == "运转率(%)") { - that.tableDatas[3][6] = item5[str]; - that.tableDatas[3][8] = item5.goal_val; - } else if ( - item5.goal_cate_name == - "单位产品分布电耗(KW·h/t)" - ) { - that.tableDatas[4][6] = item5[str]; - that.tableDatas[4][8] = item5.goal_val; - } - }); - } - }) + this.$API.mtm.mgroup.list + .req({ page: 0, search: "原料磨" }) .then((res) => { - //年 - let params1 = {}; - params1.page = 0; - params1.year_s = year; - params1.type = "year_s"; - params1.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params1).then((res1) => { - if (res1.length > 0) { - let data1 = res1[0]; - that.tableDatas[0][5] = data1.total_production; - that.tableDatas[0][9] = precen( - that.tableDatas[0][5], - that.tableDatas[0][8] - ); - that.tableDatas[1][5] = data1.production_hour; - that.tableDatas[1][9] = precen( - that.tableDatas[1][5], - that.tableDatas[1][8] - ); - that.tableDatas[2][5] = data1.run_hour; - that.tableDatas[2][9] = precen( - that.tableDatas[2][5], - that.tableDatas[2][8] - ); - that.tableDatas[3][5] = data1.run_rate; - that.tableDatas[3][9] = precen( - that.tableDatas[3][5], - that.tableDatas[3][8] - ); - that.tableDatas[4][5] = data1.elec_consume_unit; - that.tableDatas[4][9] = precen( - that.tableDatas[4][5], - that.tableDatas[4][8] - ); - } else { + console.log("原料磨", res); + that.query.mgroup = res[0].id; + //昨日 + let params3 = {}; + params3.page = 0; + params3.year_s = year_d; + params3.month_s = month_d; + params3.day_s = days_d; + params3.type = "day_s"; + params3.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params3).then((res3) => { + if (res3.length > 0) { + let data3 = res3[0]; + that.tableDatas[0][3] = data3.total_production; + that.tableDatas[1][3] = data3.production_hour; + that.tableDatas[2][3] = data3.run_hour; + that.tableDatas[3][3] = data3.run_rate; + that.tableDatas[4][3] = data3.elec_consume_unit; } }); - //月 - let params2 = {}; - params2.page = 0; - params2.year_s = year; - params2.month_s = month; - params2.type = "month_s"; - params2.mgroup = this.query.mgroup; - this.$API.enm.enstat.req(params2).then((res2) => { - if (res2.length > 0) { - let data2 = res2[0]; - that.tableDatas[0][4] = data2.total_production; - if (that.tableDatas[0][4] > that.tableDatas[0][6]) { - that.wraning = true; + //上小时 + let params4 = {}; + params4.page = 0; + params4.year = year_h; + params4.month = month_h; + params4.day = days_h; + params4.hour = hours_h; + params4.type = "hour_st"; + params4.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params4).then((res4) => { + if (res4.length > 0) { + let data4 = res4[0]; + that.tableDatas[0][2] = data4.total_production; + that.tableDatas[4][2] = data4.elec_consume_unit; + } + }); + //月目标 + let params5 = {}; + params5.page = 0; + params5.mgroup = that.query.mgroup; + this.$API.mtm.goal.list + .req(params5) + .then((res5) => { + if (res5.length > 0) { + let data5 = res5; + data5.forEach((item5) => { + let str = "goal_val_" + that.month; + debugger; + console.log(str, item5[str]); + + if (item5.goal_cate_name == "总产量(t)") { + that.tableDatas[0][6] = item5[str]; + that.tableDatas[0][8] = item5.goal_val; + } else if ( + item5.goal_cate_name == + "台时产量(t/h)" + ) { + that.tableDatas[1][6] = item5[str]; + that.tableDatas[1][8] = item5.goal_val; + } else if ( + item5.goal_cate_name == "运转时间(h)" + ) { + that.tableDatas[2][6] = item5[str]; + that.tableDatas[2][8] = item5.goal_val; + } else if ( + item5.goal_cate_name == "运转率(%)" + ) { + that.tableDatas[3][6] = item5[str]; + that.tableDatas[3][8] = item5.goal_val; + } else if ( + item5.goal_cate_name == + "单位产品分布电耗(KW·h/t)" + ) { + that.tableDatas[4][6] = item5[str]; + that.tableDatas[4][8] = item5.goal_val; + } + }); } - that.tableDatas[0][7] = precen( - that.tableDatas[0][4], - that.tableDatas[0][6] - ); - that.tableDatas[1][4] = data2.production_hour; - that.tableDatas[1][7] = precen( - that.tableDatas[1][4], - that.tableDatas[1][6] - ); - that.tableDatas[2][4] = data2.run_hour; - that.tableDatas[2][7] = precen( - that.tableDatas[2][4], - that.tableDatas[2][6] - ); - that.tableDatas[3][4] = data2.run_rate; - that.tableDatas[3][7] = precen( - that.tableDatas[3][4], - that.tableDatas[3][6] - ); - that.tableDatas[4][4] = data2.elec_consume_unit; - that.tableDatas[4][7] = precen( - that.tableDatas[4][4], - that.tableDatas[4][6] - ); - } - }); + }) + .then((res) => { + //年 + let params1 = {}; + params1.page = 0; + params1.year_s = year; + params1.type = "year_s"; + params1.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params1).then((res1) => { + if (res1.length > 0) { + let data1 = res1[0]; + that.tableDatas[0][5] = + data1.total_production; + that.tableDatas[0][9] = precen( + that.tableDatas[0][5], + that.tableDatas[0][8] + ); + that.tableDatas[1][5] = + data1.production_hour; + that.tableDatas[1][9] = precen( + that.tableDatas[1][5], + that.tableDatas[1][8] + ); + that.tableDatas[2][5] = data1.run_hour; + that.tableDatas[2][9] = precen( + that.tableDatas[2][5], + that.tableDatas[2][8] + ); + that.tableDatas[3][5] = data1.run_rate; + that.tableDatas[3][9] = precen( + that.tableDatas[3][5], + that.tableDatas[3][8] + ); + that.tableDatas[4][5] = + data1.elec_consume_unit; + that.tableDatas[4][9] = precen( + that.tableDatas[4][5], + that.tableDatas[4][8] + ); + } else { + } + }); + //月 + let params2 = {}; + params2.page = 0; + params2.year_s = year; + params2.month_s = month; + params2.type = "month_s"; + params2.mgroup = this.query.mgroup; + this.$API.enm.enstat.req(params2).then((res2) => { + if (res2.length > 0) { + let data2 = res2[0]; + that.tableDatas[0][4] = + data2.total_production; + if ( + that.tableDatas[0][4] > + that.tableDatas[0][6] + ) { + that.wraning = true; + } + that.tableDatas[0][7] = precen( + that.tableDatas[0][4], + that.tableDatas[0][6] + ); + that.tableDatas[1][4] = + data2.production_hour; + that.tableDatas[1][7] = precen( + that.tableDatas[1][4], + that.tableDatas[1][6] + ); + that.tableDatas[2][4] = data2.run_hour; + that.tableDatas[2][7] = precen( + that.tableDatas[2][4], + that.tableDatas[2][6] + ); + that.tableDatas[3][4] = data2.run_rate; + that.tableDatas[3][7] = precen( + that.tableDatas[3][4], + that.tableDatas[3][6] + ); + that.tableDatas[4][4] = + data2.elec_consume_unit; + that.tableDatas[4][7] = precen( + that.tableDatas[4][4], + that.tableDatas[4][6] + ); + } + }); + }); + that.getHourData(); + that.getDayData(); + that.getMonthData(); }); - that.getHourData(); - that.getDayData(); - that.getMonthData(); }); }, methods: { - init(dataX, dataY) { - this.myChart = echarts.init(document.getElementById("main")); - // 使用刚指定的配置项和数据显示图表。 - this.myChart.setOption(this.option); - }, //获取小时数据 getHourData() { let that = this; diff --git a/src/views/enm_rmbase/teamAnalysis.vue b/src/views/enm_rmbase/teamAnalysis.vue index 37fde6f2..20e9069a 100644 --- a/src/views/enm_rmbase/teamAnalysis.vue +++ b/src/views/enm_rmbase/teamAnalysis.vue @@ -83,9 +83,10 @@ export default { year_s: "", page: 0, type: "month_st", - mgroup: "3346520558031773696", + mgroup: "", }, tableDatas: [], + exportLoading: false, }; }, mounted() { @@ -93,17 +94,23 @@ export default { var myDate = new Date(); let year = myDate.getFullYear(); that.query.year_s = year; - let params = {}; - params.page = 0; - params.year = year; - params.mgroup = that.query.mgroup; - this.$API.mtm.goal.list.req(params).then((res) => { - let data = []; - if (res.length > 0) { - data = res[0]; - } - that.getData(data); - }); + this.$API.mtm.mgroup.list + .req({ page: 0, search: "原料磨" }) + .then((res) => { + console.log("原料磨", res); + 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) => { + let data = []; + if (res.length > 0) { + data = res[0]; + } + that.getData(data); + }); + }); }, methods: { getData(goalData) { @@ -112,7 +119,7 @@ export default { query0.page = 0; query0.type = "month_st"; query0.year_s = that.query.year_s - 1; - query0.mgroup = "3346520558031773696"; + query0.mgroup = that.query.mgroup; let wrapArr = [], wrapArr0 = [], wrapArrs = []; @@ -124,6 +131,7 @@ export default { //先按月份排序,再按班组排序 let n0 = item0.month_s; let ind0 = 0; + let team_name0 = item0.team_name; if (team_name0.indexOf("甲") > -1) { ind0 = (n0 - 1) * 3; } else if (team_name0.indexOf("乙") > -1) { @@ -133,8 +141,6 @@ export default { } wrapArr0[ind0] = item0; }); - debugger; - console.log(wrapArr0); } else { } this.$API.enm.enstat.req(that.query).then((res) => { diff --git a/src/views/enm_rmbase/workshopAnalysis.vue b/src/views/enm_rmbase/workshopAnalysis.vue index 8a51c814..ba694f11 100644 --- a/src/views/enm_rmbase/workshopAnalysis.vue +++ b/src/views/enm_rmbase/workshopAnalysis.vue @@ -1,274 +1,322 @@ +
+ +
+ + + 导出xlsx + + 打印 +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ 原料磨工段车间单位产品电耗月度分析表 +
月份当期值(KW·h/t)目标值(KW·h/t)当期与目标差值(KW·h/t)环期值(KW·h/t)当期与环期差值(KW·h/t)环比增长率(%)同比增长率(%)
+
+ + + + + {{ item1 }} +
+
+
+
+
+
+ \ No newline at end of file +.printWrap { + width: 100%; + overflow-x: scroll; +} +