...
|
...
|
@@ -20,7 +20,7 @@ |
|
|
style="width: 100%;margin-bottom: 20px;"
|
|
|
row-key="id"
|
|
|
border
|
|
|
v-loading = "listLoading"
|
|
|
v-loading="listLoading"
|
|
|
lazy
|
|
|
:load="load"
|
|
|
:row-class-name="tableRowClassName"
|
...
|
...
|
@@ -41,7 +41,9 @@ |
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<!--<el-button type="primary" size="small" @click="handleUpdate(scope.row)">快速编辑</el-button>-->
|
|
|
<el-button v-if="scope.row.type=='3'" disabled type="primary" size="small" @click="handleAdd(scope.row)">新增</el-button>
|
|
|
<el-button v-if="scope.row.type=='3'" disabled type="primary" size="small"
|
|
|
@click="handleAdd(scope.row)">新增
|
|
|
</el-button>
|
|
|
<el-button v-else type="primary" size="small" @click="handleAdd(scope.row)">新增</el-button>
|
|
|
<el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleDel(scope.row)">删除</el-button>
|
...
|
...
|
@@ -49,11 +51,18 @@ |
|
|
<!--<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="pay(scope.row)">缴费</el-button>-->
|
|
|
<!--<el-button v-else disabled="" type="primary" size="small" @click="pay(scope.row)">缴费</el-button>-->
|
|
|
|
|
|
<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="waterMeter(scope.row)">水表实时信息</el-button>
|
|
|
<el-button v-else disabled="" type="primary" size="small" @click="waterMeter(scope.row)">水表实时信息</el-button>
|
|
|
<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="waterMeter(scope.row)">
|
|
|
水表实时信息
|
|
|
</el-button>
|
|
|
<el-button v-else disabled="" type="primary" size="small" @click="waterMeter(scope.row)">水表实时信息
|
|
|
</el-button>
|
|
|
|
|
|
<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electicityInfo(scope.row)">电表实时信息</el-button>
|
|
|
<el-button v-else disabled="" type="primary" size="small" @click="electicityInfo(scope.row)">电表实时信息</el-button>
|
|
|
<el-button v-if="scope.row.type=='3'" type="primary" size="small"
|
|
|
@click="electicityInfo(scope.row)">电表实时信息
|
|
|
</el-button>
|
|
|
<el-button v-else disabled="" type="primary" size="small" @click="electicityInfo(scope.row)">
|
|
|
电表实时信息
|
|
|
</el-button>
|
|
|
|
|
|
<!--<el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
|
|
<!--<el-button v-else type="primary" disabled="" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>-->
|
...
|
...
|
@@ -67,7 +76,8 @@ |
|
|
<!--工具条-->
|
|
|
<el-col :span="24" class="toolbar">
|
|
|
<!--<el-button type="danger" @click="batchRemove" :disabled="this.sels.length===0">批量删除</el-button>-->
|
|
|
<el-pagination layout="prev, pager, next" @current-change="handleCurrentChange" :page-size="5" :total="total" style="float:right;">
|
|
|
<el-pagination layout="prev, pager, next" @current-change="handleCurrentChange" :page-size="5"
|
|
|
:total="total" style="float:right;">
|
|
|
</el-pagination>
|
|
|
</el-col>
|
|
|
|
...
|
...
|
@@ -95,7 +105,9 @@ |
|
|
inactive-text="否"
|
|
|
inactive-value="0">
|
|
|
</el-switch>
|
|
|
<span>告警阀值</span> <el-input v-model="electrixityAddForm.warningthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
<span>告警阀值</span> <el-input
|
|
|
v-model="electrixityAddForm.warningthreshold" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>元</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="透支使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -107,7 +119,9 @@ |
|
|
inactive-text="否"
|
|
|
inactive-value="0">
|
|
|
</el-switch>
|
|
|
<span>可透支额度</span> <el-input v-model="electrixityAddForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
<span>可透支额度</span> <el-input
|
|
|
v-model="electrixityAddForm.overdraftthreshold" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>元</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="过负荷跳闸使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -119,10 +133,12 @@ |
|
|
inactive-text="否"
|
|
|
inactive-value="0">
|
|
|
</el-switch>
|
|
|
<span>功率</span> <el-input v-model="electrixityAddForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
|
|
<span>功率</span> <el-input
|
|
|
v-model="electrixityAddForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
|
|
<br/>
|
|
|
<br/>
|
|
|
<span>功率因数</span> <el-input v-model="electrixityAddForm.powerfactor" style="width: 100px;" auto-complete="off"></el-input>
|
|
|
<span>功率因数</span> <el-input
|
|
|
v-model="electrixityAddForm.powerfactor" style="width: 100px;" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="免费电度使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -134,7 +150,9 @@ |
|
|
inactive-text="否"
|
|
|
inactive-value="0">
|
|
|
</el-switch>
|
|
|
<span>免费电度</span> <el-input v-model="electrixityAddForm.freeelectricitylimit" style="width: 100px;" auto-complete="off"></el-input> <span>度</span>
|
|
|
<span>免费电度</span> <el-input
|
|
|
v-model="electrixityAddForm.freeelectricitylimit" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>度</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
...
|
...
|
@@ -144,15 +162,12 @@ |
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--电表参数配置修改-->
|
|
|
<el-dialog title="电表参数配置新增" :visible.sync="electrixityeditFormVisible" :close-on-click-modal="false">
|
|
|
<el-form :model="electrixityeditForm" label-width="110px" :rules="editFormRules" ref="electrixityeditForm">
|
|
|
<el-form-item label="电表编号" prop="companyName">
|
|
|
<el-input v-model="electrixityeditForm.eeId" auto-complete="off" style="width: 40%" disabled></el-input>
|
|
|
<el-input v-model="electrixityeditForm.eeId" auto-complete="off" style="width: 40%"
|
|
|
disabled></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="水电预付费" prop="prepaid">
|
|
|
<el-switch
|
...
|
...
|
@@ -176,7 +191,9 @@ |
|
|
inactive-text="否"
|
|
|
:inactive-value="false">
|
|
|
</el-switch>
|
|
|
<span>告警阀值</span> <el-input v-model="electrixityeditForm.warningthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
<span>告警阀值</span> <el-input
|
|
|
v-model="electrixityeditForm.warningthreshold" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>元</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="透支使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -188,7 +205,9 @@ |
|
|
inactive-text="否"
|
|
|
:inactive-value="false">
|
|
|
</el-switch>
|
|
|
<span>可透支额度</span> <el-input v-model="electrixityeditForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
<span>可透支额度</span> <el-input
|
|
|
v-model="electrixityeditForm.overdraftthreshold" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>元</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="过负荷跳闸使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -200,10 +219,12 @@ |
|
|
inactive-text="否"
|
|
|
:inactive-value="false">
|
|
|
</el-switch>
|
|
|
<span>功率</span> <el-input v-model="electrixityeditForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
|
|
<span>功率</span> <el-input
|
|
|
v-model="electrixityeditForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
|
|
<br/>
|
|
|
<br/>
|
|
|
<span>功率因数</span> <el-input v-model="electrixityeditForm.powerfactor" style="width: 100px;" auto-complete="off"></el-input>
|
|
|
<span>功率因数</span> <el-input
|
|
|
v-model="electrixityeditForm.powerfactor" style="width: 100px;" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="免费电度使能" prop="overdraft">
|
|
|
<el-switch
|
...
|
...
|
@@ -215,7 +236,9 @@ |
|
|
inactive-text="否"
|
|
|
:inactive-value="false">
|
|
|
</el-switch>
|
|
|
<span>免费电度</span> <el-input v-model="electrixityeditForm.freeelectricitylimit" style="width: 100px;" auto-complete="off"></el-input> <span>度</span>
|
|
|
<span>免费电度</span> <el-input
|
|
|
v-model="electrixityeditForm.freeelectricitylimit" style="width: 100px;"
|
|
|
auto-complete="off"></el-input> <span>度</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
...
|
...
|
@@ -228,22 +251,22 @@ |
|
|
<el-dialog title="水表实施信息" :visible.sync="waterMeterVisible" :close-on-click-modal="false">
|
|
|
<el-form :model="waterMaterForm" label-width="100px" ref="waterMaterForm">
|
|
|
<el-form-item label="水表编号" prop="wmId">
|
|
|
<el-input v-model="waterMaterForm.wmId" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="waterMaterForm.wmId" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="累计充值量" prop="wmSacc">
|
|
|
<el-input v-model="waterMaterForm.wmSacc" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="waterMaterForm.wmSacc" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="累计流量" prop="wmLacc">
|
|
|
<el-input v-model="waterMaterForm.wmLacc" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="上传时间" prop="wmRdtime">
|
|
|
<el-input v-model="waterMaterForm.wmRdtime" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="waterMaterForm.wmRdtime" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="阀门状态" prop="wmFmstate">
|
|
|
<el-input v-model="waterMaterForm.wmFmstate" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="故障状态" prop="wmErrmessage">
|
|
|
<el-input v-model="waterMaterForm.wmErrmessage" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="waterMaterForm.wmErrmessage" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="电压" prop="wmVoltage">
|
|
|
<el-input v-model="waterMaterForm.wmVoltage" auto-complete="off"></el-input>
|
...
|
...
|
@@ -259,24 +282,24 @@ |
|
|
|
|
|
<!--电表实时信息-->
|
|
|
<el-dialog title="电表实施信息" :visible.sync="electrixityeditFormVisible" :close-on-click-modal="false">
|
|
|
<el-form v-loading = "electrixityLoading" :model="electricityForm" label-width="100px" ref="waterMaterForm">
|
|
|
<el-form v-loading="electrixityLoading" :model="electricityForm" label-width="100px" ref="waterMaterForm">
|
|
|
<el-form-item label="电表编号" prop="deviceId">
|
|
|
<el-input v-model="electricityForm.deviceId" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="electricityForm.deviceId" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="总" prop="totalEnergy">
|
|
|
<el-input v-model="electricityForm.totalEnergy" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="electricityForm.totalEnergy" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="尖" prop="tipEnergy">
|
|
|
<el-input v-model="electricityForm.tipEnergy" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="峰" prop="peakEnergy">
|
|
|
<el-input v-model="electricityForm.peakEnergy" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="electricityForm.peakEnergy" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="谷" prop="valleyEnergy">
|
|
|
<el-input v-model="electricityForm.valleyEnergy" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="平" prop="flatEnergy">
|
|
|
<el-input v-model="electricityForm.flatEnergy" auto-complete="off" ></el-input>
|
|
|
<el-input v-model="electricityForm.flatEnergy" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="余额" prop="balance">
|
|
|
<el-input v-model="electricityForm.balance" auto-complete="off"></el-input>
|
...
|
...
|
@@ -333,7 +356,6 @@ |
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click.native="editFormLocationVisible = false">取消</el-button>
|
...
|
...
|
@@ -357,9 +379,9 @@ |
|
|
}
|
|
|
</style>
|
|
|
<script>
|
|
|
import { getList,add, remove, edit as editLocation} from '@/api/empt/location_api';
|
|
|
import {getList, add, remove, edit as editLocation} from '@/api/empt/location_api';
|
|
|
import {add as electicity, getEEModel, edit, electricityInfo} from '@/api/empt/electricityParams';
|
|
|
import {findRealTime, waterMeterAll } from '@/api/empt/waterMeter';
|
|
|
import {findRealTime, waterMeterAll} from '@/api/empt/waterMeter';
|
|
|
import moment from 'moment'
|
|
|
import parseTime from '@/utils'
|
|
|
import loginUserInfo from '@/api/base'
|
...
|
...
|
@@ -373,8 +395,8 @@ |
|
|
processName: '',
|
|
|
parseTime: parseTime
|
|
|
},
|
|
|
wmId:'',
|
|
|
locationList:[],
|
|
|
wmId: '',
|
|
|
locationList: [],
|
|
|
total: 0,
|
|
|
pageNum: 1,
|
|
|
pageSize: 30,
|
...
|
...
|
@@ -382,7 +404,7 @@ |
|
|
electrixityLoading: false,
|
|
|
waterNumber: undefined,
|
|
|
electricityNumber: undefined,
|
|
|
waterMeterList:[],
|
|
|
waterMeterList: [],
|
|
|
restaurants: [],
|
|
|
state4: '',
|
|
|
timeout: null,
|
...
|
...
|
@@ -391,20 +413,20 @@ |
|
|
editFormVisible: false,
|
|
|
electrixityeditFormVisible: false,
|
|
|
// 水表实施信息
|
|
|
waterMeterVisible:false,
|
|
|
waterMeterVisible: false,
|
|
|
|
|
|
|
|
|
addFormLocationVisible: false,
|
|
|
|
|
|
editFormLocationVisible: false,
|
|
|
|
|
|
addLocationFormRules:{
|
|
|
addLocationFormRules: {
|
|
|
adrName: [
|
|
|
{required: true, message: '请输入公寓名称', trigger: 'blur'}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
editLocationFormRules:{
|
|
|
editLocationFormRules: {
|
|
|
adrName: [
|
|
|
{required: false, message: '请输入公寓名称', trigger: 'blur'}
|
|
|
]
|
...
|
...
|
@@ -413,7 +435,7 @@ |
|
|
editLoading: false,
|
|
|
editFormRules: {
|
|
|
roleName: [
|
|
|
{ required: true, message: '请输入岗位/角色名称', trigger: 'blur' }
|
|
|
{required: true, message: '请输入岗位/角色名称', trigger: 'blur'}
|
|
|
]
|
|
|
},
|
|
|
//编辑界面数据
|
...
|
...
|
@@ -422,15 +444,15 @@ |
|
|
description: '',
|
|
|
roleName: '',
|
|
|
roleSign: 1,
|
|
|
departmentId:''
|
|
|
departmentId: ''
|
|
|
},
|
|
|
// 编辑电表参数配置
|
|
|
electrixityeditForm:{
|
|
|
id:'',
|
|
|
electrixityeditForm: {
|
|
|
id: '',
|
|
|
prepaid: '',
|
|
|
warningtrip: '',
|
|
|
warningthreshold: '',
|
|
|
overdraft:'',
|
|
|
overdraft: '',
|
|
|
overdraftthreshold: '',
|
|
|
waterload: '',
|
|
|
power: '',
|
...
|
...
|
@@ -445,10 +467,10 @@ |
|
|
addLoading: false,
|
|
|
addFormRules: {
|
|
|
roleName: [
|
|
|
{ required: true, message: '请输入岗位/角色名称', trigger: 'blur' }
|
|
|
{required: true, message: '请输入岗位/角色名称', trigger: 'blur'}
|
|
|
],
|
|
|
description: [
|
|
|
{ required: true, message: '请输入岗位/角色描述', trigger: 'blur' }
|
|
|
{required: true, message: '请输入岗位/角色描述', trigger: 'blur'}
|
|
|
]
|
|
|
},
|
|
|
//电表参数配置、界面数据
|
...
|
...
|
@@ -456,7 +478,7 @@ |
|
|
prepaid: '',
|
|
|
warningtrip: '',
|
|
|
warningthreshold: '',
|
|
|
overdraft:'',
|
|
|
overdraft: '',
|
|
|
overdraftthreshold: '',
|
|
|
waterload: '',
|
|
|
power: '',
|
...
|
...
|
@@ -466,25 +488,25 @@ |
|
|
},
|
|
|
|
|
|
// 水表实施信息
|
|
|
waterMaterForm:{
|
|
|
wmId:'',
|
|
|
wmSacc:'',
|
|
|
wmLacc:'',
|
|
|
wmRdtime:'',
|
|
|
wmFmstate:'',
|
|
|
wmErrmessage:'',
|
|
|
wmVoltage:'',
|
|
|
wmSignalpower:''
|
|
|
waterMaterForm: {
|
|
|
wmId: '',
|
|
|
wmSacc: '',
|
|
|
wmLacc: '',
|
|
|
wmRdtime: '',
|
|
|
wmFmstate: '',
|
|
|
wmErrmessage: '',
|
|
|
wmVoltage: '',
|
|
|
wmSignalpower: ''
|
|
|
},
|
|
|
// 电表实施信息
|
|
|
electricityForm:{
|
|
|
deviceId:'',
|
|
|
totalEnergy:'',
|
|
|
tipEnergy:'',
|
|
|
peakEnergy:'',
|
|
|
valleyEnergy:'',
|
|
|
flatEnergy:'',
|
|
|
balance:''
|
|
|
electricityForm: {
|
|
|
deviceId: '',
|
|
|
totalEnergy: '',
|
|
|
tipEnergy: '',
|
|
|
peakEnergy: '',
|
|
|
valleyEnergy: '',
|
|
|
flatEnergy: '',
|
|
|
balance: ''
|
|
|
},
|
|
|
|
|
|
permForm: {
|
...
|
...
|
@@ -495,22 +517,22 @@ |
|
|
permissions: []
|
|
|
},
|
|
|
// 公寓新增
|
|
|
addLocationForm:{
|
|
|
addLocationForm: {
|
|
|
adrName: '',
|
|
|
parent: '',
|
|
|
type:''
|
|
|
type: ''
|
|
|
},
|
|
|
// 公寓编辑
|
|
|
editLocationForm:{
|
|
|
editLocationForm: {
|
|
|
adrname: '',
|
|
|
parent: '',
|
|
|
type:'',
|
|
|
wmid:'',
|
|
|
eeid:''
|
|
|
type: '',
|
|
|
wmid: '',
|
|
|
eeid: ''
|
|
|
},
|
|
|
centerDialogVisible: false,
|
|
|
dialogData:{
|
|
|
process:{
|
|
|
dialogData: {
|
|
|
process: {
|
|
|
processname: ''
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -539,7 +561,7 @@ |
|
|
}
|
|
|
}]
|
|
|
},
|
|
|
options:[{
|
|
|
options: [{
|
|
|
value: '1',
|
|
|
label: '测试公司',
|
|
|
children: [{
|
...
|
...
|
@@ -576,25 +598,25 @@ |
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
one: function(prepaid){
|
|
|
return prepaid?true:one='是'?false:one='否'
|
|
|
one: function (prepaid) {
|
|
|
return prepaid ? true : one = '是' ? false : one = '否'
|
|
|
},
|
|
|
|
|
|
//类型显示转换
|
|
|
formatType: function (row, column) {
|
|
|
let msg = '未知';
|
|
|
switch (row.type){
|
|
|
switch (row.type) {
|
|
|
case 0:
|
|
|
msg='公寓';
|
|
|
msg = '公寓';
|
|
|
break;
|
|
|
case 1:
|
|
|
msg='楼';
|
|
|
msg = '楼';
|
|
|
break;
|
|
|
case 2:
|
|
|
msg='层';
|
|
|
msg = '层';
|
|
|
break;
|
|
|
case 3:
|
|
|
msg='门牌';
|
|
|
msg = '门牌';
|
|
|
break;
|
|
|
}
|
|
|
return msg;
|
...
|
...
|
@@ -614,7 +636,7 @@ |
|
|
processName: this.filters.processName,
|
|
|
parent: 0
|
|
|
};
|
|
|
this.listLoading= true;
|
|
|
this.listLoading = true;
|
|
|
getList(para).then((res) => {
|
|
|
let resData = res.data.data;
|
|
|
this.total = resData.total;
|
...
|
...
|
@@ -623,11 +645,11 @@ |
|
|
//NProgress.done();
|
|
|
}).catch((error) => {
|
|
|
this.listLoading = false;
|
|
|
if(null!= error.response && error.response!==undefined){
|
|
|
let status= error.response.status;
|
|
|
if (null != error.response && error.response !== undefined) {
|
|
|
let status = error.response.status;
|
|
|
let msg = error.response.statusText;
|
|
|
alert(status+msg);
|
|
|
}else {
|
|
|
alert(status + msg);
|
|
|
} else {
|
|
|
alert(error);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -659,7 +681,7 @@ |
|
|
}).then(() => {
|
|
|
this.listLoading = true;
|
|
|
//NProgress.start();
|
|
|
let para = { id: row.id };
|
|
|
let para = {id: row.id};
|
|
|
remove(para).then((res) => {
|
|
|
this.listLoading = false;
|
|
|
if (res.data.code == 200) {
|
...
|
...
|
@@ -668,10 +690,10 @@ |
|
|
type: 'success'
|
|
|
});
|
|
|
this.getList();
|
|
|
}else {
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message:'请删除该下面的楼,层,房间',
|
|
|
type:"error"
|
|
|
message: '请删除该下面的楼,层,房间',
|
|
|
type: "error"
|
|
|
})
|
|
|
}
|
|
|
}).catch((error) => {
|
...
|
...
|
@@ -687,7 +709,7 @@ |
|
|
*/
|
|
|
electrixityMeterEdit: function (row) {
|
|
|
var ids = row.eeid;
|
|
|
let para = { eeId: ids };
|
|
|
let para = {eeId: ids};
|
|
|
// 查询电表参数配置表数据
|
|
|
this.electrixityeditFormVisible = true;
|
|
|
getEEModel(para).then((res) => {
|
...
|
...
|
@@ -698,17 +720,17 @@ |
|
|
|
|
|
// location 新增
|
|
|
handleAdd: function (row) {
|
|
|
if (row == undefined){
|
|
|
if (row == undefined) {
|
|
|
this.addFormLocationVisible = true;
|
|
|
this.addLocationForm.parent = 0;
|
|
|
this.addLocationForm.type = 0;
|
|
|
}else {
|
|
|
} else {
|
|
|
this.addFormLocationVisible = true;
|
|
|
this.addLocationForm.parent = row.id;
|
|
|
if (row.type == 3){
|
|
|
if (row.type == 3) {
|
|
|
this.addLocationForm.type = row.type;
|
|
|
}else {
|
|
|
this.addLocationForm.type = row.type+1;
|
|
|
} else {
|
|
|
this.addLocationForm.type = row.type + 1;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -731,12 +753,12 @@ |
|
|
this.$refs['addLocationForm'].resetFields();
|
|
|
this.addFormLocationVisible = false;
|
|
|
this.getList();
|
|
|
}else if (res.data.code == 201){
|
|
|
} else if (res.data.code == 201) {
|
|
|
this.$message({
|
|
|
message:'该名称已存在',
|
|
|
type:"error"
|
|
|
message: '该名称已存在',
|
|
|
type: "error"
|
|
|
})
|
|
|
}else {
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: '网络异常',
|
|
|
type: 'error'
|
...
|
...
|
@@ -758,9 +780,9 @@ |
|
|
this.waterNumber = undefined;
|
|
|
this.editFormLocationVisible = true;
|
|
|
this.editLocationForm = row;
|
|
|
if (row.type == 3){
|
|
|
this.waterNumber ='waterNum';
|
|
|
this.electricityNumber ='eeNum';
|
|
|
if (row.type == 3) {
|
|
|
this.waterNumber = 'waterNum';
|
|
|
this.electricityNumber = 'eeNum';
|
|
|
}
|
|
|
},
|
|
|
|
...
|
...
|
@@ -773,7 +795,7 @@ |
|
|
this.addLoading = true;
|
|
|
let para = Object.assign({}, this.editLocationForm);
|
|
|
editLocation(para).then((res) => {
|
|
|
if(res.data.code == 200){
|
|
|
if (res.data.code == 200) {
|
|
|
//NProgress.done();
|
|
|
this.$message({
|
|
|
message: '提交成功',
|
...
|
...
|
@@ -784,7 +806,7 @@ |
|
|
this.addLoading = false;
|
|
|
this.getList();
|
|
|
|
|
|
}else {
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: '编辑失败',
|
|
|
type: 'error'
|
...
|
...
|
@@ -822,14 +844,14 @@ |
|
|
prepaid: '',
|
|
|
warningtrip: '',
|
|
|
warningthreshold: '',
|
|
|
overdraft:'',
|
|
|
overdraft: '',
|
|
|
overdraftthreshold: '',
|
|
|
waterload: '',
|
|
|
water: '',
|
|
|
free: '',
|
|
|
freeWater: '',
|
|
|
eeId: row.eeid,
|
|
|
reamke2:row.adrname
|
|
|
reamke2: row.adrname
|
|
|
}
|
|
|
},
|
|
|
|
...
|
...
|
@@ -837,9 +859,9 @@ |
|
|
// 水表实施信息
|
|
|
waterMeter: function (row) {
|
|
|
// let loadingInstance1 = Loading.service({ fullscreen: true });
|
|
|
this.waterMeterVisible=true;
|
|
|
this.waterMeterVisible = true;
|
|
|
var wmId = row.wmid;
|
|
|
let para = { wmId: wmId };
|
|
|
let para = {wmId: wmId};
|
|
|
findRealTime(para).then((res) => {
|
|
|
this.waterMaterForm = res.data;
|
|
|
|
...
|
...
|
@@ -849,11 +871,11 @@ |
|
|
},
|
|
|
|
|
|
// 电表实施信息查询
|
|
|
electicityInfo: function(row){
|
|
|
this.electrixityeditFormVisible=true;
|
|
|
this.electrixityLoading=true;
|
|
|
electicityInfo: function (row) {
|
|
|
this.electrixityeditFormVisible = true;
|
|
|
this.electrixityLoading = true;
|
|
|
var eeId = row.eeid;
|
|
|
let para = { eeId: eeId};
|
|
|
let para = {eeId: eeId};
|
|
|
electricityInfo(para).then((res) => {
|
|
|
this.electricityForm = res.data;
|
|
|
this.electrixityLoading = false;
|
...
|
...
|
@@ -870,17 +892,17 @@ |
|
|
let para = Object.assign({}, this.electrixityAddForm);
|
|
|
electicity(para).then((res) => {
|
|
|
this.addLoading = false;
|
|
|
if (res.status ===200) {
|
|
|
if (res.status === 200) {
|
|
|
this.$message({
|
|
|
message: '提交成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
this.$refs['electrixityAddForm'].resetFields();
|
|
|
this.electrixityAddFormVisible = false;
|
|
|
}else if (res.status===201){
|
|
|
} else if (res.status === 201) {
|
|
|
this.$message({
|
|
|
message:'不能重复提交',
|
|
|
type:"error"
|
|
|
message: '不能重复提交',
|
|
|
type: "error"
|
|
|
})
|
|
|
}
|
|
|
}).catch(error => alert(error));
|
...
|
...
|
@@ -896,7 +918,7 @@ |
|
|
this.$confirm('确认提交吗?', '提示', {}).then(() => {
|
|
|
this.editLoading = true;
|
|
|
//NProgress.start();
|
|
|
let para= Object.assign({}, this.electrixityeditForm);
|
|
|
let para = Object.assign({}, this.electrixityeditForm);
|
|
|
para.prepaid = this.formatperpaid(para.prepaid);
|
|
|
para.warningtrip = this.formatperpaid(para.warningtrip);
|
|
|
para.overdraft = this.formatperpaid(para.overdraft);
|
...
|
...
|
@@ -927,7 +949,7 @@ |
|
|
}).then(() => {
|
|
|
this.listLoading = true;
|
|
|
//NProgress.start();
|
|
|
let para = { ids: ids };
|
|
|
let para = {ids: ids};
|
|
|
batchRemove(para).then((res) => {
|
|
|
this.listLoading = false;
|
|
|
//NProgress.done();
|
...
|
...
|
@@ -946,7 +968,7 @@ |
|
|
return 'building';
|
|
|
} else if (type === 2) {
|
|
|
return 'floor';
|
|
|
} else if (type === 3){
|
|
|
} else if (type === 3) {
|
|
|
return 'house';
|
|
|
}
|
|
|
return '';
|
...
|
...
|
@@ -956,8 +978,8 @@ |
|
|
},
|
|
|
|
|
|
//缴水电费订单跳转
|
|
|
pay(row){
|
|
|
this.$router.push({name:'缴水电费订单',params:{row,Edistatus:'create'}});
|
|
|
pay(row) {
|
|
|
this.$router.push({name: '缴水电费订单', params: {row, Edistatus: 'create'}});
|
|
|
},
|
|
|
|
|
|
},
|
...
|
...
|
|