feat:增加水泥包装

This commit is contained in:
zty 2024-08-21 17:54:28 +08:00
parent 2a7502d023
commit 11491e1394
8 changed files with 52 additions and 30 deletions

View File

@ -0,0 +1,5 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
<path fill="currentColor" d="M19.836 10.486a.9.9 0 0 1-.21.47l-9.75 10.71a.94.94 0 0 1-.49.33q-.125.015-.25 0a1 1 0 0 1-.41-.09a.92.92 0 0 1-.45-.46a.9.9 0 0 1-.07-.58l.86-6.86h-3.63a1.7 1.7 0 0 1-.6-.15a1.29 1.29 0 0 1-.68-.99a1.3 1.3 0 0 1 .09-.62l3.78-9.45c.1-.239.266-.444.48-.59a1.3 1.3 0 0 1 .72-.21h7.24c.209.004.414.055.6.15c.188.105.349.253.47.43c.112.179.18.38.2.59a1.2 1.2 0 0 1-.1.61l-2.39 5.57h3.65a1 1 0 0 1 .51.16a1 1 0 0 1 .43 1z" />
</svg>
</template>

View File

@ -22,4 +22,5 @@ export { default as Shebei } from './Shebei.vue'
export { default as Xiaoshou } from './Xiaoshou.vue'
export { default as Zhixing } from './Zhixing.vue'
export { default as Zhizao } from './Zhizao.vue'
export { default as Env } from './Env.vue'
export { default as Env } from './Env.vue'
export { default as Elec } from './Elec.vue'

View File

@ -235,7 +235,7 @@ const routes = [
path: "/enm_slag",
meta: {
title: "电石渣",
icon: "el-icon-opportunity",
icon: "el-icon-menu",
type: "menu",
perms: ["enm_slag"],
},
@ -341,7 +341,7 @@ const routes = [
path: "/enm_rm",
meta: {
title: "原料磨",
icon: "el-icon-list",
icon: "el-icon-menu",
type: "menu",
perms: ["enm_rm"],
},
@ -404,7 +404,7 @@ const routes = [
path: "/enm_rmbase",
meta: {
title: "原料磨",
icon: "el-icon-list",
icon: "el-icon-menu",
type: "menu",
perms: ["enm_rmbase"],
},
@ -467,7 +467,7 @@ const routes = [
path: "/enm_coal",
meta: {
title: "煤磨",
icon: "el-icon-brush-filled",
icon: "el-icon-menu",
type: "menu",
perms: ["enm_coal"],
},
@ -530,7 +530,7 @@ const routes = [
path: "/enm_coalbase",
meta: {
title: "煤磨",
icon: "el-icon-brush-filled",
icon: "el-icon-menu",
type: "menu",
perms: ["enm_coalbase"],
},
@ -921,7 +921,7 @@ const routes = [
path: "/enm_energy",
meta: {
title: "电量报表",
icon: "el-icon-share",
icon: "sc-icon-elec",
type: "menu",
perms: ["enm_energy"],
},

View File

@ -113,13 +113,12 @@ export default {
});
},
methods: {
getData() {
getData(goalData) {
let that = this;
let query0 = {};
query0.page = 0;
query0.type = "month_st";
query0.year_s = that.query.year_s - 1;
query0.mgroup = "3346520558031773696";
let wrapArr = [],
wrapArr0 = [],
wrapArrs = [];
@ -167,7 +166,7 @@ export default {
arr[3] = item.elec_consume_unit; //KW·h/t
let keyVale = "goal_val_" + n;
arr[4] = goalData[keyVale]; //KW·h/t//
arr[5] = arr[3] - item.celec_consume_unit; //KW·h/t
arr[5] = arr[3] - arr[4]; //KW·h/t
let ind_pre = 0,
huanbi = 0;
if (item.month_s == 1) {
@ -184,13 +183,35 @@ export default {
: "/";
}
arr[6] = huanbi; //KW·h/t
arr[7] = item.celec_consume_unit; //KW·h/t
arr[8] = item.celec_consume_unit; //%
arr[9] = item.celec_consume_unit; //%
arr[10] = item.celec_consume_unit; //%
let diff = 0;
if (arr[6] == "/"){
diff == "/";
}else{
diff = arr[3] - arr[6]; //KW·h/t
}
arr[7] = diff;
if (arr[7]=="/" || arr[6]=="/" || arr[6]==0){
arr[8] = "/";
}else{
arr[8] = (arr[7]/arr[6])*100 //%= KW·h/t/KW·h/t*100%
}
let sameRate = 0;
if (
wrapArr0[ind] &&
wrapArr0[ind].elec_consume_unit
) {
sameRate =
((arrs[1] -
wrapArr0[ind].elec_consume_unit) /
wrapArr0[ind].elec_consume_unit) *
100;
} else {
sameRate = "/";
}
arr[9] = sameRate; ///%/ wrapArr0[ind].elec_consume_unit
// arr[10] = item.celec_consume_unit; //%-wrapArr0[ind].elec_consume_unit
wrapArr[ind] = arr;
});
console.log(wrapArr);
that.tableDatas = wrapArr;
} else {
}

View File

@ -240,9 +240,9 @@ export default {
let num = index - 1;
if (
wrapArr[num] &&
wrapArr[num].elec_consume_unit
wrapArr[num][1]
) {
lastNum = wrapArr[num].elec_consume_unit;
lastNum = wrapArr[num][1];
} else {
lastNum = "/";
}

View File

@ -22,6 +22,7 @@
type="primary"
@click.stop="addStlog"
v-if="activeName == 'fourth'"
v-auth="'sflogexp.create'"
style="
position: absolute;
top: 6px;
@ -129,7 +130,7 @@
<el-button
type="primary"
:loading="isSaveing"
@click="submit"
@click="submit" v-auth="'sflog.update'"
>保存</el-button
>
</el-footer>
@ -168,7 +169,7 @@
type="primary"
:loading="isSaveing"
@click="submit5(item)"
style="margin-left: 20px"
style="margin-left: 20px" v-auth="'mpointstat.create'"
>保存</el-button
>
</el-col>
@ -225,6 +226,7 @@
size="small"
@click="mpointStat_del(scope.row)"
type="danger"
v-auth="'mpointstat.delete'"
>删除</el-button
>
</template>
@ -539,6 +541,7 @@
@click="
sflogexp_edit(scope.row)
"
v-auth="'sflogexp.update'"
type="primary"
>编辑</el-button
>

View File

@ -104,7 +104,7 @@
size="small"
@click="sflog_edit(scope.row)"
type="primary"
>编辑</el-button
>详情</el-button
>
<el-divider direction="vertical"></el-divider>
<el-button

View File

@ -227,11 +227,7 @@ export default {
data: [],
},
yAxis: yAxis,
series: {
name: "烘干破主电机",
type: "bar",
data: [],
},
series: [],
},
option3: {
color: colors,
@ -261,11 +257,7 @@ export default {
],
},
yAxis: yAxis,
series: {
name: "烘干破主电机",
type: "bar",
data: [],
},
series: [],
},
mpoints: [],
};