manage-client 3.2.32 → 3.2.33

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 (69) hide show
  1. package/build/dev-server.js +6 -4
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/ChargePrick.vue +205 -205
  7. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OutletTable.vue +258 -258
  12. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  13. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  14. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  15. package/src/components/SellReport/SellingTable.vue +220 -220
  16. package/src/components/SellReport/UserSellingGas.vue +228 -228
  17. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  20. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  21. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  22. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  23. package/src/components/sale/businessquery/InspectListUser.vue +43 -64
  24. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  25. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  26. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  27. package/src/components/sale/businessquery/usergas.vue +311 -311
  28. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  29. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  30. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  31. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  32. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  33. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  34. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  35. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  36. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  37. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  38. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  39. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  40. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  41. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  42. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  43. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  44. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  45. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  46. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  47. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  48. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  49. package/src/filiale/WEINAN/reportManage.js +12 -12
  50. package/src/filiale/WEINAN/sale.js +36 -36
  51. package/src/filiale/alashan/reportManage.js +10 -10
  52. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  53. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  54. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  55. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  56. package/src/filiale/meihekou/DeviceQuery.vue +545 -545
  57. package/src/filiale/meihekou/RecordInfoQuery.vue +1168 -1168
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  60. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  61. package/src/filiale/meihekou/sale.js +31 -31
  62. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  63. package/src/filiale/rongchuang/reportManage.js +11 -11
  64. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  65. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  66. package/src/filiale/tongchuan/reportManage.js +5 -5
  67. package/src/main.js +4 -4
  68. package/src/saleManage.js +529 -529
  69. package/static/wuhai.json +1610 -1610
@@ -1,607 +1,607 @@
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-if="echarts" style="width: 100%;height: 98%;">
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: ['day'],
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.addDate(new Date(),-2).substring(0,10) + ' 00:00:00'
377
- // this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
378
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
379
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
380
- this.getErrorInfo('f_error_level')
381
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
382
- this.$refs.paged.$refs.cri.search()
383
-
384
- },
385
- methods: {
386
- getMeterType() {
387
- this.Warningstyle = [{label: '全部', value: ''}]
388
- this.styles = false
389
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
390
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
391
- },
392
- getMeterTypeAndBrand(groupname, condition) {
393
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
394
- let self = this
395
- self.$refs.paged.$refs.cri.model.f_meter_style=''
396
- let load = new HttpResetClass()
397
- load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
398
- data: {
399
- condition: condition,
400
- groupname: groupname
401
- }
402
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
403
- for (let i = 0; i < res.data.length; i++) {
404
- if (groupname == 'f_meter_brand') {
405
- self.WarningType.push({label: res.data[i].f_meter_brand, value:res.data[i].f_meter_brand})
406
- console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
407
- console.log( self.WarningType)
408
- } else if (groupname == 'f_meter_style') {
409
- //气表类型
410
- self.Warningstyle.push({label: res.data[i].f_meter_style, value:res.data[i].f_meter_style})
411
- }
412
- }
413
- if (self.Warningstyle.length > 1) {
414
- self.showMeterStyle()
415
- }
416
- })
417
-
418
- },
419
- showMeterStyle() {
420
- this.styles = true
421
- },
422
- userTypeChange () {
423
- this.gasproperties=[{label: '全部', value: ''}]
424
- if(this.$refs.paged.$refs.cri.model !==null) {
425
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
426
- if(this.$refs.paged.$refs.cri.model.f_user_type){
427
- console.log(this.$refs.paged.$refs.cri.model.f_user_type)
428
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
429
- }
430
- // this.gasproperties.push({label: '全部', value: ''})
431
- }
432
- },
433
- showmsg(obj){
434
- this.rowdata=obj
435
- this.showdetail=true
436
- },
437
- cancel() {
438
- this.showdetail = false
439
- },
440
- getRes(condition,obj) {
441
- this.orgCondtionStr = condition
442
- this.orgname = obj.orgnames[0]
443
- this.depname = obj.depnames[0]
444
- },
445
- getorg(obj) {
446
- if (obj.resids.length>0) {
447
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
448
- }else
449
- {
450
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
451
- }
452
- },
453
- initParams () {
454
- let arr = []
455
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
456
- let temp = {}
457
- if(item.value.f_meter_type==='物联网表'){
458
- temp.label = item.label
459
- temp.value = item.value.f_meter_brand
460
- arr.push(temp )
461
- }
462
-
463
- })
464
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
465
- },
466
- hidden(){
467
- this.criteriaShow = !this.criteriaShow
468
- },
469
- clickshow() {
470
- this.searchshow = !this.searchshow
471
- },
472
- getErrorInfo(items){
473
- let self = this
474
- self.$refs.paged.$refs.cri.model.f_error_type=''
475
- console.log("self.model.f_error_type=''",self.model.f_error_type)
476
- let f_error_level=''
477
- if (items!='f_error_level') {
478
- if(this.$refs.paged.$refs.cri.model.f_error_level){
479
- f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
480
- }
481
- }
482
- let load = new HttpResetClass()
483
- load.load('POST', 'rs/sql/singleTableParam', {
484
- data: {
485
- items:items+' f_type',
486
- tablename:'t_exception',
487
- condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
488
- }
489
- },{warnMsg:null,resolveMsg:null}).then((res) => {
490
- let rows=res.data
491
- let array1=[]
492
- array1.push({label: '全部', value: ''})
493
- for (let i = 0; i < rows.length; i++) {
494
- array1.push({label: rows[i].f_type,value: rows[i].f_type})
495
- }
496
- console.log("array1========",array1)
497
- if (items=='f_error_level'){
498
- self.GetErrorLevel=array1
499
- }else {
500
- self.GetErrorType=array1
501
- }
502
- })
503
-
504
- },
505
- search(args) {
506
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
507
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
508
- this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
509
- console.log('1231321312312321')
510
- /* if (this.endDate == '' || this.startDate == '') {
511
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
512
- }*/
513
- this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
514
-
515
- args.condition = this.condition
516
- this.model.search(args.condition, args.model)
517
- },
518
- SaveAsFile(str) {
519
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
520
- if (res === 'confirm') {
521
- let style = '<style>' +
522
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
523
- let strHtml = style + document.getElementById(str).innerHTML;
524
- console.log(strHtml);
525
- let LODOP = getLodop();
526
- LODOP.PRINT_INIT('');
527
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
528
- LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
529
- }
530
- })
531
- },
532
- clearmsg() {
533
- this.$refs.paged.$refs.cri.model = {}
534
- },
535
- close() {
536
- this.show = false
537
- },
538
- // 显示柱状图
539
- showEcharts() {
540
- this.echarts = true
541
- this.isActiveTotalForm = false
542
- },
543
- notShowTotalForm() {
544
- this.echarts = false
545
- this.isActiveTotalForm = false
546
- },
547
- // 不显示柱状图
548
- notShowEcharts() {
549
- this.echarts = false
550
- this.isActiveTotalForm = false
551
- },
552
- // 显示汇总数据表格
553
- showTotalForm() {
554
- this.echarts = false
555
- this.isActiveTotalForm = true
556
- }
557
- },
558
- watch: {
559
- 'data'(val) {
560
- if (val.f_files_path) {
561
- this.getFileContent(val.f_files_path)
562
- } else {
563
- this.reportStr = null
564
- }
565
- }
566
- },
567
- computed: {
568
- // usertypes () {
569
- // return this.$appdate.getParams("客户类型")
570
- // },
571
- getCondition() {
572
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
573
- return {
574
- condition: condition ,
575
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
576
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
577
- }
578
-
579
- },
580
- usertypes() {
581
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
582
- },
583
- userstate() {
584
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
585
- }
586
- }
587
- }
588
- </script>
589
- <style>
590
- .form-input-group label {
591
- text-align: right;
592
- width: auto;
593
- }
594
-
595
- .mystyle {
596
- float: right;
597
- padding-right: 10%;
598
- }
599
-
600
- .datapanel {
601
- color: #333;
602
- background-color: white;
603
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
604
- padding: 10px 30px 10px 30px;
605
- border-radius: 15px;
606
- }
607
- </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-if="echarts" style="width: 100%;height: 98%;">
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: ['day'],
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.addDate(new Date(),-2).substring(0,10) + ' 00:00:00'
377
+ // this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
378
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
379
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
380
+ this.getErrorInfo('f_error_level')
381
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
382
+ this.$refs.paged.$refs.cri.search()
383
+
384
+ },
385
+ methods: {
386
+ getMeterType() {
387
+ this.Warningstyle = [{label: '全部', value: ''}]
388
+ this.styles = false
389
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
390
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
391
+ },
392
+ getMeterTypeAndBrand(groupname, condition) {
393
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
394
+ let self = this
395
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
396
+ let load = new HttpResetClass()
397
+ load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
398
+ data: {
399
+ condition: condition,
400
+ groupname: groupname
401
+ }
402
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
403
+ for (let i = 0; i < res.data.length; i++) {
404
+ if (groupname == 'f_meter_brand') {
405
+ self.WarningType.push({label: res.data[i].f_meter_brand, value:res.data[i].f_meter_brand})
406
+ console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
407
+ console.log( self.WarningType)
408
+ } else if (groupname == 'f_meter_style') {
409
+ //气表类型
410
+ self.Warningstyle.push({label: res.data[i].f_meter_style, value:res.data[i].f_meter_style})
411
+ }
412
+ }
413
+ if (self.Warningstyle.length > 1) {
414
+ self.showMeterStyle()
415
+ }
416
+ })
417
+
418
+ },
419
+ showMeterStyle() {
420
+ this.styles = true
421
+ },
422
+ userTypeChange () {
423
+ this.gasproperties=[{label: '全部', value: ''}]
424
+ if(this.$refs.paged.$refs.cri.model !==null) {
425
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
426
+ if(this.$refs.paged.$refs.cri.model.f_user_type){
427
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type)
428
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
429
+ }
430
+ // this.gasproperties.push({label: '全部', value: ''})
431
+ }
432
+ },
433
+ showmsg(obj){
434
+ this.rowdata=obj
435
+ this.showdetail=true
436
+ },
437
+ cancel() {
438
+ this.showdetail = false
439
+ },
440
+ getRes(condition,obj) {
441
+ this.orgCondtionStr = condition
442
+ this.orgname = obj.orgnames[0]
443
+ this.depname = obj.depnames[0]
444
+ },
445
+ getorg(obj) {
446
+ if (obj.resids.length>0) {
447
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
448
+ }else
449
+ {
450
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
451
+ }
452
+ },
453
+ initParams () {
454
+ let arr = []
455
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
456
+ let temp = {}
457
+ if(item.value.f_meter_type==='物联网表'){
458
+ temp.label = item.label
459
+ temp.value = item.value.f_meter_brand
460
+ arr.push(temp )
461
+ }
462
+
463
+ })
464
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
465
+ },
466
+ hidden(){
467
+ this.criteriaShow = !this.criteriaShow
468
+ },
469
+ clickshow() {
470
+ this.searchshow = !this.searchshow
471
+ },
472
+ getErrorInfo(items){
473
+ let self = this
474
+ self.$refs.paged.$refs.cri.model.f_error_type=''
475
+ console.log("self.model.f_error_type=''",self.model.f_error_type)
476
+ let f_error_level=''
477
+ if (items!='f_error_level') {
478
+ if(this.$refs.paged.$refs.cri.model.f_error_level){
479
+ f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
480
+ }
481
+ }
482
+ let load = new HttpResetClass()
483
+ load.load('POST', 'rs/sql/singleTableParam', {
484
+ data: {
485
+ items:items+' f_type',
486
+ tablename:'t_exception',
487
+ condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
488
+ }
489
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
490
+ let rows=res.data
491
+ let array1=[]
492
+ array1.push({label: '全部', value: ''})
493
+ for (let i = 0; i < rows.length; i++) {
494
+ array1.push({label: rows[i].f_type,value: rows[i].f_type})
495
+ }
496
+ console.log("array1========",array1)
497
+ if (items=='f_error_level'){
498
+ self.GetErrorLevel=array1
499
+ }else {
500
+ self.GetErrorType=array1
501
+ }
502
+ })
503
+
504
+ },
505
+ search(args) {
506
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
507
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
508
+ this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
509
+ console.log('1231321312312321')
510
+ /* if (this.endDate == '' || this.startDate == '') {
511
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
512
+ }*/
513
+ this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
514
+
515
+ args.condition = this.condition
516
+ this.model.search(args.condition, args.model)
517
+ },
518
+ SaveAsFile(str) {
519
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
520
+ if (res === 'confirm') {
521
+ let style = '<style>' +
522
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
523
+ let strHtml = style + document.getElementById(str).innerHTML;
524
+ console.log(strHtml);
525
+ let LODOP = getLodop();
526
+ LODOP.PRINT_INIT('');
527
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
528
+ LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
529
+ }
530
+ })
531
+ },
532
+ clearmsg() {
533
+ this.$refs.paged.$refs.cri.model = {}
534
+ },
535
+ close() {
536
+ this.show = false
537
+ },
538
+ // 显示柱状图
539
+ showEcharts() {
540
+ this.echarts = true
541
+ this.isActiveTotalForm = false
542
+ },
543
+ notShowTotalForm() {
544
+ this.echarts = false
545
+ this.isActiveTotalForm = false
546
+ },
547
+ // 不显示柱状图
548
+ notShowEcharts() {
549
+ this.echarts = false
550
+ this.isActiveTotalForm = false
551
+ },
552
+ // 显示汇总数据表格
553
+ showTotalForm() {
554
+ this.echarts = false
555
+ this.isActiveTotalForm = true
556
+ }
557
+ },
558
+ watch: {
559
+ 'data'(val) {
560
+ if (val.f_files_path) {
561
+ this.getFileContent(val.f_files_path)
562
+ } else {
563
+ this.reportStr = null
564
+ }
565
+ }
566
+ },
567
+ computed: {
568
+ // usertypes () {
569
+ // return this.$appdate.getParams("客户类型")
570
+ // },
571
+ getCondition() {
572
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
573
+ return {
574
+ condition: condition ,
575
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
576
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
577
+ }
578
+
579
+ },
580
+ usertypes() {
581
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
582
+ },
583
+ userstate() {
584
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
585
+ }
586
+ }
587
+ }
588
+ </script>
589
+ <style>
590
+ .form-input-group label {
591
+ text-align: right;
592
+ width: auto;
593
+ }
594
+
595
+ .mystyle {
596
+ float: right;
597
+ padding-right: 10%;
598
+ }
599
+
600
+ .datapanel {
601
+ color: #333;
602
+ background-color: white;
603
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
604
+ padding: 10px 30px 10px 30px;
605
+ border-radius: 15px;
606
+ }
607
+ </style>