manage-client 3.2.52-aode → 3.2.53-aode

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,449 +1,449 @@
1
- <template>
2
- <div id='app1' class="flex bg-white p-10 datapanel" v-show="(!echarts)&&(!isActiveTotalForm)">
3
- <criteria-paged :model="model" :pager='true' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" width="100%">
7
- <div class="col-sm-2 form-group">
8
- <label class="control-label">表&emsp;钢&emsp;号</label>
9
- <input type="text" class="form-control" v-model="model.f_meternumber" placeholder='表钢号'
10
- condition="f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
11
- >
12
- </div>
13
- <div v-if="$parent.$parent.searchshow">
14
- <div class="col-sm-2 form-group">
15
- <label class="control-label">组织机构</label>
16
- <right-tree :userid.sync='$parent.$parent.obj.userid' :source.sync='$parent.$parent.obj.source'
17
- @re-res="$parent.$parent.getRes"></right-tree>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label class="control-label">客户名称</label>
21
- <input type="text" class="form-control" v-model="model.f_user_name" placeholder='客户名称'
22
- condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
23
- >
24
- </div>
25
- <div class="col-sm-2 form-group">
26
- <label class="control-label">客户编号</label>
27
- <input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
28
- condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='f_userinfo_code' v-el:username
29
- >
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label class="control-label">客户地址</label>
33
- <input type="text" class="form-control" v-model="model.f_area" placeholder='地址'
34
- condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
35
- >
36
- </div>
37
- <div class="col-sm-2 form-group">
38
- <label class="control-label">用户类型</label>
39
- <v-select id="f_user_type"
40
- v-model="model.f_user_type"
41
- placeholder='用户类型'
42
- :value.sync="model.f_user_type"
43
- :options='$parent.$parent.usertypes'
44
- condition="u.f_user_type = '{}'"
45
- close-on-select>
46
- </v-select>
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label class="control-label">用气性质</label>
50
- <v-select id="f_gasproperties"
51
- v-model="model.f_gasproperties"
52
- placeholder='用气性质'
53
- :value.sync="model.f_gasproperties"
54
- :options='$parent.$parent.Gasproperties'
55
- condition="u.f_gasproperties = '{}'"
56
- close-on-select>
57
- </v-select>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="control-label">用气属性</label>
61
- <v-select
62
- placeholder='用气属性'
63
- :value.sync="model.f_gasproperties2"
64
- v-model="model.f_gasproperties2"
65
- :options='$parent.$parent.Gasproperties2'
66
- close-on-select condition="f_gasproperties2='{}'">
67
- </v-select>
68
- </div>
69
-
70
- <div class="col-sm-2 form-group">
71
- <label class="control-label">异常类型</label>
72
- <v-select id="f_error_type"
73
- v-model="model.f_error_type"
74
- placeholder='异常类型'
75
- :value.sync="model.f_error_type"
76
- :options='$parent.$parent.Geterrtype'
77
- condition="f_error_type = '{}'"
78
- close-on-select>
79
- </v-select>
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label class="control-label">上报区间</label>
83
- <datepicker id="startdate" placeholder="开始时间"
84
- v-model="model.startDate"
85
- :value.sync="model.startDate"
86
- :disabled-days-of-Week="[]"
87
- :format="'yyyy-MM-dd HH:mm:ss'"
88
- :show-reset-button="reset">
89
- </datepicker>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label class="control-label" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
93
- <datepicker id="enddate" placeholder="结束日期"
94
- v-model="model.endDate"
95
- :value.sync="model.endDate"
96
- :disabled-days-of-Week="[]"
97
- :format="'yyyy-MM-dd HH:mm:ss'"
98
- :show-reset-button="reset">
99
- </datepicker>
100
- </div>
101
- </div>
102
- <div class="col-sm-2 form-group form-group ">
103
- <label class="control-label"></label>
104
- <button class="btn btn-success width-50" @click="search()">查询</button>
105
- <label class="control-label"></label>
106
- <button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
107
- <label class="control-label"></label>
108
- <button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>
109
- </div>
110
- <div class="col-sm-2 form-group form-group ">
111
- <label class="control-label"></label>
112
- <button class="btn btn-success width-50" @click="$parent.$parent.showTotalForm()">显示汇总</button>
113
- <label class="control-label"></label>
114
- <button class="btn btn-success width-50" @click="$parent.$parent.showEcharts()">显示图表</button>
115
- </div>
116
- <div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
117
- style="position: relative;float: right;margin-right: 1%;">
118
- <img src="../../../../../static/webMeter/shousuo.png"><span>展开</span>
119
- </div>
120
- <div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
121
- style="position: relative;float: right;margin-right: 1%;">
122
- <img src="../../../../../static/webMeter/shangsheng.png"><span>收缩</span>
123
- </div>
124
-
125
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
126
- <!--:thead='"<th>序号</th>\n"+-->
127
- <!--"<th>档案编号</th>" +-->
128
- <!--" <th>档案标识</th>"+-->
129
- <!--"<th>客户名称</th>"+-->
130
- <!--"<th>表号</th"+-->
131
- <!--"<th>表具类型</th>"+-->
132
- <!--"<th>用户类型</th>"+-->
133
- <!--"<th>区域</th>"+-->
134
- <!--"<th>小区</th>"+-->
135
- <!--"<th>地址</th>"+-->
136
- <!--"<th>用气气量</th>"+-->
137
- <!--"<th>用气金额</th>"-->
138
- <!--+"<th>用气价格</th>"-->
139
- <!--+"<th>时间</th>"-->
140
- <!--+"<th>所属机构</th>"'-->
141
- <!--:fields='["$index+1","f_username","f_meternumber","f_usertype","f_save_money","f_operate_status","f_close_reason","f_area","f_districtname","f_address","id","yytdepa"]'>-->
142
- <!--</print-table>-->
143
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
144
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'用户类型',f_save_money:'剩余金额',-->
145
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
146
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
147
- </div>
148
- </div>
149
- </criteria>
150
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid>
151
- <template partial='head'>
152
- <tr>
153
- <th style="text-align:center">
154
- <nobr>序号</nobr>
155
- </th>
156
- <th style="text-align:center">
157
- <nobr>组织机构</nobr>
158
- </th>
159
- <th style="text-align:center">
160
- <nobr>用户类型</nobr>
161
- </th>
162
- <th style="text-align:center">
163
- <nobr>用气性质</nobr>
164
- </th>
165
- <th style="text-align:center">
166
- <nobr>用气属性</nobr>
167
- </th>
168
- <th style="text-align:center">
169
- <nobr>客户编号</nobr>
170
- </th>
171
- <th style="text-align:center">
172
- <nobr>客户名称</nobr>
173
- </th>
174
- <th style="text-align:center">
175
- <nobr>客户地址</nobr>
176
- </th>
177
- <th style="text-align:center">
178
- <nobr>安装日期</nobr>
179
- </th>
180
- <th style="text-align:center">
181
- <nobr>表钢号</nobr>
182
- </th>
183
- <th style="text-align:center">
184
- <nobr>异常级别</nobr>
185
- </th>
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
- </tr>
199
-
200
- </template>
201
- <template partial='body'>
202
- <td style="text-align:center">
203
- <nobr>{{$index+1}}</nobr>
204
- </td>
205
- <td style="text-align:center">
206
- <nobr>{{row.f_filiale}}</nobr>
207
- </td>
208
- <td style="text-align:center">
209
- <nobr>{{row.f_user_type}}</nobr>
210
- </td>
211
- <td style="text-align:center">
212
- <nobr>{{row.f_gasproperties}}</nobr>
213
- </td>
214
- <td style="text-align:center">
215
- <nobr>{{row.f_gasproperties2}}</nobr>
216
- </td>
217
- <td style="text-align:center">
218
- <nobr>{{row.f_userinfo_code}}</nobr>
219
- </td>
220
- <td style="text-align:center">
221
- <nobr>{{row.f_user_name}}</nobr>
222
- </td>
223
- <td>
224
- <nobr>{{row.f_address}}</nobr>
225
- </td>
226
- <td style="text-align:center">
227
- <nobr>{{row.f_gas_date}}</nobr>
228
- </td>
229
- <td style="text-align:center">
230
- <nobr>{{row.f_meternumber}}</nobr>
231
- </td>
232
- <td style="text-align:center">
233
- <nobr>{{row.f_error_level}}</nobr>
234
- </td>
235
- <td style="text-align:center">
236
- <nobr>{{row.f_error_type}}</nobr>
237
- </td>
238
- <td style="text-align:center">
239
- <nobr>{{row.f_error_msg}}</nobr>
240
- </td>
241
- <td style="text-align:center">
242
- <nobr>{{row.f_insert_date}}</nobr>
243
- </td>
244
- <td style="text-align:center">
245
- <nobr>{{row.f_error_reason}}</nobr>
246
- </td>
247
- </template>
248
- </data-grid>
249
- </criteria-paged>
250
- </div>
251
- <div v-show="echarts" style="height: 40px;width: 100%;">
252
- <div style="display: inline-block;">
253
- <button class="btn btn-success width-50" @click="notShowEcharts()">隐藏图表</button>
254
- </div>
255
- <!--图显示模板-->
256
- <div class="mystyle" style="display: inline-block;">
257
- <label class="control-label">图表统计项</label>
258
- <v-select id="groupname" v-model="groupname"
259
- placeholder='分组项'
260
- value-single="true"
261
- :value.sync="groupname"
262
- :options='getgroupname'
263
- close-on-select></v-select>
264
- </div>
265
- </div>
266
- <div v-show="echarts" style="width: 100%;height: 90%;">
267
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
268
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
269
- </div>
270
- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">
271
- <button class="btn btn-success width-50" @click="notShowTotalForm()">隐藏汇总</button>
272
- </div>
273
- <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
274
- <new-exception-eform :condition="condition" :startdate="startDate"
275
- :enddate="endDate"></new-exception-eform>
276
- </div>
277
- </template>
278
-
279
- <script>
280
- import {PagedList} from 'vue-client'
281
- import * as Util from '../../../../Util'
282
- import getLodop from '../../../../plugins/LodopFuncs'
283
- import NewExceptionEform from './NewExceptionEform'
284
- import NewExceptionEcharts from './NewExceptionEcharsTotal'
285
-
286
- export default {
287
- title: '异常分析',
288
- props: ['data'],
289
- components: {NewExceptionEcharts, NewExceptionEform},
290
- data() {
291
- return {
292
- model: new PagedList('rs/sql/webmeter_getNewExceQuery', 20, {
293
- startDate: 'this.model.startDate',
294
- endDate: 'this.model.endDate'
295
- }),
296
- reportStr: null,
297
- show: false,
298
- startDate: '',
299
- endDate: '',
300
- groupname: ['year'],
301
- getgroupname: [
302
- {label: '年份', value: 'year'},
303
- {label: '月份', value: 'month'},
304
- {label: '周', value: 'week'},
305
- {label: '日', value: 'day'}
306
- ],
307
- outlets: [],
308
- operator: [],
309
- filename: '',
310
- echarts: false,
311
- searchshow: false,
312
- isActiveTotalForm: false,
313
- condition: '1=1',
314
- obj: {
315
- userid: this.$login.f.id,
316
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
317
- res: this.$login.f.f_fengongsi,
318
- resids: this.$login.f.f_orgids
319
- }
320
- }
321
- },
322
- ready() {
323
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
324
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
325
- this.getdata()
326
- },
327
- methods: {
328
- clickshow() {
329
- this.searchshow = !this.searchshow
330
- },
331
- search(args) {
332
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
333
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
334
- this.obj.resids = this.obj.resids
335
- args.condition = `${args.condition} and u.f_filialeids like '${this.obj.resids}%'`
336
- this.condition = args.condition
337
- this.model.search(args.condition, args.model)
338
- // this.condition = this.$refs.paged.$refs.cri.condition
339
- },
340
- getdata() {
341
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
342
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
343
- this.$refs.paged.$refs.cri.search()
344
- this.condition = this.$refs.paged.$refs.cri.condition
345
- },
346
- getRes(obj) {
347
- this.obj.res = obj.res
348
- this.obj.resids = obj.resids
349
- },
350
- SaveAsFile(str) {
351
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
352
- if (res === 'confirm') {
353
- let style = '<style>' +
354
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
355
- let strHtml = style + document.getElementById(str).innerHTML;
356
- console.log(strHtml);
357
- let LODOP = getLodop();
358
- LODOP.PRINT_INIT('');
359
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
360
- LODOP.SAVE_TO_FILE('异常分析.xls')
361
- }
362
- })
363
- },
364
- clearmsg() {
365
- this.$refs.paged.$refs.cri.model = {}
366
- },
367
- close() {
368
- this.show = false
369
- },
370
- // 显示柱状图
371
- showEcharts() {
372
- this.echarts = true
373
- this.isActiveTotalForm = false
374
- },
375
- notShowTotalForm() {
376
- this.echarts = false
377
- this.isActiveTotalForm = false
378
- },
379
- // 不显示柱状图
380
- notShowEcharts() {
381
- this.echarts = false
382
- this.isActiveTotalForm = false
383
- },
384
- // 显示汇总数据表格
385
- showTotalForm() {
386
- this.echarts = false
387
- this.isActiveTotalForm = true
388
- }
389
- },
390
- watch: {
391
- 'data'(val) {
392
- if (val.f_files_path) {
393
- this.getFileContent(val.f_files_path)
394
- } else {
395
- this.reportStr = null
396
- }
397
- }
398
- },
399
- computed: {
400
- // usertypes () {
401
- // return this.$appdate.getParams("用户类型")
402
- // },
403
- usertypes() {
404
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
405
- },
406
- Gasproperties() {
407
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
408
- },
409
- Geterrtype() {
410
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('异常类型')]
411
- },
412
- Gasproperties2() {
413
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气属性')]
414
- }
415
- }
416
- }
417
- </script>
418
- <style>
419
- .form-input-group label {
420
- text-align: right;
421
- width: auto;
422
- }
423
-
424
- .mystyle {
425
- float: right;
426
- padding-right: 10%;
427
- }
428
-
429
- .mystyle1 {
430
- padding-top: 10px;
431
-
432
- }
433
-
434
- .mystyle2 {
435
- width: 100%;
436
- height: 35px;
437
- /*background: #00A3F0;*/
438
- padding-left: 15px;
439
- float: left;
440
- }
441
-
442
- .datapanel {
443
- color: #333;
444
- background-color: white;
445
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
446
- padding: 10px 30px 10px 30px;
447
- border-radius: 15px;
448
- }
449
- </style>
1
+ <template>
2
+ <div id='app1' class="flex bg-white p-10 datapanel" v-show="(!echarts)&&(!isActiveTotalForm)">
3
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" width="100%">
7
+ <div class="col-sm-2 form-group">
8
+ <label class="control-label">表&emsp;钢&emsp;号</label>
9
+ <input type="text" class="form-control" v-model="model.f_meternumber" placeholder='表钢号'
10
+ condition="f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
11
+ >
12
+ </div>
13
+ <div v-if="$parent.$parent.searchshow">
14
+ <div class="col-sm-2 form-group">
15
+ <label class="control-label">组织机构</label>
16
+ <right-tree :userid.sync='$parent.$parent.obj.userid' :source.sync='$parent.$parent.obj.source'
17
+ @re-res="$parent.$parent.getRes"></right-tree>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="control-label">客户名称</label>
21
+ <input type="text" class="form-control" v-model="model.f_user_name" placeholder='客户名称'
22
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
23
+ >
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="control-label">客户编号</label>
27
+ <input type="text" class="form-control" v-model="model.f_userinfo_code" placeholder='客户编号'
28
+ condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='f_userinfo_code' v-el:username
29
+ >
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="control-label">客户地址</label>
33
+ <input type="text" class="form-control" v-model="model.f_area" placeholder='地址'
34
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
35
+ >
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="control-label">用户类型</label>
39
+ <v-select id="f_user_type"
40
+ v-model="model.f_user_type"
41
+ placeholder='用户类型'
42
+ :value.sync="model.f_user_type"
43
+ :options='$parent.$parent.usertypes'
44
+ condition="u.f_user_type = '{}'"
45
+ close-on-select>
46
+ </v-select>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label class="control-label">用气性质</label>
50
+ <v-select id="f_gasproperties"
51
+ v-model="model.f_gasproperties"
52
+ placeholder='用气性质'
53
+ :value.sync="model.f_gasproperties"
54
+ :options='$parent.$parent.Gasproperties'
55
+ condition="u.f_gasproperties = '{}'"
56
+ close-on-select>
57
+ </v-select>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="control-label">用气属性</label>
61
+ <v-select
62
+ placeholder='用气属性'
63
+ :value.sync="model.f_gasproperties2"
64
+ v-model="model.f_gasproperties2"
65
+ :options='$parent.$parent.Gasproperties2'
66
+ close-on-select condition="f_gasproperties2='{}'">
67
+ </v-select>
68
+ </div>
69
+
70
+ <div class="col-sm-2 form-group">
71
+ <label class="control-label">异常类型</label>
72
+ <v-select id="f_error_type"
73
+ v-model="model.f_error_type"
74
+ placeholder='异常类型'
75
+ :value.sync="model.f_error_type"
76
+ :options='$parent.$parent.Geterrtype'
77
+ condition="f_error_type = '{}'"
78
+ close-on-select>
79
+ </v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="control-label">上报区间</label>
83
+ <datepicker id="startdate" placeholder="开始时间"
84
+ v-model="model.startDate"
85
+ :value.sync="model.startDate"
86
+ :disabled-days-of-Week="[]"
87
+ :format="'yyyy-MM-dd HH:mm:ss'"
88
+ :show-reset-button="reset">
89
+ </datepicker>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="control-label" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
93
+ <datepicker id="enddate" placeholder="结束日期"
94
+ v-model="model.endDate"
95
+ :value.sync="model.endDate"
96
+ :disabled-days-of-Week="[]"
97
+ :format="'yyyy-MM-dd HH:mm:ss'"
98
+ :show-reset-button="reset">
99
+ </datepicker>
100
+ </div>
101
+ </div>
102
+ <div class="col-sm-2 form-group form-group ">
103
+ <label class="control-label"></label>
104
+ <button class="btn btn-success width-50" @click="search()">查询</button>
105
+ <label class="control-label"></label>
106
+ <button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
107
+ <label class="control-label"></label>
108
+ <button class="btn btn-success width-100" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>
109
+ </div>
110
+ <div class="col-sm-2 form-group form-group ">
111
+ <label class="control-label"></label>
112
+ <button class="btn btn-success width-50" @click="$parent.$parent.showTotalForm()">显示汇总</button>
113
+ <label class="control-label"></label>
114
+ <button class="btn btn-success width-50" @click="$parent.$parent.showEcharts()">显示图表</button>
115
+ </div>
116
+ <div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
117
+ style="position: relative;float: right;margin-right: 1%;">
118
+ <img src="../../../../../static/webMeter/shousuo.png"><span>展开</span>
119
+ </div>
120
+ <div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
121
+ style="position: relative;float: right;margin-right: 1%;">
122
+ <img src="../../../../../static/webMeter/shangsheng.png"><span>收缩</span>
123
+ </div>
124
+
125
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
126
+ <!--:thead='"<th>序号</th>\n"+-->
127
+ <!--"<th>档案编号</th>" +-->
128
+ <!--" <th>档案标识</th>"+-->
129
+ <!--"<th>客户名称</th>"+-->
130
+ <!--"<th>表号</th"+-->
131
+ <!--"<th>表具类型</th>"+-->
132
+ <!--"<th>用户类型</th>"+-->
133
+ <!--"<th>区域</th>"+-->
134
+ <!--"<th>小区</th>"+-->
135
+ <!--"<th>地址</th>"+-->
136
+ <!--"<th>用气气量</th>"+-->
137
+ <!--"<th>用气金额</th>"-->
138
+ <!--+"<th>用气价格</th>"-->
139
+ <!--+"<th>时间</th>"-->
140
+ <!--+"<th>所属机构</th>"'-->
141
+ <!--:fields='["$index+1","f_username","f_meternumber","f_usertype","f_save_money","f_operate_status","f_close_reason","f_area","f_districtname","f_address","id","yytdepa"]'>-->
142
+ <!--</print-table>-->
143
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
144
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'用户类型',f_save_money:'剩余金额',-->
145
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
146
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
147
+ </div>
148
+ </div>
149
+ </criteria>
150
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid>
151
+ <template partial='head'>
152
+ <tr>
153
+ <th style="text-align:center">
154
+ <nobr>序号</nobr>
155
+ </th>
156
+ <th style="text-align:center">
157
+ <nobr>组织机构</nobr>
158
+ </th>
159
+ <th style="text-align:center">
160
+ <nobr>用户类型</nobr>
161
+ </th>
162
+ <th style="text-align:center">
163
+ <nobr>用气性质</nobr>
164
+ </th>
165
+ <th style="text-align:center">
166
+ <nobr>用气属性</nobr>
167
+ </th>
168
+ <th style="text-align:center">
169
+ <nobr>客户编号</nobr>
170
+ </th>
171
+ <th style="text-align:center">
172
+ <nobr>客户名称</nobr>
173
+ </th>
174
+ <th style="text-align:center">
175
+ <nobr>客户地址</nobr>
176
+ </th>
177
+ <th style="text-align:center">
178
+ <nobr>安装日期</nobr>
179
+ </th>
180
+ <th style="text-align:center">
181
+ <nobr>表钢号</nobr>
182
+ </th>
183
+ <th style="text-align:center">
184
+ <nobr>异常级别</nobr>
185
+ </th>
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
+ </tr>
199
+
200
+ </template>
201
+ <template partial='body'>
202
+ <td style="text-align:center">
203
+ <nobr>{{$index+1}}</nobr>
204
+ </td>
205
+ <td style="text-align:center">
206
+ <nobr>{{row.f_filiale}}</nobr>
207
+ </td>
208
+ <td style="text-align:center">
209
+ <nobr>{{row.f_user_type}}</nobr>
210
+ </td>
211
+ <td style="text-align:center">
212
+ <nobr>{{row.f_gasproperties}}</nobr>
213
+ </td>
214
+ <td style="text-align:center">
215
+ <nobr>{{row.f_gasproperties2}}</nobr>
216
+ </td>
217
+ <td style="text-align:center">
218
+ <nobr>{{row.f_userinfo_code}}</nobr>
219
+ </td>
220
+ <td style="text-align:center">
221
+ <nobr>{{row.f_user_name}}</nobr>
222
+ </td>
223
+ <td>
224
+ <nobr>{{row.f_address}}</nobr>
225
+ </td>
226
+ <td style="text-align:center">
227
+ <nobr>{{row.f_gas_date}}</nobr>
228
+ </td>
229
+ <td style="text-align:center">
230
+ <nobr>{{row.f_meternumber}}</nobr>
231
+ </td>
232
+ <td style="text-align:center">
233
+ <nobr>{{row.f_error_level}}</nobr>
234
+ </td>
235
+ <td style="text-align:center">
236
+ <nobr>{{row.f_error_type}}</nobr>
237
+ </td>
238
+ <td style="text-align:center">
239
+ <nobr>{{row.f_error_msg}}</nobr>
240
+ </td>
241
+ <td style="text-align:center">
242
+ <nobr>{{row.f_insert_date}}</nobr>
243
+ </td>
244
+ <td style="text-align:center">
245
+ <nobr>{{row.f_error_reason}}</nobr>
246
+ </td>
247
+ </template>
248
+ </data-grid>
249
+ </criteria-paged>
250
+ </div>
251
+ <div v-show="echarts" style="height: 40px;width: 100%;">
252
+ <div style="display: inline-block;">
253
+ <button class="btn btn-success width-50" @click="notShowEcharts()">隐藏图表</button>
254
+ </div>
255
+ <!--图显示模板-->
256
+ <div class="mystyle" style="display: inline-block;">
257
+ <label class="control-label">图表统计项</label>
258
+ <v-select id="groupname" v-model="groupname"
259
+ placeholder='分组项'
260
+ value-single="true"
261
+ :value.sync="groupname"
262
+ :options='getgroupname'
263
+ close-on-select></v-select>
264
+ </div>
265
+ </div>
266
+ <div v-show="echarts" style="width: 100%;height: 90%;">
267
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
268
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
269
+ </div>
270
+ <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">
271
+ <button class="btn btn-success width-50" @click="notShowTotalForm()">隐藏汇总</button>
272
+ </div>
273
+ <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
274
+ <new-exception-eform :condition="condition" :startdate="startDate"
275
+ :enddate="endDate"></new-exception-eform>
276
+ </div>
277
+ </template>
278
+
279
+ <script>
280
+ import {PagedList} from 'vue-client'
281
+ import * as Util from '../../../../Util'
282
+ import getLodop from '../../../../plugins/LodopFuncs'
283
+ import NewExceptionEform from './NewExceptionEform'
284
+ import NewExceptionEcharts from './NewExceptionEcharsTotal'
285
+
286
+ export default {
287
+ title: '异常分析',
288
+ props: ['data'],
289
+ components: {NewExceptionEcharts, NewExceptionEform},
290
+ data() {
291
+ return {
292
+ model: new PagedList('rs/sql/webmeter_getNewExceQuery', 20, {
293
+ startDate: 'this.model.startDate',
294
+ endDate: 'this.model.endDate'
295
+ }),
296
+ reportStr: null,
297
+ show: false,
298
+ startDate: '',
299
+ endDate: '',
300
+ groupname: ['year'],
301
+ getgroupname: [
302
+ {label: '年份', value: 'year'},
303
+ {label: '月份', value: 'month'},
304
+ {label: '周', value: 'week'},
305
+ {label: '日', value: 'day'}
306
+ ],
307
+ outlets: [],
308
+ operator: [],
309
+ filename: '',
310
+ echarts: false,
311
+ searchshow: false,
312
+ isActiveTotalForm: false,
313
+ condition: '1=1',
314
+ obj: {
315
+ userid: this.$login.f.id,
316
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
317
+ res: this.$login.f.f_fengongsi,
318
+ resids: this.$login.f.f_orgids
319
+ }
320
+ }
321
+ },
322
+ ready() {
323
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
324
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
325
+ this.getdata()
326
+ },
327
+ methods: {
328
+ clickshow() {
329
+ this.searchshow = !this.searchshow
330
+ },
331
+ search(args) {
332
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
333
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
334
+ this.obj.resids = this.obj.resids
335
+ args.condition = `${args.condition} and u.f_filialeids like '${this.obj.resids}%'`
336
+ this.condition = args.condition
337
+ this.model.search(args.condition, args.model)
338
+ // this.condition = this.$refs.paged.$refs.cri.condition
339
+ },
340
+ getdata() {
341
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
342
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
343
+ this.$refs.paged.$refs.cri.search()
344
+ this.condition = this.$refs.paged.$refs.cri.condition
345
+ },
346
+ getRes(obj) {
347
+ this.obj.res = obj.res
348
+ this.obj.resids = obj.resids
349
+ },
350
+ SaveAsFile(str) {
351
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
352
+ if (res === 'confirm') {
353
+ let style = '<style>' +
354
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
355
+ let strHtml = style + document.getElementById(str).innerHTML;
356
+ console.log(strHtml);
357
+ let LODOP = getLodop();
358
+ LODOP.PRINT_INIT('');
359
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
360
+ LODOP.SAVE_TO_FILE('异常分析.xls')
361
+ }
362
+ })
363
+ },
364
+ clearmsg() {
365
+ this.$refs.paged.$refs.cri.model = {}
366
+ },
367
+ close() {
368
+ this.show = false
369
+ },
370
+ // 显示柱状图
371
+ showEcharts() {
372
+ this.echarts = true
373
+ this.isActiveTotalForm = false
374
+ },
375
+ notShowTotalForm() {
376
+ this.echarts = false
377
+ this.isActiveTotalForm = false
378
+ },
379
+ // 不显示柱状图
380
+ notShowEcharts() {
381
+ this.echarts = false
382
+ this.isActiveTotalForm = false
383
+ },
384
+ // 显示汇总数据表格
385
+ showTotalForm() {
386
+ this.echarts = false
387
+ this.isActiveTotalForm = true
388
+ }
389
+ },
390
+ watch: {
391
+ 'data'(val) {
392
+ if (val.f_files_path) {
393
+ this.getFileContent(val.f_files_path)
394
+ } else {
395
+ this.reportStr = null
396
+ }
397
+ }
398
+ },
399
+ computed: {
400
+ // usertypes () {
401
+ // return this.$appdate.getParams("用户类型")
402
+ // },
403
+ usertypes() {
404
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
405
+ },
406
+ Gasproperties() {
407
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
408
+ },
409
+ Geterrtype() {
410
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('异常类型')]
411
+ },
412
+ Gasproperties2() {
413
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气属性')]
414
+ }
415
+ }
416
+ }
417
+ </script>
418
+ <style>
419
+ .form-input-group label {
420
+ text-align: right;
421
+ width: auto;
422
+ }
423
+
424
+ .mystyle {
425
+ float: right;
426
+ padding-right: 10%;
427
+ }
428
+
429
+ .mystyle1 {
430
+ padding-top: 10px;
431
+
432
+ }
433
+
434
+ .mystyle2 {
435
+ width: 100%;
436
+ height: 35px;
437
+ /*background: #00A3F0;*/
438
+ padding-left: 15px;
439
+ float: left;
440
+ }
441
+
442
+ .datapanel {
443
+ color: #333;
444
+ background-color: white;
445
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
446
+ padding: 10px 30px 10px 30px;
447
+ border-radius: 15px;
448
+ }
449
+ </style>