manage-client 3.1.13 → 3.1.15

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 (50) hide show
  1. package/build/dev-server.js +5 -9
  2. package/hs_err_pid20908.log +199 -0
  3. package/hs_err_pid29444.log +199 -0
  4. package/node_modules.7z +0 -0
  5. package/package.json +1 -1
  6. package/src/App.vue +29 -28
  7. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  8. package/src/components/SellReport/ManageSellType.vue +284 -284
  9. package/src/components/SellReport/ManageUserCount.vue +347 -347
  10. package/src/components/SellReport/SellingTable.vue +220 -220
  11. package/src/components/SellReport/UserSellingGas.vue +251 -251
  12. package/src/components/daping/CallCenter.vue +366 -368
  13. package/src/components/daping/DataManagement.vue +703 -697
  14. package/src/components/daping/GMap.vue +636 -636
  15. package/src/components/daping/ManageMain.vue +255 -255
  16. package/src/components/sale/businessquery/AreaSellCount.vue +408 -0
  17. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  18. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -613
  20. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -502
  21. package/src/components/sale/config/exportConfig.js +864 -864
  22. package/src/components/sale/filesquery/UserQuery.vue +905 -884
  23. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  24. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  25. package/src/components/webmeter/DrillData/UserGasAll.vue +596 -596
  26. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  27. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  28. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  29. package/src/components/webmeter/instruction/NewQueryInstruct.vue +399 -399
  30. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +899 -899
  31. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +606 -606
  32. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +252 -252
  33. package/src/components/webmeter/newwebmeter/UserGasList.vue +440 -440
  34. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  35. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  36. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  37. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  38. package/src/filiale/alashan/SellingTable.vue +231 -0
  39. package/src/filiale/alashan/reportManage.js +10 -0
  40. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  41. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  42. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  43. package/src/filiale/meihekou/sale.js +26 -26
  44. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  45. package/src/filiale/rongchuang/reportManage.js +11 -11
  46. package/src/filiale/zhoukou/CardHandplanQuery.vue +457 -457
  47. package/src/filiale/zhoukou/sale.js +11 -11
  48. package/src/main.js +6 -6
  49. package/src/reportManage.js +438 -438
  50. package/static/images/mainicon/jiezhang.png +0 -0
@@ -1,606 +1,606 @@
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 like '%{}%'"
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
-
178
-
179
-
180
- </div>
181
- </div>
182
- </criteria>
183
- <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
184
- <template partial='head'>
185
- <tr>
186
- <th style="text-align:center">
187
- <nobr>序号</nobr>
188
- </th>
189
- <th style="text-align:center">
190
- <nobr>客户编号</nobr>
191
- </th>
192
- <th style="text-align:center">
193
- <nobr>客户名称</nobr>
194
- </th>
195
- <th style="text-align:center">
196
- <nobr>客户地址</nobr>
197
- </th>
198
- <th style="text-align:center">
199
- <nobr>客户类型</nobr>
200
- </th>
201
- <th style="text-align:center">
202
- <nobr>用气性质</nobr>
203
- </th>
204
- <th style="text-align:center">
205
- <nobr>表号</nobr>
206
- </th>
207
- <th style="text-align:center">
208
- <nobr>气表品牌</nobr>
209
- </th>
210
- <th style="text-align:center">
211
- <nobr>异常时间</nobr>
212
- </th>
213
- <th style="text-align:center">
214
- <nobr>异常类型</nobr>
215
- </th>
216
- <th style="text-align:center">
217
- <nobr>异常级别</nobr>
218
- </th>
219
- <th style="text-align:center">
220
- <nobr>异常描述</nobr>
221
- </th>
222
- <th style="text-align:center" >
223
- <nobr>气表型号</nobr>
224
- </th>
225
- <th style="text-align:center" >
226
- <nobr>用户状态</nobr>
227
- </th>
228
- <th style="text-align:center">
229
- <nobr>组织机构</nobr>
230
- </th>
231
-
232
- </tr>
233
-
234
- </template>
235
- <template partial='body'>
236
- <td style="text-align:center">
237
- <nobr>{{$index+1}}</nobr>
238
- </td>
239
- <td style="text-align: center;"><nobr>
240
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
241
- </nobr> </td>
242
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
243
- <td>
244
- <nobr>{{row.f_address}}</nobr>
245
- </td>
246
- <td style="text-align:center">{{row.f_user_type}}</td>
247
- <td style="text-align:center">{{row.f_gasproperties}}</td>
248
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
249
- <td style="text-align:center">
250
- <nobr>{{row.f_meter_brand}}</nobr>
251
- </td>
252
- <td style="text-align:center">
253
- <nobr>{{row.f_insert_date}}</nobr>
254
- </td>
255
- <td style="text-align:center">
256
- <nobr>{{row.f_error_type}}</nobr>
257
- </td>
258
- <td style="text-align:center">
259
- <nobr>{{row.f_error_level}}</nobr>
260
- </td>
261
- <td style="text-align:center">
262
- <nobr>{{row.f_error_msg}}</nobr>
263
- </td>
264
- <td style="text-align:center">
265
- <nobr>{{row.f_meter_style}}</nobr>
266
- </td>
267
- <td style="text-align:center">
268
- <nobr>{{row.f_user_state}}</nobr>
269
- </td>
270
- <td style="text-align:center">
271
- <nobr>{{row.f_orgname}}</nobr>
272
- </td>
273
- </template>
274
- </data-grid>
275
- </criteria-paged>
276
- </div>
277
- <!--<div style="height: 40px;width: 100%;" v-show="echarts">
278
- <div style="display: inline-block;width: 20%;">
279
- <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
280
- <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
281
- </div>
282
- &lt;!&ndash;图显示模板&ndash;&gt;
283
- <div class="mystyle" style="display: inline-block;" >
284
- <label class="font_normal_body">图表统计项</label>
285
- <v-select style="width:60%" id="groupname" v-model="groupname"
286
- placeholder='分组项'
287
- value-single="true"
288
- :value.sync="groupname"
289
- :options='getgroupname'
290
- close-on-select></v-select>
291
- </div>
292
- </div>
293
- <div v-show="echarts" style="width: 100%;height: 90%;">
294
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
295
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
296
- </div>
297
- <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
298
- <new-exception-eform-total :condition="condition" :startdate="startDate"
299
- :enddate="endDate"></new-exception-eform-total>
300
- </div>-->
301
- <div v-show="echarts" style="width: 100%;height: 90%;">
302
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
303
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
304
- </div>
305
- </div>
306
- <div class="flex" v-if="showdetail">
307
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
308
- </div>
309
- </template>
310
-
311
- <script>
312
- import {HttpResetClass, PagedList} from 'vue-client'
313
- import * as Util from '../../../../Util'
314
- import getLodop from '../../../../plugins/LodopFuncs'
315
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
316
-
317
- let readySomething = async function (self) {
318
- await self.$MagLoadParams.loadParam()
319
- self.initParams()
320
- self.getMeterTypeAndBrand('f_meter_brand', '1=1')
321
- }
322
- export default {
323
- title: '异常分析',
324
- props: ['data'],
325
- data() {
326
- return {
327
- model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
328
- reportStr: null,
329
- show: false,
330
- startDate: '',
331
- endDate: '',
332
- WarningType: [
333
- {label: '全部', value: ''}
334
- ],
335
- Warningstyles: [
336
- {label: '全部', value: ''}
337
- ],
338
- styles:false,
339
- f_error_type:'',
340
- groupname: ['year'],
341
- getgroupname: [
342
- {label: '年份', value: 'year'},
343
- {label: '月份', value: 'month'},
344
- {label: '周', value: 'week'},
345
- {label: '日', value: 'day'}
346
- ],
347
- getfield:{
348
- "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
349
- "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
350
- "f_error_msg":"异常描述","f_orgname":"组织机构"
351
- },
352
- outlets: [],
353
- operator: [],
354
- gasproperties:[{label: '全部', value: ''}],
355
- showdetail:false,
356
- rowdata:{},
357
- filename: '',
358
- criteriaShow: false,
359
- echarts: false,
360
- searchshow: false,
361
- isActiveTotalForm: false,
362
- GetErrorLevel:[],
363
- GetErrorType:[],
364
- initres: {
365
- org:[this.$login.f.orgid],
366
- dep:[],
367
- user:[]
368
- },
369
- condition: '1=1',
370
- org:[this.$login.f.orgid],
371
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
372
- }
373
- },
374
- ready() {
375
- readySomething(this)
376
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
377
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
378
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
379
- this.getErrorInfo('f_error_level')
380
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
381
- this.$refs.paged.$refs.cri.search()
382
-
383
- },
384
- methods: {
385
- getMeterType() {
386
- this.Warningstyle = [{label: '全部', value: ''}]
387
- this.styles = false
388
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
389
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
390
- },
391
- getMeterTypeAndBrand(groupname, condition) {
392
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
393
- let self = this
394
- self.$refs.paged.$refs.cri.model.f_meter_style=''
395
- let load = new HttpResetClass()
396
- load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
397
- data: {
398
- condition: condition,
399
- groupname: groupname
400
- }
401
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
402
- for (let i = 0; i < res.data.length; i++) {
403
- if (groupname == 'f_meter_brand') {
404
- self.WarningType.push({label: res.data[i].f_meter_brand, value:res.data[i].f_meter_brand})
405
- console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
406
- console.log( self.WarningType)
407
- } else if (groupname == 'f_meter_style') {
408
- //气表类型
409
- self.Warningstyle.push({label: res.data[i].f_meter_style, value:res.data[i].f_meter_style})
410
- }
411
- }
412
- if (self.Warningstyle.length > 1) {
413
- self.showMeterStyle()
414
- }
415
- })
416
-
417
- },
418
- showMeterStyle() {
419
- this.styles = true
420
- },
421
- userTypeChange () {
422
- this.gasproperties=[{label: '全部', value: ''}]
423
- if(this.$refs.paged.$refs.cri.model !==null) {
424
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
425
- if(this.$refs.paged.$refs.cri.model.f_user_type){
426
- console.log(this.$refs.paged.$refs.cri.model.f_user_type)
427
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
428
- }
429
- // this.gasproperties.push({label: '全部', value: ''})
430
- }
431
- },
432
- showmsg(obj){
433
- this.rowdata=obj
434
- this.showdetail=true
435
- },
436
- cancel() {
437
- this.showdetail = false
438
- },
439
- getRes(condition,obj) {
440
- this.orgCondtionStr = condition
441
- this.orgname = obj.orgnames[0]
442
- this.depname = obj.depnames[0]
443
- },
444
- getorg(obj) {
445
- if (obj.resids.length>0) {
446
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
447
- }else
448
- {
449
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
450
- }
451
- },
452
- initParams () {
453
- let arr = []
454
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
455
- let temp = {}
456
- if(item.value.f_meter_type==='物联网表'){
457
- temp.label = item.label
458
- temp.value = item.value.f_meter_brand
459
- arr.push(temp )
460
- }
461
-
462
- })
463
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
464
- },
465
- hidden(){
466
- this.criteriaShow = !this.criteriaShow
467
- },
468
- clickshow() {
469
- this.searchshow = !this.searchshow
470
- },
471
- getErrorInfo(items){
472
- let self = this
473
- self.$refs.paged.$refs.cri.model.f_error_type=''
474
- console.log("self.model.f_error_type=''",self.model.f_error_type)
475
- let f_error_level=''
476
- if (items!='f_error_level') {
477
- if(this.$refs.paged.$refs.cri.model.f_error_level){
478
- f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
479
- }
480
- }
481
- let load = new HttpResetClass()
482
- load.load('POST', 'rs/sql/singleTableParam', {
483
- data: {
484
- items:items+' f_type',
485
- tablename:'t_exception',
486
- condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
487
- }
488
- },{warnMsg:null,resolveMsg:null}).then((res) => {
489
- let rows=res.data
490
- let array1=[]
491
- array1.push({label: '全部', value: ''})
492
- for (let i = 0; i < rows.length; i++) {
493
- array1.push({label: rows[i].f_type,value: rows[i].f_type})
494
- }
495
- console.log("array1========",array1)
496
- if (items=='f_error_level'){
497
- self.GetErrorLevel=array1
498
- }else {
499
- self.GetErrorType=array1
500
- }
501
- })
502
-
503
- },
504
- search(args) {
505
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
506
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
507
- this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
508
- console.log('1231321312312321')
509
- /* if (this.endDate == '' || this.startDate == '') {
510
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
511
- }*/
512
- this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
513
-
514
- args.condition = this.condition
515
- this.model.search(args.condition, args.model)
516
- },
517
- SaveAsFile(str) {
518
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
519
- if (res === 'confirm') {
520
- let style = '<style>' +
521
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
522
- let strHtml = style + document.getElementById(str).innerHTML;
523
- console.log(strHtml);
524
- let LODOP = getLodop();
525
- LODOP.PRINT_INIT('');
526
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
527
- LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
528
- }
529
- })
530
- },
531
- clearmsg() {
532
- this.$refs.paged.$refs.cri.model = {}
533
- },
534
- close() {
535
- this.show = false
536
- },
537
- // 显示柱状图
538
- showEcharts() {
539
- this.echarts = true
540
- this.isActiveTotalForm = false
541
- },
542
- notShowTotalForm() {
543
- this.echarts = false
544
- this.isActiveTotalForm = false
545
- },
546
- // 不显示柱状图
547
- notShowEcharts() {
548
- this.echarts = false
549
- this.isActiveTotalForm = false
550
- },
551
- // 显示汇总数据表格
552
- showTotalForm() {
553
- this.echarts = false
554
- this.isActiveTotalForm = true
555
- }
556
- },
557
- watch: {
558
- 'data'(val) {
559
- if (val.f_files_path) {
560
- this.getFileContent(val.f_files_path)
561
- } else {
562
- this.reportStr = null
563
- }
564
- }
565
- },
566
- computed: {
567
- // usertypes () {
568
- // return this.$appdate.getParams("客户类型")
569
- // },
570
- getCondition() {
571
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
572
- return {
573
- condition: condition ,
574
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
575
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
576
- }
577
-
578
- },
579
- usertypes() {
580
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
581
- },
582
- userstate() {
583
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
584
- }
585
- }
586
- }
587
- </script>
588
- <style>
589
- .form-input-group label {
590
- text-align: right;
591
- width: auto;
592
- }
593
-
594
- .mystyle {
595
- float: right;
596
- padding-right: 10%;
597
- }
598
-
599
- .datapanel {
600
- color: #333;
601
- background-color: white;
602
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
603
- padding: 10px 30px 10px 30px;
604
- border-radius: 15px;
605
- }
606
- </style>
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 like '%{}%'"
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
+
178
+
179
+
180
+ </div>
181
+ </div>
182
+ </criteria>
183
+ <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
184
+ <template partial='head'>
185
+ <tr>
186
+ <th style="text-align:center">
187
+ <nobr>序号</nobr>
188
+ </th>
189
+ <th style="text-align:center">
190
+ <nobr>客户编号</nobr>
191
+ </th>
192
+ <th style="text-align:center">
193
+ <nobr>客户名称</nobr>
194
+ </th>
195
+ <th style="text-align:center">
196
+ <nobr>客户地址</nobr>
197
+ </th>
198
+ <th style="text-align:center">
199
+ <nobr>客户类型</nobr>
200
+ </th>
201
+ <th style="text-align:center">
202
+ <nobr>用气性质</nobr>
203
+ </th>
204
+ <th style="text-align:center">
205
+ <nobr>表号</nobr>
206
+ </th>
207
+ <th style="text-align:center">
208
+ <nobr>气表品牌</nobr>
209
+ </th>
210
+ <th style="text-align:center">
211
+ <nobr>异常时间</nobr>
212
+ </th>
213
+ <th style="text-align:center">
214
+ <nobr>异常类型</nobr>
215
+ </th>
216
+ <th style="text-align:center">
217
+ <nobr>异常级别</nobr>
218
+ </th>
219
+ <th style="text-align:center">
220
+ <nobr>异常描述</nobr>
221
+ </th>
222
+ <th style="text-align:center" >
223
+ <nobr>气表型号</nobr>
224
+ </th>
225
+ <th style="text-align:center" >
226
+ <nobr>用户状态</nobr>
227
+ </th>
228
+ <th style="text-align:center">
229
+ <nobr>组织机构</nobr>
230
+ </th>
231
+
232
+ </tr>
233
+
234
+ </template>
235
+ <template partial='body'>
236
+ <td style="text-align:center">
237
+ <nobr>{{$index+1}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;"><nobr>
240
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
241
+ </nobr> </td>
242
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
243
+ <td>
244
+ <nobr>{{row.f_address}}</nobr>
245
+ </td>
246
+ <td style="text-align:center">{{row.f_user_type}}</td>
247
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
248
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
249
+ <td style="text-align:center">
250
+ <nobr>{{row.f_meter_brand}}</nobr>
251
+ </td>
252
+ <td style="text-align:center">
253
+ <nobr>{{row.f_insert_date}}</nobr>
254
+ </td>
255
+ <td style="text-align:center">
256
+ <nobr>{{row.f_error_type}}</nobr>
257
+ </td>
258
+ <td style="text-align:center">
259
+ <nobr>{{row.f_error_level}}</nobr>
260
+ </td>
261
+ <td style="text-align:center">
262
+ <nobr>{{row.f_error_msg}}</nobr>
263
+ </td>
264
+ <td style="text-align:center">
265
+ <nobr>{{row.f_meter_style}}</nobr>
266
+ </td>
267
+ <td style="text-align:center">
268
+ <nobr>{{row.f_user_state}}</nobr>
269
+ </td>
270
+ <td style="text-align:center">
271
+ <nobr>{{row.f_orgname}}</nobr>
272
+ </td>
273
+ </template>
274
+ </data-grid>
275
+ </criteria-paged>
276
+ </div>
277
+ <!--<div style="height: 40px;width: 100%;" v-show="echarts">
278
+ <div style="display: inline-block;width: 20%;">
279
+ <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
280
+ <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
281
+ </div>
282
+ &lt;!&ndash;图显示模板&ndash;&gt;
283
+ <div class="mystyle" style="display: inline-block;" >
284
+ <label class="font_normal_body">图表统计项</label>
285
+ <v-select style="width:60%" id="groupname" v-model="groupname"
286
+ placeholder='分组项'
287
+ value-single="true"
288
+ :value.sync="groupname"
289
+ :options='getgroupname'
290
+ close-on-select></v-select>
291
+ </div>
292
+ </div>
293
+ <div v-show="echarts" style="width: 100%;height: 90%;">
294
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
295
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
296
+ </div>
297
+ <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
298
+ <new-exception-eform-total :condition="condition" :startdate="startDate"
299
+ :enddate="endDate"></new-exception-eform-total>
300
+ </div>-->
301
+ <div v-show="echarts" style="width: 100%;height: 90%;">
302
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
303
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
304
+ </div>
305
+ </div>
306
+ <div class="flex" v-if="showdetail">
307
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
308
+ </div>
309
+ </template>
310
+
311
+ <script>
312
+ import {HttpResetClass, PagedList} from 'vue-client'
313
+ import * as Util from '../../../../Util'
314
+ import getLodop from '../../../../plugins/LodopFuncs'
315
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
316
+
317
+ let readySomething = async function (self) {
318
+ await self.$MagLoadParams.loadParam()
319
+ self.initParams()
320
+ self.getMeterTypeAndBrand('f_meter_brand', '1=1')
321
+ }
322
+ export default {
323
+ title: '异常分析',
324
+ props: ['data'],
325
+ data() {
326
+ return {
327
+ model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
328
+ reportStr: null,
329
+ show: false,
330
+ startDate: '',
331
+ endDate: '',
332
+ WarningType: [
333
+ {label: '全部', value: ''}
334
+ ],
335
+ Warningstyles: [
336
+ {label: '全部', value: ''}
337
+ ],
338
+ styles:false,
339
+ f_error_type:'',
340
+ groupname: ['year'],
341
+ getgroupname: [
342
+ {label: '年份', value: 'year'},
343
+ {label: '月份', value: 'month'},
344
+ {label: '周', value: 'week'},
345
+ {label: '日', value: 'day'}
346
+ ],
347
+ getfield:{
348
+ "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
349
+ "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
350
+ "f_error_msg":"异常描述","f_orgname":"组织机构"
351
+ },
352
+ outlets: [],
353
+ operator: [],
354
+ gasproperties:[{label: '全部', value: ''}],
355
+ showdetail:false,
356
+ rowdata:{},
357
+ filename: '',
358
+ criteriaShow: false,
359
+ echarts: false,
360
+ searchshow: false,
361
+ isActiveTotalForm: false,
362
+ GetErrorLevel:[],
363
+ GetErrorType:[],
364
+ initres: {
365
+ org:[this.$login.f.orgid],
366
+ dep:[],
367
+ user:[]
368
+ },
369
+ condition: '1=1',
370
+ org:[this.$login.f.orgid],
371
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
372
+ }
373
+ },
374
+ ready() {
375
+ readySomething(this)
376
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
377
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
378
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
379
+ this.getErrorInfo('f_error_level')
380
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
381
+ this.$refs.paged.$refs.cri.search()
382
+
383
+ },
384
+ methods: {
385
+ getMeterType() {
386
+ this.Warningstyle = [{label: '全部', value: ''}]
387
+ this.styles = false
388
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
389
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
390
+ },
391
+ getMeterTypeAndBrand(groupname, condition) {
392
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
393
+ let self = this
394
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
395
+ let load = new HttpResetClass()
396
+ load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
397
+ data: {
398
+ condition: condition,
399
+ groupname: groupname
400
+ }
401
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
402
+ for (let i = 0; i < res.data.length; i++) {
403
+ if (groupname == 'f_meter_brand') {
404
+ self.WarningType.push({label: res.data[i].f_meter_brand, value:res.data[i].f_meter_brand})
405
+ console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
406
+ console.log( self.WarningType)
407
+ } else if (groupname == 'f_meter_style') {
408
+ //气表类型
409
+ self.Warningstyle.push({label: res.data[i].f_meter_style, value:res.data[i].f_meter_style})
410
+ }
411
+ }
412
+ if (self.Warningstyle.length > 1) {
413
+ self.showMeterStyle()
414
+ }
415
+ })
416
+
417
+ },
418
+ showMeterStyle() {
419
+ this.styles = true
420
+ },
421
+ userTypeChange () {
422
+ this.gasproperties=[{label: '全部', value: ''}]
423
+ if(this.$refs.paged.$refs.cri.model !==null) {
424
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
425
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
426
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type)
427
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
428
+ }
429
+ // this.gasproperties.push({label: '全部', value: ''})
430
+ }
431
+ },
432
+ showmsg(obj){
433
+ this.rowdata=obj
434
+ this.showdetail=true
435
+ },
436
+ cancel() {
437
+ this.showdetail = false
438
+ },
439
+ getRes(condition,obj) {
440
+ this.orgCondtionStr = condition
441
+ this.orgname = obj.orgnames[0]
442
+ this.depname = obj.depnames[0]
443
+ },
444
+ getorg(obj) {
445
+ if (obj.resids.length>0) {
446
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
447
+ }else
448
+ {
449
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
450
+ }
451
+ },
452
+ initParams () {
453
+ let arr = []
454
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
455
+ let temp = {}
456
+ if(item.value.f_meter_type==='物联网表'){
457
+ temp.label = item.label
458
+ temp.value = item.value.f_meter_brand
459
+ arr.push(temp )
460
+ }
461
+
462
+ })
463
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
464
+ },
465
+ hidden(){
466
+ this.criteriaShow = !this.criteriaShow
467
+ },
468
+ clickshow() {
469
+ this.searchshow = !this.searchshow
470
+ },
471
+ getErrorInfo(items){
472
+ let self = this
473
+ self.$refs.paged.$refs.cri.model.f_error_type=''
474
+ console.log("self.model.f_error_type=''",self.model.f_error_type)
475
+ let f_error_level=''
476
+ if (items!='f_error_level') {
477
+ if(this.$refs.paged.$refs.cri.model.f_error_level){
478
+ f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
479
+ }
480
+ }
481
+ let load = new HttpResetClass()
482
+ load.load('POST', 'rs/sql/singleTableParam', {
483
+ data: {
484
+ items:items+' f_type',
485
+ tablename:'t_exception',
486
+ condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
487
+ }
488
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
489
+ let rows=res.data
490
+ let array1=[]
491
+ array1.push({label: '全部', value: ''})
492
+ for (let i = 0; i < rows.length; i++) {
493
+ array1.push({label: rows[i].f_type,value: rows[i].f_type})
494
+ }
495
+ console.log("array1========",array1)
496
+ if (items=='f_error_level'){
497
+ self.GetErrorLevel=array1
498
+ }else {
499
+ self.GetErrorType=array1
500
+ }
501
+ })
502
+
503
+ },
504
+ search(args) {
505
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
506
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
507
+ this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
508
+ console.log('1231321312312321')
509
+ /* if (this.endDate == '' || this.startDate == '') {
510
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
511
+ }*/
512
+ this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
513
+
514
+ args.condition = this.condition
515
+ this.model.search(args.condition, args.model)
516
+ },
517
+ SaveAsFile(str) {
518
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
519
+ if (res === 'confirm') {
520
+ let style = '<style>' +
521
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
522
+ let strHtml = style + document.getElementById(str).innerHTML;
523
+ console.log(strHtml);
524
+ let LODOP = getLodop();
525
+ LODOP.PRINT_INIT('');
526
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
527
+ LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
528
+ }
529
+ })
530
+ },
531
+ clearmsg() {
532
+ this.$refs.paged.$refs.cri.model = {}
533
+ },
534
+ close() {
535
+ this.show = false
536
+ },
537
+ // 显示柱状图
538
+ showEcharts() {
539
+ this.echarts = true
540
+ this.isActiveTotalForm = false
541
+ },
542
+ notShowTotalForm() {
543
+ this.echarts = false
544
+ this.isActiveTotalForm = false
545
+ },
546
+ // 不显示柱状图
547
+ notShowEcharts() {
548
+ this.echarts = false
549
+ this.isActiveTotalForm = false
550
+ },
551
+ // 显示汇总数据表格
552
+ showTotalForm() {
553
+ this.echarts = false
554
+ this.isActiveTotalForm = true
555
+ }
556
+ },
557
+ watch: {
558
+ 'data'(val) {
559
+ if (val.f_files_path) {
560
+ this.getFileContent(val.f_files_path)
561
+ } else {
562
+ this.reportStr = null
563
+ }
564
+ }
565
+ },
566
+ computed: {
567
+ // usertypes () {
568
+ // return this.$appdate.getParams("客户类型")
569
+ // },
570
+ getCondition() {
571
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
572
+ return {
573
+ condition: condition ,
574
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
575
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
576
+ }
577
+
578
+ },
579
+ usertypes() {
580
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
581
+ },
582
+ userstate() {
583
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
584
+ }
585
+ }
586
+ }
587
+ </script>
588
+ <style>
589
+ .form-input-group label {
590
+ text-align: right;
591
+ width: auto;
592
+ }
593
+
594
+ .mystyle {
595
+ float: right;
596
+ padding-right: 10%;
597
+ }
598
+
599
+ .datapanel {
600
+ color: #333;
601
+ background-color: white;
602
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
603
+ padding: 10px 30px 10px 30px;
604
+ border-radius: 15px;
605
+ }
606
+ </style>