|
|
@ -1,30 +1,36 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-form-item label="计量设备编号" prop="monitorCode">
|
|
|
|
<el-col :span="4" :xs="24">
|
|
|
|
|
|
|
|
<div class="head-container">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.monitorCode"
|
|
|
|
v-model="monitorName"
|
|
|
|
placeholder="请输入计量设备编号"
|
|
|
|
placeholder="请输入计量设备名称"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
size="small"
|
|
|
|
/>
|
|
|
|
prefix-icon="el-icon-search"
|
|
|
|
</el-form-item>
|
|
|
|
style="margin-bottom: 20px"
|
|
|
|
<el-form-item label="仪表值" prop="instrumentValue">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.instrumentValue"
|
|
|
|
|
|
|
|
placeholder="请输入仪表值"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
<el-form-item label="耗量" prop="expend">
|
|
|
|
<div class="head-container">
|
|
|
|
<el-input
|
|
|
|
<el-tree
|
|
|
|
v-model="queryParams.expend"
|
|
|
|
:data="deptOptions"
|
|
|
|
placeholder="请输入耗量"
|
|
|
|
:props="defaultProps"
|
|
|
|
clearable
|
|
|
|
:expand-on-click-node="false"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
:filter-node-method="filterNode"
|
|
|
|
|
|
|
|
ref="tree"
|
|
|
|
|
|
|
|
node-key="id"
|
|
|
|
|
|
|
|
default-expand-all
|
|
|
|
|
|
|
|
highlight-current
|
|
|
|
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="20" :xs="24">
|
|
|
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="报表日期" prop="reportDate">
|
|
|
|
<el-form-item label="报表日期" prop="reportDate">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.reportDate"
|
|
|
|
v-model="queryParams.reportDate"
|
|
|
@ -33,22 +39,8 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="开始时间" prop="beginTime">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.beginTime"
|
|
|
|
|
|
|
|
placeholder="请输入开始时间"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="结束时间" prop="endTime">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.endTime"
|
|
|
|
|
|
|
|
placeholder="请输入结束时间"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="是否标识" prop="isFlag">
|
|
|
|
<el-form-item label="是否标识" prop="isFlag">
|
|
|
|
<el-select v-model="queryParams.isFlag" placeholder="请选择是否标识" clearable>
|
|
|
|
<el-select v-model="queryParams.isFlag" placeholder="请选择是否标识" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
@ -67,30 +59,7 @@
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="创建时间" prop="createdTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.createdTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择创建时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="更新人" prop="updatedBy">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.updatedBy"
|
|
|
|
|
|
|
|
placeholder="请输入更新人"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="更新时间" prop="updatedTime">
|
|
|
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
|
|
|
v-model="queryParams.updatedTime"
|
|
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
placeholder="请选择更新时间">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@ -196,7 +165,8 @@
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
<!-- 添加或修改电日耗报对话框 -->
|
|
|
|
<!-- 添加或修改电日耗报对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
@ -260,12 +230,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listDayDnb, getDayDnb, delDayDnb, addDayDnb, updateDayDnb } from "@/api/report/DayDnb";
|
|
|
|
import { listDayDnb, getDayDnb, delDayDnb, addDayDnb, updateDayDnb } from "@/api/report/DayDnb";
|
|
|
|
|
|
|
|
import { getMonitorInfoTree } from '@/api/report/pointDnb'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "DayDnb",
|
|
|
|
name: "DayDnb",
|
|
|
|
dicts: ['is_flag'],
|
|
|
|
dicts: ['is_flag'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
// 部门树选项
|
|
|
|
|
|
|
|
deptOptions: undefined,
|
|
|
|
|
|
|
|
monitorName:undefined,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
@ -302,6 +276,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
|
|
|
|
|
defaultProps: {
|
|
|
|
|
|
|
|
children: "children",
|
|
|
|
|
|
|
|
label: "label"
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单校验
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -321,10 +299,33 @@ export default {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
// 根据名称筛选部门树
|
|
|
|
|
|
|
|
monitorName(val) {
|
|
|
|
|
|
|
|
this.$refs.tree.filter(val);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getDeptTrees();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
/** 查询计量设备下拉树结构 */
|
|
|
|
|
|
|
|
getDeptTrees() {
|
|
|
|
|
|
|
|
getMonitorInfoTree().then(response => {
|
|
|
|
|
|
|
|
this.deptOptions = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 筛选节点
|
|
|
|
|
|
|
|
filterNode(value, data) {
|
|
|
|
|
|
|
|
if (!value) return true;
|
|
|
|
|
|
|
|
return data.label.indexOf(value) !== -1;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 节点单击事件
|
|
|
|
|
|
|
|
handleNodeClick(data) {
|
|
|
|
|
|
|
|
this.queryParams.monitorCode = data.code;
|
|
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 查询电日耗报列表 */
|
|
|
|
/** 查询电日耗报列表 */
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
@ -365,6 +366,7 @@ export default {
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
resetQuery() {
|
|
|
|
resetQuery() {
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
|
|
this.queryParams.monitorCode = null;
|
|
|
|
this.handleQuery();
|
|
|
|
this.handleQuery();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|