manage-client 3.1.35 → 3.1.39

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 (94) hide show
  1. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  2. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  3. package/ManageClient.iml +13 -13
  4. package/build/dev-server.js +29 -22
  5. package/package.json +1 -1
  6. package/src/App.vue +29 -28
  7. package/src/components/BasisEcharts/BarChart.vue +247 -247
  8. package/src/components/BasisEcharts/RingChart.vue +196 -196
  9. package/src/components/SellReport/BusinessClassify.vue +293 -251
  10. package/src/components/SellReport/ChargePrick.vue +284 -279
  11. package/src/components/SellReport/DepartmentPrick.vue +288 -261
  12. package/src/components/SellReport/FinanceSellType.vue +254 -254
  13. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  14. package/src/components/SellReport/GasPrice.vue +244 -244
  15. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  16. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  17. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  18. package/src/components/SellReport/ManageSellType.vue +284 -284
  19. package/src/components/SellReport/ManageUserCount.vue +347 -347
  20. package/src/components/SellReport/MarketMonth.vue +251 -251
  21. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  22. package/src/components/SellReport/SellCollect.vue +183 -0
  23. package/src/components/SellReport/SellingTable.vue +220 -220
  24. package/src/components/SellReport/UserClassify.vue +251 -251
  25. package/src/components/SellReport/UserSellingGas.vue +251 -251
  26. package/src/components/daping/CallCenter.vue +366 -366
  27. package/src/components/daping/DataManagement.vue +537 -537
  28. package/src/components/daping/GMap.vue +636 -636
  29. package/src/components/daping/ManageMain.vue +270 -270
  30. package/src/components/daping/NetWork.vue +238 -238
  31. package/src/components/daping/RedactDaPing.vue +468 -468
  32. package/src/components/daping/Ring.vue +212 -212
  33. package/src/components/daping/SafeCheck.vue +446 -446
  34. package/src/components/daping/SafeCheckRing.vue +166 -166
  35. package/src/components/daping/SafecheckBarChart.vue +233 -233
  36. package/src/components/daping/WuHaiMap.vue +418 -418
  37. package/src/components/qinhua/BarChart.vue +256 -256
  38. package/src/components/qinhua/Pie.vue +132 -132
  39. package/src/components/qinhua/SellEcharts.vue +115 -115
  40. package/src/components/qinhua/qinHuaMap.vue +414 -414
  41. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  42. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  43. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  44. package/src/components/sale/businessquery/NewHandplanQuery.vue +995 -0
  45. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  46. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  47. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  48. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -596
  52. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  53. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  54. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  55. package/src/components/webmeter/instruction/NewQueryInstruct.vue +445 -445
  56. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  57. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  58. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +903 -899
  59. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  60. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  61. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -606
  63. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -252
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -440
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  66. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  67. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  69. package/src/filiale/alashan/SellingTable.vue +234 -234
  70. package/src/filiale/alashan/reportManage.js +10 -10
  71. package/src/filiale/jingwei/ChargeQuery.vue +1235 -0
  72. package/src/filiale/jingwei/sale.js +2 -0
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  76. package/src/filiale/meihekou/sale.js +26 -26
  77. package/src/filiale/rongcheng/exportConfig.js +257 -257
  78. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  79. package/src/filiale/rongchuang/reportManage.js +11 -11
  80. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  81. package/src/filiale/tongchuan/FillGasQuery.vue +508 -0
  82. package/src/filiale/tongchuan/ManageBusSummary.vue +301 -0
  83. package/src/filiale/tongchuan/reportManage.js +5 -0
  84. package/src/filiale/tongchuan/sale.js +2 -1
  85. package/src/main.js +66 -66
  86. package/src/newmanage.js +525 -525
  87. package/src/reportManage.js +462 -462
  88. package/static/wuhai.json +1610 -1610
  89. package/.gradle/5.5/fileChanges/last-build.bin +0 -0
  90. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  91. package/.gradle/5.5/gc.properties +0 -0
  92. package/.npmignore +0 -10
  93. package/build/.npmignore +0 -1
  94. package/package-lock.json +0 -11184
@@ -1,606 +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-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: ['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(),-6).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>