manage-client 3.3.2 → 3.3.5

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