manage-client 3.3.1 → 3.3.2

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 (51) hide show
  1. package/build/dev-server.js +180 -180
  2. package/lib/package_2022-12-01-14-30-50.json +109 -0
  3. package/package.json +1 -1
  4. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  5. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  6. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  7. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  8. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  14. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  15. package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
  16. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  17. package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
  18. package/src/filiale/shanxian/UserQuery.vue +959 -959
  19. package/src/filiale/shanxian/sale.js +26 -26
  20. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  21. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  22. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  23. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  24. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  25. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  26. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  27. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  28. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  29. package/src/filiale/wenxi/MeterQuery.vue +964 -964
  30. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  31. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  32. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  33. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  34. package/src/filiale/wenxi/sale.js +24 -24
  35. package/src/filiale/wenxi/webmeterManage.js +13 -13
  36. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  37. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  38. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  39. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  40. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  41. package/src/filiale/xinkang/reportManage.js +15 -15
  42. package/src/filiale/xinkang/sale.js +13 -13
  43. package/src/filiale/xinkang/webmeterManage.js +9 -9
  44. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  45. package/src/main.js +72 -66
  46. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  47. package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
  48. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  49. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  50. package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
  51. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
@@ -1,583 +1,583 @@
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" novalidate partial>
7
- <div class="row">
8
- <!--<div class="form-group">-->
9
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
- <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
- <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
- <!--</div>-->
13
-
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
- v-model="model.f_userinfo_code" placeholder='客户编号'
18
- condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
- >
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">客户名称</label>
23
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
- v-model="model.f_user_name" placeholder='客户名称'
25
- condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
- >
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户地址</label>
30
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
- placeholder='地址'
32
- condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
- >
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
- v-model="model.f_meternumber" placeholder='表号'
39
- condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
- >
41
- </div>
42
-
43
- <div style="float:right">
44
- <button class="button_search button_spacing" @click="search()">查询</button>
45
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
46
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
47
- :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
48
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserLoseQuery" template-name='用户失联查询'
49
- :choose-col="true"></export-excel>
50
- <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
- <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
- <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
53
- <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>
54
- </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
- <right-tree @re-res="$parent.$parent.getorg"
60
- :initresid='$parent.$parent.org'></right-tree>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户类型</label>
64
- <v-select style="width:60%" id="f_user_type"
65
- v-model="model.f_user_type"
66
- placeholder='客户类型'
67
- :value.sync="model.f_user_type"
68
- :options='$parent.$parent.usertypes'
69
- condition="f_user_type = '{}'"
70
- close-on-select>
71
- </v-select>
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">用气性质</label>
75
- <v-select style="width:60%" id="f_gasproperties"
76
- v-model="model.f_gasproperties"
77
- placeholder='用气性质'
78
- :value.sync="model.f_gasproperties"
79
- :options='$parent.$parent.Gasproperties'
80
- condition="f_gasproperties = '{}'"
81
- close-on-select>
82
- </v-select>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">气表品牌</label>
86
- <v-select
87
- placeholder='气表品牌'
88
- :value.sync="model.f_meter_brand"
89
- v-model="model.f_meter_brand"
90
- :options='$parent.$parent.WarningType'
91
- @change="$parent.$parent.getMeterType"
92
- close-on-select
93
- condition="f_meter_brand='{}'">
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group" >
97
- <label class="font_normal_body">气表型号</label>
98
- <v-select v-if="$parent.$parent.styles"
99
- placeholder='气表型号'
100
- :value.sync="model.f_meter_style"
101
- v-model="model.f_meter_style"
102
- :options='$parent.$parent.Warningstyle'
103
- close-on-select
104
- condition="f_meter_style='{}'">
105
- </v-select>
106
- <v-select v-if="!$parent.$parent.styles"
107
- placeholder='气表型号'
108
- :value.sync="model.f_meter_style"
109
- v-model="model.f_meter_style"
110
- :options='$parent.$parent.Warningstyles'
111
- close-on-select
112
- condition="f_meter_style='{}'">
113
- </v-select>
114
- </div>
115
- <div class="col-sm-2 form-group">
116
- <label class="font_normal_body">用户状态</label>
117
- <v-select
118
- placeholder='正常'
119
- style="width:60%"
120
- :value.sync="f_user_state"
121
- close-on-select condition="f_user_state ='{}'">
122
- </v-select>
123
- </div>
124
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
125
- <label class="font_normal_body">失联天数&nbsp;</label>
126
- <div class="row">
127
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
128
- condition="SLday >= {} " placeholder="">
129
- <label class="font_normal_body"> ≤ x ≤ </label>
130
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
131
- condition="SLday <= {} " placeholder="">
132
- </div>
133
- </div>
134
- <div class="col-sm-2 form-group ">
135
- <label for="contain_newfile" class="font_normal_body">开户未上报</label>
136
- <v-select id="contain_newfile"
137
- v-model="model.notappear"
138
- style="width:60%"
139
- :value.sync="model.notappear"
140
- :options='$parent.$parent.not_appear'
141
- :value-single="true"
142
- close-on-select>
143
- </v-select>
144
- </div>
145
-
146
- </div>
147
-
148
-
149
-
150
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
151
- <!--:thead='"<th>序号</th>\n"+-->
152
- <!--"<th>档案编号</th>" +-->
153
- <!--" <th>档案标识</th>"+-->
154
- <!--"<th>客户名称</th>"+-->
155
- <!--"<th>表号</th"+-->
156
- <!--"<th>表具类型</th>"+-->
157
- <!--"<th>客户类型</th>"+-->
158
- <!--"<th>区域</th>"+-->
159
- <!--"<th>小区</th>"+-->
160
- <!--"<th>地址</th>"+-->
161
- <!--"<th>用气气量</th>"+-->
162
- <!--"<th>用气金额</th>"-->
163
- <!--+"<th>用气价格</th>"-->
164
- <!--+"<th>时间</th>"-->
165
- <!--+"<th>所属机构</th>"'-->
166
- <!--: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"]'>-->
167
- <!--</print-table>-->
168
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
169
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
170
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
171
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
172
-
173
- </div>
174
- </criteria>
175
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
176
- <template partial='head'>
177
- <tr>
178
- <th style="text-align:center">
179
- <nobr>序号</nobr>
180
- </th>
181
-
182
- <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
183
-
184
- <th style="text-align:center">
185
- <nobr>客户编号</nobr>
186
- </th>
187
- <th style="text-align:center">
188
- <nobr>客户名称</nobr>
189
- </th>
190
- <th style="text-align:center">
191
- <nobr>客户地址</nobr>
192
- </th>
193
- <th style="text-align:center">
194
- <nobr>客户类型</nobr>
195
- </th>
196
- <th style="text-align:center">
197
- <nobr>用气性质</nobr>
198
- </th>
199
- <th style="text-align:center">
200
- <nobr>联系电话</nobr>
201
- </th>
202
- <th style="text-align:center">
203
- <nobr>系统金额</nobr>
204
- </th>
205
- <th style="text-align:center">
206
- <nobr>表号</nobr>
207
- </th>
208
- <th style="text-align:center">
209
- <nobr>启用日期</nobr>
210
- </th>
211
-
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
-
222
- <th style="text-align:center" >
223
- <nobr>失联天数</nobr>
224
- </th>
225
- <th style="text-align:center" >
226
- <nobr>气表厂家</nobr>
227
- </th>
228
- <th style="text-align:center" >
229
- <nobr>气表型号</nobr>
230
- </th>
231
- <th style="text-align:center" >
232
- <nobr>用户状态</nobr>
233
- </th>
234
- <th style="text-align:center" >
235
- <nobr>组织机构</nobr>
236
- </th>
237
- </tr>
238
-
239
- </template>
240
- <template partial='body'>
241
- <td style="text-align:center">{{$index+1}}</td>
242
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
243
-
244
-
245
- <td style="text-align: center;"><nobr>
246
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
247
- </nobr> </td>
248
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
249
- <td>
250
- <nobr>{{row.f_address}}</nobr>
251
- </td>
252
- <td style="text-align:center">{{row.f_user_type}}</td>
253
- <td style="text-align:center">{{row.f_gasproperties}}</td>
254
- <td style="text-align:center">{{row.f_user_phone}}</td>
255
- <td style="text-align:center">{{row.f_balance_amount}}</td>
256
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
257
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
258
- <td style="text-align:center">
259
- <nobr>{{row.initinsertdate}}</nobr>
260
- </td> <td style="text-align:center">
261
- <nobr>{{row.lastinsertdate}}</nobr>
262
- </td>
263
- <td style="text-align:center">{{row.f_meter_base}}</td>
264
-
265
- <td style="text-align:center">
266
- <nobr>{{row.slday}}</nobr>
267
- </td>
268
- <td style="text-align:center">{{row.f_meter_brand}}</td>
269
- <td style="text-align:center">
270
- <nobr>{{row.f_meter_style}}</nobr>
271
- </td>
272
- <td style="text-align:center">
273
- <nobr>{{row.f_user_state}}</nobr>
274
- </td>
275
- <td style="text-align:center">
276
- <nobr>{{row.f_orgname}}</nobr>
277
- </td>
278
- <!--<td style="text-align:center">{{row.new_days}}</td>-->
279
- <!--<td style="text-align:center">{{row.f_state}}</td>-->
280
-
281
- </template>
282
- </data-grid>
283
- </criteria-paged>
284
-
285
- </div>
286
- <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
287
- <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
288
- <!-- :echarts="echarts"></lost-contact-echarts>-->
289
- <!-- </div>-->
290
- <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
291
- <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
292
- <!--&lt;!&ndash; </div>&ndash;&gt;-->
293
- <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
294
- <!-- <lost-contact-eform :condition="condition"-->
295
- <!-- ></lost-contact-eform>-->
296
- <!-- </div>-->
297
- </div>
298
- <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
299
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
300
- </div>
301
- </template>
302
-
303
- <script>
304
- import {PagedList} from 'vue-client'
305
- import UserGasEcharts from '../../components/webmeter/DrillData/UserGasEcharts'
306
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
307
- import {HttpResetClass} from 'vue-client'
308
- let readySomething = async function (self) {
309
-
310
- await self.$MagLoadParams.loadParam()
311
- self.initParams()
312
- self.$refs.paged.$refs.cri.model.notappear='不包含'
313
- self.$refs.paged.$refs.cri.model.SLday1=10
314
- self.$refs.paged.$refs.cri.model.f_user_state='正常'
315
- self.$refs.paged.$refs.cri.search()
316
- }
317
- export default {
318
- title: '失联分析',
319
- props: ['data'],
320
- components: {UserGasEcharts},
321
-
322
- data() {
323
- return {
324
- model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
325
- getfield:{
326
- "f_userinfo_code":"客户编号","f_user_name":"客户名称","f_residential_area":"小区",
327
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
328
- "f_meternumber":"表号",
329
- "f_user_phone":"联系电话",
330
- "f_balance_amount":"系统余额",
331
-
332
- "f_startuse_date":"启用日期",
333
- "initinsertdate":"初次上报日期",
334
- "lastinsertdate":"最后上报日期",
335
- "f_meter_base":"最后表读数",
336
- "slday":"失联天数",
337
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
338
- reportStr: null,
339
- show: false,
340
- showdetail:false,
341
- rowdata:{},
342
- criteriaShow:false,
343
- outlets: [],
344
- operator: [],
345
- filename: '',
346
- WarningType: [
347
- {label: '全部', value: ''}
348
- ],
349
- Warningstyles: [
350
- {label: '全部', value: ''}
351
- ],
352
- styles:false,
353
- org:[this.$login.f.orgid],
354
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
355
- echarts: false,
356
- searchshow: false,
357
- isActiveTotalForm: false,
358
- condition: '1=1',
359
- groupname: ['max_days_type'],
360
- getgroupname: [
361
- {label: '客户类型', value: 'f_user_type'},
362
- {label: '用气性质', value: 'f_gasproperties'},
363
- {label: '分公司', value: 'f_orgname'},
364
- {label: '最长失联天数', value: 'max_days_type'},
365
- ],
366
- f_user_state:'正常'
367
- }
368
- },
369
- ready() {
370
- readySomething(this)
371
- this.getMeterTypeAndBrand('f_meter_brand', '1=1 and gb.f_meter_type = \'物联网表\'')
372
- },
373
-
374
- methods: {
375
- getMeterType() {
376
- this.Warningstyle = [{label: '全部', value: ''}]
377
- this.styles = false
378
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
379
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
380
- },
381
- getMeterTypeAndBrand(groupname, condition) {
382
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
383
- let self = this
384
- let load = new HttpResetClass()
385
- load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
386
- data: {
387
- condition: condition,
388
- groupname: groupname
389
- }
390
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
391
- for (let i = 0; i < res.data.length; i++) {
392
- if (groupname == 'f_meter_brand') {
393
- let dr = {}
394
- dr.label = res.data[i].f_meter_brand
395
- dr.value = res.data[i].f_meter_brand
396
- //气表品牌
397
- self.WarningType.push(dr)
398
- } else if (groupname == 'f_meter_style') {
399
- self.Warningstyle= [
400
- {label: '全部', value: ''}
401
- ],
402
- self.$refs.paged.$refs.cri.model.f_meter_style=''
403
- let dr = {}
404
- dr.label = res.data[i].f_meter_style
405
- dr.value = res.data[i].f_meter_style
406
- //气表类型
407
- self.Warningstyle.push(dr)
408
- }
409
- }
410
- if (self.Warningstyle.length > 1) {
411
- self.showMeterStyle()
412
- }
413
- })
414
-
415
- },
416
- showMeterStyle() {
417
- this.styles = true
418
- },
419
- hidden(){
420
- this.criteriaShow = !this.criteriaShow
421
- },
422
- showmsg(obj){
423
- this.rowdata=obj
424
- this.showdetail=true
425
- },
426
- cancel() {
427
- this.showdetail = false
428
- },
429
- clickshow() {
430
- this.searchshow = !this.searchshow
431
- },
432
- search(args) {
433
- this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
434
- args.condition = this.condition
435
- if(this.$refs.paged.$refs.cri.model.notappear) {
436
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
437
- args.condition = args.condition + " and initinsertdate <> '开户未上报'"
438
- }
439
- }
440
- this.model.search(args.condition, args.model)
441
- },
442
- getorg(obj) {
443
- if (obj.resids.length>0) {
444
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
445
- }else
446
- {
447
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
448
- }
449
- },
450
- // SaveAsFile(str) {
451
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
452
- // if (res === 'confirm') {
453
- // let style = '<style>' +
454
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
455
- // let strHtml = style + document.getElementById(str).innerHTML;
456
- // console.log(strHtml);
457
- // let LODOP = getLodop();
458
- // LODOP.PRINT_INIT('');
459
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
460
- // LODOP.SAVE_TO_FILE('失联分析.xls')
461
- // }
462
- // })
463
- // },
464
- clearmsg() {
465
- this.$refs.paged.$refs.cri.model = {}
466
- },
467
- close() {
468
- this.show = false
469
- },
470
- initParams () {
471
- let arr = []
472
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
473
- let temp = {}
474
- if(item.value.f_meter_type==='物联网表'){
475
- temp.label = item.label
476
- temp.value = item.value.f_meter_brand
477
- arr.push(temp )
478
- }
479
-
480
- })
481
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
482
- },
483
- // 显示柱状图
484
- showEcharts() {
485
- this.echarts = true
486
- this.isActiveTotalForm = false
487
- },
488
- notShowTotalForm() {
489
- this.echarts = false
490
- this.isActiveTotalForm = false
491
- },
492
- // 不显示柱状图
493
- notShowEcharts() {
494
- this.echarts = false
495
- this.isActiveTotalForm = false
496
- },
497
- // 显示汇总数据表格
498
- showTotalForm() {
499
- this.echarts = false
500
- this.isActiveTotalForm = true
501
- }
502
- },
503
- watch: {
504
- 'data'(val) {
505
- if (val.f_files_path) {
506
- this.getFileContent(val.f_files_path)
507
- } else {
508
- this.reportStr = null
509
- }
510
- }
511
- },
512
- computed: {
513
- // usertypes () {
514
- // return this.$appdate.getParams("客户类型")
515
- // },
516
- getCondition() {
517
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
518
- if(this.$refs.paged.$refs.cri.model.notappear) {
519
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
520
- condition = condition + " and initinsertdate <> '开户未上报'"
521
- }
522
- }
523
- return {
524
-
525
- condition: condition
526
- }
527
- },
528
- usertypes() {
529
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
530
- },
531
- Gasproperties() {
532
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
533
- },
534
- f_outlets() {
535
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
536
- },
537
- valveStatus() {
538
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
539
- },
540
- not_appear(){
541
- return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
542
- },
543
- getstate() {
544
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
545
- },
546
- userstate() {
547
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
548
- }
549
- }
550
- }
551
- </script>
552
- <style>
553
- .form-input-group label {
554
- text-align: right;
555
- width: auto;
556
- }
557
-
558
- .mystyle {
559
- float: right;
560
- padding-right: 10%;
561
- }
562
-
563
- .mystyle1 {
564
- padding-top: 10px;
565
-
566
- }
567
-
568
- .mystyle2 {
569
- width: 100%;
570
- height: 35px;
571
- /*background: #00A3F0;*/
572
- padding-left: 15px;
573
- float: left;
574
- }
575
-
576
- .datapanel {
577
- color: #333;
578
- background-color: white;
579
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
580
- padding: 10px 30px 10px 30px;
581
- border-radius: 15px;
582
- }
583
- </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" novalidate partial>
7
+ <div class="row">
8
+ <!--<div class="form-group">-->
9
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
+ <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
+ <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
+ <!--</div>-->
13
+
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
+ v-model="model.f_userinfo_code" placeholder='客户编号'
18
+ condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
+ >
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
+ v-model="model.f_user_name" placeholder='客户名称'
25
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
+ >
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户地址</label>
30
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
+ placeholder='地址'
32
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
+ >
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
+ v-model="model.f_meternumber" placeholder='表号'
39
+ condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
+ >
41
+ </div>
42
+
43
+ <div style="float:right">
44
+ <button class="button_search button_spacing" @click="search()">查询</button>
45
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
46
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
47
+ :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
48
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserLoseQuery" template-name='用户失联查询'
49
+ :choose-col="true"></export-excel>
50
+ <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
+ <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
+ <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
53
+ <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>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
+ <right-tree @re-res="$parent.$parent.getorg"
60
+ :initresid='$parent.$parent.org'></right-tree>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户类型</label>
64
+ <v-select style="width:60%" id="f_user_type"
65
+ v-model="model.f_user_type"
66
+ placeholder='客户类型'
67
+ :value.sync="model.f_user_type"
68
+ :options='$parent.$parent.usertypes'
69
+ condition="f_user_type = '{}'"
70
+ close-on-select>
71
+ </v-select>
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">用气性质</label>
75
+ <v-select style="width:60%" id="f_gasproperties"
76
+ v-model="model.f_gasproperties"
77
+ placeholder='用气性质'
78
+ :value.sync="model.f_gasproperties"
79
+ :options='$parent.$parent.Gasproperties'
80
+ condition="f_gasproperties = '{}'"
81
+ close-on-select>
82
+ </v-select>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">气表品牌</label>
86
+ <v-select
87
+ placeholder='气表品牌'
88
+ :value.sync="model.f_meter_brand"
89
+ v-model="model.f_meter_brand"
90
+ :options='$parent.$parent.WarningType'
91
+ @change="$parent.$parent.getMeterType"
92
+ close-on-select
93
+ condition="f_meter_brand='{}'">
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group" >
97
+ <label class="font_normal_body">气表型号</label>
98
+ <v-select v-if="$parent.$parent.styles"
99
+ placeholder='气表型号'
100
+ :value.sync="model.f_meter_style"
101
+ v-model="model.f_meter_style"
102
+ :options='$parent.$parent.Warningstyle'
103
+ close-on-select
104
+ condition="f_meter_style='{}'">
105
+ </v-select>
106
+ <v-select v-if="!$parent.$parent.styles"
107
+ placeholder='气表型号'
108
+ :value.sync="model.f_meter_style"
109
+ v-model="model.f_meter_style"
110
+ :options='$parent.$parent.Warningstyles'
111
+ close-on-select
112
+ condition="f_meter_style='{}'">
113
+ </v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group">
116
+ <label class="font_normal_body">用户状态</label>
117
+ <v-select
118
+ placeholder='正常'
119
+ style="width:60%"
120
+ :value.sync="f_user_state"
121
+ close-on-select condition="f_user_state ='{}'">
122
+ </v-select>
123
+ </div>
124
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
125
+ <label class="font_normal_body">失联天数&nbsp;</label>
126
+ <div class="row">
127
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
128
+ condition="SLday >= {} " placeholder="">
129
+ <label class="font_normal_body"> ≤ x ≤ </label>
130
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
131
+ condition="SLday <= {} " placeholder="">
132
+ </div>
133
+ </div>
134
+ <div class="col-sm-2 form-group ">
135
+ <label for="contain_newfile" class="font_normal_body">开户未上报</label>
136
+ <v-select id="contain_newfile"
137
+ v-model="model.notappear"
138
+ style="width:60%"
139
+ :value.sync="model.notappear"
140
+ :options='$parent.$parent.not_appear'
141
+ :value-single="true"
142
+ close-on-select>
143
+ </v-select>
144
+ </div>
145
+
146
+ </div>
147
+
148
+
149
+
150
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
151
+ <!--:thead='"<th>序号</th>\n"+-->
152
+ <!--"<th>档案编号</th>" +-->
153
+ <!--" <th>档案标识</th>"+-->
154
+ <!--"<th>客户名称</th>"+-->
155
+ <!--"<th>表号</th"+-->
156
+ <!--"<th>表具类型</th>"+-->
157
+ <!--"<th>客户类型</th>"+-->
158
+ <!--"<th>区域</th>"+-->
159
+ <!--"<th>小区</th>"+-->
160
+ <!--"<th>地址</th>"+-->
161
+ <!--"<th>用气气量</th>"+-->
162
+ <!--"<th>用气金额</th>"-->
163
+ <!--+"<th>用气价格</th>"-->
164
+ <!--+"<th>时间</th>"-->
165
+ <!--+"<th>所属机构</th>"'-->
166
+ <!--: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"]'>-->
167
+ <!--</print-table>-->
168
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
169
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
170
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
171
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
172
+
173
+ </div>
174
+ </criteria>
175
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
176
+ <template partial='head'>
177
+ <tr>
178
+ <th style="text-align:center">
179
+ <nobr>序号</nobr>
180
+ </th>
181
+
182
+ <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
183
+
184
+ <th style="text-align:center">
185
+ <nobr>客户编号</nobr>
186
+ </th>
187
+ <th style="text-align:center">
188
+ <nobr>客户名称</nobr>
189
+ </th>
190
+ <th style="text-align:center">
191
+ <nobr>客户地址</nobr>
192
+ </th>
193
+ <th style="text-align:center">
194
+ <nobr>客户类型</nobr>
195
+ </th>
196
+ <th style="text-align:center">
197
+ <nobr>用气性质</nobr>
198
+ </th>
199
+ <th style="text-align:center">
200
+ <nobr>联系电话</nobr>
201
+ </th>
202
+ <th style="text-align:center">
203
+ <nobr>系统金额</nobr>
204
+ </th>
205
+ <th style="text-align:center">
206
+ <nobr>表号</nobr>
207
+ </th>
208
+ <th style="text-align:center">
209
+ <nobr>启用日期</nobr>
210
+ </th>
211
+
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
+
222
+ <th style="text-align:center" >
223
+ <nobr>失联天数</nobr>
224
+ </th>
225
+ <th style="text-align:center" >
226
+ <nobr>气表厂家</nobr>
227
+ </th>
228
+ <th style="text-align:center" >
229
+ <nobr>气表型号</nobr>
230
+ </th>
231
+ <th style="text-align:center" >
232
+ <nobr>用户状态</nobr>
233
+ </th>
234
+ <th style="text-align:center" >
235
+ <nobr>组织机构</nobr>
236
+ </th>
237
+ </tr>
238
+
239
+ </template>
240
+ <template partial='body'>
241
+ <td style="text-align:center">{{$index+1}}</td>
242
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
243
+
244
+
245
+ <td style="text-align: center;"><nobr>
246
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
247
+ </nobr> </td>
248
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
249
+ <td>
250
+ <nobr>{{row.f_address}}</nobr>
251
+ </td>
252
+ <td style="text-align:center">{{row.f_user_type}}</td>
253
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
254
+ <td style="text-align:center">{{row.f_user_phone}}</td>
255
+ <td style="text-align:center">{{row.f_balance_amount}}</td>
256
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
257
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
258
+ <td style="text-align:center">
259
+ <nobr>{{row.initinsertdate}}</nobr>
260
+ </td> <td style="text-align:center">
261
+ <nobr>{{row.lastinsertdate}}</nobr>
262
+ </td>
263
+ <td style="text-align:center">{{row.f_meter_base}}</td>
264
+
265
+ <td style="text-align:center">
266
+ <nobr>{{row.slday}}</nobr>
267
+ </td>
268
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
269
+ <td style="text-align:center">
270
+ <nobr>{{row.f_meter_style}}</nobr>
271
+ </td>
272
+ <td style="text-align:center">
273
+ <nobr>{{row.f_user_state}}</nobr>
274
+ </td>
275
+ <td style="text-align:center">
276
+ <nobr>{{row.f_orgname}}</nobr>
277
+ </td>
278
+ <!--<td style="text-align:center">{{row.new_days}}</td>-->
279
+ <!--<td style="text-align:center">{{row.f_state}}</td>-->
280
+
281
+ </template>
282
+ </data-grid>
283
+ </criteria-paged>
284
+
285
+ </div>
286
+ <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
287
+ <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
288
+ <!-- :echarts="echarts"></lost-contact-echarts>-->
289
+ <!-- </div>-->
290
+ <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
291
+ <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
292
+ <!--&lt;!&ndash; </div>&ndash;&gt;-->
293
+ <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
294
+ <!-- <lost-contact-eform :condition="condition"-->
295
+ <!-- ></lost-contact-eform>-->
296
+ <!-- </div>-->
297
+ </div>
298
+ <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
299
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
300
+ </div>
301
+ </template>
302
+
303
+ <script>
304
+ import {PagedList} from 'vue-client'
305
+ import UserGasEcharts from '../../components/webmeter/DrillData/UserGasEcharts'
306
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
307
+ import {HttpResetClass} from 'vue-client'
308
+ let readySomething = async function (self) {
309
+
310
+ await self.$MagLoadParams.loadParam()
311
+ self.initParams()
312
+ self.$refs.paged.$refs.cri.model.notappear='不包含'
313
+ self.$refs.paged.$refs.cri.model.SLday1=10
314
+ self.$refs.paged.$refs.cri.model.f_user_state='正常'
315
+ self.$refs.paged.$refs.cri.search()
316
+ }
317
+ export default {
318
+ title: '失联分析',
319
+ props: ['data'],
320
+ components: {UserGasEcharts},
321
+
322
+ data() {
323
+ return {
324
+ model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
325
+ getfield:{
326
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称","f_residential_area":"小区",
327
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
328
+ "f_meternumber":"表号",
329
+ "f_user_phone":"联系电话",
330
+ "f_balance_amount":"系统余额",
331
+
332
+ "f_startuse_date":"启用日期",
333
+ "initinsertdate":"初次上报日期",
334
+ "lastinsertdate":"最后上报日期",
335
+ "f_meter_base":"最后表读数",
336
+ "slday":"失联天数",
337
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
338
+ reportStr: null,
339
+ show: false,
340
+ showdetail:false,
341
+ rowdata:{},
342
+ criteriaShow:false,
343
+ outlets: [],
344
+ operator: [],
345
+ filename: '',
346
+ WarningType: [
347
+ {label: '全部', value: ''}
348
+ ],
349
+ Warningstyles: [
350
+ {label: '全部', value: ''}
351
+ ],
352
+ styles:false,
353
+ org:[this.$login.f.orgid],
354
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
355
+ echarts: false,
356
+ searchshow: false,
357
+ isActiveTotalForm: false,
358
+ condition: '1=1',
359
+ groupname: ['max_days_type'],
360
+ getgroupname: [
361
+ {label: '客户类型', value: 'f_user_type'},
362
+ {label: '用气性质', value: 'f_gasproperties'},
363
+ {label: '分公司', value: 'f_orgname'},
364
+ {label: '最长失联天数', value: 'max_days_type'},
365
+ ],
366
+ f_user_state:'正常'
367
+ }
368
+ },
369
+ ready() {
370
+ readySomething(this)
371
+ this.getMeterTypeAndBrand('f_meter_brand', '1=1 and gb.f_meter_type = \'物联网表\'')
372
+ },
373
+
374
+ methods: {
375
+ getMeterType() {
376
+ this.Warningstyle = [{label: '全部', value: ''}]
377
+ this.styles = false
378
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
379
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
380
+ },
381
+ getMeterTypeAndBrand(groupname, condition) {
382
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
383
+ let self = this
384
+ let load = new HttpResetClass()
385
+ load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
386
+ data: {
387
+ condition: condition,
388
+ groupname: groupname
389
+ }
390
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
391
+ for (let i = 0; i < res.data.length; i++) {
392
+ if (groupname == 'f_meter_brand') {
393
+ let dr = {}
394
+ dr.label = res.data[i].f_meter_brand
395
+ dr.value = res.data[i].f_meter_brand
396
+ //气表品牌
397
+ self.WarningType.push(dr)
398
+ } else if (groupname == 'f_meter_style') {
399
+ self.Warningstyle= [
400
+ {label: '全部', value: ''}
401
+ ],
402
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
403
+ let dr = {}
404
+ dr.label = res.data[i].f_meter_style
405
+ dr.value = res.data[i].f_meter_style
406
+ //气表类型
407
+ self.Warningstyle.push(dr)
408
+ }
409
+ }
410
+ if (self.Warningstyle.length > 1) {
411
+ self.showMeterStyle()
412
+ }
413
+ })
414
+
415
+ },
416
+ showMeterStyle() {
417
+ this.styles = true
418
+ },
419
+ hidden(){
420
+ this.criteriaShow = !this.criteriaShow
421
+ },
422
+ showmsg(obj){
423
+ this.rowdata=obj
424
+ this.showdetail=true
425
+ },
426
+ cancel() {
427
+ this.showdetail = false
428
+ },
429
+ clickshow() {
430
+ this.searchshow = !this.searchshow
431
+ },
432
+ search(args) {
433
+ this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
434
+ args.condition = this.condition
435
+ if(this.$refs.paged.$refs.cri.model.notappear) {
436
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
437
+ args.condition = args.condition + " and initinsertdate <> '开户未上报'"
438
+ }
439
+ }
440
+ this.model.search(args.condition, args.model)
441
+ },
442
+ getorg(obj) {
443
+ if (obj.resids.length>0) {
444
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
445
+ }else
446
+ {
447
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
448
+ }
449
+ },
450
+ // SaveAsFile(str) {
451
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
452
+ // if (res === 'confirm') {
453
+ // let style = '<style>' +
454
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
455
+ // let strHtml = style + document.getElementById(str).innerHTML;
456
+ // console.log(strHtml);
457
+ // let LODOP = getLodop();
458
+ // LODOP.PRINT_INIT('');
459
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
460
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
461
+ // }
462
+ // })
463
+ // },
464
+ clearmsg() {
465
+ this.$refs.paged.$refs.cri.model = {}
466
+ },
467
+ close() {
468
+ this.show = false
469
+ },
470
+ initParams () {
471
+ let arr = []
472
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
473
+ let temp = {}
474
+ if(item.value.f_meter_type==='物联网表'){
475
+ temp.label = item.label
476
+ temp.value = item.value.f_meter_brand
477
+ arr.push(temp )
478
+ }
479
+
480
+ })
481
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
482
+ },
483
+ // 显示柱状图
484
+ showEcharts() {
485
+ this.echarts = true
486
+ this.isActiveTotalForm = false
487
+ },
488
+ notShowTotalForm() {
489
+ this.echarts = false
490
+ this.isActiveTotalForm = false
491
+ },
492
+ // 不显示柱状图
493
+ notShowEcharts() {
494
+ this.echarts = false
495
+ this.isActiveTotalForm = false
496
+ },
497
+ // 显示汇总数据表格
498
+ showTotalForm() {
499
+ this.echarts = false
500
+ this.isActiveTotalForm = true
501
+ }
502
+ },
503
+ watch: {
504
+ 'data'(val) {
505
+ if (val.f_files_path) {
506
+ this.getFileContent(val.f_files_path)
507
+ } else {
508
+ this.reportStr = null
509
+ }
510
+ }
511
+ },
512
+ computed: {
513
+ // usertypes () {
514
+ // return this.$appdate.getParams("客户类型")
515
+ // },
516
+ getCondition() {
517
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
518
+ if(this.$refs.paged.$refs.cri.model.notappear) {
519
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
520
+ condition = condition + " and initinsertdate <> '开户未上报'"
521
+ }
522
+ }
523
+ return {
524
+
525
+ condition: condition
526
+ }
527
+ },
528
+ usertypes() {
529
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
530
+ },
531
+ Gasproperties() {
532
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
533
+ },
534
+ f_outlets() {
535
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
536
+ },
537
+ valveStatus() {
538
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
539
+ },
540
+ not_appear(){
541
+ return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
542
+ },
543
+ getstate() {
544
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
545
+ },
546
+ userstate() {
547
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
548
+ }
549
+ }
550
+ }
551
+ </script>
552
+ <style>
553
+ .form-input-group label {
554
+ text-align: right;
555
+ width: auto;
556
+ }
557
+
558
+ .mystyle {
559
+ float: right;
560
+ padding-right: 10%;
561
+ }
562
+
563
+ .mystyle1 {
564
+ padding-top: 10px;
565
+
566
+ }
567
+
568
+ .mystyle2 {
569
+ width: 100%;
570
+ height: 35px;
571
+ /*background: #00A3F0;*/
572
+ padding-left: 15px;
573
+ float: left;
574
+ }
575
+
576
+ .datapanel {
577
+ color: #333;
578
+ background-color: white;
579
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
580
+ padding: 10px 30px 10px 30px;
581
+ border-radius: 15px;
582
+ }
583
+ </style>