manage-client 3.3.57 → 3.3.59

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 (44) hide show
  1. package/build/dev-server.js +21 -34
  2. package/package.json +1 -1
  3. package/src/components/webmeter/instruction/NewQueryInstruct.vue +61 -7
  4. package/src/components/webmeter/reportdata/ReportDataQuery.vue +0 -6
  5. package/src/filiale/WEINAN/CancellationQuery.vue +74 -0
  6. package/src/filiale/WEINAN/ChargeQuery.vue +58 -1
  7. package/src/filiale/WEINAN/DeviceQuery.vue +63 -0
  8. package/src/filiale/WEINAN/DisableQuery.vue +74 -0
  9. package/src/filiale/WEINAN/EnableQuery.vue +74 -0
  10. package/src/filiale/WEINAN/FillGasQuery.vue +74 -0
  11. package/src/filiale/WEINAN/InspectListUser.vue +35 -0
  12. package/src/filiale/WEINAN/MergeFileQuery.vue +77 -1
  13. package/src/filiale/WEINAN/MeterQuery.vue +58 -0
  14. package/src/filiale/WEINAN/NewAccountQuery.vue +58 -0
  15. package/src/filiale/WEINAN/OtherChargeQuery.vue +58 -0
  16. package/src/filiale/WEINAN/RecordInfoQuery.vue +58 -0
  17. package/src/filiale/WEINAN/UserGasAll.vue +63 -0
  18. package/src/filiale/WEINAN/UserGasList.vue +59 -0
  19. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +63 -0
  20. package/src/filiale/WEINAN/UserQuery.vue +63 -0
  21. package/src/filiale/WEINAN/businessquery/FillCardQuery.vue +643 -0
  22. package/src/filiale/WEINAN/businessquery/HandplanQuery.vue +1428 -0
  23. package/src/filiale/WEINAN/businessquery/MoveMeterQuery.vue +477 -0
  24. package/src/filiale/WEINAN/businessquery/ReverseQuery.vue +512 -0
  25. package/src/filiale/WEINAN/businessquery/TransferQuery.vue +553 -0
  26. package/src/filiale/WEINAN/businessquery/UserInsured.vue +483 -0
  27. package/src/filiale/WEINAN/businessquery/priceadjustQuery.vue +535 -0
  28. package/src/filiale/WEINAN/config/exportConfig.js +41 -38
  29. package/src/filiale/WEINAN/filesquery/ChangeUserQuery.vue +468 -0
  30. package/src/filiale/WEINAN/filesquery/FmyGasDeviceQuery.vue +911 -0
  31. package/src/filiale/WEINAN/filesquery/GasDeviceQuery.vue +1021 -0
  32. package/src/filiale/WEINAN/filesquery/PriceChangeQuery.vue +468 -0
  33. package/src/filiale/WEINAN/filesquery/UserDeviceQuery.vue +505 -0
  34. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +63 -0
  35. package/src/filiale/WEINAN/sale.js +23 -2
  36. package/src/filiale/WEINAN/webmeter/LostContactAnalysisList.vue +692 -0
  37. package/src/filiale/WEINAN/webmeter/NewQueryInstruct.vue +564 -0
  38. package/src/filiale/WEINAN/webmeter/ReportList.vue +483 -0
  39. package/src/filiale/WEINAN/webmeter/TotalExceptionByMeter.vue +665 -0
  40. package/src/filiale/WEINAN/webmeter/UserInstructEchartsList.vue +242 -0
  41. package/src/filiale/WEINAN/webmeter/UserInstructList.vue +390 -0
  42. package/src/filiale/WEINAN/webmeterManage.js +13 -0
  43. package/src/filiale/lixianV3/BusinessManage.vue +3 -0
  44. package/src/filiale/shanxian/UserLostContactAnalysis.vue +35 -3
@@ -0,0 +1,665 @@
1
+ <template>
2
+ <div class="flex-row" v-if="!showdetail">
3
+ <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input style="width:60%" type="text" class="input_search"
11
+ v-model="model.f_userinfo_code"
12
+ placeholder='客户编号'
13
+ @keyup.enter="search"
14
+ condition="f_userinfo_code like '%{}%'"
15
+ v-el:xq v-next-el='f_userinfo_code'
16
+ v-el:username>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">客户名称</label>
20
+ <input style="width:60%" type="text" class="input_search"
21
+ v-model="model.f_user_name"
22
+ @keyup.enter="search"
23
+ placeholder='客户名称'
24
+ condition="f_user_name = '{}'"
25
+ v-el:xq v-next-el='username'
26
+ v-el:username>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户地址</label>
30
+ <input style="width:60%" type="text" class="input_search"
31
+ v-model="model.f_area" placeholder='地址'
32
+ condition="f_address like '%{}%'"
33
+ @keyup.enter="search"
34
+ v-el:xq v-next-el='address' v-el:area
35
+ >
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
39
+ <input style="width:60%" type="text" class="input_search"
40
+ v-model="model.f_meternumber" placeholder='表号'
41
+ @keyup.enter="search"
42
+ condition="f_meternumber like '%{}%'"
43
+ v-next-el='meternumber' v-el:meternumber>
44
+ </div>
45
+ <div style="float:right">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
+ :field="$parent.$parent.getfield"
50
+ sqlurl="rs/logic/exportfile" sql-name="DrillErrorByUserinfo" template-name='异常分析'
51
+ :choose-col="true"></export-excel>
52
+ <!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
53
+ <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
54
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <!-- <res-select-group :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>-->
59
+
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
62
+ <right-tree @re-res="$parent.$parent.getorg"
63
+ :initresid='$parent.$parent.org'></right-tree>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户类型</label>
67
+ <v-select style="width:60%" id="f_user_type"
68
+ v-model="model.f_user_type"
69
+ placeholder='客户类型'
70
+ @change="$parent.$parent.userTypeChange()"
71
+ :value.sync="model.f_user_type"
72
+ :options='$parent.$parent.usertypes'
73
+ condition="f_user_type = '{}'"
74
+ close-on-select>
75
+ </v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">用气性质</label>
79
+ <v-select style="width:60%" id="f_gasproperties"
80
+ v-model="model.f_gasproperties"
81
+ placeholder='用气性质'
82
+ @keyup.enter="search"
83
+ :value.sync="model.f_gasproperties"
84
+ :options='$parent.$parent.gasproperties'
85
+ condition="f_gasproperties = '{}'"
86
+ close-on-select>
87
+ </v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">气表品牌</label>
91
+ <v-select
92
+ placeholder='气表品牌'
93
+ :value.sync="model.f_meter_brand"
94
+ v-model="model.f_meter_brand"
95
+ :options='$parent.$parent.WarningType'
96
+ @change="$parent.$parent.getMeterType"
97
+ close-on-select
98
+ condition="f_meter_brand='{}'">
99
+ </v-select>
100
+ </div>
101
+ <div class="col-sm-2 form-group" >
102
+ <label class="font_normal_body">气表型号</label>
103
+ <v-select v-if="$parent.$parent.styles"
104
+ placeholder='气表型号'
105
+ :value.sync="model.f_meter_style"
106
+ v-model="model.f_meter_style"
107
+ :options='$parent.$parent.Warningstyle'
108
+ close-on-select
109
+ condition="f_meter_style='{}'">
110
+ </v-select>
111
+ <v-select v-if="!$parent.$parent.styles"
112
+ placeholder='气表型号'
113
+ :value.sync="model.f_meter_style"
114
+ v-model="model.f_meter_style"
115
+ :options='$parent.$parent.Warningstyles'
116
+ close-on-select
117
+ condition="f_meter_style='{}'">
118
+ </v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">用户状态</label>
122
+ <v-select
123
+ placeholder='用户状态'
124
+ value-single="true"
125
+ style="width:60%"
126
+ :value.sync="model.f_user_state"
127
+ v-model="model.f_user_state"
128
+ :options='$parent.$parent.userstate'
129
+ close-on-select condition="f_user_state ='{}'">
130
+ </v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">上报区间</label>
134
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
135
+ v-model="model.startDate"
136
+ :value.sync="model.startDate"
137
+ :disabled-days-of-Week="[]"
138
+ :format="'yyyy-MM-dd HH:mm:ss'"
139
+ condition="f_insert_date >= '{}'"
140
+ :show-reset-button="reset">
141
+ </datepicker>
142
+ </div>
143
+ <div class="col-sm-2 form-group">
144
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
145
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
146
+ v-model="model.endDate"
147
+ :value.sync="model.endDate"
148
+ :format="'yyyy-MM-dd HH:mm:ss'"
149
+ :disabled-days-of-Week="[]"
150
+ condition="f_insert_date <= '{}'"
151
+ :show-reset-button="reset">
152
+ </datepicker>
153
+ </div>
154
+ <div class="col-sm-2 form-group">
155
+ <label class="font_normal_body">异常级别</label>
156
+ <v-select style="width:60%"
157
+ v-model="model.f_error_level"
158
+ placeholder='异常级别'
159
+ @change="$parent.$parent.getErrorInfo('f_error_type')"
160
+ :value.sync="model.f_error_level"
161
+ :options='$parent.$parent.GetErrorLevel'
162
+ condition="f_error_level = '{}'"
163
+ close-on-select>
164
+ </v-select>
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">异常类型</label>
168
+ <v-select style="width:60%"
169
+ v-model="model.f_error_type"
170
+ placeholder='异常类型'
171
+ :value.sync="model.f_error_type"
172
+ :options='$parent.$parent.GetErrorType'
173
+ condition="f_error_type = '{}'"
174
+ close-on-select>
175
+ </v-select>
176
+ </div>
177
+ <div class="col-sm-2 form-group">
178
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
179
+ <v-select :value.sync="model.f_user_usetype" :search="false"
180
+ @change="$parent.$parent.userUseTypeChange()"
181
+ v-model="model.f_user_usetype"
182
+ :options='$parent.$parent.userusetypes'
183
+ condition="f_user_usetype = '{}'"
184
+ placeholder='用气类型'
185
+ value-single="true"
186
+ close-on-select>
187
+ </v-select>
188
+ </div>
189
+ <div class="col-sm-2 form-group">
190
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
191
+ <v-select :value.sync="model.f_use_institution" :search="false"
192
+ @change="$parent.$parent.userUseInstitutionChange()"
193
+ v-model="model.f_use_institution"
194
+ :options='$parent.$parent.useinstitutions'
195
+ condition="f_use_institution = '{}'"
196
+ placeholder='用气机构'
197
+ value-single="true"
198
+ close-on-select>
199
+ </v-select>
200
+ </div>
201
+ <div class="col-sm-2 form-group">
202
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
203
+ <v-select :value.sync="model.f_user_usenature" :search="false"
204
+ v-model="model.f_user_usenature"
205
+ :options='$parent.$parent.userusenatures'
206
+ condition="f_user_usenature = '{}'"
207
+ placeholder='使用性质'
208
+ value-single="true"
209
+ close-on-select>
210
+ </v-select>
211
+ </div>
212
+
213
+
214
+
215
+ </div>
216
+ </div>
217
+ </criteria>
218
+ <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
219
+ <template partial='head'>
220
+ <tr>
221
+ <th style="text-align:center">
222
+ <nobr>序号</nobr>
223
+ </th>
224
+ <th style="text-align:center">
225
+ <nobr>客户编号</nobr>
226
+ </th>
227
+ <th style="text-align:center">
228
+ <nobr>客户名称</nobr>
229
+ </th>
230
+ <th style="text-align:center">
231
+ <nobr>客户地址</nobr>
232
+ </th>
233
+ <th style="text-align:center">
234
+ <nobr>客户类型</nobr>
235
+ </th>
236
+ <th style="text-align:center">
237
+ <nobr>用气性质</nobr>
238
+ </th>
239
+ <th style="text-align:center">
240
+ <nobr>表号</nobr>
241
+ </th>
242
+ <th style="text-align:center">
243
+ <nobr>气表品牌</nobr>
244
+ </th>
245
+ <th style="text-align:center">
246
+ <nobr>异常时间</nobr>
247
+ </th>
248
+ <th style="text-align:center">
249
+ <nobr>异常类型</nobr>
250
+ </th>
251
+ <th style="text-align:center">
252
+ <nobr>异常级别</nobr>
253
+ </th>
254
+ <th style="text-align:center">
255
+ <nobr>异常描述</nobr>
256
+ </th>
257
+ <th style="text-align:center" >
258
+ <nobr>气表型号</nobr>
259
+ </th>
260
+ <th style="text-align:center" >
261
+ <nobr>用户状态</nobr>
262
+ </th>
263
+ <th style="text-align:center">
264
+ <nobr>组织机构</nobr>
265
+ </th>
266
+
267
+ </tr>
268
+
269
+ </template>
270
+ <template partial='body'>
271
+ <td style="text-align:center">
272
+ <nobr>{{$index+1}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;"><nobr>
275
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
276
+ </nobr> </td>
277
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
278
+ <td>
279
+ <nobr>{{row.f_address}}</nobr>
280
+ </td>
281
+ <td style="text-align:center">{{row.f_user_type}}</td>
282
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
283
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
284
+ <td style="text-align:center">
285
+ <nobr>{{row.f_meter_brand}}</nobr>
286
+ </td>
287
+ <td style="text-align:center">
288
+ <nobr>{{row.f_insert_date}}</nobr>
289
+ </td>
290
+ <td style="text-align:center">
291
+ <nobr>{{row.f_error_type}}</nobr>
292
+ </td>
293
+ <td style="text-align:center">
294
+ <nobr>{{row.f_error_level}}</nobr>
295
+ </td>
296
+ <td style="text-align:center">
297
+ <nobr>{{row.f_error_msg}}</nobr>
298
+ </td>
299
+ <td style="text-align:center">
300
+ <nobr>{{row.f_meter_style}}</nobr>
301
+ </td>
302
+ <td style="text-align:center">
303
+ <nobr>{{row.f_user_state}}</nobr>
304
+ </td>
305
+ <td style="text-align:center">
306
+ <nobr>{{row.f_orgname}}</nobr>
307
+ </td>
308
+ </template>
309
+ </data-grid>
310
+ </criteria-paged>
311
+ </div>
312
+ <!--<div style="height: 40px;width: 100%;" v-show="echarts">
313
+ <div style="display: inline-block;width: 20%;">
314
+ <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
315
+ <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
316
+ </div>
317
+ &lt;!&ndash;图显示模板&ndash;&gt;
318
+ <div class="mystyle" style="display: inline-block;" >
319
+ <label class="font_normal_body">图表统计项</label>
320
+ <v-select style="width:60%" id="groupname" v-model="groupname"
321
+ placeholder='分组项'
322
+ value-single="true"
323
+ :value.sync="groupname"
324
+ :options='getgroupname'
325
+ close-on-select></v-select>
326
+ </div>
327
+ </div>
328
+ <div v-show="echarts" style="width: 100%;height: 90%;">
329
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
330
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
331
+ </div>
332
+ <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
333
+ <new-exception-eform-total :condition="condition" :startdate="startDate"
334
+ :enddate="endDate"></new-exception-eform-total>
335
+ </div>-->
336
+ <div v-if="echarts" style="width: 100%;height: 98%;">
337
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
338
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
339
+ </div>
340
+ </div>
341
+ <div class="flex" v-if="showdetail">
342
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
343
+ </div>
344
+ </template>
345
+
346
+ <script>
347
+ import {HttpResetClass, PagedList} from 'vue-client'
348
+ import * as Util from '../../../Util'
349
+ import getLodop from '../../../plugins/LodopFuncs'
350
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
351
+
352
+ let readySomething = async function (self) {
353
+ await self.$MagLoadParams.loadParam()
354
+ self.initParams()
355
+ self.getMeterTypeAndBrand('f_meter_brand', '1=1')
356
+ }
357
+ export default {
358
+ title: '异常分析',
359
+ props: ['data'],
360
+ data() {
361
+ return {
362
+ model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
363
+ reportStr: null,
364
+ show: false,
365
+ startDate: '',
366
+ endDate: '',
367
+ WarningType: [
368
+ {label: '全部', value: ''}
369
+ ],
370
+ Warningstyles: [
371
+ {label: '全部', value: ''}
372
+ ],
373
+ styles:false,
374
+ f_error_type:'',
375
+ groupname: ['day'],
376
+ getgroupname: [
377
+ {label: '年份', value: 'year'},
378
+ {label: '月份', value: 'month'},
379
+ {label: '周', value: 'week'},
380
+ {label: '日', value: 'day'}
381
+ ],
382
+ getfield:{
383
+ "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
384
+ "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
385
+ "f_error_msg":"异常描述","f_orgname":"组织机构"
386
+ },
387
+ outlets: [],
388
+ operator: [],
389
+ gasproperties:[{label: '全部', value: ''}],
390
+ showdetail:false,
391
+ rowdata:{},
392
+ filename: '',
393
+ criteriaShow: false,
394
+ echarts: false,
395
+ searchshow: false,
396
+ isActiveTotalForm: false,
397
+ GetErrorLevel:[],
398
+ GetErrorType:[],
399
+ initres: {
400
+ org:[this.$login.f.orgid],
401
+ dep:[],
402
+ user:[]
403
+ },
404
+ userusetypes: [],
405
+ useinstitutions: [],
406
+ userusenatures: [],
407
+ condition: '1=1',
408
+ org:[this.$login.f.orgid],
409
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
410
+ }
411
+ },
412
+ ready() {
413
+ readySomething(this)
414
+ this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-2).substring(0,10) + ' 00:00:00'
415
+ // this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
416
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
417
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
418
+ this.getErrorInfo('f_error_level')
419
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
420
+ this.$refs.paged.$refs.cri.search()
421
+
422
+ },
423
+ methods: {
424
+ userUseInstitutionChange () {
425
+ this.userusenatures = []
426
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
427
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
428
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
429
+ this.userusenatures = this.$appdata.getParam(str)
430
+ }
431
+ },
432
+ userUseTypeChange () {
433
+ this.useinstitutions = []
434
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
435
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
436
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
437
+ this.useinstitutions = this.$appdata.getParam(str)
438
+ }
439
+ },
440
+ getMeterType() {
441
+ this.Warningstyle = [{label: '全部', value: ''}]
442
+ this.styles = false
443
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
444
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
445
+ },
446
+ getMeterTypeAndBrand(groupname, condition) {
447
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
448
+ let self = this
449
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
450
+ let load = new HttpResetClass()
451
+ load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
452
+ data: {
453
+ condition: condition,
454
+ groupname: groupname
455
+ }
456
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
457
+ for (let i = 0; i < res.data.length; i++) {
458
+ if (groupname == 'f_meter_brand') {
459
+ self.WarningType.push({label: res.data[i].f_meter_brand, value:res.data[i].f_meter_brand})
460
+ console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
461
+ console.log( self.WarningType)
462
+ } else if (groupname == 'f_meter_style') {
463
+ //气表类型
464
+ self.Warningstyle.push({label: res.data[i].f_meter_style, value:res.data[i].f_meter_style})
465
+ }
466
+ }
467
+ if (self.Warningstyle.length > 1) {
468
+ self.showMeterStyle()
469
+ }
470
+ })
471
+
472
+ },
473
+ showMeterStyle() {
474
+ this.styles = true
475
+ },
476
+ userTypeChange () {
477
+ this.userusetypes = []
478
+ this.gasproperties=[{label: '全部', value: ''}]
479
+ if(this.$refs.paged.$refs.cri.model !==null) {
480
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
481
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
482
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
483
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type)
484
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
485
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
486
+ this.userusetypes = this.$appdata.getParam(str)
487
+ }
488
+ // this.gasproperties.push({label: '全部', value: ''})
489
+ }
490
+ },
491
+ showmsg(obj){
492
+ this.rowdata=obj
493
+ this.showdetail=true
494
+ },
495
+ cancel() {
496
+ this.showdetail = false
497
+ },
498
+ getRes(condition,obj) {
499
+ this.orgCondtionStr = condition
500
+ this.orgname = obj.orgnames[0]
501
+ this.depname = obj.depnames[0]
502
+ },
503
+ getorg(obj) {
504
+ if (obj.resids.length>0) {
505
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
506
+ }else
507
+ {
508
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
509
+ }
510
+ },
511
+ initParams () {
512
+ let arr = []
513
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
514
+ let temp = {}
515
+ if(item.value.f_meter_type==='物联网表'){
516
+ temp.label = item.label
517
+ temp.value = item.value.f_meter_brand
518
+ arr.push(temp )
519
+ }
520
+
521
+ })
522
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
523
+ },
524
+ hidden(){
525
+ this.criteriaShow = !this.criteriaShow
526
+ },
527
+ clickshow() {
528
+ this.searchshow = !this.searchshow
529
+ },
530
+ getErrorInfo(items){
531
+ let self = this
532
+ self.$refs.paged.$refs.cri.model.f_error_type=''
533
+ console.log("self.model.f_error_type=''",self.model.f_error_type)
534
+ let f_error_level=''
535
+ if (items!='f_error_level') {
536
+ if(this.$refs.paged.$refs.cri.model.f_error_level){
537
+ f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
538
+ }
539
+ }
540
+ let load = new HttpResetClass()
541
+ load.load('POST', 'rs/sql/singleTableParam', {
542
+ data: {
543
+ items:items+' f_type',
544
+ tablename:'t_exception',
545
+ condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
546
+ }
547
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
548
+ let rows=res.data
549
+ let array1=[]
550
+ array1.push({label: '全部', value: ''})
551
+ for (let i = 0; i < rows.length; i++) {
552
+ array1.push({label: rows[i].f_type,value: rows[i].f_type})
553
+ }
554
+ console.log("array1========",array1)
555
+ if (items=='f_error_level'){
556
+ self.GetErrorLevel=array1
557
+ }else {
558
+ self.GetErrorType=array1
559
+ }
560
+ })
561
+
562
+ },
563
+ search(args) {
564
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
565
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
566
+ this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
567
+ console.log('1231321312312321')
568
+ /* if (this.endDate == '' || this.startDate == '') {
569
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
570
+ }*/
571
+ this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
572
+
573
+ args.condition = this.condition
574
+ this.model.search(args.condition, args.model)
575
+ },
576
+ SaveAsFile(str) {
577
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
578
+ if (res === 'confirm') {
579
+ let style = '<style>' +
580
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
581
+ let strHtml = style + document.getElementById(str).innerHTML;
582
+ console.log(strHtml);
583
+ let LODOP = getLodop();
584
+ LODOP.PRINT_INIT('');
585
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
586
+ LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
587
+ }
588
+ })
589
+ },
590
+ clearmsg() {
591
+ this.$refs.paged.$refs.cri.model = {}
592
+ },
593
+ close() {
594
+ this.show = false
595
+ },
596
+ // 显示柱状图
597
+ showEcharts() {
598
+ this.echarts = true
599
+ this.isActiveTotalForm = false
600
+ },
601
+ notShowTotalForm() {
602
+ this.echarts = false
603
+ this.isActiveTotalForm = false
604
+ },
605
+ // 不显示柱状图
606
+ notShowEcharts() {
607
+ this.echarts = false
608
+ this.isActiveTotalForm = false
609
+ },
610
+ // 显示汇总数据表格
611
+ showTotalForm() {
612
+ this.echarts = false
613
+ this.isActiveTotalForm = true
614
+ }
615
+ },
616
+ watch: {
617
+ 'data'(val) {
618
+ if (val.f_files_path) {
619
+ this.getFileContent(val.f_files_path)
620
+ } else {
621
+ this.reportStr = null
622
+ }
623
+ }
624
+ },
625
+ computed: {
626
+ // usertypes () {
627
+ // return this.$appdate.getParams("客户类型")
628
+ // },
629
+ getCondition() {
630
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
631
+ return {
632
+ condition: condition ,
633
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
634
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
635
+ }
636
+
637
+ },
638
+ usertypes() {
639
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
640
+ },
641
+ userstate() {
642
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
643
+ }
644
+ }
645
+ }
646
+ </script>
647
+ <style>
648
+ .form-input-group label {
649
+ text-align: right;
650
+ width: auto;
651
+ }
652
+
653
+ .mystyle {
654
+ float: right;
655
+ padding-right: 10%;
656
+ }
657
+
658
+ .datapanel {
659
+ color: #333;
660
+ background-color: white;
661
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
662
+ padding: 10px 30px 10px 30px;
663
+ border-radius: 15px;
664
+ }
665
+ </style>