manage-client 3.2.102 → 3.2.103-test

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 (35) hide show
  1. package/build/dev-server.js +176 -177
  2. package/build/webpack.base.conf.js +83 -82
  3. package/package.json +2 -2
  4. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  5. package/src/components/daping/DataManagement.vue +536 -537
  6. package/src/components/sale/businessquery/BusinessManage.vue +191 -179
  7. package/src/components/sale/businessquery/FillCardQuery.vue +39 -2
  8. package/src/components/sale/config/exportConfig.js +1008 -988
  9. package/src/components/sale/config/tableConfig.js +48 -48
  10. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -0
  11. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -0
  12. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -0
  13. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -0
  14. package/src/components/webmeter/DrillData/UserGasAll.vue +1 -1
  15. package/src/components/webmeter/WebmeterQuery.vue +3 -0
  16. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +432 -0
  17. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +8 -1
  18. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +566 -506
  19. package/src/components/webmeter/report/ReportList.vue +4 -4
  20. package/src/components/webmeter/reportdata/ReportDataQuery.vue +279 -279
  21. package/src/filiale/qianneng/BusinessManage.vue +179 -0
  22. package/src/filiale/qianneng/ChargeQuery.vue +191 -184
  23. package/src/filiale/qianneng/HandplanQuery.vue +130 -117
  24. package/src/filiale/qianneng/OtherChargeQuery.vue +33 -31
  25. package/src/filiale/qianneng/SellDepReport.vue +27 -7
  26. package/src/filiale/qianneng/UserQuery.vue +938 -0
  27. package/src/filiale/qianneng/sale.js +5 -1
  28. package/src/filiale/shaoguan/TransferQuery.vue +8 -3
  29. package/src/newmanage.js +535 -525
  30. package/src/saleManage.js +572 -558
  31. package/src/webmeterManage.js +2 -0
  32. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  33. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  34. package/.gradle/buildOutputCleanup/built.bin +0 -0
  35. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,506 +1,566 @@
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 style="width:35%" 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 style="width:35%" class="font_normal_body">客户名称</label>
20
- <input style="width:60%" type="text" class="input_search"
21
- v-model="model.username"
22
- @keyup.enter="search"
23
- placeholder='客户名称'
24
- condition="username 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 style="width:35%" class="font_normal_body">客户地址</label>
30
- <input style="width:60%" type="text" class="input_search"
31
- v-model="model.address" placeholder='地址'
32
- condition="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 style="width:35%" 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
- <div class="col-sm-2 form-group">
59
- <label style="width:35%" class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
60
- <right-tree @re-res="$parent.$parent.getorg"
61
- :initresid='$parent.$parent.org'></right-tree>
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label style="width:35%" class="font_normal_body">余额&nbsp;&nbsp;大于</label>
65
- <input style="width:60%" type="number" class="input_search"
66
- v-model="model.f_balance_amount_sta" placeholder='账户余额'
67
- condition="f_balance_amount>{}"
68
- @keyup.enter="search"
69
- v-el:xq v-next-el='f_day' v-el:area
70
- >
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label style="width:35%" class="font_normal_body">小于</label>
74
- <input style="width:60%" type="number" class="input_search"
75
- v-model="model.f_balance_amount_end" placeholder='账户余额'
76
- condition="f_balance_amount < {}"
77
- @keyup.enter="search"
78
- v-el:xq v-next-el='f_day' v-el:area
79
- >
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label style="width:35%" class="font_normal_body">气表品牌</label>
83
- <v-select :value.sync="model.f_balance_amount"
84
- v-model="model.f_meter_brand"
85
- :options='$parent.$parent.meterbrands' placeholder='请选择'
86
- condition="f_meter_brand = '{}'"
87
- close-on-select></v-select>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label style="width:35%" class="font_normal_body">上报区间</label>
91
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
92
- v-model="model.startDate"
93
- :value.sync="model.startDate"
94
- :disabled-days-of-Week="[]"
95
- :format="'yyyy-MM-dd HH:mm:ss'"
96
- condition="f_insert_date >= '{}'"
97
- :show-reset-button="reset">
98
- </datepicker>
99
- </div>
100
- <div class="col-sm-2 form-group">
101
- <label style="width:35%" class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
102
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
103
- v-model="model.endDate"
104
- :value.sync="model.endDate"
105
- :format="'yyyy-MM-dd HH:mm:ss'"
106
- :disabled-days-of-Week="[]"
107
- condition="f_insert_date <= '{}'"
108
- :show-reset-button="reset">
109
- </datepicker>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label style="width:35%" class="font_normal_body">未抄表天数&nbsp;></label>
113
- <input style="width:60%" type="number" class="input_search"
114
- v-model="model.f_day" placeholder='未抄表天数'
115
- condition="DateDiff(dd,f_hand_date,getdate())>{}"
116
- @keyup.enter="search"
117
- v-el:xq v-next-el='f_day' v-el:area
118
- >
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label style="width:35%" class="font_normal_body">电池电量&nbsp;&nbsp;大于</label>
122
- <input style="width:60%" type="number" class="input_search"
123
- v-model="model.f_batterylevel_sta" placeholder='电池电量'
124
- condition="f_batterylevel>{}"
125
- @keyup.enter="search"
126
- v-el:xq v-next-el='f_day' v-el:area
127
- >
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label style="width:35%" class="font_normal_body">小于</label>
131
- <input style="width:60%" type="number" class="input_search"
132
- v-model="model.f_batterylevel_end" placeholder='电池电量'
133
- condition="f_batterylevel < {}"
134
- @keyup.enter="search"
135
- v-el:xq v-next-el='f_day' v-el:area
136
- >
137
- </div>
138
-
139
-
140
- </div>
141
- </div>
142
- </criteria>
143
- <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
144
- <template partial='head'>
145
- <tr>
146
- <th style="text-align:center">
147
- <nobr>序号</nobr>
148
- </th>
149
- <th style="text-align:center">
150
- <nobr>客户编号</nobr>
151
- </th>
152
- <th style="text-align:center">
153
- <nobr>客户名称</nobr>
154
- </th>
155
- <th style="text-align:center">
156
- <nobr>小区</nobr>
157
- </th>
158
- <th style="text-align:center">
159
- <nobr>客户地址</nobr>
160
- </th>
161
- <th style="text-align:center">
162
- <nobr>账户余额</nobr>
163
- </th>
164
- <th style="text-align:center">
165
- <nobr>联系电话</nobr>
166
- </th>
167
- <th style="text-align:center">
168
- <nobr>表号</nobr>
169
- </th>
170
- <th style="text-align:center">
171
- <nobr>气表品牌</nobr>
172
- </th>
173
- <th style="text-align:center">
174
- <nobr>抄表日期</nobr>
175
- </th>
176
- <th style="text-align:center">
177
- <nobr>最后一次通讯时间</nobr>
178
- </th>
179
- <th style="text-align:center">
180
- <nobr>电池电压</nobr>
181
- </th>
182
- <th style="text-align:center">
183
- <nobr>信号强度</nobr>
184
- </th>
185
- <th style="text-align:center">
186
- <nobr>磁干扰异常</nobr>
187
- </th>
188
- <th style="text-align:center">
189
- <nobr>阀门状态</nobr>
190
- </th>
191
- <th style="text-align:center">
192
- <nobr>分公司</nobr>
193
- </th>
194
-
195
- </tr>
196
-
197
- </template>
198
- <template partial='body'>
199
- <td style="text-align:center">
200
- <nobr>{{$index+1}}</nobr>
201
- </td>
202
- <td style="text-align: center;"><nobr>
203
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
204
- </nobr> </td>
205
- <td style="text-align:center"><nobr>{{row.username}}</nobr></td>
206
- <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
207
- <td>
208
- <nobr>{{row.address}}</nobr>
209
- </td>
210
- <td style="text-align:center">{{row.f_balance_amount}}</td>
211
- <td style="text-align:center">{{row.f_user_phone}}</td>
212
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
213
- <td style="text-align:center">
214
- <nobr>{{row.f_meter_brand}}</nobr>
215
- </td>
216
- <td style="text-align:center">
217
- <nobr>{{row.f_hand_date}}</nobr>
218
- </td>
219
- <td style="text-align:center">
220
- <nobr>{{row.f_insert_date}}</nobr>
221
- </td>
222
- <td style="text-align:center">
223
- <nobr>{{row.f_batterylevel}}</nobr>
224
- </td>
225
- <td style="text-align:center">
226
- <nobr>{{row.f_signal}}</nobr>
227
- </td>
228
- <td style="text-align:center">
229
- <nobr>{{row.f_magneticInterference == 1 ? '异常' : '正常'}}</nobr>
230
- </td>
231
- <td style="text-align:center">
232
- <nobr>{{row.f_valvestate == 0 ? '开阀' : '关阀'}}</nobr>
233
- </td>
234
- <td style="text-align:center">
235
- <nobr>{{row.f_orgname}}</nobr>
236
- </td>
237
- </template>
238
- </data-grid>
239
- </criteria-paged>
240
- </div>
241
- <!--<div style="height: 40px;width: 100%;" v-show="echarts">
242
- <div style="display: inline-block;width: 20%;">
243
- <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
244
- <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
245
- </div>
246
- &lt;!&ndash;图显示模板&ndash;&gt;
247
- <div class="mystyle" style="display: inline-block;" >
248
- <label class="font_normal_body">图表统计项</label>
249
- <v-select style="width:60%" id="groupname" v-model="groupname"
250
- placeholder='分组项'
251
- value-single="true"
252
- :value.sync="groupname"
253
- :options='getgroupname'
254
- close-on-select></v-select>
255
- </div>
256
- </div>
257
- <div v-show="echarts" style="width: 100%;height: 90%;">
258
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
259
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
260
- </div>
261
- <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
262
- <new-exception-eform-total :condition="condition" :startdate="startDate"
263
- :enddate="endDate"></new-exception-eform-total>
264
- </div>-->
265
- </div>
266
- <div class="flex" v-if="showdetail">
267
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
268
- </div>
269
- </template>
270
-
271
- <script>
272
- import {HttpResetClass, PagedList} from 'vue-client'
273
- import * as Util from '../../../../Util'
274
- import getLodop from '../../../../plugins/LodopFuncs'
275
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
276
-
277
- let readySomething = async function (self) {
278
- await self.$MagLoadParams.loadParam()
279
- self.initParams()
280
- }
281
- export default {
282
- title: '异常查看',
283
- props: ['data'],
284
- data() {
285
- return {
286
- model: new PagedList('rs/sql/getExceptionList', 20),
287
- reportStr: null,
288
- show: false,
289
- startDate: '',
290
- endDate: '',
291
- meterbrands: [],
292
- f_error_type:'',
293
- groupname: ['year'],
294
- getgroupname: [
295
- {label: '年份', value: 'year'},
296
- {label: '月份', value: 'month'},
297
- {label: '周', value: 'week'},
298
- {label: '日', value: 'day'}
299
- ],
300
- getfield:{
301
- "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
302
- "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
303
- "f_error_msg":"异常描述","f_orgname":"组织机构"
304
- },
305
- outlets: [],
306
- operator: [],
307
- showdetail:false,
308
- rowdata:{},
309
- filename: '',
310
- criteriaShow: false,
311
- echarts: false,
312
- searchshow: false,
313
- isActiveTotalForm: false,
314
- GetErrorLevel:[],
315
- GetErrorType:[],
316
- condition: '1=1',
317
- org:[this.$login.f.orgid],
318
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
319
- }
320
- },
321
- ready() {
322
- readySomething(this)
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
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
326
- this.getErrorInfo('f_error_level')
327
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
328
- this.$refs.paged.$refs.cri.search()
329
-
330
- },
331
- methods: {
332
- showmsg(obj){
333
- this.rowdata=obj
334
- this.showdetail=true
335
- },
336
- cancel() {
337
- this.showdetail = false
338
- },
339
- getorg(obj) {
340
- if (obj.resids.length>0) {
341
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
342
- }else
343
- {
344
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
345
- }
346
- },
347
- initParams () {
348
- let arr = []
349
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
350
- let temp = {}
351
- if(item.value.f_meter_type==='物联网表'){
352
- temp.label = item.label
353
- temp.value = item.value.f_meter_brand
354
- arr.push(temp )
355
- }
356
-
357
- })
358
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
359
- },
360
- hidden(){
361
- this.criteriaShow = !this.criteriaShow
362
- },
363
- clickshow() {
364
- this.searchshow = !this.searchshow
365
- },
366
- getErrorInfo(items){
367
- let self = this
368
- let f_error_level=''
369
- if (items!='f_error_level') {
370
- if(this.$refs.paged.$refs.cri.model.f_error_level){
371
- f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
372
- }
373
- }
374
- let load = new HttpResetClass()
375
- load.load('POST', 'rs/sql/singleTableParam', {
376
- data: {
377
- items:items+' f_type',
378
- tablename:'t_exception',
379
- condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
380
- }
381
- },{warnMsg:null,resolveMsg:null}).then((res) => {
382
- let i = 0
383
- let rows=res.data
384
- let array1=[]
385
- array1.push({label: '全部', value: ''})
386
- console.log("rows========",rows)
387
- for (i = 0; i < rows.length; i++) {
388
- let dr = {label: '全部', value: ''}
389
- dr.label=rows[i].f_type
390
- dr.value=rows[i].f_type
391
- array1.push(dr)
392
- console.log("rows[i]========",rows[i],dr)
393
- }
394
- console.log("array1========",array1)
395
- if (items=='f_error_level'){
396
- self.GetErrorLevel=array1
397
- }else {
398
- self.GetErrorType=array1
399
- }
400
- })
401
-
402
- },
403
- search(args) {
404
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
405
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
406
- this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
407
- console.log('1231321312312321')
408
- /* if (this.endDate == '' || this.startDate == '') {
409
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
410
- }*/
411
- this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
412
-
413
- args.condition = this.condition
414
- this.model.search(args.condition, args.model)
415
- },
416
- SaveAsFile(str) {
417
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
418
- if (res === 'confirm') {
419
- let style = '<style>' +
420
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
421
- let strHtml = style + document.getElementById(str).innerHTML;
422
- console.log(strHtml);
423
- let LODOP = getLodop();
424
- LODOP.PRINT_INIT('');
425
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
426
- LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
427
- }
428
- })
429
- },
430
- clearmsg() {
431
- this.$refs.paged.$refs.cri.model = {}
432
- },
433
- close() {
434
- this.show = false
435
- },
436
- // 显示柱状图
437
- showEcharts() {
438
- this.echarts = true
439
- this.isActiveTotalForm = false
440
- },
441
- notShowTotalForm() {
442
- this.echarts = false
443
- this.isActiveTotalForm = false
444
- },
445
- // 不显示柱状图
446
- notShowEcharts() {
447
- this.echarts = false
448
- this.isActiveTotalForm = false
449
- },
450
- // 显示汇总数据表格
451
- showTotalForm() {
452
- this.echarts = false
453
- this.isActiveTotalForm = true
454
- }
455
- },
456
- watch: {
457
- 'data'(val) {
458
- if (val.f_files_path) {
459
- this.getFileContent(val.f_files_path)
460
- } else {
461
- this.reportStr = null
462
- }
463
- }
464
- },
465
- computed: {
466
- // usertypes () {
467
- // return this.$appdate.getParams("客户类型")
468
- // },
469
- getCondition() {
470
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
471
- return {
472
- condition: condition ,
473
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
474
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
475
- }
476
-
477
- },
478
- usertypes() {
479
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
480
- },
481
- Gasproperties() {
482
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
483
- }
484
-
485
- }
486
- }
487
- </script>
488
- <style>
489
- .form-input-group label {
490
- text-align: right;
491
- width: auto;
492
- }
493
-
494
- .mystyle {
495
- float: right;
496
- padding-right: 10%;
497
- }
498
-
499
- .datapanel {
500
- color: #333;
501
- background-color: white;
502
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
503
- padding: 10px 30px 10px 30px;
504
- border-radius: 15px;
505
- }
506
- </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 style="width:35%" 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 style="width:35%" class="font_normal_body">客户名称</label>
20
+ <input style="width:60%" type="text" class="input_search"
21
+ v-model="model.username"
22
+ @keyup.enter="search"
23
+ placeholder='客户名称'
24
+ condition="username 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 style="width:35%" class="font_normal_body">客户地址</label>
30
+ <input style="width:60%" type="text" class="input_search"
31
+ v-model="model.address" placeholder='地址'
32
+ condition="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 style="width:35%" 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
+ <div class="col-sm-2 form-group">
59
+ <label style="width:35%" class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
60
+ <right-tree @re-res="$parent.$parent.getorg"
61
+ :initresid='$parent.$parent.org'></right-tree>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label style="width:35%" class="font_normal_body">余额&nbsp;&nbsp;大于</label>
65
+ <input style="width:60%" type="number" class="input_search"
66
+ v-model="model.f_balance_amount_sta" placeholder='账户余额'
67
+ condition="f_balance_amount>{}"
68
+ @keyup.enter="search"
69
+ v-el:xq v-next-el='f_day' v-el:area
70
+ >
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label style="width:35%" class="font_normal_body">小于</label>
74
+ <input style="width:60%" type="number" class="input_search"
75
+ v-model="model.f_balance_amount_end" placeholder='账户余额'
76
+ condition="f_balance_amount < {}"
77
+ @keyup.enter="search"
78
+ v-el:xq v-next-el='f_day' v-el:area
79
+ >
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label style="width:35%" class="font_normal_body">气表品牌</label>
83
+ <v-select :value.sync="model.f_balance_amount"
84
+ v-model="model.f_meter_brand"
85
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
86
+ condition="f_meter_brand = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label style="width:35%" class="font_normal_body">上报区间</label>
91
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
92
+ v-model="model.startDate"
93
+ :value.sync="model.startDate"
94
+ :disabled-days-of-Week="[]"
95
+ :format="'yyyy-MM-dd HH:mm:ss'"
96
+ condition="f_insert_date >= '{}'"
97
+ :show-reset-button="reset">
98
+ </datepicker>
99
+ </div>
100
+ <div class="col-sm-2 form-group">
101
+ <label style="width:35%" class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
102
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
103
+ v-model="model.endDate"
104
+ :value.sync="model.endDate"
105
+ :format="'yyyy-MM-dd HH:mm:ss'"
106
+ :disabled-days-of-Week="[]"
107
+ condition="f_insert_date <= '{}'"
108
+ :show-reset-button="reset">
109
+ </datepicker>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label style="width:35%" class="font_normal_body">未抄表天数&nbsp;></label>
113
+ <input style="width:60%" type="number" class="input_search"
114
+ v-model="model.f_day" placeholder='未抄表天数'
115
+ condition="DateDiff(dd,f_hand_date,getdate())>{}"
116
+ @keyup.enter="search"
117
+ v-el:xq v-next-el='f_day' v-el:area
118
+ >
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label style="width:35%" class="font_normal_body">电池电量大于</label>
122
+ <input style="width:60%" type="number" class="input_search"
123
+ v-model="model.f_electricity_sta" placeholder='电池电量'
124
+ condition="f_electricity>{}"
125
+ @keyup.enter="search"
126
+ v-el:xq v-next-el='f_day' v-el:area
127
+ >
128
+ </div>
129
+ <div class="col-sm-2 form-group">
130
+ <label style="width:35%" class="font_normal_body">小于</label>
131
+ <input style="width:60%" type="number" class="input_search"
132
+ v-model="model.f_electricity_end" placeholder='电池电量'
133
+ condition="f_electricity < {}"
134
+ @keyup.enter="search"
135
+ v-el:xq v-next-el='f_day' v-el:area
136
+ >
137
+ </div>
138
+ <div class="col-sm-2 form-group">
139
+ <label style="width:35%" class="font_normal_body">电池电压大于</label>
140
+ <input style="width:60%" type="number" class="input_search"
141
+ v-model="model.f_batterylevel_sta" placeholder='电池电压'
142
+ condition="f_batterylevel>{}"
143
+ @keyup.enter="search"
144
+ v-el:xq v-next-el='f_day' v-el:area
145
+ >
146
+ </div>
147
+ <div class="col-sm-2 form-group">
148
+ <label style="width:35%" class="font_normal_body">小于</label>
149
+ <input style="width:60%" type="number" class="input_search"
150
+ v-model="model.f_batterylevel_end" placeholder='电池电压'
151
+ condition="f_batterylevel < {}"
152
+ @keyup.enter="search"
153
+ v-el:xq v-next-el='f_day' v-el:area
154
+ >
155
+ </div>
156
+ <div class="col-sm-2 form-group">
157
+ <label style="width:35%" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;异常级别</label>
158
+ <v-select style="width:60%"
159
+ v-model="model.f_error_level"
160
+ placeholder='异常级别'
161
+ @change="$parent.$parent.getErrorInfo('f_error_type')"
162
+ :value.sync="model.f_error_level"
163
+ :options='$parent.$parent.GetErrorLevel'
164
+ condition="f_error_level = '{}'"
165
+ close-on-select>
166
+ </v-select>
167
+ </div>
168
+ <div class="col-sm-2 form-group">
169
+ <label style="width:35%" class="font_normal_body">异常类型</label>
170
+ <v-select style="width:60%"
171
+ v-model="model.f_error_type"
172
+ placeholder='异常类型'
173
+ :value.sync="model.f_error_type"
174
+ :options='$parent.$parent.GetErrorType'
175
+ condition="f_error_type = '{}'"
176
+ close-on-select>
177
+ </v-select>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </criteria>
182
+ <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
183
+ <template partial='head'>
184
+ <tr>
185
+ <th style="text-align:center">
186
+ <nobr>序号</nobr>
187
+ </th>
188
+ <th style="text-align:center">
189
+ <nobr>客户编号</nobr>
190
+ </th>
191
+ <th style="text-align:center">
192
+ <nobr>客户名称</nobr>
193
+ </th>
194
+ <th style="text-align:center">
195
+ <nobr>小区</nobr>
196
+ </th>
197
+ <th style="text-align:center">
198
+ <nobr>客户地址</nobr>
199
+ </th>
200
+ <th style="text-align:center">
201
+ <nobr>账户余额</nobr>
202
+ </th>
203
+ <th style="text-align:center">
204
+ <nobr>联系电话</nobr>
205
+ </th>
206
+ <th style="text-align:center">
207
+ <nobr>表号</nobr>
208
+ </th>
209
+ <th style="text-align:center">
210
+ <nobr>气表品牌</nobr>
211
+ </th>
212
+ <th style="text-align:center">
213
+ <nobr>抄表日期</nobr>
214
+ </th>
215
+ <th style="text-align:center">
216
+ <nobr>最后一次通讯时间</nobr>
217
+ </th>
218
+ <th style="text-align:center">
219
+ <nobr>电池电量</nobr>
220
+ </th>
221
+ <th style="text-align:center">
222
+ <nobr>电池电压</nobr>
223
+ </th>
224
+ <th style="text-align:center">
225
+ <nobr>信号强度</nobr>
226
+ </th>
227
+ <th style="text-align:center">
228
+ <nobr>磁干扰异常</nobr>
229
+ </th>
230
+ <th style="text-align:center">
231
+ <nobr>阀门状态</nobr>
232
+ </th>
233
+ <th style="text-align:center">
234
+ <nobr>异常类型</nobr>
235
+ </th>
236
+ <th style="text-align:center">
237
+ <nobr>异常级别</nobr>
238
+ </th>
239
+ <th style="text-align:center">
240
+ <nobr>分公司</nobr>
241
+ </th>
242
+
243
+ </tr>
244
+
245
+ </template>
246
+ <template partial='body'>
247
+ <td style="text-align:center">
248
+ <nobr>{{$index+1}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;"><nobr>
251
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
252
+ </nobr> </td>
253
+ <td style="text-align:center"><nobr>{{row.username}}</nobr></td>
254
+ <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
255
+ <td>
256
+ <nobr>{{row.address}}</nobr>
257
+ </td>
258
+ <td style="text-align:center">{{row.f_balance_amount}}</td>
259
+ <td style="text-align:center">{{row.f_user_phone}}</td>
260
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
261
+ <td style="text-align:center">
262
+ <nobr>{{row.f_meter_brand}}</nobr>
263
+ </td>
264
+ <td style="text-align:center">
265
+ <nobr>{{row.f_hand_date}}</nobr>
266
+ </td>
267
+ <td style="text-align:center">
268
+ <nobr>{{row.f_insert_date}}</nobr>
269
+ </td>
270
+ <td style="text-align:center">
271
+ <nobr>{{row.f_electricity}}</nobr>
272
+ </td>
273
+ <td style="text-align:center">
274
+ <nobr>{{row.f_batterylevel}}</nobr>
275
+ </td>
276
+ <td style="text-align:center">
277
+ <nobr>{{row.f_signal}}</nobr>
278
+ </td>
279
+ <td style="text-align:center">
280
+ <nobr>{{row.f_magneticInterference == 1 ? '异常' : '正常'}}</nobr>
281
+ </td>
282
+ <td style="text-align:center">
283
+ <nobr>{{row.f_valvestate == 0 ? '开阀' : '关阀'}}</nobr>
284
+ </td>
285
+ <td style="text-align:center">
286
+ <nobr>{{row.f_error_type}}</nobr>
287
+ </td>
288
+ <td style="text-align:center">
289
+ <nobr>{{row.f_error_level}}</nobr>
290
+ </td>
291
+ <td style="text-align:center">
292
+ <nobr>{{row.f_orgname}}</nobr>
293
+ </td>
294
+ </template>
295
+ </data-grid>
296
+ </criteria-paged>
297
+ </div>
298
+ <!--<div style="height: 40px;width: 100%;" v-show="echarts">
299
+ <div style="display: inline-block;width: 20%;">
300
+ <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
301
+ <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
302
+ </div>
303
+ &lt;!&ndash;图显示模板&ndash;&gt;
304
+ <div class="mystyle" style="display: inline-block;" >
305
+ <label class="font_normal_body">图表统计项</label>
306
+ <v-select style="width:60%" id="groupname" v-model="groupname"
307
+ placeholder='分组项'
308
+ value-single="true"
309
+ :value.sync="groupname"
310
+ :options='getgroupname'
311
+ close-on-select></v-select>
312
+ </div>
313
+ </div>
314
+ <div v-show="echarts" style="width: 100%;height: 90%;">
315
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
316
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
317
+ </div>
318
+ <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
319
+ <new-exception-eform-total :condition="condition" :startdate="startDate"
320
+ :enddate="endDate"></new-exception-eform-total>
321
+ </div>-->
322
+ </div>
323
+ <div class="flex" v-if="showdetail">
324
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
325
+ </div>
326
+ </template>
327
+
328
+ <script>
329
+ import {HttpResetClass, PagedList} from 'vue-client'
330
+ import * as Util from '../../../../Util'
331
+ import getLodop from '../../../../plugins/LodopFuncs'
332
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
333
+
334
+ let readySomething = async function (self) {
335
+ await self.$MagLoadParams.loadParam()
336
+ self.initParams()
337
+ }
338
+ export default {
339
+ title: '异常查看',
340
+ props: ['data'],
341
+ data() {
342
+ return {
343
+ model: new PagedList('rs/sql/getExceptionList', 20),
344
+ reportStr: null,
345
+ show: false,
346
+ startDate: '',
347
+ endDate: '',
348
+ meterbrands: [],
349
+ f_error_type:'',
350
+ groupname: ['year'],
351
+ getgroupname: [
352
+ {label: '年份', value: 'year'},
353
+ {label: '月份', value: 'month'},
354
+ {label: '周', value: 'week'},
355
+ {label: '日', value: 'day'}
356
+ ],
357
+ getfield:{
358
+ "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
359
+ "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
360
+ "f_error_msg":"异常描述","f_orgname":"组织机构"
361
+ },
362
+ outlets: [],
363
+ operator: [],
364
+ showdetail:false,
365
+ rowdata:{},
366
+ filename: '',
367
+ criteriaShow: false,
368
+ echarts: false,
369
+ searchshow: false,
370
+ isActiveTotalForm: false,
371
+ GetErrorLevel:[],
372
+ GetErrorType:[],
373
+ condition: '1=1',
374
+ org:[this.$login.f.orgid],
375
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
376
+ }
377
+ },
378
+ ready() {
379
+ readySomething(this)
380
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
381
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
382
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
383
+ this.getErrorInfo('f_error_level')
384
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
385
+ this.$refs.paged.$refs.cri.search()
386
+
387
+ },
388
+ methods: {
389
+ showmsg(obj){
390
+ this.rowdata=obj
391
+ this.showdetail=true
392
+ },
393
+ cancel() {
394
+ this.showdetail = false
395
+ },
396
+ getorg(obj) {
397
+ if (obj.resids.length>0) {
398
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
399
+ }else
400
+ {
401
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
402
+ }
403
+ },
404
+ initParams () {
405
+ let arr = []
406
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
407
+ let temp = {}
408
+ if(item.value.f_meter_type==='物联网表'){
409
+ temp.label = item.label
410
+ temp.value = item.value.f_meter_brand
411
+ arr.push(temp )
412
+ }
413
+
414
+ })
415
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
416
+ },
417
+ hidden(){
418
+ this.criteriaShow = !this.criteriaShow
419
+ },
420
+ clickshow() {
421
+ this.searchshow = !this.searchshow
422
+ },
423
+ getErrorInfo(items){
424
+ let self = this
425
+ let f_error_level=''
426
+ if (items!='f_error_level') {
427
+ if(this.$refs.paged.$refs.cri.model.f_error_level){
428
+ f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
429
+ }
430
+ }
431
+ let load = new HttpResetClass()
432
+ load.load('POST', 'rs/sql/singleTableParam', {
433
+ data: {
434
+ items:items+' f_type',
435
+ tablename:'t_exception',
436
+ condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
437
+ }
438
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
439
+ let i = 0
440
+ let rows=res.data
441
+ let array1=[]
442
+ array1.push({label: '全部', value: ''})
443
+ console.log("rows========",rows)
444
+ for (i = 0; i < rows.length; i++) {
445
+ let dr = {label: '全部', value: ''}
446
+ dr.label=rows[i].f_type
447
+ dr.value=rows[i].f_type
448
+ array1.push(dr)
449
+ console.log("rows[i]========",rows[i],dr)
450
+ }
451
+ console.log("array1========",array1)
452
+ if (items=='f_error_level'){
453
+ self.GetErrorLevel=array1
454
+ }else {
455
+ self.GetErrorType=array1
456
+ }
457
+ })
458
+
459
+ },
460
+ search(args) {
461
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
462
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
463
+ this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
464
+ console.log('1231321312312321')
465
+ /* if (this.endDate == '' || this.startDate == '') {
466
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
467
+ }*/
468
+ this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
469
+
470
+ args.condition = this.condition
471
+ this.model.search(args.condition, args.model)
472
+ },
473
+ SaveAsFile(str) {
474
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
475
+ if (res === 'confirm') {
476
+ let style = '<style>' +
477
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
478
+ let strHtml = style + document.getElementById(str).innerHTML;
479
+ console.log(strHtml);
480
+ let LODOP = getLodop();
481
+ LODOP.PRINT_INIT('');
482
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
483
+ LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
484
+ }
485
+ })
486
+ },
487
+ clearmsg() {
488
+ this.$refs.paged.$refs.cri.model = {}
489
+ },
490
+ close() {
491
+ this.show = false
492
+ },
493
+ // 显示柱状图
494
+ showEcharts() {
495
+ this.echarts = true
496
+ this.isActiveTotalForm = false
497
+ },
498
+ notShowTotalForm() {
499
+ this.echarts = false
500
+ this.isActiveTotalForm = false
501
+ },
502
+ // 不显示柱状图
503
+ notShowEcharts() {
504
+ this.echarts = false
505
+ this.isActiveTotalForm = false
506
+ },
507
+ // 显示汇总数据表格
508
+ showTotalForm() {
509
+ this.echarts = false
510
+ this.isActiveTotalForm = true
511
+ }
512
+ },
513
+ watch: {
514
+ 'data'(val) {
515
+ if (val.f_files_path) {
516
+ this.getFileContent(val.f_files_path)
517
+ } else {
518
+ this.reportStr = null
519
+ }
520
+ }
521
+ },
522
+ computed: {
523
+ // usertypes () {
524
+ // return this.$appdate.getParams("客户类型")
525
+ // },
526
+ getCondition() {
527
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
528
+ return {
529
+ condition: condition ,
530
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
531
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
532
+ }
533
+
534
+ },
535
+ usertypes() {
536
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
537
+ },
538
+ Gasproperties() {
539
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
540
+ },
541
+ abnormalstatus(){
542
+ return this.$getParams('异常状态', [{label: '全部', value: ''}])
543
+ }
544
+
545
+ }
546
+ }
547
+ </script>
548
+ <style>
549
+ .form-input-group label {
550
+ text-align: right;
551
+ width: auto;
552
+ }
553
+
554
+ .mystyle {
555
+ float: right;
556
+ padding-right: 10%;
557
+ }
558
+
559
+ .datapanel {
560
+ color: #333;
561
+ background-color: white;
562
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
563
+ padding: 10px 30px 10px 30px;
564
+ border-radius: 15px;
565
+ }
566
+ </style>