manage-client 3.2.65-aode → 3.2.66-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 (69) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  24. package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
  25. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  26. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  27. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  28. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  29. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  30. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  31. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  32. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  33. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  34. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  35. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  36. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  37. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  38. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  39. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  40. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  41. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  42. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  43. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  44. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  45. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  46. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  47. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  48. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  49. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  50. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  51. package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  53. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  54. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  55. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  56. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  57. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  58. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  59. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  60. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  61. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  63. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  66. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  67. package/src/components/webmeter/report/ReportList.vue +211 -211
  68. package/src/main.js +56 -56
  69. package/src/saleManage.js +4 -0
@@ -1,492 +1,492 @@
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
- <div class="col-sm-2 form-group">
59
- <label 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 class="font_normal_body">客户类型</label>
65
- <v-select style="width:60%" id="f_user_type"
66
- v-model="model.f_user_type"
67
- placeholder='客户类型'
68
- :value.sync="model.f_user_type"
69
- :options='$parent.$parent.usertypes'
70
- condition="f_user_type = '{}'"
71
- close-on-select>
72
- </v-select>
73
- </div>
74
- <div class="col-sm-2 form-group">
75
- <label class="font_normal_body">用气性质</label>
76
- <v-select style="width:60%" id="f_gasproperties"
77
- v-model="model.f_gasproperties"
78
- placeholder='用气性质'
79
- @keyup.enter="search"
80
- :value.sync="model.f_gasproperties"
81
- :options='$parent.$parent.Gasproperties'
82
- condition="f_gasproperties = '{}'"
83
- close-on-select>
84
- </v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">气表品牌</label>
88
- <v-select :value.sync="model.f_meter_brand"
89
- v-model="model.f_meter_brand"
90
- :options='$parent.$parent.meterbrands' placeholder='请选择'
91
- condition="f_meter_brand = '{}'"
92
- close-on-select></v-select>
93
- </div>
94
- <div class="col-sm-2 form-group">
95
- <label class="font_normal_body">上报区间</label>
96
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
97
- v-model="model.startDate"
98
- :value.sync="model.startDate"
99
- :disabled-days-of-Week="[]"
100
- :format="'yyyy-MM-dd HH:mm:ss'"
101
- condition="f_insert_date >= '{}'"
102
- :show-reset-button="reset">
103
- </datepicker>
104
- </div>
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
107
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
108
- v-model="model.endDate"
109
- :value.sync="model.endDate"
110
- :format="'yyyy-MM-dd HH:mm:ss'"
111
- :disabled-days-of-Week="[]"
112
- condition="f_insert_date <= '{}'"
113
- :show-reset-button="reset">
114
- </datepicker>
115
- </div>
116
- <div class="col-sm-2 form-group">
117
- <label class="font_normal_body">异常级别</label>
118
- <v-select style="width:60%"
119
- v-model="model.f_error_level"
120
- placeholder='异常级别'
121
- @change="$parent.$parent.getErrorInfo('f_error_type')"
122
- :value.sync="model.f_error_level"
123
- :options='$parent.$parent.GetErrorLevel'
124
- condition="f_error_level = '{}'"
125
- close-on-select>
126
- </v-select>
127
- </div>
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body">异常类型</label>
130
- <v-select style="width:60%"
131
- v-model="model.f_error_type"
132
- placeholder='异常类型'
133
- :value.sync="model.f_error_type"
134
- :options='$parent.$parent.GetErrorType'
135
- condition="f_error_type = '{}'"
136
- close-on-select>
137
- </v-select>
138
- </div>
139
-
140
-
141
-
142
- </div>
143
- </div>
144
- </criteria>
145
- <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
146
- <template partial='head'>
147
- <tr>
148
- <th style="text-align:center">
149
- <nobr>序号</nobr>
150
- </th>
151
- <th style="text-align:center">
152
- <nobr>客户编号</nobr>
153
- </th>
154
- <th style="text-align:center">
155
- <nobr>客户名称</nobr>
156
- </th>
157
- <th style="text-align:center">
158
- <nobr>客户地址</nobr>
159
- </th>
160
- <th style="text-align:center">
161
- <nobr>客户类型</nobr>
162
- </th>
163
- <th style="text-align:center">
164
- <nobr>用气性质</nobr>
165
- </th>
166
- <th style="text-align:center">
167
- <nobr>表号</nobr>
168
- </th>
169
- <th style="text-align:center">
170
- <nobr>气表品牌</nobr>
171
- </th>
172
- <th style="text-align:center">
173
- <nobr>异常时间</nobr>
174
- </th>
175
- <th style="text-align:center">
176
- <nobr>异常类型</nobr>
177
- </th>
178
- <th style="text-align:center">
179
- <nobr>异常级别</nobr>
180
- </th>
181
- <th style="text-align:center">
182
- <nobr>异常描述</nobr>
183
- </th>
184
- <th style="text-align:center">
185
- <nobr>组织机构</nobr>
186
- </th>
187
-
188
- </tr>
189
-
190
- </template>
191
- <template partial='body'>
192
- <td style="text-align:center">
193
- <nobr>{{$index+1}}</nobr>
194
- </td>
195
- <td style="text-align: center;"><nobr>
196
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
197
- </nobr> </td>
198
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
199
- <td>
200
- <nobr>{{row.f_address}}</nobr>
201
- </td>
202
- <td style="text-align:center">{{row.f_user_type}}</td>
203
- <td style="text-align:center">{{row.f_gasproperties}}</td>
204
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
205
- <td style="text-align:center">
206
- <nobr>{{row.f_meter_brand}}</nobr>
207
- </td>
208
- <td style="text-align:center">
209
- <nobr>{{row.f_insert_date}}</nobr>
210
- </td>
211
- <td style="text-align:center">
212
- <nobr>{{row.f_error_type}}</nobr>
213
- </td>
214
- <td style="text-align:center">
215
- <nobr>{{row.f_error_level}}</nobr>
216
- </td>
217
- <td style="text-align:center">
218
- <nobr>{{row.f_error_msg}}</nobr>
219
- </td>
220
- <td style="text-align:center">
221
- <nobr>{{row.f_orgname}}</nobr>
222
- </td>
223
- </template>
224
- </data-grid>
225
- </criteria-paged>
226
- </div>
227
- <!--<div style="height: 40px;width: 100%;" v-show="echarts">
228
- <div style="display: inline-block;width: 20%;">
229
- <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
230
- <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
231
- </div>
232
- &lt;!&ndash;图显示模板&ndash;&gt;
233
- <div class="mystyle" style="display: inline-block;" >
234
- <label class="font_normal_body">图表统计项</label>
235
- <v-select style="width:60%" id="groupname" v-model="groupname"
236
- placeholder='分组项'
237
- value-single="true"
238
- :value.sync="groupname"
239
- :options='getgroupname'
240
- close-on-select></v-select>
241
- </div>
242
- </div>
243
- <div v-show="echarts" style="width: 100%;height: 90%;">
244
- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
245
- :enddate="endDate" :echarts="echarts"></new-exception-echarts>
246
- </div>
247
- <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
248
- <new-exception-eform-total :condition="condition" :startdate="startDate"
249
- :enddate="endDate"></new-exception-eform-total>
250
- </div>-->
251
- </div>
252
- <div class="basic-main" v-if="showdetail">
253
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
254
- </div>
255
- </template>
256
-
257
- <script>
258
- import {HttpResetClass, PagedList} from 'vue-client'
259
- import * as Util from '../../../../Util'
260
- import getLodop from '../../../../plugins/LodopFuncs'
261
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
262
-
263
- let readySomething = async function (self) {
264
- await self.$MagLoadParams.loadParam()
265
- self.initParams()
266
- }
267
- export default {
268
- title: '异常查看',
269
- props: ['data'],
270
- data() {
271
- return {
272
- model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
273
- reportStr: null,
274
- show: false,
275
- startDate: '',
276
- endDate: '',
277
- meterbrands: [],
278
- f_error_type:'',
279
- groupname: ['year'],
280
- getgroupname: [
281
- {label: '年份', value: 'year'},
282
- {label: '月份', value: 'month'},
283
- {label: '周', value: 'week'},
284
- {label: '日', value: 'day'}
285
- ],
286
- getfield:{
287
- "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
288
- "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
289
- "f_error_msg":"异常描述","f_orgname":"组织机构"
290
- },
291
- outlets: [],
292
- operator: [],
293
- showdetail:false,
294
- rowdata:{},
295
- filename: '',
296
- criteriaShow: false,
297
- echarts: false,
298
- searchshow: false,
299
- isActiveTotalForm: false,
300
- GetErrorLevel:[],
301
- GetErrorType:[],
302
- condition: '1=1',
303
- org:[this.$login.f.orgid],
304
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
305
- }
306
- },
307
- ready() {
308
- readySomething(this)
309
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
310
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
311
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
312
- this.getErrorInfo('f_error_level')
313
- // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
314
- this.$refs.paged.$refs.cri.search()
315
-
316
- },
317
- methods: {
318
- showmsg(obj){
319
- this.rowdata=obj
320
- this.showdetail=true
321
- },
322
- cancel() {
323
- this.showdetail = false
324
- },
325
- getorg(obj) {
326
- if (obj.resids.length>0) {
327
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
328
- }else
329
- {
330
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
331
- }
332
- },
333
- initParams () {
334
- let arr = []
335
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
336
- let temp = {}
337
- if(item.value.f_meter_type==='物联网表'){
338
- temp.label = item.label
339
- temp.value = item.value.f_meter_brand
340
- arr.push(temp )
341
- }
342
-
343
- })
344
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
345
- },
346
- hidden(){
347
- this.criteriaShow = !this.criteriaShow
348
- },
349
- clickshow() {
350
- this.searchshow = !this.searchshow
351
- },
352
- getErrorInfo(items){
353
- let self = this
354
- let f_error_level=''
355
- if (items!='f_error_level') {
356
- if(this.$refs.paged.$refs.cri.model.f_error_level){
357
- f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
358
- }
359
- }
360
- let load = new HttpResetClass()
361
- load.load('POST', 'rs/sql/singleTableParam', {
362
- data: {
363
- items:items+' f_type',
364
- tablename:'t_exception',
365
- condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
366
- }
367
- },{warnMsg:null,resolveMsg:null}).then((res) => {
368
- let i = 0
369
- let rows=res.data
370
- let array1=[]
371
- array1.push({label: '全部', value: ''})
372
- console.log("rows========",rows)
373
- for (i = 0; i < rows.length; i++) {
374
- let dr = {label: '全部', value: ''}
375
- dr.label=rows[i].f_type
376
- dr.value=rows[i].f_type
377
- array1.push(dr)
378
- console.log("rows[i]========",rows[i],dr)
379
- }
380
- console.log("array1========",array1)
381
- if (items=='f_error_level'){
382
- self.GetErrorLevel=array1
383
- }else {
384
- self.GetErrorType=array1
385
- }
386
- })
387
-
388
- },
389
- search(args) {
390
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
391
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
392
- this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
393
- console.log('1231321312312321')
394
- /* if (this.endDate == '' || this.startDate == '') {
395
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
396
- }*/
397
- this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
398
-
399
- args.condition = this.condition
400
- this.model.search(args.condition, args.model)
401
- },
402
- SaveAsFile(str) {
403
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
404
- if (res === 'confirm') {
405
- let style = '<style>' +
406
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
407
- let strHtml = style + document.getElementById(str).innerHTML;
408
- console.log(strHtml);
409
- let LODOP = getLodop();
410
- LODOP.PRINT_INIT('');
411
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
412
- LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
413
- }
414
- })
415
- },
416
- clearmsg() {
417
- this.$refs.paged.$refs.cri.model = {}
418
- },
419
- close() {
420
- this.show = false
421
- },
422
- // 显示柱状图
423
- showEcharts() {
424
- this.echarts = true
425
- this.isActiveTotalForm = false
426
- },
427
- notShowTotalForm() {
428
- this.echarts = false
429
- this.isActiveTotalForm = false
430
- },
431
- // 不显示柱状图
432
- notShowEcharts() {
433
- this.echarts = false
434
- this.isActiveTotalForm = false
435
- },
436
- // 显示汇总数据表格
437
- showTotalForm() {
438
- this.echarts = false
439
- this.isActiveTotalForm = true
440
- }
441
- },
442
- watch: {
443
- 'data'(val) {
444
- if (val.f_files_path) {
445
- this.getFileContent(val.f_files_path)
446
- } else {
447
- this.reportStr = null
448
- }
449
- }
450
- },
451
- computed: {
452
- // usertypes () {
453
- // return this.$appdate.getParams("客户类型")
454
- // },
455
- getCondition() {
456
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
457
- return {
458
- condition: condition ,
459
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
460
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
461
- }
462
-
463
- },
464
- usertypes() {
465
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
466
- },
467
- Gasproperties() {
468
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
469
- }
470
-
471
- }
472
- }
473
- </script>
474
- <style>
475
- .form-input-group label {
476
- text-align: right;
477
- width: auto;
478
- }
479
-
480
- .mystyle {
481
- float: right;
482
- padding-right: 10%;
483
- }
484
-
485
- .datapanel {
486
- color: #333;
487
- background-color: white;
488
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
489
- padding: 10px 30px 10px 30px;
490
- border-radius: 15px;
491
- }
492
- </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
+ <div class="col-sm-2 form-group">
59
+ <label 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 class="font_normal_body">客户类型</label>
65
+ <v-select style="width:60%" id="f_user_type"
66
+ v-model="model.f_user_type"
67
+ placeholder='客户类型'
68
+ :value.sync="model.f_user_type"
69
+ :options='$parent.$parent.usertypes'
70
+ condition="f_user_type = '{}'"
71
+ close-on-select>
72
+ </v-select>
73
+ </div>
74
+ <div class="col-sm-2 form-group">
75
+ <label class="font_normal_body">用气性质</label>
76
+ <v-select style="width:60%" id="f_gasproperties"
77
+ v-model="model.f_gasproperties"
78
+ placeholder='用气性质'
79
+ @keyup.enter="search"
80
+ :value.sync="model.f_gasproperties"
81
+ :options='$parent.$parent.Gasproperties'
82
+ condition="f_gasproperties = '{}'"
83
+ close-on-select>
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">气表品牌</label>
88
+ <v-select :value.sync="model.f_meter_brand"
89
+ v-model="model.f_meter_brand"
90
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
91
+ condition="f_meter_brand = '{}'"
92
+ close-on-select></v-select>
93
+ </div>
94
+ <div class="col-sm-2 form-group">
95
+ <label class="font_normal_body">上报区间</label>
96
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
97
+ v-model="model.startDate"
98
+ :value.sync="model.startDate"
99
+ :disabled-days-of-Week="[]"
100
+ :format="'yyyy-MM-dd HH:mm:ss'"
101
+ condition="f_insert_date >= '{}'"
102
+ :show-reset-button="reset">
103
+ </datepicker>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
107
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
108
+ v-model="model.endDate"
109
+ :value.sync="model.endDate"
110
+ :format="'yyyy-MM-dd HH:mm:ss'"
111
+ :disabled-days-of-Week="[]"
112
+ condition="f_insert_date <= '{}'"
113
+ :show-reset-button="reset">
114
+ </datepicker>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">异常级别</label>
118
+ <v-select style="width:60%"
119
+ v-model="model.f_error_level"
120
+ placeholder='异常级别'
121
+ @change="$parent.$parent.getErrorInfo('f_error_type')"
122
+ :value.sync="model.f_error_level"
123
+ :options='$parent.$parent.GetErrorLevel'
124
+ condition="f_error_level = '{}'"
125
+ close-on-select>
126
+ </v-select>
127
+ </div>
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">异常类型</label>
130
+ <v-select style="width:60%"
131
+ v-model="model.f_error_type"
132
+ placeholder='异常类型'
133
+ :value.sync="model.f_error_type"
134
+ :options='$parent.$parent.GetErrorType'
135
+ condition="f_error_type = '{}'"
136
+ close-on-select>
137
+ </v-select>
138
+ </div>
139
+
140
+
141
+
142
+ </div>
143
+ </div>
144
+ </criteria>
145
+ <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
146
+ <template partial='head'>
147
+ <tr>
148
+ <th style="text-align:center">
149
+ <nobr>序号</nobr>
150
+ </th>
151
+ <th style="text-align:center">
152
+ <nobr>客户编号</nobr>
153
+ </th>
154
+ <th style="text-align:center">
155
+ <nobr>客户名称</nobr>
156
+ </th>
157
+ <th style="text-align:center">
158
+ <nobr>客户地址</nobr>
159
+ </th>
160
+ <th style="text-align:center">
161
+ <nobr>客户类型</nobr>
162
+ </th>
163
+ <th style="text-align:center">
164
+ <nobr>用气性质</nobr>
165
+ </th>
166
+ <th style="text-align:center">
167
+ <nobr>表号</nobr>
168
+ </th>
169
+ <th style="text-align:center">
170
+ <nobr>气表品牌</nobr>
171
+ </th>
172
+ <th style="text-align:center">
173
+ <nobr>异常时间</nobr>
174
+ </th>
175
+ <th style="text-align:center">
176
+ <nobr>异常类型</nobr>
177
+ </th>
178
+ <th style="text-align:center">
179
+ <nobr>异常级别</nobr>
180
+ </th>
181
+ <th style="text-align:center">
182
+ <nobr>异常描述</nobr>
183
+ </th>
184
+ <th style="text-align:center">
185
+ <nobr>组织机构</nobr>
186
+ </th>
187
+
188
+ </tr>
189
+
190
+ </template>
191
+ <template partial='body'>
192
+ <td style="text-align:center">
193
+ <nobr>{{$index+1}}</nobr>
194
+ </td>
195
+ <td style="text-align: center;"><nobr>
196
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
197
+ </nobr> </td>
198
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
199
+ <td>
200
+ <nobr>{{row.f_address}}</nobr>
201
+ </td>
202
+ <td style="text-align:center">{{row.f_user_type}}</td>
203
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
204
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
205
+ <td style="text-align:center">
206
+ <nobr>{{row.f_meter_brand}}</nobr>
207
+ </td>
208
+ <td style="text-align:center">
209
+ <nobr>{{row.f_insert_date}}</nobr>
210
+ </td>
211
+ <td style="text-align:center">
212
+ <nobr>{{row.f_error_type}}</nobr>
213
+ </td>
214
+ <td style="text-align:center">
215
+ <nobr>{{row.f_error_level}}</nobr>
216
+ </td>
217
+ <td style="text-align:center">
218
+ <nobr>{{row.f_error_msg}}</nobr>
219
+ </td>
220
+ <td style="text-align:center">
221
+ <nobr>{{row.f_orgname}}</nobr>
222
+ </td>
223
+ </template>
224
+ </data-grid>
225
+ </criteria-paged>
226
+ </div>
227
+ <!--<div style="height: 40px;width: 100%;" v-show="echarts">
228
+ <div style="display: inline-block;width: 20%;">
229
+ <button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
230
+ <button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
231
+ </div>
232
+ &lt;!&ndash;图显示模板&ndash;&gt;
233
+ <div class="mystyle" style="display: inline-block;" >
234
+ <label class="font_normal_body">图表统计项</label>
235
+ <v-select style="width:60%" id="groupname" v-model="groupname"
236
+ placeholder='分组项'
237
+ value-single="true"
238
+ :value.sync="groupname"
239
+ :options='getgroupname'
240
+ close-on-select></v-select>
241
+ </div>
242
+ </div>
243
+ <div v-show="echarts" style="width: 100%;height: 90%;">
244
+ <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
245
+ :enddate="endDate" :echarts="echarts"></new-exception-echarts>
246
+ </div>
247
+ <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
248
+ <new-exception-eform-total :condition="condition" :startdate="startDate"
249
+ :enddate="endDate"></new-exception-eform-total>
250
+ </div>-->
251
+ </div>
252
+ <div class="basic-main" v-if="showdetail">
253
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
254
+ </div>
255
+ </template>
256
+
257
+ <script>
258
+ import {HttpResetClass, PagedList} from 'vue-client'
259
+ import * as Util from '../../../../Util'
260
+ import getLodop from '../../../../plugins/LodopFuncs'
261
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
262
+
263
+ let readySomething = async function (self) {
264
+ await self.$MagLoadParams.loadParam()
265
+ self.initParams()
266
+ }
267
+ export default {
268
+ title: '异常查看',
269
+ props: ['data'],
270
+ data() {
271
+ return {
272
+ model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
273
+ reportStr: null,
274
+ show: false,
275
+ startDate: '',
276
+ endDate: '',
277
+ meterbrands: [],
278
+ f_error_type:'',
279
+ groupname: ['year'],
280
+ getgroupname: [
281
+ {label: '年份', value: 'year'},
282
+ {label: '月份', value: 'month'},
283
+ {label: '周', value: 'week'},
284
+ {label: '日', value: 'day'}
285
+ ],
286
+ getfield:{
287
+ "f_userinfo_code":"客户编号", "f_user_name":"客户名称", "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
288
+ "f_meternumber":"表号","f_meter_brand":"气表品牌","f_insert_date":"上报时间","f_error_level":"异常级别","f_error_type":"异常类型",
289
+ "f_error_msg":"异常描述","f_orgname":"组织机构"
290
+ },
291
+ outlets: [],
292
+ operator: [],
293
+ showdetail:false,
294
+ rowdata:{},
295
+ filename: '',
296
+ criteriaShow: false,
297
+ echarts: false,
298
+ searchshow: false,
299
+ isActiveTotalForm: false,
300
+ GetErrorLevel:[],
301
+ GetErrorType:[],
302
+ condition: '1=1',
303
+ org:[this.$login.f.orgid],
304
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
305
+ }
306
+ },
307
+ ready() {
308
+ readySomething(this)
309
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
310
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
311
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
312
+ this.getErrorInfo('f_error_level')
313
+ // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
314
+ this.$refs.paged.$refs.cri.search()
315
+
316
+ },
317
+ methods: {
318
+ showmsg(obj){
319
+ this.rowdata=obj
320
+ this.showdetail=true
321
+ },
322
+ cancel() {
323
+ this.showdetail = false
324
+ },
325
+ getorg(obj) {
326
+ if (obj.resids.length>0) {
327
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
328
+ }else
329
+ {
330
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
331
+ }
332
+ },
333
+ initParams () {
334
+ let arr = []
335
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
336
+ let temp = {}
337
+ if(item.value.f_meter_type==='物联网表'){
338
+ temp.label = item.label
339
+ temp.value = item.value.f_meter_brand
340
+ arr.push(temp )
341
+ }
342
+
343
+ })
344
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
345
+ },
346
+ hidden(){
347
+ this.criteriaShow = !this.criteriaShow
348
+ },
349
+ clickshow() {
350
+ this.searchshow = !this.searchshow
351
+ },
352
+ getErrorInfo(items){
353
+ let self = this
354
+ let f_error_level=''
355
+ if (items!='f_error_level') {
356
+ if(this.$refs.paged.$refs.cri.model.f_error_level){
357
+ f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
358
+ }
359
+ }
360
+ let load = new HttpResetClass()
361
+ load.load('POST', 'rs/sql/singleTableParam', {
362
+ data: {
363
+ items:items+' f_type',
364
+ tablename:'t_exception',
365
+ condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
366
+ }
367
+ },{warnMsg:null,resolveMsg:null}).then((res) => {
368
+ let i = 0
369
+ let rows=res.data
370
+ let array1=[]
371
+ array1.push({label: '全部', value: ''})
372
+ console.log("rows========",rows)
373
+ for (i = 0; i < rows.length; i++) {
374
+ let dr = {label: '全部', value: ''}
375
+ dr.label=rows[i].f_type
376
+ dr.value=rows[i].f_type
377
+ array1.push(dr)
378
+ console.log("rows[i]========",rows[i],dr)
379
+ }
380
+ console.log("array1========",array1)
381
+ if (items=='f_error_level'){
382
+ self.GetErrorLevel=array1
383
+ }else {
384
+ self.GetErrorType=array1
385
+ }
386
+ })
387
+
388
+ },
389
+ search(args) {
390
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
391
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
392
+ this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
393
+ console.log('1231321312312321')
394
+ /* if (this.endDate == '' || this.startDate == '') {
395
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
396
+ }*/
397
+ this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
398
+
399
+ args.condition = this.condition
400
+ this.model.search(args.condition, args.model)
401
+ },
402
+ SaveAsFile(str) {
403
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
404
+ if (res === 'confirm') {
405
+ let style = '<style>' +
406
+ 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
407
+ let strHtml = style + document.getElementById(str).innerHTML;
408
+ console.log(strHtml);
409
+ let LODOP = getLodop();
410
+ LODOP.PRINT_INIT('');
411
+ LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
412
+ LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
413
+ }
414
+ })
415
+ },
416
+ clearmsg() {
417
+ this.$refs.paged.$refs.cri.model = {}
418
+ },
419
+ close() {
420
+ this.show = false
421
+ },
422
+ // 显示柱状图
423
+ showEcharts() {
424
+ this.echarts = true
425
+ this.isActiveTotalForm = false
426
+ },
427
+ notShowTotalForm() {
428
+ this.echarts = false
429
+ this.isActiveTotalForm = false
430
+ },
431
+ // 不显示柱状图
432
+ notShowEcharts() {
433
+ this.echarts = false
434
+ this.isActiveTotalForm = false
435
+ },
436
+ // 显示汇总数据表格
437
+ showTotalForm() {
438
+ this.echarts = false
439
+ this.isActiveTotalForm = true
440
+ }
441
+ },
442
+ watch: {
443
+ 'data'(val) {
444
+ if (val.f_files_path) {
445
+ this.getFileContent(val.f_files_path)
446
+ } else {
447
+ this.reportStr = null
448
+ }
449
+ }
450
+ },
451
+ computed: {
452
+ // usertypes () {
453
+ // return this.$appdate.getParams("客户类型")
454
+ // },
455
+ getCondition() {
456
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
457
+ return {
458
+ condition: condition ,
459
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
460
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
461
+ }
462
+
463
+ },
464
+ usertypes() {
465
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
466
+ },
467
+ Gasproperties() {
468
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
469
+ }
470
+
471
+ }
472
+ }
473
+ </script>
474
+ <style>
475
+ .form-input-group label {
476
+ text-align: right;
477
+ width: auto;
478
+ }
479
+
480
+ .mystyle {
481
+ float: right;
482
+ padding-right: 10%;
483
+ }
484
+
485
+ .datapanel {
486
+ color: #333;
487
+ background-color: white;
488
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
489
+ padding: 10px 30px 10px 30px;
490
+ border-radius: 15px;
491
+ }
492
+ </style>