feat: 车间单耗分析说明添加完毕
This commit is contained in:
parent
a0b1659f10
commit
4ff97bc377
|
@ -38,7 +38,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="8">
|
<th colspan="9">
|
||||||
煤磨工序车间单位产品电耗月度分析表
|
煤磨工序车间单位产品电耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -51,6 +51,7 @@
|
||||||
<th>当期与环期差值(KW·h/t)</th>
|
<th>当期与环期差值(KW·h/t)</th>
|
||||||
<th>环比增长率(%)</th>
|
<th>环比增长率(%)</th>
|
||||||
<th>同比增长率(%)</th>
|
<th>同比增长率(%)</th>
|
||||||
|
<th>分析说明</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -59,8 +60,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 8 ? '300px' : '100px',display: ind == 9 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass(item1, ind)">
|
<div :class="bindClass(item1, ind)" v-if="ind !=8 && ind !=9">
|
||||||
<span v-if="item1 > 0 && ind == 3"
|
<span v-if="item1 > 0 && ind == 3"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -75,6 +77,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 8"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -219,6 +232,8 @@ export default {
|
||||||
that.monthGoal[ind] !== undefined
|
that.monthGoal[ind] !== undefined
|
||||||
? that.monthGoal[ind]
|
? that.monthGoal[ind]
|
||||||
: "/";
|
: "/";
|
||||||
|
arr[3] = item.note;
|
||||||
|
arr[4] = item.id;
|
||||||
wrapArr.push(arr);
|
wrapArr.push(arr);
|
||||||
});
|
});
|
||||||
wrapArr.forEach((item, index) => {
|
wrapArr.forEach((item, index) => {
|
||||||
|
@ -289,6 +304,8 @@ export default {
|
||||||
sameRate = "/";
|
sameRate = "/";
|
||||||
}
|
}
|
||||||
arrs[7] = sameRate;
|
arrs[7] = sameRate;
|
||||||
|
arrs[8] = item[3];
|
||||||
|
arrs[9] = item[4];
|
||||||
wrapArrs.push(arrs);
|
wrapArrs.push(arrs);
|
||||||
});
|
});
|
||||||
that.tableDatas = wrapArrs;
|
that.tableDatas = wrapArrs;
|
||||||
|
@ -319,6 +336,12 @@ export default {
|
||||||
this.$XLSX("#myTable", this.tableName);
|
this.$XLSX("#myTable", this.tableName);
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
},
|
},
|
||||||
|
enstatNoteChange(val, item){
|
||||||
|
this.$API.enm.enstat_update.req(item[9], {"note": val}).then((res)=>{
|
||||||
|
this.$message.success("修改成功");
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="8">车间单位产品电耗月度分析表</th>
|
<th colspan="9">车间单位产品电耗月度分析表</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>月份</th>
|
<th>月份</th>
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
<th>当期与环期差值(KW·h/t)</th>
|
<th>当期与环期差值(KW·h/t)</th>
|
||||||
<th>环比增长率(%)</th>
|
<th>环比增长率(%)</th>
|
||||||
<th>同比增长率(%)</th>
|
<th>同比增长率(%)</th>
|
||||||
|
<th>分析说明</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -71,8 +72,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 8 ? '300px' : '100px',display: ind == 9 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass1(item1, ind)">
|
<div :class="bindClass1(item1, ind)" v-if="ind !=8 && ind !=9">
|
||||||
<span v-if="item1 > 0 && ind == 3"
|
<span v-if="item1 > 0 && ind == 3"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -87,6 +89,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 8"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item, ind)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -102,7 +115,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9">
|
<th colspan="10">
|
||||||
车间单位产品综合电耗月度分析表
|
车间单位产品综合电耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -114,6 +127,7 @@
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>1级</th>
|
<th>1级</th>
|
||||||
|
@ -127,8 +141,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 9 ? '300px' : '100px',display: ind == 10 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass2(item1, ind)">
|
<div :class="bindClass2(item1, ind)" v-if="ind !=9 && ind !=10">
|
||||||
<span v-if="item1 > 0 && ind == 6"
|
<span v-if="item1 > 0 && ind == 6"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -143,6 +158,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 9"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item, ind)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -158,7 +184,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9">
|
<th colspan="10">
|
||||||
车间单位产品标煤耗月度分析表
|
车间单位产品标煤耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -170,6 +196,7 @@
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>1级</th>
|
<th>1级</th>
|
||||||
|
@ -183,8 +210,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 9 ? '300px' : '100px',display: ind == 10 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass3(item1, ind)">
|
<div :class="bindClass3(item1, ind)" v-if="ind !=9 && ind !=10">
|
||||||
<span v-if="item1 > 0 && ind == 6"
|
<span v-if="item1 > 0 && ind == 6"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -199,6 +227,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 9"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item, ind)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -214,7 +253,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9">
|
<th colspan="10">
|
||||||
车间单位产品综合能耗月度分析表
|
车间单位产品综合能耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -226,6 +265,7 @@
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>1级</th>
|
<th>1级</th>
|
||||||
|
@ -239,8 +279,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 9 ? '300px' : '100px',display: ind == 10 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass4(item1, ind)">
|
<div :class="bindClass4(item1, ind)" v-if="ind !=9 && ind !=10">
|
||||||
<span v-if="item1 > 0 && ind == 6"
|
<span v-if="item1 > 0 && ind == 6"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -255,6 +296,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 9"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item, ind)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -608,6 +660,8 @@ export default {
|
||||||
sameRate = "/";
|
sameRate = "/";
|
||||||
}
|
}
|
||||||
arrs[7] = sameRate;
|
arrs[7] = sameRate;
|
||||||
|
arrs[8] = item.note;
|
||||||
|
arrs[9] = item.id;
|
||||||
wrapArrs.push(arrs);
|
wrapArrs.push(arrs);
|
||||||
arrs2[1] = item.celec_consume_unit;
|
arrs2[1] = item.celec_consume_unit;
|
||||||
arrs2[2] =
|
arrs2[2] =
|
||||||
|
@ -668,6 +722,8 @@ export default {
|
||||||
sameRate2 = "/";
|
sameRate2 = "/";
|
||||||
}
|
}
|
||||||
arrs2[8] = sameRate2;
|
arrs2[8] = sameRate2;
|
||||||
|
arrs2[9] = item.note;
|
||||||
|
arrs2[10] = item.id;
|
||||||
wrapArrs2.push(arrs2);
|
wrapArrs2.push(arrs2);
|
||||||
|
|
||||||
arrs3[1] = item.coal_consume_unit;
|
arrs3[1] = item.coal_consume_unit;
|
||||||
|
@ -729,6 +785,8 @@ export default {
|
||||||
sameRate3 = "/";
|
sameRate3 = "/";
|
||||||
}
|
}
|
||||||
arrs3[8] = sameRate3;
|
arrs3[8] = sameRate3;
|
||||||
|
arrs3[9] = item.note;
|
||||||
|
arrs3[10] = item.id;
|
||||||
wrapArrs3.push(arrs3);
|
wrapArrs3.push(arrs3);
|
||||||
|
|
||||||
arrs4[1] = item.cen_consume_unit;
|
arrs4[1] = item.cen_consume_unit;
|
||||||
|
@ -790,6 +848,8 @@ export default {
|
||||||
sameRate4 = "/";
|
sameRate4 = "/";
|
||||||
}
|
}
|
||||||
arrs4[8] = sameRate4;
|
arrs4[8] = sameRate4;
|
||||||
|
arrs4[9] = item.note;
|
||||||
|
arrs4[10] = item.id;
|
||||||
wrapArrs4.push(arrs4);
|
wrapArrs4.push(arrs4);
|
||||||
});
|
});
|
||||||
that.tableDatas = wrapArrs;
|
that.tableDatas = wrapArrs;
|
||||||
|
@ -985,6 +1045,13 @@ export default {
|
||||||
this.$XLSX("#myTable", this.tableName);
|
this.$XLSX("#myTable", this.tableName);
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
},
|
},
|
||||||
|
enstatNoteChange(val, item, ind){
|
||||||
|
console.log(item, ind)
|
||||||
|
this.$API.enm.enstat_update.req(item[ind+1], {"note": val}).then((res)=>{
|
||||||
|
this.$message.success("修改成功");
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9">
|
<th colspan="10">
|
||||||
水泥粉磨工序车间单位产品电耗月度分析表
|
水泥粉磨工序车间单位产品电耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>1级</th>
|
<th>1级</th>
|
||||||
|
@ -76,8 +77,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 9 ? '300px' : '100px',display: ind == 10 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass(item1, ind)">
|
<div :class="bindClass(item1, ind)" v-if="ind !=9 && ind !=10">
|
||||||
<span v-if="item1 > 0 && ind == 6"
|
<span v-if="item1 > 0 && ind == 6"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -86,6 +88,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 9"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -101,7 +114,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9">
|
<th colspan="10">
|
||||||
水泥粉磨工序车间单位产品综合能耗月度分析表
|
水泥粉磨工序车间单位产品综合能耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -113,6 +126,7 @@
|
||||||
<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>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>1级</th>
|
<th>1级</th>
|
||||||
|
@ -126,8 +140,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 9 ? '300px' : '100px',display: ind == 10 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass(item1, ind)">
|
<div :class="bindClass(item1, ind)" v-if="ind !=9 && ind !=10">
|
||||||
<span v-if="item1 > 0 && ind == 6"
|
<span v-if="item1 > 0 && ind == 6"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -136,6 +151,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 9"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -318,6 +344,8 @@ export default {
|
||||||
arr[4] = that.monthGoal2[ind] !== undefined
|
arr[4] = that.monthGoal2[ind] !== undefined
|
||||||
? that.monthGoal2[ind]
|
? that.monthGoal2[ind]
|
||||||
: "/";
|
: "/";
|
||||||
|
arr[5] = item.note;
|
||||||
|
arr[6] = item.id;
|
||||||
wrapArr.push(arr);
|
wrapArr.push(arr);
|
||||||
});
|
});
|
||||||
wrapArr.forEach((item, index) => {
|
wrapArr.forEach((item, index) => {
|
||||||
|
@ -383,6 +411,8 @@ export default {
|
||||||
sameRate = "/";
|
sameRate = "/";
|
||||||
}
|
}
|
||||||
arrs[8] = sameRate;
|
arrs[8] = sameRate;
|
||||||
|
arrs[9] = item[5];
|
||||||
|
arrs[10] = item[6];
|
||||||
wrapArrs.push(arrs);
|
wrapArrs.push(arrs);
|
||||||
|
|
||||||
arrs2[0] = item[0];
|
arrs2[0] = item[0];
|
||||||
|
@ -442,6 +472,8 @@ export default {
|
||||||
sameRate2 = "/";
|
sameRate2 = "/";
|
||||||
}
|
}
|
||||||
arrs2[8] = sameRate2;
|
arrs2[8] = sameRate2;
|
||||||
|
arrs2[9] = item[5];
|
||||||
|
arrs2[10] = item[6];
|
||||||
wrapArrs2.push(arrs2);
|
wrapArrs2.push(arrs2);
|
||||||
});
|
});
|
||||||
that.tableDatas = wrapArrs;
|
that.tableDatas = wrapArrs;
|
||||||
|
@ -467,6 +499,12 @@ export default {
|
||||||
this.$XLSX("#myTable", this.tableName);
|
this.$XLSX("#myTable", this.tableName);
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
},
|
},
|
||||||
|
enstatNoteChange(val, item){
|
||||||
|
this.$API.enm.enstat_update.req(item[10], {"note": val}).then((res)=>{
|
||||||
|
this.$message.success("修改成功");
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="8">
|
<th colspan="9">
|
||||||
水泥包装工序车间单位产品电耗月度分析表
|
水泥包装工序车间单位产品电耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -51,6 +51,7 @@
|
||||||
<th>当期与环期差值(KW·h/t)</th>
|
<th>当期与环期差值(KW·h/t)</th>
|
||||||
<th>环比增长率(%)</th>
|
<th>环比增长率(%)</th>
|
||||||
<th>同比增长率(%)</th>
|
<th>同比增长率(%)</th>
|
||||||
|
<th>分析说明</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -59,8 +60,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 8 ? '300px' : '100px',display: ind == 9 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass(item1, ind)">
|
<div :class="bindClass(item1, ind)" v-if="ind !=8 && ind !=9">
|
||||||
<span v-if="item1 > 0 && ind == 3"
|
<span v-if="item1 > 0 && ind == 3"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -75,6 +77,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 8"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -220,6 +233,8 @@ export default {
|
||||||
that.monthGoal[ind] !== undefined
|
that.monthGoal[ind] !== undefined
|
||||||
? that.monthGoal[ind]
|
? that.monthGoal[ind]
|
||||||
: "/";
|
: "/";
|
||||||
|
arr[3] = item.note;
|
||||||
|
arr[4] = item.id;
|
||||||
wrapArr[ind] = arr;
|
wrapArr[ind] = arr;
|
||||||
});
|
});
|
||||||
wrapArr.forEach((item, index) => {
|
wrapArr.forEach((item, index) => {
|
||||||
|
@ -291,6 +306,8 @@ export default {
|
||||||
sameRate = "/";
|
sameRate = "/";
|
||||||
}
|
}
|
||||||
arrs[7] = sameRate;
|
arrs[7] = sameRate;
|
||||||
|
arrs[8] = item[3];
|
||||||
|
arrs[9] = item[4];
|
||||||
wrapArrs.push(arrs);
|
wrapArrs.push(arrs);
|
||||||
});
|
});
|
||||||
that.tableDatas = wrapArrs;
|
that.tableDatas = wrapArrs;
|
||||||
|
@ -323,6 +340,12 @@ export default {
|
||||||
this.$XLSX("#myTable", this.tableName);
|
this.$XLSX("#myTable", this.tableName);
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
},
|
},
|
||||||
|
enstatNoteChange(val, item){
|
||||||
|
this.$API.enm.enstat_update.req(item[9], {"note": val}).then((res)=>{
|
||||||
|
this.$message.success("修改成功");
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
>
|
>
|
||||||
<thead class="myTableHead">
|
<thead class="myTableHead">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="8">
|
<th colspan="9">
|
||||||
生料工序车间单位产品电耗月度分析表
|
生料工序车间单位产品电耗月度分析表
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -51,6 +51,7 @@
|
||||||
<th>当期与环期差值(KW·h/t)</th>
|
<th>当期与环期差值(KW·h/t)</th>
|
||||||
<th>环比增长率(%)</th>
|
<th>环比增长率(%)</th>
|
||||||
<th>同比增长率(%)</th>
|
<th>同比增长率(%)</th>
|
||||||
|
<th>分析说明</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -59,8 +60,9 @@
|
||||||
v-for="(item1, ind) in item"
|
v-for="(item1, ind) in item"
|
||||||
:key="ind"
|
:key="ind"
|
||||||
class="numCell"
|
class="numCell"
|
||||||
|
:style="{width: ind == 8 ? '300px' : '100px',display: ind == 9 ? 'none' : 'table-cell'}"
|
||||||
>
|
>
|
||||||
<div :class="bindClass(item1, ind)">
|
<div :class="bindClass(item1, ind)" v-if="ind !=8 && ind !=9">
|
||||||
<span v-if="item1 > 0 && ind == 3"
|
<span v-if="item1 > 0 && ind == 3"
|
||||||
>▲</span
|
>▲</span
|
||||||
>
|
>
|
||||||
|
@ -75,6 +77,17 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 8"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -220,6 +233,8 @@ export default {
|
||||||
that.monthGoal[ind] !== undefined
|
that.monthGoal[ind] !== undefined
|
||||||
? that.monthGoal[ind]
|
? that.monthGoal[ind]
|
||||||
: "/";
|
: "/";
|
||||||
|
arr[3] = item.note;
|
||||||
|
arr[4] = item.id;
|
||||||
wrapArr.push(arr);
|
wrapArr.push(arr);
|
||||||
});
|
});
|
||||||
wrapArr.forEach((item, index) => {
|
wrapArr.forEach((item, index) => {
|
||||||
|
@ -291,6 +306,8 @@ export default {
|
||||||
sameRate = "/";
|
sameRate = "/";
|
||||||
}
|
}
|
||||||
arrs[7] = sameRate;
|
arrs[7] = sameRate;
|
||||||
|
arrs[8] = item[3];
|
||||||
|
arrs[9] = item[4];
|
||||||
wrapArrs.push(arrs);
|
wrapArrs.push(arrs);
|
||||||
});
|
});
|
||||||
that.tableDatas = wrapArrs;
|
that.tableDatas = wrapArrs;
|
||||||
|
@ -314,6 +331,12 @@ export default {
|
||||||
this.$XLSX("#myTable", this.tableName);
|
this.$XLSX("#myTable", this.tableName);
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
},
|
},
|
||||||
|
enstatNoteChange(val, item){
|
||||||
|
this.$API.enm.enstat_update.req(item[9], {"note": val}).then((res)=>{
|
||||||
|
this.$message.success("修改成功");
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -75,7 +75,18 @@
|
||||||
>
|
>
|
||||||
{{ item1 }}
|
{{ item1 }}
|
||||||
</div>
|
</div>
|
||||||
<el-input v-else-if="ind == 8" @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
<el-popover
|
||||||
|
trigger="hover"
|
||||||
|
placement="top"
|
||||||
|
width="auto"
|
||||||
|
v-if="ind == 8"
|
||||||
|
:content="item[ind]"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-input @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-popover>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue