|
@@ -41,7 +41,20 @@ |
|
@@ -41,7 +41,20 @@ |
41
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">快速编辑</el-button>
|
41
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">快速编辑</el-button>
|
42
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">新增</el-button>
|
42
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">新增</el-button>
|
43
|
<el-button size="mini" type="danger" @click="handleModifyStatus(scope.row,'deleted')">{{ $t('table.delete') }}</el-button>
|
43
|
<el-button size="mini" type="danger" @click="handleModifyStatus(scope.row,'deleted')">{{ $t('table.delete') }}</el-button>
|
44
|
- <el-button type="primary" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>
|
44
|
+
|
|
|
45
|
+ <el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="pay(scope.row)">缴费</el-button>
|
|
|
46
|
+ <el-button v-else disabled="" type="primary" size="small" @click="pay(scope.row)">缴费</el-button>
|
|
|
47
|
+
|
|
|
48
|
+ <el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="waterMeter(scope.row)">水表实时信息</el-button>
|
|
|
49
|
+ <el-button v-else disabled="" type="primary" size="small" @click="waterMeter(scope.row)">水表实时信息</el-button>
|
|
|
50
|
+
|
|
|
51
|
+ <el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>
|
|
|
52
|
+ <el-button v-else type="primary" disabled="" size="small" @click="electrixityMeterConfiguration(scope.row)">电表参数配置</el-button>
|
|
|
53
|
+
|
|
|
54
|
+ <el-button v-if="scope.row.type=='3'" type="primary" size="small" @click="electrixityMeterEdit(scope.row)">编辑电表参数配置</el-button>
|
|
|
55
|
+ <el-button v-else disabled="" type="primary" size="small" @click="electrixityMeterEdit(scope.row)">编辑电表参数配置</el-button>
|
|
|
56
|
+
|
|
|
57
|
+
|
45
|
</template>
|
58
|
</template>
|
46
|
</el-table-column>
|
59
|
</el-table-column>
|
47
|
</el-table>
|
60
|
</el-table>
|
|
@@ -53,7 +66,7 @@ |
|
@@ -53,7 +66,7 @@ |
53
|
</el-pagination>
|
66
|
</el-pagination>
|
54
|
</el-col>
|
67
|
</el-col>
|
55
|
|
68
|
|
56
|
- <!--水表新增-->
|
69
|
+ <!--电表新增-->
|
57
|
<el-dialog title="电表参数配置新增" :visible.sync="electrixityAddFormVisible" :close-on-click-modal="false">
|
70
|
<el-dialog title="电表参数配置新增" :visible.sync="electrixityAddFormVisible" :close-on-click-modal="false">
|
58
|
<el-form :model="electrixityAddForm" label-width="110px" :rules="addFormRules" ref="electrixityAddForm">
|
71
|
<el-form :model="electrixityAddForm" label-width="110px" :rules="addFormRules" ref="electrixityAddForm">
|
59
|
<el-form-item label="水电预付费" prop="prepaid">
|
72
|
<el-form-item label="水电预付费" prop="prepaid">
|
|
@@ -61,10 +74,10 @@ |
|
@@ -61,10 +74,10 @@ |
61
|
v-model="electrixityAddForm.prepaid"
|
74
|
v-model="electrixityAddForm.prepaid"
|
62
|
active-color="#00A854"
|
75
|
active-color="#00A854"
|
63
|
active-text="是"
|
76
|
active-text="是"
|
64
|
- active-value="0"
|
77
|
+ active-value="1"
|
65
|
inactive-color="#F04134"
|
78
|
inactive-color="#F04134"
|
66
|
inactive-text="否"
|
79
|
inactive-text="否"
|
67
|
- inactive-value="1">
|
80
|
+ inactive-value="0">
|
68
|
</el-switch>
|
81
|
</el-switch>
|
69
|
</el-form-item>
|
82
|
</el-form-item>
|
70
|
<el-form-item label="电警告跳闸" prop="warningtrip">
|
83
|
<el-form-item label="电警告跳闸" prop="warningtrip">
|
|
@@ -72,10 +85,10 @@ |
|
@@ -72,10 +85,10 @@ |
72
|
v-model="electrixityAddForm.warningtrip"
|
85
|
v-model="electrixityAddForm.warningtrip"
|
73
|
active-color="#00A854"
|
86
|
active-color="#00A854"
|
74
|
active-text="是"
|
87
|
active-text="是"
|
75
|
- active-value="0"
|
88
|
+ active-value="1"
|
76
|
inactive-color="#F04134"
|
89
|
inactive-color="#F04134"
|
77
|
inactive-text="否"
|
90
|
inactive-text="否"
|
78
|
- inactive-value="1">
|
91
|
+ inactive-value="0">
|
79
|
</el-switch>
|
92
|
</el-switch>
|
80
|
<span>告警阀值</span> <el-input v-model="electrixityAddForm.warningthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
93
|
<span>告警阀值</span> <el-input v-model="electrixityAddForm.warningthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
81
|
</el-form-item>
|
94
|
</el-form-item>
|
|
@@ -84,22 +97,22 @@ |
|
@@ -84,22 +97,22 @@ |
84
|
v-model="electrixityAddForm.overdraft"
|
97
|
v-model="electrixityAddForm.overdraft"
|
85
|
active-color="#00A854"
|
98
|
active-color="#00A854"
|
86
|
active-text="是"
|
99
|
active-text="是"
|
87
|
- active-value="0"
|
100
|
+ active-value="1"
|
88
|
inactive-color="#F04134"
|
101
|
inactive-color="#F04134"
|
89
|
inactive-text="否"
|
102
|
inactive-text="否"
|
90
|
- inactive-value="1">
|
103
|
+ inactive-value="0">
|
91
|
</el-switch>
|
104
|
</el-switch>
|
92
|
<span>可透支额度</span> <el-input v-model="electrixityAddForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
105
|
<span>可透支额度</span> <el-input v-model="electrixityAddForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
93
|
</el-form-item>
|
106
|
</el-form-item>
|
94
|
<el-form-item label="过负荷跳闸使能" prop="overdraft">
|
107
|
<el-form-item label="过负荷跳闸使能" prop="overdraft">
|
95
|
<el-switch
|
108
|
<el-switch
|
96
|
- v-model="electrixityAddForm.load"
|
109
|
+ v-model="electrixityAddForm.waterload"
|
97
|
active-color="#00A854"
|
110
|
active-color="#00A854"
|
98
|
active-text="是"
|
111
|
active-text="是"
|
99
|
- active-value="0"
|
112
|
+ active-value="1"
|
100
|
inactive-color="#F04134"
|
113
|
inactive-color="#F04134"
|
101
|
inactive-text="否"
|
114
|
inactive-text="否"
|
102
|
- inactive-value="1">
|
115
|
+ inactive-value="0">
|
103
|
</el-switch>
|
116
|
</el-switch>
|
104
|
<span>功率</span> <el-input v-model="electrixityAddForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
117
|
<span>功率</span> <el-input v-model="electrixityAddForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
105
|
<br/>
|
118
|
<br/>
|
|
@@ -111,12 +124,12 @@ |
|
@@ -111,12 +124,12 @@ |
111
|
v-model="electrixityAddForm.free"
|
124
|
v-model="electrixityAddForm.free"
|
112
|
active-color="#00A854"
|
125
|
active-color="#00A854"
|
113
|
active-text="是"
|
126
|
active-text="是"
|
114
|
- active-value="0"
|
127
|
+ active-value="1"
|
115
|
inactive-color="#F04134"
|
128
|
inactive-color="#F04134"
|
116
|
inactive-text="否"
|
129
|
inactive-text="否"
|
117
|
- inactive-value="1">
|
130
|
+ inactive-value="0">
|
118
|
</el-switch>
|
131
|
</el-switch>
|
119
|
- <span>免费电度</span> <el-input v-model="electrixityAddForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>度</span>
|
132
|
+ <span>免费电度</span> <el-input v-model="electrixityAddForm.freeelectricitylimit" style="width: 100px;" auto-complete="off"></el-input> <span>度</span>
|
120
|
</el-form-item>
|
133
|
</el-form-item>
|
121
|
</el-form>
|
134
|
</el-form>
|
122
|
<div slot="footer" class="dialog-footer">
|
135
|
<div slot="footer" class="dialog-footer">
|
|
@@ -124,6 +137,121 @@ |
|
@@ -124,6 +137,121 @@ |
124
|
<el-button type="primary" @click.native="addSubmit" :loading="addLoading">提交</el-button>
|
137
|
<el-button type="primary" @click.native="addSubmit" :loading="addLoading">提交</el-button>
|
125
|
</div>
|
138
|
</div>
|
126
|
</el-dialog>
|
139
|
</el-dialog>
|
|
|
140
|
+
|
|
|
141
|
+
|
|
|
142
|
+
|
|
|
143
|
+
|
|
|
144
|
+
|
|
|
145
|
+
|
|
|
146
|
+ <!--电表参数配置修改-->
|
|
|
147
|
+ <el-dialog title="电表参数配置新增" :visible.sync="electrixityeditFormVisible" :close-on-click-modal="false">
|
|
|
148
|
+ <el-form :model="electrixityeditForm" label-width="110px" :rules="editFormRules" ref="electrixityeditForm">
|
|
|
149
|
+ <el-form-item label="电表编号" prop="companyName">
|
|
|
150
|
+ <el-input v-model="electrixityeditForm.eeId" auto-complete="off" style="width: 40%" disabled></el-input>
|
|
|
151
|
+ </el-form-item>
|
|
|
152
|
+ <el-form-item label="水电预付费" prop="prepaid">
|
|
|
153
|
+ <el-switch
|
|
|
154
|
+ v-model="electrixityeditForm.prepaid"
|
|
|
155
|
+ active-color="#00A854"
|
|
|
156
|
+ active-text="是"
|
|
|
157
|
+ :active-value="true"
|
|
|
158
|
+ inactive-color="#F04134"
|
|
|
159
|
+ inactive-text="否"
|
|
|
160
|
+ :inactive-value="false"
|
|
|
161
|
+ @change="func(data)">
|
|
|
162
|
+ </el-switch>
|
|
|
163
|
+ </el-form-item>
|
|
|
164
|
+ <el-form-item label="电警告跳闸" prop="warningtrip">
|
|
|
165
|
+ <el-switch
|
|
|
166
|
+ v-model="electrixityeditForm.warningtrip"
|
|
|
167
|
+ active-color="#00A854"
|
|
|
168
|
+ active-text="是"
|
|
|
169
|
+ :active-value="true"
|
|
|
170
|
+ inactive-color="#F04134"
|
|
|
171
|
+ inactive-text="否"
|
|
|
172
|
+ :inactive-value="false">
|
|
|
173
|
+ </el-switch>
|
|
|
174
|
+ <span>告警阀值</span> <el-input v-model="electrixityeditForm.warningthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
175
|
+ </el-form-item>
|
|
|
176
|
+ <el-form-item label="透支使能" prop="overdraft">
|
|
|
177
|
+ <el-switch
|
|
|
178
|
+ v-model="electrixityeditForm.overdraft"
|
|
|
179
|
+ active-color="#00A854"
|
|
|
180
|
+ active-text="是"
|
|
|
181
|
+ :active-value="true"
|
|
|
182
|
+ inactive-color="#F04134"
|
|
|
183
|
+ inactive-text="否"
|
|
|
184
|
+ :inactive-value="false">
|
|
|
185
|
+ </el-switch>
|
|
|
186
|
+ <span>可透支额度</span> <el-input v-model="electrixityeditForm.overdraftthreshold" style="width: 100px;" auto-complete="off"></el-input> <span>元</span>
|
|
|
187
|
+ </el-form-item>
|
|
|
188
|
+ <el-form-item label="过负荷跳闸使能" prop="overdraft">
|
|
|
189
|
+ <el-switch
|
|
|
190
|
+ v-model="electrixityeditForm.waterload"
|
|
|
191
|
+ active-color="#00A854"
|
|
|
192
|
+ active-text="是"
|
|
|
193
|
+ :active-value="true"
|
|
|
194
|
+ inactive-color="#F04134"
|
|
|
195
|
+ inactive-text="否"
|
|
|
196
|
+ :inactive-value="false">
|
|
|
197
|
+ </el-switch>
|
|
|
198
|
+ <span>功率</span> <el-input v-model="electrixityeditForm.power" style="width: 100px;" auto-complete="off"></el-input> <span>KW</span>
|
|
|
199
|
+ <br/>
|
|
|
200
|
+ <br/>
|
|
|
201
|
+ <span>功率因数</span> <el-input v-model="electrixityeditForm.powerfactor" style="width: 100px;" auto-complete="off"></el-input>
|
|
|
202
|
+ </el-form-item>
|
|
|
203
|
+ <el-form-item label="免费电度使能" prop="overdraft">
|
|
|
204
|
+ <el-switch
|
|
|
205
|
+ v-model="electrixityeditForm.free"
|
|
|
206
|
+ active-color="#00A854"
|
|
|
207
|
+ active-text="是"
|
|
|
208
|
+ :active-value="true"
|
|
|
209
|
+ inactive-color="#F04134"
|
|
|
210
|
+ inactive-text="否"
|
|
|
211
|
+ :inactive-value="false">
|
|
|
212
|
+ </el-switch>
|
|
|
213
|
+ <span>免费电度</span> <el-input v-model="electrixityeditForm.freeelectricitylimit" style="width: 100px;" auto-complete="off"></el-input> <span>度</span>
|
|
|
214
|
+ </el-form-item>
|
|
|
215
|
+ </el-form>
|
|
|
216
|
+ <div slot="footer" class="dialog-footer">
|
|
|
217
|
+ <el-button @click.native="electrixityeditFormVisible = false">取消</el-button>
|
|
|
218
|
+ <el-button type="primary" @click.native="editSubmit" :loading="editLoading">提交</el-button>
|
|
|
219
|
+ </div>
|
|
|
220
|
+ </el-dialog>
|
|
|
221
|
+
|
|
|
222
|
+ <!--水表实时信息-->
|
|
|
223
|
+ <el-dialog title="水表实施信息" :visible.sync="waterMeterVisible" :close-on-click-modal="false">
|
|
|
224
|
+ <el-form :model="waterMaterForm" label-width="100px" ref="waterMaterForm">
|
|
|
225
|
+ <el-form-item label="水表编号" prop="wmId">
|
|
|
226
|
+ <el-input v-model="waterMaterForm.wmId" auto-complete="off" ></el-input>
|
|
|
227
|
+ </el-form-item>
|
|
|
228
|
+ <el-form-item label="累计充值量" prop="wmSacc">
|
|
|
229
|
+ <el-input v-model="waterMaterForm.wmSacc" auto-complete="off" ></el-input>
|
|
|
230
|
+ </el-form-item>
|
|
|
231
|
+ <el-form-item label="累计流量" prop="wmLacc">
|
|
|
232
|
+ <el-input v-model="waterMaterForm.wmLacc" auto-complete="off"></el-input>
|
|
|
233
|
+ </el-form-item>
|
|
|
234
|
+ <el-form-item label="上传时间" prop="wmRdtime">
|
|
|
235
|
+ <el-input v-model="waterMaterForm.wmRdtime" auto-complete="off" ></el-input>
|
|
|
236
|
+ </el-form-item>
|
|
|
237
|
+ <el-form-item label="阀门状态" prop="wmFmstate">
|
|
|
238
|
+ <el-input v-model="waterMaterForm.wmFmstate" auto-complete="off"></el-input>
|
|
|
239
|
+ </el-form-item>
|
|
|
240
|
+ <el-form-item label="故障状态" prop="wmErrmessage">
|
|
|
241
|
+ <el-input v-model="waterMaterForm.wmErrmessage" auto-complete="off" ></el-input>
|
|
|
242
|
+ </el-form-item>
|
|
|
243
|
+ <el-form-item label="电压" prop="wmVoltage">
|
|
|
244
|
+ <el-input v-model="waterMaterForm.wmVoltage" auto-complete="off"></el-input>
|
|
|
245
|
+ </el-form-item>
|
|
|
246
|
+ <el-form-item label="表示信号强度" prop="wmSignalpower">
|
|
|
247
|
+ <el-input v-model="waterMaterForm.wmSignalpower" auto-complete="off"></el-input>
|
|
|
248
|
+ </el-form-item>
|
|
|
249
|
+ </el-form>
|
|
|
250
|
+ <div slot="footer" class="dialog-footer">
|
|
|
251
|
+ <el-button @click.native="waterMeterVisible = false">取消</el-button>
|
|
|
252
|
+ </div>
|
|
|
253
|
+ </el-dialog>
|
|
|
254
|
+
|
127
|
</section>
|
255
|
</section>
|
128
|
</template>
|
256
|
</template>
|
129
|
<style>
|
257
|
<style>
|
|
@@ -141,6 +269,8 @@ |
|
@@ -141,6 +269,8 @@ |
141
|
</style>
|
269
|
</style>
|
142
|
<script>
|
270
|
<script>
|
143
|
import { getList,add} from '@/api/empt/location_api';
|
271
|
import { getList,add} from '@/api/empt/location_api';
|
|
|
272
|
+ import {add as electicity, getEEModel, edit} from '@/api/empt/electricityParams';
|
|
|
273
|
+ import {findRealTime } from '@/api/empt/waterMeter';
|
144
|
import moment from 'moment'
|
274
|
import moment from 'moment'
|
145
|
import parseTime from '@/utils'
|
275
|
import parseTime from '@/utils'
|
146
|
import loginUserInfo from '@/api/base'
|
276
|
import loginUserInfo from '@/api/base'
|
|
@@ -152,8 +282,6 @@ |
|
@@ -152,8 +282,6 @@ |
152
|
processName: '',
|
282
|
processName: '',
|
153
|
parseTime: parseTime
|
283
|
parseTime: parseTime
|
154
|
},
|
284
|
},
|
155
|
- userId: '',
|
|
|
156
|
- realName: '',
|
|
|
157
|
wmId:'',
|
285
|
wmId:'',
|
158
|
locationList:[],
|
286
|
locationList:[],
|
159
|
total: 0,
|
287
|
total: 0,
|
|
@@ -163,6 +291,10 @@ |
|
@@ -163,6 +291,10 @@ |
163
|
sels: [],//列表选中列
|
291
|
sels: [],//列表选中列
|
164
|
//编辑界面是否显示
|
292
|
//编辑界面是否显示
|
165
|
editFormVisible: false,
|
293
|
editFormVisible: false,
|
|
|
294
|
+ electrixityeditFormVisible: false,
|
|
|
295
|
+ // 水表实施信息
|
|
|
296
|
+ waterMeterVisible:false,
|
|
|
297
|
+
|
166
|
editLoading: false,
|
298
|
editLoading: false,
|
167
|
editFormRules: {
|
299
|
editFormRules: {
|
168
|
roleName: [
|
300
|
roleName: [
|
|
@@ -177,6 +309,20 @@ |
|
@@ -177,6 +309,20 @@ |
177
|
roleSign: 1,
|
309
|
roleSign: 1,
|
178
|
departmentId:''
|
310
|
departmentId:''
|
179
|
},
|
311
|
},
|
|
|
312
|
+ // 编辑电表参数配置
|
|
|
313
|
+ electrixityeditForm:{
|
|
|
314
|
+ id:'',
|
|
|
315
|
+ prepaid: '',
|
|
|
316
|
+ warningtrip: '',
|
|
|
317
|
+ warningthreshold: '',
|
|
|
318
|
+ overdraft:'',
|
|
|
319
|
+ overdraftthreshold: '',
|
|
|
320
|
+ waterload: '',
|
|
|
321
|
+ power: '',
|
|
|
322
|
+ powerfactor: '',
|
|
|
323
|
+ freeelectricitylimit: '',
|
|
|
324
|
+ eeId: ''
|
|
|
325
|
+ },
|
180
|
//用户ID
|
326
|
//用户ID
|
181
|
//新增界面是否显示
|
327
|
//新增界面是否显示
|
182
|
electrixityAddFormVisible: false,
|
328
|
electrixityAddFormVisible: false,
|
|
@@ -190,19 +336,32 @@ |
|
@@ -190,19 +336,32 @@ |
190
|
{ required: true, message: '请输入岗位/角色描述', trigger: 'blur' }
|
336
|
{ required: true, message: '请输入岗位/角色描述', trigger: 'blur' }
|
191
|
]
|
337
|
]
|
192
|
},
|
338
|
},
|
193
|
- //水表参数配置、界面数据
|
339
|
+ //电表参数配置、界面数据
|
194
|
electrixityAddForm: {
|
340
|
electrixityAddForm: {
|
195
|
prepaid: '',
|
341
|
prepaid: '',
|
196
|
warningtrip: '',
|
342
|
warningtrip: '',
|
197
|
warningthreshold: '',
|
343
|
warningthreshold: '',
|
198
|
overdraft:'',
|
344
|
overdraft:'',
|
199
|
overdraftthreshold: '',
|
345
|
overdraftthreshold: '',
|
200
|
- load: '',
|
346
|
+ waterload: '',
|
201
|
power: '',
|
347
|
power: '',
|
202
|
powerfactor: '',
|
348
|
powerfactor: '',
|
203
|
freeelectricitylimit: '',
|
349
|
freeelectricitylimit: '',
|
204
|
eeId: ''
|
350
|
eeId: ''
|
205
|
},
|
351
|
},
|
|
|
352
|
+
|
|
|
353
|
+ // 水表实施信息
|
|
|
354
|
+ waterMaterForm:{
|
|
|
355
|
+ wmId:'',
|
|
|
356
|
+ wmSacc:'',
|
|
|
357
|
+ wmLacc:'',
|
|
|
358
|
+ wmRdtime:'',
|
|
|
359
|
+ wmFmstate:'',
|
|
|
360
|
+ wmErrmessage:'',
|
|
|
361
|
+ wmVoltage:'',
|
|
|
362
|
+ wmSignalpower:''
|
|
|
363
|
+ },
|
|
|
364
|
+
|
206
|
permForm: {
|
365
|
permForm: {
|
207
|
roleId: 1,
|
366
|
roleId: 1,
|
208
|
description: '',
|
367
|
description: '',
|
|
@@ -278,6 +437,9 @@ |
|
@@ -278,6 +437,9 @@ |
278
|
}
|
437
|
}
|
279
|
},
|
438
|
},
|
280
|
methods: {
|
439
|
methods: {
|
|
|
440
|
+ one: function(prepaid){
|
|
|
441
|
+ return prepaid?true:one='是'?false:one='否'
|
|
|
442
|
+ },
|
281
|
//性别显示转换
|
443
|
//性别显示转换
|
282
|
formatType: function (row, column) {
|
444
|
formatType: function (row, column) {
|
283
|
let msg = '未知';
|
445
|
let msg = '未知';
|
|
@@ -296,6 +458,9 @@ |
|
@@ -296,6 +458,9 @@ |
296
|
break;
|
458
|
break;
|
297
|
}
|
459
|
}
|
298
|
return msg;
|
460
|
return msg;
|
|
|
461
|
+ },//性别显示转换
|
|
|
462
|
+ formatperpaid: function (value) {
|
|
|
463
|
+ return value === true ? "1" : "0";
|
299
|
},
|
464
|
},
|
300
|
handleCurrentChange(val) {
|
465
|
handleCurrentChange(val) {
|
301
|
this.pageNum = val;
|
466
|
this.pageNum = val;
|
|
@@ -353,12 +518,18 @@ |
|
@@ -353,12 +518,18 @@ |
353
|
* @param index
|
518
|
* @param index
|
354
|
* @param row 为这行的数据对象
|
519
|
* @param row 为这行的数据对象
|
355
|
*/
|
520
|
*/
|
356
|
- handleEdit: function (index, row) {
|
|
|
357
|
- this.editFormVisible = true;
|
|
|
358
|
- this.editForm = Object.assign({}, row);
|
|
|
359
|
- this.getdepartmentNames();
|
521
|
+ electrixityMeterEdit: function (row) {
|
|
|
522
|
+ this.electrixityeditFormVisible = true;
|
|
|
523
|
+ var ids = row.eeid;
|
|
|
524
|
+ let para = { eeId: ids };
|
|
|
525
|
+ // 查询电表参数配置表数据
|
|
|
526
|
+ getEEModel(para).then((res) => {
|
|
|
527
|
+ this.electrixityeditForm = res.data;
|
|
|
528
|
+ });
|
360
|
},
|
529
|
},
|
361
|
- //水表参数配置新增界面,每次点开初始化数据
|
530
|
+
|
|
|
531
|
+
|
|
|
532
|
+ //电表参数配置新增界面,每次点开初始化数据
|
362
|
electrixityMeterConfiguration: function (row) {
|
533
|
electrixityMeterConfiguration: function (row) {
|
363
|
this.electrixityAddFormVisible = true;
|
534
|
this.electrixityAddFormVisible = true;
|
364
|
this.electrixityAddForm = {
|
535
|
this.electrixityAddForm = {
|
|
@@ -367,14 +538,31 @@ |
|
@@ -367,14 +538,31 @@ |
367
|
warningthreshold: '',
|
538
|
warningthreshold: '',
|
368
|
overdraft:'',
|
539
|
overdraft:'',
|
369
|
overdraftthreshold: '',
|
540
|
overdraftthreshold: '',
|
370
|
- load: '',
|
541
|
+ waterload: '',
|
371
|
water: '',
|
542
|
water: '',
|
372
|
free: '',
|
543
|
free: '',
|
373
|
freeWater: '',
|
544
|
freeWater: '',
|
374
|
- eeId: row.eeId
|
545
|
+ eeId: row.eeid
|
375
|
}
|
546
|
}
|
376
|
},
|
547
|
},
|
377
|
|
548
|
|
|
|
549
|
+
|
|
|
550
|
+ // 水表实施信息
|
|
|
551
|
+ waterMeter: function (row) {
|
|
|
552
|
+ let loadingInstance1 = Loading.service({ fullscreen: true });
|
|
|
553
|
+ this.waterMeterVisible=true;
|
|
|
554
|
+ var wmId = row.wmid;
|
|
|
555
|
+ let para = { wmId: wmId };
|
|
|
556
|
+ findRealTime(para).then((res) => {
|
|
|
557
|
+ this.waterMaterForm = res.data;
|
|
|
558
|
+
|
|
|
559
|
+ });
|
|
|
560
|
+ loadingInstance1.close();
|
|
|
561
|
+
|
|
|
562
|
+ },
|
|
|
563
|
+
|
|
|
564
|
+
|
|
|
565
|
+
|
378
|
//新增
|
566
|
//新增
|
379
|
addSubmit: function () {
|
567
|
addSubmit: function () {
|
380
|
this.$refs.electrixityAddForm.validate((valid) => {
|
568
|
this.$refs.electrixityAddForm.validate((valid) => {
|
|
@@ -383,16 +571,20 @@ |
|
@@ -383,16 +571,20 @@ |
383
|
this.addLoading = true;
|
571
|
this.addLoading = true;
|
384
|
//NProgress.start();
|
572
|
//NProgress.start();
|
385
|
let para = Object.assign({}, this.electrixityAddForm);
|
573
|
let para = Object.assign({}, this.electrixityAddForm);
|
386
|
- add(para).then((res) => {
|
574
|
+ electicity(para).then((res) => {
|
387
|
this.addLoading = false;
|
575
|
this.addLoading = false;
|
388
|
if (res.status ===200) {
|
576
|
if (res.status ===200) {
|
389
|
this.$message({
|
577
|
this.$message({
|
390
|
message: '提交成功',
|
578
|
message: '提交成功',
|
391
|
type: 'success'
|
579
|
type: 'success'
|
392
|
});
|
580
|
});
|
393
|
- this.$refs['permForm'].resetFields();
|
581
|
+ this.$refs['electrixityAddForm'].resetFields();
|
394
|
this.electrixityAddFormVisible = false;
|
582
|
this.electrixityAddFormVisible = false;
|
395
|
- this.getList();
|
583
|
+ }else if (res.status===201){
|
|
|
584
|
+ this.$message({
|
|
|
585
|
+ message:'不能重复提交',
|
|
|
586
|
+ type:"error"
|
|
|
587
|
+ })
|
396
|
}
|
588
|
}
|
397
|
}).catch(error => alert(error));
|
589
|
}).catch(error => alert(error));
|
398
|
});
|
590
|
});
|
|
@@ -400,30 +592,21 @@ |
|
@@ -400,30 +592,21 @@ |
400
|
});
|
592
|
});
|
401
|
},
|
593
|
},
|
402
|
|
594
|
|
403
|
- //编辑
|
595
|
+ // 编辑电表参数配置
|
404
|
editSubmit: function () {
|
596
|
editSubmit: function () {
|
405
|
- this.$refs.editForm.validate((valid) => {
|
597
|
+ this.$refs.electrixityeditForm.validate((valid) => {
|
406
|
if (valid) {
|
598
|
if (valid) {
|
407
|
this.$confirm('确认提交吗?', '提示', {}).then(() => {
|
599
|
this.$confirm('确认提交吗?', '提示', {}).then(() => {
|
408
|
this.editLoading = true;
|
600
|
this.editLoading = true;
|
409
|
//NProgress.start();
|
601
|
//NProgress.start();
|
410
|
- let para = Object.assign({}, this.editForm);
|
|
|
411
|
- //不需要提交的 去掉,后端不好接收
|
|
|
412
|
- para.authorities = null;
|
|
|
413
|
- para.permissions = null;
|
|
|
414
|
- para.roles = null;
|
|
|
415
|
-// para.birth = (!para.birth || para.birth == '') ? '' : util.formatDate.format(new Date(para.birth), 'yyyy-MM-dd');
|
|
|
416
|
- /*
|
|
|
417
|
- 查询之后格式this.filters.column.create_start_date中日期发生变化;
|
|
|
418
|
- Wed Aug 09 2017 00:00:00 GMT+0800 (中国标准时间) 变成了 "2017-08-08T16:00:00.000Z";
|
|
|
419
|
- 所以使用 moment 日期格式化插件将时间转换成 [ Wed Aug 09 2017 00:00:00 GMT+0800 (中国标准时间) ] 格
|
|
|
420
|
- 式;
|
|
|
421
|
- */
|
|
|
422
|
- /*moment 安装 npm install moment --save*/
|
|
|
423
|
- para.creattime = moment(para.creattime).format('YYYY-MM-DD HH:mm:ss');
|
602
|
+ let para= Object.assign({}, this.electrixityeditForm);
|
|
|
603
|
+ para.prepaid = this.formatperpaid(para.prepaid);
|
|
|
604
|
+ para.warningtrip = this.formatperpaid(para.warningtrip);
|
|
|
605
|
+ para.overdraft = this.formatperpaid(para.overdraft);
|
|
|
606
|
+ para.waterload = this.formatperpaid(para.waterload);
|
|
|
607
|
+ para.free = this.formatperpaid(para.free);
|
424
|
this.editLoading = false;
|
608
|
this.editLoading = false;
|
425
|
edit(para).then((res) => {
|
609
|
edit(para).then((res) => {
|
426
|
-
|
|
|
427
|
//NProgress.done();
|
610
|
//NProgress.done();
|
428
|
this.$message({
|
611
|
this.$message({
|
429
|
message: '提交成功',
|
612
|
message: '提交成功',
|
|
@@ -474,10 +657,15 @@ |
|
@@ -474,10 +657,15 @@ |
474
|
handleSelectionChange(val) {
|
657
|
handleSelectionChange(val) {
|
475
|
this.multipleSelection = val
|
658
|
this.multipleSelection = val
|
476
|
},
|
659
|
},
|
|
|
660
|
+
|
|
|
661
|
+ //缴水电费订单跳转
|
|
|
662
|
+ pay(row){
|
|
|
663
|
+ this.$router.push({name:'缴水电费订单',params:{row,Edistatus:'create'}});
|
|
|
664
|
+ },
|
|
|
665
|
+
|
477
|
},
|
666
|
},
|
478
|
mounted() {
|
667
|
mounted() {
|
479
|
- this.userId = loginUserInfo.userId;
|
|
|
480
|
- this.realName = loginUserInfo.realname;
|
668
|
+
|
481
|
this.getList();
|
669
|
this.getList();
|
482
|
}
|
670
|
}
|
483
|
}
|
671
|
}
|