Browse Source

对接热泵运行记录

meizhou
selia-zx 2 weeks ago
parent
commit
a8ff9d7354
  1. 27
      src/api/comprehensiveEnergy/hotPumpLog.js
  2. 1
      src/assets/icons/svg/hotPumpLog.svg
  3. 1091
      src/views/comprehensiveEnergy/hotPumpLog/index.vue
  4. 354
      src/views/comprehensiveEnergy/meterRecord/index.vue

27
src/api/comprehensiveEnergy/hotPumpLog.js

@ -0,0 +1,27 @@
import request from "@/utils/request";
export const hotWaterList = (data) => {
return request({
url: "/reportHotWater/list",
method: "post",
data: data,
});
};
// 导出
export const hotWaterExport = (data) => {
return request({
url: "/reportHotWater/export",
method: "post",
data,
responseType: "blob",
});
};
// 修改
export const hotWaterEdit = (data) => {
return request({
url: "/reportHotWater/edit",
method: "put",
data: data,
});
};

1
src/assets/icons/svg/hotPumpLog.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1761181457603" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5548" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M670.208 223.053H193.183v0.017c-24.374 0.412-44.02 20.636-44.02 45.549 0 24.914 19.64 45.139 44.02 45.55v0.016h477.025c24.719 0 44.765-20.402 44.765-45.566 0-25.163-20.046-45.566-44.765-45.566zM395.732 439.798h-202.55v0.023c-24.374 0.406-44.02 20.635-44.02 45.543 0 24.914 19.64 45.143 44.02 45.55v0.015h202.556c24.719 0 44.76-20.395 44.76-45.565 0.001-25.164-20.04-45.566-44.766-45.566zM276.261 658.512h-83.083v0.022c-24.374 0.406-44.014 20.636-44.014 45.544 0 24.913 19.64 45.144 44.014 45.55v0.017h83.083c24.719 0 44.759-20.397 44.759-45.566 0-25.165-20.041-45.567-44.759-45.567z m0 0" p-id="5549"></path><path d="M715.201 1.954H148.93C67.141 1.954 0.84 68.257 0.84 150.043v724.501c0 81.786 66.301 148.09 148.09 148.09h241.713v-0.084c0.695 0.033 1.386 0.049 2.081 0.049 25.164 0 45.566-20.396 45.566-45.566 0-25.163-20.402-45.565-45.566-45.565-0.695 0-1.392 0.023-2.081 0.056v-0.021H148.93c-31.455 0-56.958-25.503-56.958-56.957V150.043c0-31.461 25.503-56.958 56.958-56.958h566.271c31.46 0 56.957 25.497 56.957 56.958V320.46c0 25.164 20.402 45.566 45.566 45.566 25.169 0 45.566-20.402 45.566-45.566V150.043c0.001-81.786-66.302-148.089-148.089-148.089z m0 0" p-id="5550"></path><path d="M676.148 840.226c-7.364 0-14.695-2.041-21.226-6.091-11.942-7.409-19.073-20.219-19.073-34.271V652.755c0-14.056 7.131-26.865 19.073-34.269 11.942-7.41 26.593-8.099 39.181-1.853l128.683 73.556c13.817 6.856 22.405 20.697 22.405 36.121 0 15.417-8.588 29.263-22.405 36.12l-128.683 73.557c-5.707 2.831-11.841 4.239-17.955 4.239z m0 0" p-id="5551"></path><path d="M726.854 430.13c-163.575 0-296.181 132.605-296.181 296.18s132.605 296.18 296.181 296.18c163.574 0 296.179-132.604 296.179-296.18S890.429 430.13 726.854 430.13z m0 501.227c-113.248 0-205.048-91.805-205.048-205.047s91.8-205.047 205.048-205.047c113.241 0 205.047 91.805 205.047 205.047s-91.805 205.047-205.047 205.047z m0 0" p-id="5552"></path></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

1091
src/views/comprehensiveEnergy/hotPumpLog/index.vue

File diff suppressed because it is too large Load Diff

354
src/views/comprehensiveEnergy/meterRecord/index.vue

@ -40,8 +40,8 @@
</div>
</div>
<div class="meter-Context">
<div class="meter-li">最高气温:{{ heightValue }}</div>
<div class="meter-li">最低气温:{{ lowValue }}</div>
<div class="meter-li">最高气温:{{ heightValue }}</div>
<!-- <div class="meter-li">住房量:108</div> -->
</div>
<el-table
@ -54,7 +54,7 @@
>
<el-table-column prop="mtType" label="名称" width="180">
<template #default="{ row, $index }">
<!-- 当是第 27 行时显示 amount7费用 的值 -->
<!-- 当是第 xx 行时显示 位置 的值 -->
<span
v-if="
$index === 8 ||
@ -67,7 +67,7 @@
"
>{{ row.location }}</span
>
<!-- 否则显示合计的值 -->
<!-- 否则显示名称的值 -->
<span v-else>{{ row.mtType }}</span>
</template>
</el-table-column>
@ -86,7 +86,8 @@
<span v-else>{{ row.total }}</span>
</template>
</el-table-column>
<el-table-column prop="unitPrice" sortable label="单价"> </el-table-column>
<el-table-column prop="unitPrice" sortable label="单价">
</el-table-column>
<el-table-column prop="cost" sortable label="费用"> </el-table-column>
</el-table>
@ -98,7 +99,8 @@
>
<el-table-column prop="mtType" label="" width="180"> </el-table-column>
<el-table-column prop="location" label="分项"> </el-table-column>
<el-table-column prop="yesterdayReading" label="昨日流量"> </el-table-column>
<el-table-column prop="yesterdayReading" label="昨日流量">
</el-table-column>
<el-table-column prop="todayReading" label="今日流量"> </el-table-column>
<el-table-column prop="total" label="用量"> </el-table-column>
<el-table-column prop="remake" label="备注"> </el-table-column>
@ -145,340 +147,8 @@ export default {
monthValue: "",
lowValue: "", //
heightValue: "", //
tableData: [
{
id: "电表",
name: "位置1",
amount1: "编号1",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置2",
amount1: "编号2",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置3",
amount1: "编号3",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置4",
amount1: "编号4",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置5",
amount1: "编号5",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置6",
amount1: "编号6",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置7",
amount1: "编号7",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置8",
amount1: "编号8",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "空调系统用电总合计",
name: "位置9",
amount1: "编号9",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置10",
amount1: "编号10",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置11",
amount1: "编号11",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置12",
amount1: "编号12",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置13",
amount1: "编号13",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "热水热泵系统用电总合计",
name: "位置14",
amount1: "编号14",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "水表",
name: "位置15",
amount1: "编号15",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "水表",
name: "位置16",
amount1: "编号16",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "水表",
name: "位置17",
amount1: "编号17",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "水表",
name: "位置18",
amount1: "编号18",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "热水热泵系统用水总合计",
name: "位置19",
amount1: "编号19",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "燃气表(常用)",
name: "位置20",
amount1: "编号20",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "燃气表(备用)",
name: "位置21",
amount1: "编号21",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "蒸汽发生器+采暖用气总合计",
name: "位置22",
amount1: "编号22",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置23",
amount1: "编号23",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "蒸汽发生器+采暖用电总合计",
name: "位置24",
amount1: "编号24",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "电表",
name: "位置25",
amount1: "编号25",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "蒸汽发生器用水总合计",
name: "位置26",
amount1: "编号26",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
{
id: "水、电、气费用总合计(水/电/气价预估单价,单价需以实际缴费为准)",
name: "位置27",
amount1: "编号27",
amount2: "234.132",
amount3: 192.72,
amount4: 1,
amount5: 345,
amount6: 0.678,
amount7: 150,
},
],
tableData2: [
{
id: "流量计量表",
name: "中央空调冷冻流量",
amount1: "0",
amount2: "0",
amount3: 0,
amount4: "",
},
{
id: "3",
name: "中央空调冷却流量",
amount1: "0",
amount2: "0",
amount3: 0,
amount4: "",
},
{
id: "4",
name: "中央空调采暖流量",
amount1: "0",
amount2: "0",
amount3: 0,
amount4: "",
},
{
id: "1",
name: "蒸汽流量",
amount1: "0",
amount2: "0",
amount3: 0,
amount4: "",
},
],
tableData: [],
tableData2: [],
};
},
created() {
@ -602,13 +272,13 @@ export default {
if (res.code == 200 && res.rows) {
this.tableData = res.rows.slice(0, 27);
this.tableData2 = res.rows.slice(27, 31);
this.loading = false;
} else {
this.tableData = [];
this.tableData2 = [];
this.loading = false;
}
});
//
this.loading = false;
//
this.getTemValue();
},
@ -646,7 +316,7 @@ export default {
/** 导出按钮操作 */
handleExport() {
let data = {
todayTimestamp: this.dayValue,
todayTimestamp: `${this.dayValue} 00:00:00`,
};
console.log("导出数据参数", data);
meterReadingsExport(data).then((res) => {

Loading…
Cancel
Save