manage-client 3.2.70-aode → 3.2.71-aode

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,630 +1,630 @@
1
- <template>
2
- <div class="flex-row binary" id="unit">
3
- <div class="basic-main">
4
- <div class="flex">
5
- <div class="flex" style="flex:1;">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
8
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
- <div class="row" width="100%">
10
- <div class="col-sm-2">
11
- <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
12
- <input class="form-control" condition="f_meternumber like '%{}%'"
13
- placeholder='表钢号'
14
- type="text"
15
- v-model="model.f_meternumber"
16
- >
17
- </div>
18
-
19
- <div class="col-sm-2">
20
- <label class="font_normal_body">使用公司</label>
21
- <right-tree :source.sync='$parent.$parent.obj.source' :userid.sync='$parent.$parent.obj.userid'
22
- @re-res="$parent.$parent.getRes"></right-tree>
23
- </div>
24
- <div class="col-sm-2">
25
- <label class="font_normal_body">客户名称</label>
26
- <input class="form-control" condition="f_user_name like '%{}%'" placeholder='客户名称'
27
- type="text"
28
- v-model="model.f_user_name">
29
- </div>
30
- <div class="col-sm-2">
31
- <label class="font_normal_body">用气地址</label>
32
- <input class="form-control" condition="f_address like '%{}%'" placeholder='用气地址'
33
- type="text"
34
- v-model="model.f_address"
35
- >
36
- </div>
37
- <div class="col-sm-2">
38
- <label class="font_normal_body">用户类型</label>
39
- <v-select :options="$parent.$parent.Getusertype" :value.sync="model.f_user_type"
40
- close-on-select
41
- condition="f_user_type = '{}'"
42
- placeholder='用户类型'
43
- v-model="model.f_user_type"
44
- >
45
- </v-select>
46
- </div>
47
- <div class="col-sm-2">
48
- <label class="font_normal_body">用气性质</label>
49
- <v-select :options="$parent.$parent.Gasproperties" :value.sync="model.f_gasproperties"
50
- close-on-select
51
- condition="f_gasproperties = '{}'"
52
- placeholder='用气性质'
53
- v-model="model.f_gasproperties">
54
- </v-select>
55
- </div>
56
-
57
- <div class="col-sm-2">
58
- <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
59
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
60
- :value.sync="model.startDate"
61
- condition="f_insert_date >= '{}'"
62
- placeholder="起始时间"
63
- v-model="model.startDate"
64
- ></datepicker>
65
- </div>
66
- <div class="col-sm-2">
67
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
68
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
69
- :value.sync="model.endDate"
70
- condition="f_insert_date <= '{}'"
71
- placeholder="结束时间"
72
- v-model="model.endDate"
73
- ></datepicker>
74
- </div>
75
- <div class="col-sm-2">
76
- <label class="font_normal_body" style="word-break:keep-all;">安装时间</label>
77
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
78
- :value.sync="model.startDate1"
79
- condition="f_input_date >= '{}'"
80
- placeholder="起始时间"
81
- v-model="model.startDate1"
82
- ></datepicker>
83
- </div>
84
- <div class="col-sm-2">
85
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
86
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
87
- :value.sync="model.endDate1"
88
- condition="f_input_date >= '{}'"
89
- placeholder="结束时间"
90
- v-model="model.endDate1"
91
- ></datepicker>
92
- </div>
93
- <div class="col-sm-2">
94
- <label class="font_normal_body">故障状态</label>
95
- <v-select :options="$parent.$parent.FaultStates"
96
- :value.sync="model.faultstate"
97
- multiple
98
- placeholder='故障状态'
99
- v-model="model.faultstate">
100
- </v-select>
101
- </div>
102
-
103
- <div class="col-sm-2">
104
- <label class="font_normal_body">阀门状态</label>
105
- <v-select :options="$parent.$parent.Valvestates" :value.sync="model.f_valvestate"
106
- close-on-select
107
- condition="f_valvestate like '%{}%'"
108
- placeholder='阀门状态'
109
- v-model="model.f_valvestate">
110
- </v-select>
111
- </div>
112
- <div class="col-sm-2">
113
- <label class="font_normal_body">上报类型</label>
114
- <v-select :options="$parent.$parent.Getuploadtype" :value.sync="model.f_upload_type"
115
- close-on-select
116
- condition="f_upload_type = '{}'"
117
- placeholder='上报类型'
118
- v-model="model.f_upload_type"
119
- >
120
- </v-select>
121
- </div>
122
- <div class="col-sm-2">
123
- <label class="font_normal_body">用气量区间</label>
124
- <input class="form-control" condition="f_oughtamount >= '{}'" placeholder='最小气量' type="text"
125
- v-el:start_gas v-model="model.start_gas" v-next-el='start_gas'>
126
- </div>
127
- <div class="col-sm-2">
128
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
129
- <input class="form-control" condition="f_oughtamount <= '{}'" placeholder='最大气量' type="text"
130
- v-el:end_gas v-el:xq v-model="model.end_gas" v-next-el='end_gas'
131
- >
132
- </div>
133
- </div>
134
-
135
- <div class="row" style="float: right">
136
- <button @click="search()" class="btn btn-success width-100" v-el:cba>查询</button>
137
- <button @click="$parent.$parent.clearmsg" class="btn btn-default width-100">清空</button>
138
- <!--<button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('webmeterhandplan')">导出</button>-->
139
- </div>
140
- </div>
141
- </criteria>
142
- <data-grid :model="model" id="webmeterhandplan" partial='list' class="list_area table_sy" v-ref:grid>
143
- <template partial='head'>
144
- <tr>
145
- <th style="text-align:center">
146
- <nobr>组织机构</nobr>
147
- </th>
148
- <th style="text-align:center">
149
- <nobr>用户类型</nobr>
150
- </th>
151
- <th style="text-align:center">
152
- <nobr>用气性质</nobr>
153
- </th>
154
- <th style="text-align:center">
155
- <nobr>客户名称</nobr>
156
- </th>
157
- <th style="text-align:center">
158
- <nobr>用气地址</nobr>
159
- </th>
160
- <th style="text-align:center">
161
- <nobr>安装时间</nobr>
162
- </th>
163
- <th style="text-align:center">
164
- <nobr>表钢号</nobr>
165
- </th>
166
- <th style="text-align:center">
167
- <nobr>气表品牌</nobr>
168
- </th>
169
- <th style="text-align:center">
170
- <nobr>气表型号</nobr>
171
- </th>
172
- <th style="text-align:center">
173
- <nobr>期初余额</nobr>
174
- </th>
175
- <th style="text-align:center">
176
- <nobr>抄表底数</nobr>
177
- </th>
178
- <th style="text-align:center">
179
- <nobr>上次抄表底数</nobr>
180
- </th>
181
- <th style="text-align:center">
182
- <nobr>本次用气量(m³)</nobr>
183
- </th>
184
- <th style="text-align:center">
185
- <nobr>气价(元/m³)</nobr>
186
- </th>
187
- <th style="text-align:center">
188
- <nobr>本次用气金额(元)</nobr>
189
- </th>
190
- <th style="text-align:center">
191
- <nobr>剩余金额</nobr>
192
- </th>
193
- <th style="text-align:center">
194
- <nobr>上报类型</nobr>
195
- </th>
196
- <th style="text-align:center">
197
- <nobr>本次上报日期</nobr>
198
- </th>
199
- <th style="text-align:center">
200
- <nobr>上次上报日期</nobr>
201
- </th>
202
- <th style="text-align:center">
203
- <nobr>本次表状态</nobr>
204
- </th>
205
- <th style="text-align:center">
206
- <nobr>上次表状态</nobr>
207
- </th>
208
- <th style="text-align:center">
209
- <nobr>系统接收时间</nobr>
210
- </th>
211
- <th style="text-align:center">
212
- <nobr>软件版本号</nobr>
213
- </th>
214
- <th style="text-align:center">
215
- <nobr>信号强度</nobr>
216
- </th>
217
- <th style="text-align:center">
218
- <nobr>电压</nobr>
219
- </th>
220
- <th style="text-align:center">
221
- <nobr>阀门状态</nobr>
222
- </th>
223
- <th style="text-align:center">
224
- <nobr>磁干扰</nobr>
225
- </th>
226
- <th style="text-align:center">
227
- <nobr>周期关阀</nobr>
228
- </th>
229
- <th style="text-align:center">
230
- <nobr>过流保护关阀</nobr>
231
- </th>
232
- <th style="text-align:center">
233
- <nobr>关阀走气</nobr>
234
- </th>
235
- <th style="text-align:center">
236
- <nobr>拆表报警</nobr>
237
- </th>
238
- <th style="text-align:center">
239
- <nobr>外部晶振标志</nobr>
240
- </th>
241
- </tr>
242
- </template>
243
- <template partial='body' partial='list' v-ref:grid>
244
- <tr>
245
- <td style="text-align:center">
246
- <nobr>{{row.f_filiale}}</nobr>
247
- </td>
248
- <td style="text-align:center">
249
- <nobr>{{row.f_user_type}}</nobr>
250
- </td>
251
- <td style="text-align:center">
252
- <nobr>{{row.f_gasproperties}}</nobr>
253
- </td>
254
- <td style="text-align:center">
255
- <nobr>{{row.f_user_name}}</nobr>
256
- </td>
257
- <td>
258
- <nobr>{{row.f_address}}</nobr>
259
- </td>
260
- <td style="text-align:center">
261
- <nobr>{{row.f_input_date}}</nobr>
262
- </td>
263
- <td style="text-align:center">
264
- <nobr>
265
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>
266
- {{row.f_meternumber}}
267
- </a></span>
268
- </nobr>
269
- </td>
270
- <td style="text-align:center">
271
- <nobr>{{row.f_meter_brand}}</nobr>
272
- </td>
273
- <td style="text-align:center">
274
- <nobr>{{row.f_meter_style}}</nobr>
275
- </td>
276
- <td style="text-align:center">
277
- <nobr>{{row.f_balance}}</nobr>
278
- </td>
279
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
280
- <td style="text-align:center">{{row.f_tablebase}}</td>
281
- <td style="text-align:center">{{row.f_oughtamount}}</td>
282
- <td style="text-align:center">{{row.f_price}}</td>
283
- <td style="text-align:center">{{row.f_oughtfee}}</td>
284
- <td style="text-align:center">
285
- <nobr>{{row.f_curbalance}}</nobr>
286
- </td>
287
- <td style="text-align:center;width: 170px;">
288
- <nobr>{{row.f_upload_type}}</nobr>
289
- </td>
290
- <td style="text-align:center;width: 170px;">
291
- <nobr>{{row.f_hand_date}}</nobr>
292
- </td>
293
- <td style="text-align:center">
294
- <nobr>{{row.f_last_hand_date}}</nobr>
295
- </td>
296
- <td style="text-align:center">
297
- <nobr>{{row.f_table_msg}}</nobr>
298
- </td>
299
- <td style="text-align:center">
300
- <nobr>{{row.f_last_meter_state_msg}}</nobr>
301
- </td>
302
- <td style="text-align:center">
303
- <nobr>{{row.f_insert_date}}</nobr>
304
- </td>
305
- <td style="text-align:center">
306
- <nobr>{{row.f_software_version}}</nobr>
307
- </td>
308
-
309
- <td style="text-align:center">
310
- <img :title='row.f_signal' height="12"
311
- src="../../../../static/WebMetericon/1.png"
312
- v-if="row.f_signal>-80" width="24"/>
313
- <img :title='row.f_signal' height="12"
314
- src="../../../../static/WebMetericon/2.png"
315
- v-if="row.f_signal>-100&&row.f_signal<=-80" width="24"/>
316
- <img :title='row.f_signal' height="12"
317
- src="../../../../static/WebMetericon/3.png"
318
- v-if="row.f_signal>-120&&row.f_signal<=-100" width="24"/>
319
- <img :title='row.f_signal' height="12"
320
- src="../../../../static/WebMetericon/4.png"
321
- v-if="row.f_signal<=-120" width="24"/>
322
- </td>
323
- <td style="text-align:center">
324
- <img :title='row.f_batterylevel' height="12"
325
- src="../../../../static/WebMetericon/01.png"
326
- v-if="row.f_batterylevel>=6.00" width="24"/>
327
- <img :title='row.f_batterylevel' height="12"
328
- src="../../../../static/WebMetericon/02.png"
329
- v-if="row.f_batterylevel>=5.00&&row.f_batterylevel<6.00" width="24"/>
330
- <img :title='row.f_batterylevel' height="12"
331
- src="../../../../static/WebMetericon/03.png"
332
- v-if="row.f_batterylevel>=4.00&&row.f_batterylevel<5.00" width="24"/>
333
- <img :title='row.f_batterylevel' height="12"
334
- src="../../../../static/WebMetericon/04.png"
335
- v-if="row.f_batterylevel<4.00" width="24"/>
336
- </td>
337
- <td style="text-align:center;width: 51px">{{row.f_valvestate==1?'关阀':'开阀'}}</td>
338
- <td style="text-align:center;width: 51px">
339
- <img :title='故障' height="12"
340
- src="../../../../static/WebMetericon/guzhang.png"
341
- v-if="row.f_magneticinterference==1" width="12"/>
342
- <img :title='正常' height="12"
343
- src="../../../../static/WebMetericon/zhengchang.png"
344
- v-if="row.f_magneticinterference==0" width="17"/>
345
- </td>
346
- <td style="text-align:center;width: 51px">
347
- <img :title='关阀' height="12"
348
- src="../../../../static/WebMetericon/guzhang.png"
349
- v-if="row.f_cycleshutvalue==1" width="12"/>
350
- <img :title='正常' height="12"
351
- src="../../../../static/WebMetericon/zhengchang.png"
352
- v-if="row.f_cycleshutvalue==0" width="17"/>
353
- </td>
354
- <td style="text-align:center;width: 51px">
355
- <img :title='关阀' height="12"
356
- src="../../../../static/WebMetericon/guzhang.png"
357
- v-if="row.f_overcurrentprotection==1" width="12"/>
358
- <img :title='正常' height="12"
359
- src="../../../../static/WebMetericon/zhengchang.png"
360
- v-if="row.f_overcurrentprotection==0" width="17"/>
361
- </td>
362
- <td style="text-align:center;width: 51px">
363
- <img :title='走气' height="12"
364
- src="../../../../static/WebMetericon/guzhang.png"
365
- v-if="row.f_leakageflag==1" width="12"/>
366
- <img :title='正常' height="12"
367
- src="../../../../static/WebMetericon/zhengchang.png"
368
- v-if="row.f_leakageflag==0" width="17"/>
369
- </td>
370
- <td style="text-align:center;width: 51px">
371
- <img :title='拆表' height="12"
372
- src="../../../../static/WebMetericon/guzhang.png"
373
- v-if="row.f_splitalarm==='1'" width="12"/>
374
- <img :title='正常' height="12"
375
- src="../../../../static/WebMetericon/zhengchang.png"
376
- v-if="row.f_splitalarm==='0'" width="17"/>
377
- </td>
378
- <td style="text-align:center;width: 51px">
379
- <img :title='停止' height="12"
380
- src="../../../../static/WebMetericon/guzhang.png"
381
- v-if="row.f_xtipllstopflag==='1'" width="12"/>
382
- <img :title='正常' height="12"
383
- src="../../../../static/WebMetericon/zhengchang.png"
384
- v-if="row.f_xtipllstopflag==='0'" width="17"/>
385
- </td>
386
-
387
- </tr>
388
- </template>
389
- <template partial='foot'></template>
390
- </data-grid>
391
- </criteria-paged>
392
- </div>
393
- <!--异常抄表录入-->
394
- <modal :show.sync="handshow" backdrop="false" v-ref:modal>
395
- <header class="modal-header" slot="modal-header">
396
- <button @click="handchange()" class="close" type="button"><span>&times;</span></button>
397
- <h4 class="modal-title">表号{{handExce.exceobj.f_meternumber}}</h4>
398
- </header>
399
- <article class="modal-body" slot="modal-body">
400
- <div class="col-sm-12">
401
- <label class="font_normal_body">上报异常类型</label>
402
- <textarea class="ver-textarea" class="form-control" name="name"
403
- placeholder='上报异常类型' rows="2"
404
- style="width: 100%"
405
- v-model='handExce.f_error_type'></textarea>
406
- </div>
407
- <div class="col-sm-12 form-group form-fix-width">
408
- <label class="font_normal_body">异常描述</label>
409
- <textarea class="ver-textarea" class="form-control" name="name"
410
- placeholder='上报异常类型'
411
- rows="2" style="width: 100%"
412
- v-model='handExce.f_error_msg'></textarea>
413
- </div>
414
- </article>
415
- <footer class="modal-footer" slot="modal-footer">
416
- <button @click='handchange()' class="btn btn-default" type="button" v-show="handshow">取消</button>
417
- <button @click='saveException' class="btn btn-success" type="button" v-show="handshow">确认</button>
418
- </footer>
419
- </modal>
420
- </div>
421
- </div>
422
- </div>
423
- </template>
424
-
425
- <script>
426
- import {PagedList} from 'vue-client'
427
-
428
- export default {
429
- title: '数据采集',
430
- data() {
431
- return {
432
- model: new PagedList('rs/sql/dataCollectionQuery', 50),
433
- row: null,
434
- //搜索显示开关
435
- searchshow: false,
436
- //抄表录入开关
437
- handshow: false,
438
- isdeal: true,
439
- obj: {
440
- userid: this.$login.f.id,
441
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
442
- res: this.$login.f.f_fengongsi,
443
- resids: this.$login.f.f_orgids,
444
- },
445
- handExce: {
446
- //异常对象
447
- exceobj: {},
448
- //异常类型
449
- f_error_type: "",
450
- //异常描述
451
- f_error_msg: '',
452
- },
453
- show: false,
454
- }
455
- },
456
- props: ['searchobj', 'isdeal'
457
- ],
458
- ready() {
459
-
460
- },
461
- methods: {
462
- //跳转处理页面
463
- dealmsg(val) {
464
- val.model = this.model.model;
465
- this.$emit('deal-msg', val)
466
- },
467
- //查询开关
468
- seachchange() {
469
- this.searchshow = !this.searchshow
470
- },
471
- //异常开关
472
- handchange(val) {
473
- if (val) {
474
- console.log("开启弹窗");
475
- this.handExce.exceobj = val
476
- } else {
477
- console.log("返回置空");
478
- this.handExce = {}
479
- }
480
- this.handshow = !this.handshow
481
- },
482
- //保存输入
483
- saveException() {
484
- //准备数据
485
- var Exejson = {};
486
- //抄表记录id
487
- Exejson.data_id = this.handExce.exceobj.id;
488
- //异常表档案ID
489
- Exejson.f_userfiles_id = this.handExce.exceobj.f_userfiles_id;
490
- //异常户档案ID
491
- Exejson.f_userinfo_id = this.handExce.exceobj.f_userinfo_id;
492
- //异常表号
493
- Exejson.f_meternumber = this.handExce.exceobj.f_meternumber;
494
- //分公司
495
- Exejson.f_filiale = this.handExce.exceobj.f_filiale;
496
- //分公司编号
497
- Exejson.f_filialeids = this.handExce.exceobj.f_filialeids;
498
- //营业网点
499
- Exejson.f_outlets = this.handExce.exceobj.f_outlets;
500
- //组织机构
501
- Exejson.f_orgstr = this.handExce.exceobj.f_orgstr;
502
- //异常类型
503
- Exejson.f_error_type = this.handExce.f_error_type;
504
- //异常说明
505
- Exejson.f_error_msg = this.handExce.f_error_msg;
506
- console.log("提交异常数据");
507
- console.log(Exejson);
508
- try {
509
- this.$resetpost('rs/entity/t_exception', Exejson, {resolveMsg: null, rejectMsg: null}).then((req) => {
510
- console.log(val);
511
- this.handExce = {};
512
- console.log("提交成功")
513
- }).then(() => {
514
- this.$showMessage("异常保存成功!")
515
- })
516
- } catch (e) {
517
- this.handExce = {};
518
- console.log("提交失败");
519
- this.$showMessage("异常保存失败!")
520
- }
521
- this.handshow = false
522
- },
523
- DealSignal(val) {
524
- console.log(val.model.f_signal);
525
- if (val.model && val.model.f_signal) {
526
- if (val.model.f_signal == '信号正常') {
527
- val.condition = val.condition + " and " + "f_signal>-100 "
528
- }
529
- if (val.model.f_signal == '信号异常') {
530
- val.condition = val.condition + " and " + "f_signal<-100 "
531
- }
532
- }
533
- return val
534
- },
535
- DealFaults(val) {
536
- if (val.model && val.model.faultstate) {
537
- console.log(val.model.faultstate);
538
- val.model.faultstate.forEach((item) => {
539
- if (item == '磁干扰') {
540
- val.condition = val.condition + " and " + "f_magneticInterference=1 "
541
- }
542
- if (item == '周期关阀') {
543
- val.condition = val.condition + " and " + "f_cycleShutValue=1 "
544
- }
545
- if (item == '过流保护关阀') {
546
- val.condition = val.condition + " and " + "f_overCurrentProtection=1 "
547
- }
548
- if (item == '关阀走气') {
549
- val.condition = val.condition + " and " + "f_leakageFlag=1 "
550
- }
551
- if (item == '拆表报警') {
552
- val.condition = val.condition + " and " + "f_SplitAlarm=1 "
553
- }
554
- })
555
- }
556
- return val
557
- },
558
- // SaveAsFile(str) {
559
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
560
- // if (res === 'confirm') {
561
- // let style = '<style>' +
562
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
563
- // let strHtml = style + document.getElementById(str).innerHTML;
564
- // console.log(strHtml);
565
- // let LODOP = getLodop();
566
- // LODOP.PRINT_INIT('');
567
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
568
- // LODOP.SAVE_TO_FILE('抄表查看.xls')
569
- // }
570
- // })
571
- // },
572
- clearmsg() {
573
- this.$refs.paged.$refs.criteria.model = {}
574
- },
575
- search(args) {
576
- // 处理故障类型
577
- args = this.DealFaults(args);
578
- // 处理信号
579
- args = this.DealSignal(args);
580
- args.condition = `${args.condition} and f_filialeids like '${this.obj.resids}%'`;
581
- this.model.search(args.condition, args.model)
582
- },
583
- getRes(obj) {
584
- this.obj.res = obj.res;
585
- this.obj.resids = obj.resids
586
- },
587
- },
588
-
589
- watch: {
590
- // 监听查询对象
591
- 'searchobj'(val) {
592
- if (this.searchobj != null) {
593
- this.$refs.paged.$refs.criteria.model.f_meternumber = this.searchobj.f_meternumber;
594
- /* this.$refs.paged.$refs.criteria.model.startDate = this.searchobj.model.startDate
595
- this.$refs.paged.$refs.criteria.model.endDate = this.searchobj.model.endDate*/
596
- this.$refs.paged.$refs.criteria.search()
597
- }
598
- }
599
- },
600
- computed: {
601
- // 上报异常类型
602
- Gasproperties() {
603
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
604
- },
605
- Getusertype() {
606
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
607
- },
608
- Getuploadtype() {
609
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('上报类型')]
610
- },
611
- // 阀门状态
612
- Valvestates() {
613
- return [{label: '全部', value: '%%'}, {label: '关阀', value: '1'}, {label: '开阀', value: '0'}]
614
- },
615
- // 故障状态
616
- FaultStates() {
617
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('故障状态')]
618
- }
619
- }
620
- }
621
- </script>
622
- <style>
623
- .datapanel {
624
- color: #333;
625
- background-color: white;
626
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
627
- padding: 10px 30px 10px 30px;
628
- border-radius: 15px;
629
- }
630
- </style>
1
+ <template>
2
+ <div class="flex-row binary" id="unit">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+ <div class="flex" style="flex:1;">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row" width="100%">
10
+ <div class="col-sm-2">
11
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
12
+ <input class="form-control" condition="f_meternumber like '%{}%'"
13
+ placeholder='表钢号'
14
+ type="text"
15
+ v-model="model.f_meternumber"
16
+ >
17
+ </div>
18
+
19
+ <div class="col-sm-2">
20
+ <label class="font_normal_body">使用公司</label>
21
+ <right-tree :source.sync='$parent.$parent.obj.source' :userid.sync='$parent.$parent.obj.userid'
22
+ @re-res="$parent.$parent.getRes"></right-tree>
23
+ </div>
24
+ <div class="col-sm-2">
25
+ <label class="font_normal_body">客户名称</label>
26
+ <input class="form-control" condition="f_user_name like '%{}%'" placeholder='客户名称'
27
+ type="text"
28
+ v-model="model.f_user_name">
29
+ </div>
30
+ <div class="col-sm-2">
31
+ <label class="font_normal_body">用气地址</label>
32
+ <input class="form-control" condition="f_address like '%{}%'" placeholder='用气地址'
33
+ type="text"
34
+ v-model="model.f_address"
35
+ >
36
+ </div>
37
+ <div class="col-sm-2">
38
+ <label class="font_normal_body">用户类型</label>
39
+ <v-select :options="$parent.$parent.Getusertype" :value.sync="model.f_user_type"
40
+ close-on-select
41
+ condition="f_user_type = '{}'"
42
+ placeholder='用户类型'
43
+ v-model="model.f_user_type"
44
+ >
45
+ </v-select>
46
+ </div>
47
+ <div class="col-sm-2">
48
+ <label class="font_normal_body">用气性质</label>
49
+ <v-select :options="$parent.$parent.Gasproperties" :value.sync="model.f_gasproperties"
50
+ close-on-select
51
+ condition="f_gasproperties = '{}'"
52
+ placeholder='用气性质'
53
+ v-model="model.f_gasproperties">
54
+ </v-select>
55
+ </div>
56
+
57
+ <div class="col-sm-2">
58
+ <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
59
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
60
+ :value.sync="model.startDate"
61
+ condition="f_insert_date >= '{}'"
62
+ placeholder="起始时间"
63
+ v-model="model.startDate"
64
+ ></datepicker>
65
+ </div>
66
+ <div class="col-sm-2">
67
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
68
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
69
+ :value.sync="model.endDate"
70
+ condition="f_insert_date <= '{}'"
71
+ placeholder="结束时间"
72
+ v-model="model.endDate"
73
+ ></datepicker>
74
+ </div>
75
+ <div class="col-sm-2">
76
+ <label class="font_normal_body" style="word-break:keep-all;">安装时间</label>
77
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
78
+ :value.sync="model.startDate1"
79
+ condition="f_input_date >= '{}'"
80
+ placeholder="起始时间"
81
+ v-model="model.startDate1"
82
+ ></datepicker>
83
+ </div>
84
+ <div class="col-sm-2">
85
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
86
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
87
+ :value.sync="model.endDate1"
88
+ condition="f_input_date >= '{}'"
89
+ placeholder="结束时间"
90
+ v-model="model.endDate1"
91
+ ></datepicker>
92
+ </div>
93
+ <div class="col-sm-2">
94
+ <label class="font_normal_body">故障状态</label>
95
+ <v-select :options="$parent.$parent.FaultStates"
96
+ :value.sync="model.faultstate"
97
+ multiple
98
+ placeholder='故障状态'
99
+ v-model="model.faultstate">
100
+ </v-select>
101
+ </div>
102
+
103
+ <div class="col-sm-2">
104
+ <label class="font_normal_body">阀门状态</label>
105
+ <v-select :options="$parent.$parent.Valvestates" :value.sync="model.f_valvestate"
106
+ close-on-select
107
+ condition="f_valvestate like '%{}%'"
108
+ placeholder='阀门状态'
109
+ v-model="model.f_valvestate">
110
+ </v-select>
111
+ </div>
112
+ <div class="col-sm-2">
113
+ <label class="font_normal_body">上报类型</label>
114
+ <v-select :options="$parent.$parent.Getuploadtype" :value.sync="model.f_upload_type"
115
+ close-on-select
116
+ condition="f_upload_type = '{}'"
117
+ placeholder='上报类型'
118
+ v-model="model.f_upload_type"
119
+ >
120
+ </v-select>
121
+ </div>
122
+ <div class="col-sm-2">
123
+ <label class="font_normal_body">用气量区间</label>
124
+ <input class="form-control" condition="f_oughtamount >= '{}'" placeholder='最小气量' type="text"
125
+ v-el:start_gas v-model="model.start_gas" v-next-el='start_gas'>
126
+ </div>
127
+ <div class="col-sm-2">
128
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
129
+ <input class="form-control" condition="f_oughtamount <= '{}'" placeholder='最大气量' type="text"
130
+ v-el:end_gas v-el:xq v-model="model.end_gas" v-next-el='end_gas'
131
+ >
132
+ </div>
133
+ </div>
134
+
135
+ <div class="row" style="float: right">
136
+ <button @click="search()" class="btn btn-success width-100" v-el:cba>查询</button>
137
+ <button @click="$parent.$parent.clearmsg" class="btn btn-default width-100">清空</button>
138
+ <!--<button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('webmeterhandplan')">导出</button>-->
139
+ </div>
140
+ </div>
141
+ </criteria>
142
+ <data-grid :model="model" id="webmeterhandplan" partial='list' class="list_area table_sy" v-ref:grid>
143
+ <template partial='head'>
144
+ <tr>
145
+ <th style="text-align:center">
146
+ <nobr>组织机构</nobr>
147
+ </th>
148
+ <th style="text-align:center">
149
+ <nobr>用户类型</nobr>
150
+ </th>
151
+ <th style="text-align:center">
152
+ <nobr>用气性质</nobr>
153
+ </th>
154
+ <th style="text-align:center">
155
+ <nobr>客户名称</nobr>
156
+ </th>
157
+ <th style="text-align:center">
158
+ <nobr>用气地址</nobr>
159
+ </th>
160
+ <th style="text-align:center">
161
+ <nobr>安装时间</nobr>
162
+ </th>
163
+ <th style="text-align:center">
164
+ <nobr>表钢号</nobr>
165
+ </th>
166
+ <th style="text-align:center">
167
+ <nobr>气表品牌</nobr>
168
+ </th>
169
+ <th style="text-align:center">
170
+ <nobr>气表型号</nobr>
171
+ </th>
172
+ <th style="text-align:center">
173
+ <nobr>期初余额</nobr>
174
+ </th>
175
+ <th style="text-align:center">
176
+ <nobr>抄表底数</nobr>
177
+ </th>
178
+ <th style="text-align:center">
179
+ <nobr>上次抄表底数</nobr>
180
+ </th>
181
+ <th style="text-align:center">
182
+ <nobr>本次用气量(m³)</nobr>
183
+ </th>
184
+ <th style="text-align:center">
185
+ <nobr>气价(元/m³)</nobr>
186
+ </th>
187
+ <th style="text-align:center">
188
+ <nobr>本次用气金额(元)</nobr>
189
+ </th>
190
+ <th style="text-align:center">
191
+ <nobr>剩余金额</nobr>
192
+ </th>
193
+ <th style="text-align:center">
194
+ <nobr>上报类型</nobr>
195
+ </th>
196
+ <th style="text-align:center">
197
+ <nobr>本次上报日期</nobr>
198
+ </th>
199
+ <th style="text-align:center">
200
+ <nobr>上次上报日期</nobr>
201
+ </th>
202
+ <th style="text-align:center">
203
+ <nobr>本次表状态</nobr>
204
+ </th>
205
+ <th style="text-align:center">
206
+ <nobr>上次表状态</nobr>
207
+ </th>
208
+ <th style="text-align:center">
209
+ <nobr>系统接收时间</nobr>
210
+ </th>
211
+ <th style="text-align:center">
212
+ <nobr>软件版本号</nobr>
213
+ </th>
214
+ <th style="text-align:center">
215
+ <nobr>信号强度</nobr>
216
+ </th>
217
+ <th style="text-align:center">
218
+ <nobr>电压</nobr>
219
+ </th>
220
+ <th style="text-align:center">
221
+ <nobr>阀门状态</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>磁干扰</nobr>
225
+ </th>
226
+ <th style="text-align:center">
227
+ <nobr>周期关阀</nobr>
228
+ </th>
229
+ <th style="text-align:center">
230
+ <nobr>过流保护关阀</nobr>
231
+ </th>
232
+ <th style="text-align:center">
233
+ <nobr>关阀走气</nobr>
234
+ </th>
235
+ <th style="text-align:center">
236
+ <nobr>拆表报警</nobr>
237
+ </th>
238
+ <th style="text-align:center">
239
+ <nobr>外部晶振标志</nobr>
240
+ </th>
241
+ </tr>
242
+ </template>
243
+ <template partial='body' partial='list' v-ref:grid>
244
+ <tr>
245
+ <td style="text-align:center">
246
+ <nobr>{{row.f_filiale}}</nobr>
247
+ </td>
248
+ <td style="text-align:center">
249
+ <nobr>{{row.f_user_type}}</nobr>
250
+ </td>
251
+ <td style="text-align:center">
252
+ <nobr>{{row.f_gasproperties}}</nobr>
253
+ </td>
254
+ <td style="text-align:center">
255
+ <nobr>{{row.f_user_name}}</nobr>
256
+ </td>
257
+ <td>
258
+ <nobr>{{row.f_address}}</nobr>
259
+ </td>
260
+ <td style="text-align:center">
261
+ <nobr>{{row.f_input_date}}</nobr>
262
+ </td>
263
+ <td style="text-align:center">
264
+ <nobr>
265
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>
266
+ {{row.f_meternumber}}
267
+ </a></span>
268
+ </nobr>
269
+ </td>
270
+ <td style="text-align:center">
271
+ <nobr>{{row.f_meter_brand}}</nobr>
272
+ </td>
273
+ <td style="text-align:center">
274
+ <nobr>{{row.f_meter_style}}</nobr>
275
+ </td>
276
+ <td style="text-align:center">
277
+ <nobr>{{row.f_balance}}</nobr>
278
+ </td>
279
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
280
+ <td style="text-align:center">{{row.f_tablebase}}</td>
281
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
282
+ <td style="text-align:center">{{row.f_price}}</td>
283
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
284
+ <td style="text-align:center">
285
+ <nobr>{{row.f_curbalance}}</nobr>
286
+ </td>
287
+ <td style="text-align:center;width: 170px;">
288
+ <nobr>{{row.f_upload_type}}</nobr>
289
+ </td>
290
+ <td style="text-align:center;width: 170px;">
291
+ <nobr>{{row.f_hand_date}}</nobr>
292
+ </td>
293
+ <td style="text-align:center">
294
+ <nobr>{{row.f_last_hand_date}}</nobr>
295
+ </td>
296
+ <td style="text-align:center">
297
+ <nobr>{{row.f_table_msg}}</nobr>
298
+ </td>
299
+ <td style="text-align:center">
300
+ <nobr>{{row.f_last_meter_state_msg}}</nobr>
301
+ </td>
302
+ <td style="text-align:center">
303
+ <nobr>{{row.f_insert_date}}</nobr>
304
+ </td>
305
+ <td style="text-align:center">
306
+ <nobr>{{row.f_software_version}}</nobr>
307
+ </td>
308
+
309
+ <td style="text-align:center">
310
+ <img :title='row.f_signal' height="12"
311
+ src="../../../../static/WebMetericon/1.png"
312
+ v-if="row.f_signal>-80" width="24"/>
313
+ <img :title='row.f_signal' height="12"
314
+ src="../../../../static/WebMetericon/2.png"
315
+ v-if="row.f_signal>-100&&row.f_signal<=-80" width="24"/>
316
+ <img :title='row.f_signal' height="12"
317
+ src="../../../../static/WebMetericon/3.png"
318
+ v-if="row.f_signal>-120&&row.f_signal<=-100" width="24"/>
319
+ <img :title='row.f_signal' height="12"
320
+ src="../../../../static/WebMetericon/4.png"
321
+ v-if="row.f_signal<=-120" width="24"/>
322
+ </td>
323
+ <td style="text-align:center">
324
+ <img :title='row.f_batterylevel' height="12"
325
+ src="../../../../static/WebMetericon/01.png"
326
+ v-if="row.f_batterylevel>=6.00" width="24"/>
327
+ <img :title='row.f_batterylevel' height="12"
328
+ src="../../../../static/WebMetericon/02.png"
329
+ v-if="row.f_batterylevel>=5.00&&row.f_batterylevel<6.00" width="24"/>
330
+ <img :title='row.f_batterylevel' height="12"
331
+ src="../../../../static/WebMetericon/03.png"
332
+ v-if="row.f_batterylevel>=4.00&&row.f_batterylevel<5.00" width="24"/>
333
+ <img :title='row.f_batterylevel' height="12"
334
+ src="../../../../static/WebMetericon/04.png"
335
+ v-if="row.f_batterylevel<4.00" width="24"/>
336
+ </td>
337
+ <td style="text-align:center;width: 51px">{{row.f_valvestate==1?'关阀':'开阀'}}</td>
338
+ <td style="text-align:center;width: 51px">
339
+ <img :title='故障' height="12"
340
+ src="../../../../static/WebMetericon/guzhang.png"
341
+ v-if="row.f_magneticinterference==1" width="12"/>
342
+ <img :title='正常' height="12"
343
+ src="../../../../static/WebMetericon/zhengchang.png"
344
+ v-if="row.f_magneticinterference==0" width="17"/>
345
+ </td>
346
+ <td style="text-align:center;width: 51px">
347
+ <img :title='关阀' height="12"
348
+ src="../../../../static/WebMetericon/guzhang.png"
349
+ v-if="row.f_cycleshutvalue==1" width="12"/>
350
+ <img :title='正常' height="12"
351
+ src="../../../../static/WebMetericon/zhengchang.png"
352
+ v-if="row.f_cycleshutvalue==0" width="17"/>
353
+ </td>
354
+ <td style="text-align:center;width: 51px">
355
+ <img :title='关阀' height="12"
356
+ src="../../../../static/WebMetericon/guzhang.png"
357
+ v-if="row.f_overcurrentprotection==1" width="12"/>
358
+ <img :title='正常' height="12"
359
+ src="../../../../static/WebMetericon/zhengchang.png"
360
+ v-if="row.f_overcurrentprotection==0" width="17"/>
361
+ </td>
362
+ <td style="text-align:center;width: 51px">
363
+ <img :title='走气' height="12"
364
+ src="../../../../static/WebMetericon/guzhang.png"
365
+ v-if="row.f_leakageflag==1" width="12"/>
366
+ <img :title='正常' height="12"
367
+ src="../../../../static/WebMetericon/zhengchang.png"
368
+ v-if="row.f_leakageflag==0" width="17"/>
369
+ </td>
370
+ <td style="text-align:center;width: 51px">
371
+ <img :title='拆表' height="12"
372
+ src="../../../../static/WebMetericon/guzhang.png"
373
+ v-if="row.f_splitalarm==='1'" width="12"/>
374
+ <img :title='正常' height="12"
375
+ src="../../../../static/WebMetericon/zhengchang.png"
376
+ v-if="row.f_splitalarm==='0'" width="17"/>
377
+ </td>
378
+ <td style="text-align:center;width: 51px">
379
+ <img :title='停止' height="12"
380
+ src="../../../../static/WebMetericon/guzhang.png"
381
+ v-if="row.f_xtipllstopflag==='1'" width="12"/>
382
+ <img :title='正常' height="12"
383
+ src="../../../../static/WebMetericon/zhengchang.png"
384
+ v-if="row.f_xtipllstopflag==='0'" width="17"/>
385
+ </td>
386
+
387
+ </tr>
388
+ </template>
389
+ <template partial='foot'></template>
390
+ </data-grid>
391
+ </criteria-paged>
392
+ </div>
393
+ <!--异常抄表录入-->
394
+ <modal :show.sync="handshow" backdrop="false" v-ref:modal>
395
+ <header class="modal-header" slot="modal-header">
396
+ <button @click="handchange()" class="close" type="button"><span>&times;</span></button>
397
+ <h4 class="modal-title">表号{{handExce.exceobj.f_meternumber}}</h4>
398
+ </header>
399
+ <article class="modal-body" slot="modal-body">
400
+ <div class="col-sm-12">
401
+ <label class="font_normal_body">上报异常类型</label>
402
+ <textarea class="ver-textarea" class="form-control" name="name"
403
+ placeholder='上报异常类型' rows="2"
404
+ style="width: 100%"
405
+ v-model='handExce.f_error_type'></textarea>
406
+ </div>
407
+ <div class="col-sm-12 form-group form-fix-width">
408
+ <label class="font_normal_body">异常描述</label>
409
+ <textarea class="ver-textarea" class="form-control" name="name"
410
+ placeholder='上报异常类型'
411
+ rows="2" style="width: 100%"
412
+ v-model='handExce.f_error_msg'></textarea>
413
+ </div>
414
+ </article>
415
+ <footer class="modal-footer" slot="modal-footer">
416
+ <button @click='handchange()' class="btn btn-default" type="button" v-show="handshow">取消</button>
417
+ <button @click='saveException' class="btn btn-success" type="button" v-show="handshow">确认</button>
418
+ </footer>
419
+ </modal>
420
+ </div>
421
+ </div>
422
+ </div>
423
+ </template>
424
+
425
+ <script>
426
+ import {PagedList} from 'vue-client'
427
+
428
+ export default {
429
+ title: '数据采集',
430
+ data() {
431
+ return {
432
+ model: new PagedList('rs/sql/dataCollectionQuery', 50),
433
+ row: null,
434
+ //搜索显示开关
435
+ searchshow: false,
436
+ //抄表录入开关
437
+ handshow: false,
438
+ isdeal: true,
439
+ obj: {
440
+ userid: this.$login.f.id,
441
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
442
+ res: this.$login.f.f_fengongsi,
443
+ resids: this.$login.f.f_orgids,
444
+ },
445
+ handExce: {
446
+ //异常对象
447
+ exceobj: {},
448
+ //异常类型
449
+ f_error_type: "",
450
+ //异常描述
451
+ f_error_msg: '',
452
+ },
453
+ show: false,
454
+ }
455
+ },
456
+ props: ['searchobj', 'isdeal'
457
+ ],
458
+ ready() {
459
+
460
+ },
461
+ methods: {
462
+ //跳转处理页面
463
+ dealmsg(val) {
464
+ val.model = this.model.model;
465
+ this.$emit('deal-msg', val)
466
+ },
467
+ //查询开关
468
+ seachchange() {
469
+ this.searchshow = !this.searchshow
470
+ },
471
+ //异常开关
472
+ handchange(val) {
473
+ if (val) {
474
+ console.log("开启弹窗");
475
+ this.handExce.exceobj = val
476
+ } else {
477
+ console.log("返回置空");
478
+ this.handExce = {}
479
+ }
480
+ this.handshow = !this.handshow
481
+ },
482
+ //保存输入
483
+ saveException() {
484
+ //准备数据
485
+ var Exejson = {};
486
+ //抄表记录id
487
+ Exejson.data_id = this.handExce.exceobj.id;
488
+ //异常表档案ID
489
+ Exejson.f_userfiles_id = this.handExce.exceobj.f_userfiles_id;
490
+ //异常户档案ID
491
+ Exejson.f_userinfo_id = this.handExce.exceobj.f_userinfo_id;
492
+ //异常表号
493
+ Exejson.f_meternumber = this.handExce.exceobj.f_meternumber;
494
+ //分公司
495
+ Exejson.f_filiale = this.handExce.exceobj.f_filiale;
496
+ //分公司编号
497
+ Exejson.f_filialeids = this.handExce.exceobj.f_filialeids;
498
+ //营业网点
499
+ Exejson.f_outlets = this.handExce.exceobj.f_outlets;
500
+ //组织机构
501
+ Exejson.f_orgstr = this.handExce.exceobj.f_orgstr;
502
+ //异常类型
503
+ Exejson.f_error_type = this.handExce.f_error_type;
504
+ //异常说明
505
+ Exejson.f_error_msg = this.handExce.f_error_msg;
506
+ console.log("提交异常数据");
507
+ console.log(Exejson);
508
+ try {
509
+ this.$resetpost('rs/entity/t_exception', Exejson, {resolveMsg: null, rejectMsg: null}).then((req) => {
510
+ console.log(val);
511
+ this.handExce = {};
512
+ console.log("提交成功")
513
+ }).then(() => {
514
+ this.$showMessage("异常保存成功!")
515
+ })
516
+ } catch (e) {
517
+ this.handExce = {};
518
+ console.log("提交失败");
519
+ this.$showMessage("异常保存失败!")
520
+ }
521
+ this.handshow = false
522
+ },
523
+ DealSignal(val) {
524
+ console.log(val.model.f_signal);
525
+ if (val.model && val.model.f_signal) {
526
+ if (val.model.f_signal == '信号正常') {
527
+ val.condition = val.condition + " and " + "f_signal>-100 "
528
+ }
529
+ if (val.model.f_signal == '信号异常') {
530
+ val.condition = val.condition + " and " + "f_signal<-100 "
531
+ }
532
+ }
533
+ return val
534
+ },
535
+ DealFaults(val) {
536
+ if (val.model && val.model.faultstate) {
537
+ console.log(val.model.faultstate);
538
+ val.model.faultstate.forEach((item) => {
539
+ if (item == '磁干扰') {
540
+ val.condition = val.condition + " and " + "f_magneticInterference=1 "
541
+ }
542
+ if (item == '周期关阀') {
543
+ val.condition = val.condition + " and " + "f_cycleShutValue=1 "
544
+ }
545
+ if (item == '过流保护关阀') {
546
+ val.condition = val.condition + " and " + "f_overCurrentProtection=1 "
547
+ }
548
+ if (item == '关阀走气') {
549
+ val.condition = val.condition + " and " + "f_leakageFlag=1 "
550
+ }
551
+ if (item == '拆表报警') {
552
+ val.condition = val.condition + " and " + "f_SplitAlarm=1 "
553
+ }
554
+ })
555
+ }
556
+ return val
557
+ },
558
+ // SaveAsFile(str) {
559
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
560
+ // if (res === 'confirm') {
561
+ // let style = '<style>' +
562
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
563
+ // let strHtml = style + document.getElementById(str).innerHTML;
564
+ // console.log(strHtml);
565
+ // let LODOP = getLodop();
566
+ // LODOP.PRINT_INIT('');
567
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
568
+ // LODOP.SAVE_TO_FILE('抄表查看.xls')
569
+ // }
570
+ // })
571
+ // },
572
+ clearmsg() {
573
+ this.$refs.paged.$refs.criteria.model = {}
574
+ },
575
+ search(args) {
576
+ // 处理故障类型
577
+ args = this.DealFaults(args);
578
+ // 处理信号
579
+ args = this.DealSignal(args);
580
+ args.condition = `${args.condition} and f_filialeids like '${this.obj.resids}%'`;
581
+ this.model.search(args.condition, args.model)
582
+ },
583
+ getRes(obj) {
584
+ this.obj.res = obj.res;
585
+ this.obj.resids = obj.resids
586
+ },
587
+ },
588
+
589
+ watch: {
590
+ // 监听查询对象
591
+ 'searchobj'(val) {
592
+ if (this.searchobj != null) {
593
+ this.$refs.paged.$refs.criteria.model.f_meternumber = this.searchobj.f_meternumber;
594
+ /* this.$refs.paged.$refs.criteria.model.startDate = this.searchobj.model.startDate
595
+ this.$refs.paged.$refs.criteria.model.endDate = this.searchobj.model.endDate*/
596
+ this.$refs.paged.$refs.criteria.search()
597
+ }
598
+ }
599
+ },
600
+ computed: {
601
+ // 上报异常类型
602
+ Gasproperties() {
603
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
604
+ },
605
+ Getusertype() {
606
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
607
+ },
608
+ Getuploadtype() {
609
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('上报类型')]
610
+ },
611
+ // 阀门状态
612
+ Valvestates() {
613
+ return [{label: '全部', value: '%%'}, {label: '关阀', value: '1'}, {label: '开阀', value: '0'}]
614
+ },
615
+ // 故障状态
616
+ FaultStates() {
617
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('故障状态')]
618
+ }
619
+ }
620
+ }
621
+ </script>
622
+ <style>
623
+ .datapanel {
624
+ color: #333;
625
+ background-color: white;
626
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
627
+ padding: 10px 30px 10px 30px;
628
+ border-radius: 15px;
629
+ }
630
+ </style>