manage-client 3.2.79-aode → 3.2.80-aode

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,531 +1,531 @@
1
- <template>
2
- <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
3
- <criteria-paged :model="model" :pager='true' v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
- <div class="row" >
7
- <!--<div class="form-group">-->
8
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
9
- <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
10
- <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
11
- <!--</div>-->
12
- <div class="col-sm-2">
13
- <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
14
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
15
- condition="u.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
16
- >
17
- </div>
18
- <div class="col-sm-2">
19
- <label class="font_normal_body">组织机构</label>
20
- <res-select :initresid="$parent.$parent.orgid"
21
- style="width:60%"
22
- @res-select="$parent.$parent.getRes"
23
- restype='organization'>
24
- </res-select>
25
- </div>
26
- <div class="col-sm-2">
27
- <label class="font_normal_body">客户编号</label>
28
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
29
- condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='userinfocode' v-el:username
30
- >
31
- </div>
32
- <div class="col-sm-2">
33
- <label class="font_normal_body">客户名称</label>
34
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_name" placeholder='客户名称'
35
- condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
36
- >
37
- </div>
38
-
39
-
40
- <div style="float:right">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
44
- :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
45
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewLoseQuery" template-name='失联分析'
46
- :choose-col="true"></export-excel>
47
- <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
48
- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>
49
- <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <div class="col-sm-2">
55
- <label class="font_normal_body">客户地址</label>
56
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area" placeholder='地址'
57
- condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
58
- >
59
- </div>
60
- <div class="col-sm-2">
61
- <label class="font_normal_body">客户类型</label>
62
- <v-select style="width:60%" id="f_user_type"
63
- v-model="model.f_user_type"
64
- placeholder='客户类型'
65
- :value.sync="model.f_user_type"
66
- :options='$parent.$parent.usertypes'
67
- condition="u.f_user_type = '{}'"
68
- close-on-select>
69
- </v-select>
70
- </div>
71
- <div class="col-sm-2">
72
- <label class="font_normal_body">用气性质</label>
73
- <v-select style="width:60%" id="f_gasproperties"
74
- v-model="model.f_gasproperties"
75
- placeholder='用气性质'
76
- :value.sync="model.f_gasproperties"
77
- :options='$parent.$parent.Gasproperties'
78
- condition="u.f_gasproperties = '{}'"
79
- close-on-select>
80
- </v-select>
81
- </div>
82
-
83
- <!--<div class="col-sm-2">-->
84
- <!--<label class="font_normal_body">最新状态</label>-->
85
- <!-- <v-select style="width:60%" id="f_state"-->
86
- <!--v-model="model.f_state"-->
87
- <!--placeholder='最新状态'-->
88
- <!--:value.sync="model.f_state"-->
89
- <!--:options='$parent.$parent.getstate'-->
90
- <!--condition="f_state = '{}'"-->
91
- <!--close-on-select>-->
92
- <!--</v-select>-->
93
- <!--</div>-->
94
- <div class="col-sm-2">
95
- <label class="font_normal_body">上报区间</label>
96
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
97
- v-model="model.startDate"
98
- :value.sync="model.startDate"
99
- :disabled-days-of-Week="[]"
100
- :format="'yyyy-MM-dd HH:mm:ss'"
101
-
102
- :show-reset-button="reset">
103
- </datepicker>
104
- </div>
105
- <div class="col-sm-2">
106
- <label class="font_normal_body" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
107
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
108
- v-model="model.endDate"
109
- :value.sync="model.endDate"
110
- :disabled-days-of-Week="[]"
111
- :format="'yyyy-MM-dd HH:mm:ss'"
112
-
113
- :show-reset-button="reset">
114
- </datepicker>
115
- </div>
116
- <div class="col-sm-2">
117
- <label class="font_normal_body">安装日期</label>
118
- <datepicker style="width:60%" id="start" placeholder="开始时间"
119
- v-model="model.startdate"
120
- :value.sync="model.startdate"
121
- :disabled-days-of-Week="[]"
122
- :format="'yyyy-MM-dd HH:mm:ss'"
123
- condition="u.f_gas_date >= '{}'"
124
- :show-reset-button="reset">
125
- </datepicker>
126
- </div>
127
- <div class="col-sm-2">
128
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
129
- <datepicker style="width:60%" id="end" placeholder="结束日期"
130
- v-model="model.enddate"
131
- :value.sync="model.enddate"
132
- :disabled-days-of-Week="[]"
133
- :format="'yyyy-MM-dd HH:mm:ss'"
134
- condition="u.f_gas_date <= '{}'"
135
- :show-reset-button="reset">
136
- </datepicker>
137
- </div>
138
- <div class="col-sm-2">
139
- <label class="font_normal_body">最长失联</label>
140
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.max_days1" placeholder='天数大于等于'
141
- condition="max_days >= {}" v-next-el='max_days' v-el:max_days
142
- >
143
- </div>
144
- <div class="col-sm-2">
145
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
146
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.max_days2" placeholder='天数小于等于'
147
- condition="max_days <= {}" v-next-el='max_days' v-el:max_days
148
- >
149
- </div>
150
- <div class="col-sm-2">
151
- <label class="font_normal_body">合计失联</label>
152
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.all_days1" placeholder='天数大于等于'
153
- condition="all_days >= {}" v-next-el='all_days' v-el:all_days
154
- >
155
- </div>
156
- <div class="col-sm-2">
157
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
158
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.all_days2" placeholder='天数小于等于'
159
- condition="all_days <= {}" v-next-el='all_days' v-el:all_days
160
- >
161
- </div>
162
- <!--<div class="col-sm-2">-->
163
- <!--<label class="font_normal_body">最新失联</label>-->
164
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
165
- <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
166
- <!--&gt;-->
167
- <!--</div>-->
168
- <!--<div class="col-sm-2">-->
169
- <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
170
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
171
- <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
172
- <!--&gt;-->
173
- <!--</div>-->
174
-
175
- </div>
176
-
177
-
178
-
179
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
180
- <!--:thead='"<th>序号</th>\n"+-->
181
- <!--"<th>档案编号</th>" +-->
182
- <!--" <th>档案标识</th>"+-->
183
- <!--"<th>客户名称</th>"+-->
184
- <!--"<th>表号</th"+-->
185
- <!--"<th>表具类型</th>"+-->
186
- <!--"<th>客户类型</th>"+-->
187
- <!--"<th>区域</th>"+-->
188
- <!--"<th>小区</th>"+-->
189
- <!--"<th>地址</th>"+-->
190
- <!--"<th>用气气量</th>"+-->
191
- <!--"<th>用气金额</th>"-->
192
- <!--+"<th>用气价格</th>"-->
193
- <!--+"<th>时间</th>"-->
194
- <!--+"<th>所属机构</th>"'-->
195
- <!--: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"]'>-->
196
- <!--</print-table>-->
197
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
198
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
199
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
200
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
201
-
202
- </div>
203
- </criteria>
204
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
205
- <template partial='head'>
206
- <tr>
207
- <th style="text-align:center">
208
- <nobr>序号</nobr>
209
- </th>
210
- <th style="text-align:center">
211
- <nobr>组织机构</nobr>
212
- </th>
213
- <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
214
- <th style="text-align:center">
215
- <nobr>表钢号</nobr>
216
- </th>
217
- <th style="text-align:center">
218
- <nobr>客户编号</nobr>
219
- </th>
220
- <th style="text-align:center">
221
- <nobr>客户名称</nobr>
222
- </th>
223
- <th style="text-align:center">
224
- <nobr>客户地址</nobr>
225
- </th>
226
- <th style="text-align:center">
227
- <nobr>安装日期</nobr>
228
- </th>
229
- <th style="text-align:center">
230
- <nobr>客户类型</nobr>
231
- </th>
232
- <th style="text-align:center">
233
- <nobr>用气性质</nobr>
234
- </th>
235
- <th style="text-align:center" title="指查询时间区间内,连续失联最长的天数">
236
- <nobr>最长失联天数</nobr>
237
- </th>
238
- <th style="text-align:center" title="指查询时间区间内,共计失联的总天数">
239
- <nobr>合计失联天数</nobr>
240
- </th>
241
- <th style="text-align:center">
242
- <nobr>最长失联类型</nobr>
243
- </th>
244
- <th style="text-align:center">
245
- <nobr>合计失联类型</nobr>
246
- </th>
247
- <th style="text-align:center" title="指查询时间区间内,首次上报的日期">
248
- <nobr>期初上报日期</nobr>
249
- </th>
250
- <th style="text-align:center" title="指查询时间区间内,最后上报的日期">
251
- <nobr>期末上报日期</nobr>
252
- </th>
253
- <th style="text-align:center">
254
- <nobr>期间上报次数</nobr>
255
- </th>
256
- <!--<th style="text-align:center" title="指该表具最后一次上报日期到当前日期相差天数">-->
257
- <!--<nobr>最新失联天数</nobr>-->
258
- <!--</th>-->
259
- <!--<th style="text-align:center" title="指该表具最新的失联情况">-->
260
- <!--<nobr>最新状态</nobr>-->
261
- <!--</th>-->
262
-
263
- </tr>
264
-
265
- </template>
266
- <template partial='body'>
267
- <td style="text-align:center">{{$index+1}}</td>
268
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
269
- <td style="text-align:center"><nobr>{{row.f_orgname}}</nobr></td>
270
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
271
- <td style="text-align:center">{{row.f_userinfo_code}}</td>
272
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
273
- <td>
274
- <nobr>{{row.f_address}}</nobr>
275
- </td>
276
- <td style="text-align:center">
277
- <nobr>{{row.f_gas_date}}</nobr>
278
- </td>
279
- <td style="text-align:center">{{row.f_user_type}}</td>
280
- <td style="text-align:center">{{row.f_gasproperties}}</td>
281
- <td style="text-align:center">{{row.max_days}}</td>
282
- <td style="text-align:center">{{row.all_days}}</td>
283
- <td style="text-align:center">
284
- <nobr>{{row.max_days_type}}</nobr>
285
- </td>
286
- <td style="text-align:center">
287
- <nobr>{{row.all_days_type}}</nobr>
288
- </td>
289
- <td style="text-align:center">
290
- <nobr>{{row.min_insert_date}}</nobr>
291
- </td>
292
- <td style="text-align:center">
293
- <nobr>{{row.max_insert_date}}</nobr>
294
- </td>
295
- <td style="text-align:center">{{row.c}}</td>
296
- <!--<td style="text-align:center">{{row.new_days}}</td>-->
297
- <!--<td style="text-align:center">{{row.f_state}}</td>-->
298
-
299
- </template>
300
- </data-grid>
301
- </criteria-paged>
302
- </div>
303
- <div v-show="echarts" style="height: 40px;width: 100%;">
304
- <div style="display: inline-block;">
305
- <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
306
- </div>
307
- <div class="mystyle" style="display: inline-block;">
308
- <label class="font_normal_body">图表统计项</label>
309
- <v-select style="width:60%" id="Groupname" v-model="groupname"
310
- placeholder='分组项'
311
- value-single="true"
312
- :value.sync="groupname"
313
- :options='getgroupname'
314
- close-on-select></v-select>
315
- </div>
316
- </div>
317
- <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
318
- <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
319
- :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
320
- </div>
321
- <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
322
- <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
323
- <!-- </div>-->
324
- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
325
- <lost-contact-eform :condition="condition" :startdate="startDate"
326
- :enddate="endDate"></lost-contact-eform>
327
- </div>
328
- </template>
329
-
330
- <script>
331
- import {PagedList} from 'vue-client'
332
- import UserGasEcharts from './UserGasEcharts'
333
- import * as Util from '../../../Util'
334
- import getLodop from '../../../plugins/LodopFuncs'
335
- import plugins from '../../../plugins/GetLoginInfoService'
336
- export default {
337
- title: '失联分析',
338
- props: ['data'],
339
- components: {UserGasEcharts},
340
- data() {
341
- return {
342
- model: new PagedList('rs/sql/webmeter_getNewLoseQuery', 20, {
343
- startDate: 'this.model.startDate',
344
- endDate: 'this.model.endDate'
345
- }),
346
- getfield:{"f_orgname":"组织机构","f_meternumber":"表钢号",
347
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
348
- "f_address":"客户地址",
349
- "f_gas_date":"安装日期","f_user_type":"客户类型",
350
- "f_gasproperties":"用气性质","max_days":"最长失联天数",
351
- "all_days":"合计失联天数",
352
- "max_days_type":"最长失联类型","all_days_type":"合计失联类型",
353
- "min_insert_date":"期初上报日期","max_insert_date":"期末上报日期",
354
- "c":"期间上报次数"},
355
- reportStr: null,
356
- show: false,
357
- startDate: '',
358
- endDate: '',
359
- criteriaShow:false,
360
- outlets: [],
361
- operator: [],
362
- filename: '',
363
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
364
- echarts: false,
365
- orgid:[this.$login.f.orgid],
366
- searchshow: false,
367
- isActiveTotalForm: false,
368
- condition: '1=1',
369
- groupname: ['max_days_type'],
370
- getgroupname: [
371
- {label: '客户类型', value: 'f_user_type'},
372
- {label: '用气性质', value: 'f_gasproperties'},
373
- {label: '分公司', value: 'f_orgname'},
374
- {label: '最长失联天数', value: 'max_days_type'},
375
- {label: '合计失联天数', value: 'all_days_type'}
376
- ],
377
- obj: {
378
- userid: this.$login.f.id,
379
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
380
- res: this.$login.f.f_fengongsi,
381
- resids: this.$login.f.f_orgid
382
- }
383
- }
384
- },
385
- ready() {
386
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
387
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
388
- this.$refs.paged.$refs.cri.search()
389
- },
390
- methods: {
391
- hidden(){
392
- this.criteriaShow = !this.criteriaShow
393
- },
394
- clickshow() {
395
- this.searchshow = !this.searchshow
396
- },
397
- search(args) {
398
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
399
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
400
- if (this.endDate == '' || this.startDate == '') {
401
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
402
- }
403
- if (this.orgCondtionStr){
404
- this.condition = this.$refs.paged.$refs.cri.condition + `and u.f_orgid in ${this.orgCondtionStr}`
405
- }
406
- else
407
- this.condition = this.$refs.paged.$refs.cri.condition
408
- args.condition = this.condition
409
- this.model.search(args.condition, args.model)
410
- },
411
- getRes(obj) {
412
- this.orgCondtionStr = plugins.convertToIn(obj)
413
- },
414
- // SaveAsFile(str) {
415
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
416
- // if (res === 'confirm') {
417
- // let style = '<style>' +
418
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
419
- // let strHtml = style + document.getElementById(str).innerHTML;
420
- // console.log(strHtml);
421
- // let LODOP = getLodop();
422
- // LODOP.PRINT_INIT('');
423
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
424
- // LODOP.SAVE_TO_FILE('失联分析.xls')
425
- // }
426
- // })
427
- // },
428
- clearmsg() {
429
- this.$refs.paged.$refs.cri.model = {}
430
- },
431
- close() {
432
- this.show = false
433
- },
434
- // 显示柱状图
435
- showEcharts() {
436
- this.echarts = true
437
- this.isActiveTotalForm = false
438
- },
439
- notShowTotalForm() {
440
- this.echarts = false
441
- this.isActiveTotalForm = false
442
- },
443
- // 不显示柱状图
444
- notShowEcharts() {
445
- this.echarts = false
446
- this.isActiveTotalForm = false
447
- },
448
- // 显示汇总数据表格
449
- showTotalForm() {
450
- this.echarts = false
451
- this.isActiveTotalForm = true
452
- }
453
- },
454
- watch: {
455
- 'data'(val) {
456
- if (val.f_files_path) {
457
- this.getFileContent(val.f_files_path)
458
- } else {
459
- this.reportStr = null
460
- }
461
- }
462
- },
463
- computed: {
464
- // usertypes () {
465
- // return this.$appdate.getParams("客户类型")
466
- // },
467
- getCondition() {
468
- var con=""
469
- if (this.orgCondtionStr) {
470
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
471
- }
472
- else{
473
- con= `${this.$refs.paged.$refs.cri.condition} `
474
- }
475
- return {
476
- condition: con ,
477
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
478
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
479
- }
480
-
481
- },
482
- usertypes() {
483
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
484
- },
485
- Gasproperties() {
486
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
487
- },
488
- f_outlets() {
489
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
490
- },
491
- valveStatus() {
492
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
493
- },
494
- getstate() {
495
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
496
- }
497
- }
498
- }
499
- </script>
500
- <style>
501
- .form-input-group label {
502
- text-align: right;
503
- width: auto;
504
- }
505
-
506
- .mystyle {
507
- float: right;
508
- padding-right: 10%;
509
- }
510
-
511
- .mystyle1 {
512
- padding-top: 10px;
513
-
514
- }
515
-
516
- .mystyle2 {
517
- width: 100%;
518
- height: 35px;
519
- /*background: #00A3F0;*/
520
- padding-left: 15px;
521
- float: left;
522
- }
523
-
524
- .datapanel {
525
- color: #333;
526
- background-color: white;
527
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
528
- padding: 10px 30px 10px 30px;
529
- border-radius: 15px;
530
- }
531
- </style>
1
+ <template>
2
+ <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
3
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
+ <div class="row" >
7
+ <!--<div class="form-group">-->
8
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
9
+ <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
10
+ <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
11
+ <!--</div>-->
12
+ <div class="col-sm-2">
13
+ <label class="font_normal_body">表&nbsp;钢&nbsp;号&nbsp;</label>
14
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表钢号'
15
+ condition="u.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
16
+ >
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">组织机构</label>
20
+ <res-select :initresid="$parent.$parent.orgid"
21
+ style="width:60%"
22
+ @res-select="$parent.$parent.getRes"
23
+ restype='organization'>
24
+ </res-select>
25
+ </div>
26
+ <div class="col-sm-2">
27
+ <label class="font_normal_body">客户编号</label>
28
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
29
+ condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='userinfocode' v-el:username
30
+ >
31
+ </div>
32
+ <div class="col-sm-2">
33
+ <label class="font_normal_body">客户名称</label>
34
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_name" placeholder='客户名称'
35
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
36
+ >
37
+ </div>
38
+
39
+
40
+ <div style="float:right">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
44
+ :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
45
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewLoseQuery" template-name='失联分析'
46
+ :choose-col="true"></export-excel>
47
+ <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
48
+ <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>
49
+ <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
50
+ <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>
51
+ </div>
52
+ </div>
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <div class="col-sm-2">
55
+ <label class="font_normal_body">客户地址</label>
56
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area" placeholder='地址'
57
+ condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
58
+ >
59
+ </div>
60
+ <div class="col-sm-2">
61
+ <label class="font_normal_body">客户类型</label>
62
+ <v-select style="width:60%" id="f_user_type"
63
+ v-model="model.f_user_type"
64
+ placeholder='客户类型'
65
+ :value.sync="model.f_user_type"
66
+ :options='$parent.$parent.usertypes'
67
+ condition="u.f_user_type = '{}'"
68
+ close-on-select>
69
+ </v-select>
70
+ </div>
71
+ <div class="col-sm-2">
72
+ <label class="font_normal_body">用气性质</label>
73
+ <v-select style="width:60%" id="f_gasproperties"
74
+ v-model="model.f_gasproperties"
75
+ placeholder='用气性质'
76
+ :value.sync="model.f_gasproperties"
77
+ :options='$parent.$parent.Gasproperties'
78
+ condition="u.f_gasproperties = '{}'"
79
+ close-on-select>
80
+ </v-select>
81
+ </div>
82
+
83
+ <!--<div class="col-sm-2">-->
84
+ <!--<label class="font_normal_body">最新状态</label>-->
85
+ <!-- <v-select style="width:60%" id="f_state"-->
86
+ <!--v-model="model.f_state"-->
87
+ <!--placeholder='最新状态'-->
88
+ <!--:value.sync="model.f_state"-->
89
+ <!--:options='$parent.$parent.getstate'-->
90
+ <!--condition="f_state = '{}'"-->
91
+ <!--close-on-select>-->
92
+ <!--</v-select>-->
93
+ <!--</div>-->
94
+ <div class="col-sm-2">
95
+ <label class="font_normal_body">上报区间</label>
96
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
97
+ v-model="model.startDate"
98
+ :value.sync="model.startDate"
99
+ :disabled-days-of-Week="[]"
100
+ :format="'yyyy-MM-dd HH:mm:ss'"
101
+
102
+ :show-reset-button="reset">
103
+ </datepicker>
104
+ </div>
105
+ <div class="col-sm-2">
106
+ <label class="font_normal_body" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
107
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
108
+ v-model="model.endDate"
109
+ :value.sync="model.endDate"
110
+ :disabled-days-of-Week="[]"
111
+ :format="'yyyy-MM-dd HH:mm:ss'"
112
+
113
+ :show-reset-button="reset">
114
+ </datepicker>
115
+ </div>
116
+ <div class="col-sm-2">
117
+ <label class="font_normal_body">安装日期</label>
118
+ <datepicker style="width:60%" id="start" placeholder="开始时间"
119
+ v-model="model.startdate"
120
+ :value.sync="model.startdate"
121
+ :disabled-days-of-Week="[]"
122
+ :format="'yyyy-MM-dd HH:mm:ss'"
123
+ condition="u.f_gas_date >= '{}'"
124
+ :show-reset-button="reset">
125
+ </datepicker>
126
+ </div>
127
+ <div class="col-sm-2">
128
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
129
+ <datepicker style="width:60%" id="end" placeholder="结束日期"
130
+ v-model="model.enddate"
131
+ :value.sync="model.enddate"
132
+ :disabled-days-of-Week="[]"
133
+ :format="'yyyy-MM-dd HH:mm:ss'"
134
+ condition="u.f_gas_date <= '{}'"
135
+ :show-reset-button="reset">
136
+ </datepicker>
137
+ </div>
138
+ <div class="col-sm-2">
139
+ <label class="font_normal_body">最长失联</label>
140
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.max_days1" placeholder='天数大于等于'
141
+ condition="max_days >= {}" v-next-el='max_days' v-el:max_days
142
+ >
143
+ </div>
144
+ <div class="col-sm-2">
145
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
146
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.max_days2" placeholder='天数小于等于'
147
+ condition="max_days <= {}" v-next-el='max_days' v-el:max_days
148
+ >
149
+ </div>
150
+ <div class="col-sm-2">
151
+ <label class="font_normal_body">合计失联</label>
152
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.all_days1" placeholder='天数大于等于'
153
+ condition="all_days >= {}" v-next-el='all_days' v-el:all_days
154
+ >
155
+ </div>
156
+ <div class="col-sm-2">
157
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
158
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.all_days2" placeholder='天数小于等于'
159
+ condition="all_days <= {}" v-next-el='all_days' v-el:all_days
160
+ >
161
+ </div>
162
+ <!--<div class="col-sm-2">-->
163
+ <!--<label class="font_normal_body">最新失联</label>-->
164
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
165
+ <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
166
+ <!--&gt;-->
167
+ <!--</div>-->
168
+ <!--<div class="col-sm-2">-->
169
+ <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
170
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
171
+ <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
172
+ <!--&gt;-->
173
+ <!--</div>-->
174
+
175
+ </div>
176
+
177
+
178
+
179
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
180
+ <!--:thead='"<th>序号</th>\n"+-->
181
+ <!--"<th>档案编号</th>" +-->
182
+ <!--" <th>档案标识</th>"+-->
183
+ <!--"<th>客户名称</th>"+-->
184
+ <!--"<th>表号</th"+-->
185
+ <!--"<th>表具类型</th>"+-->
186
+ <!--"<th>客户类型</th>"+-->
187
+ <!--"<th>区域</th>"+-->
188
+ <!--"<th>小区</th>"+-->
189
+ <!--"<th>地址</th>"+-->
190
+ <!--"<th>用气气量</th>"+-->
191
+ <!--"<th>用气金额</th>"-->
192
+ <!--+"<th>用气价格</th>"-->
193
+ <!--+"<th>时间</th>"-->
194
+ <!--+"<th>所属机构</th>"'-->
195
+ <!--: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"]'>-->
196
+ <!--</print-table>-->
197
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
198
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
199
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
200
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
201
+
202
+ </div>
203
+ </criteria>
204
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
205
+ <template partial='head'>
206
+ <tr>
207
+ <th style="text-align:center">
208
+ <nobr>序号</nobr>
209
+ </th>
210
+ <th style="text-align:center">
211
+ <nobr>组织机构</nobr>
212
+ </th>
213
+ <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
214
+ <th style="text-align:center">
215
+ <nobr>表钢号</nobr>
216
+ </th>
217
+ <th style="text-align:center">
218
+ <nobr>客户编号</nobr>
219
+ </th>
220
+ <th style="text-align:center">
221
+ <nobr>客户名称</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>客户地址</nobr>
225
+ </th>
226
+ <th style="text-align:center">
227
+ <nobr>安装日期</nobr>
228
+ </th>
229
+ <th style="text-align:center">
230
+ <nobr>客户类型</nobr>
231
+ </th>
232
+ <th style="text-align:center">
233
+ <nobr>用气性质</nobr>
234
+ </th>
235
+ <th style="text-align:center" title="指查询时间区间内,连续失联最长的天数">
236
+ <nobr>最长失联天数</nobr>
237
+ </th>
238
+ <th style="text-align:center" title="指查询时间区间内,共计失联的总天数">
239
+ <nobr>合计失联天数</nobr>
240
+ </th>
241
+ <th style="text-align:center">
242
+ <nobr>最长失联类型</nobr>
243
+ </th>
244
+ <th style="text-align:center">
245
+ <nobr>合计失联类型</nobr>
246
+ </th>
247
+ <th style="text-align:center" title="指查询时间区间内,首次上报的日期">
248
+ <nobr>期初上报日期</nobr>
249
+ </th>
250
+ <th style="text-align:center" title="指查询时间区间内,最后上报的日期">
251
+ <nobr>期末上报日期</nobr>
252
+ </th>
253
+ <th style="text-align:center">
254
+ <nobr>期间上报次数</nobr>
255
+ </th>
256
+ <!--<th style="text-align:center" title="指该表具最后一次上报日期到当前日期相差天数">-->
257
+ <!--<nobr>最新失联天数</nobr>-->
258
+ <!--</th>-->
259
+ <!--<th style="text-align:center" title="指该表具最新的失联情况">-->
260
+ <!--<nobr>最新状态</nobr>-->
261
+ <!--</th>-->
262
+
263
+ </tr>
264
+
265
+ </template>
266
+ <template partial='body'>
267
+ <td style="text-align:center">{{$index+1}}</td>
268
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
269
+ <td style="text-align:center"><nobr>{{row.f_orgname}}</nobr></td>
270
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
271
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
272
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
273
+ <td>
274
+ <nobr>{{row.f_address}}</nobr>
275
+ </td>
276
+ <td style="text-align:center">
277
+ <nobr>{{row.f_gas_date}}</nobr>
278
+ </td>
279
+ <td style="text-align:center">{{row.f_user_type}}</td>
280
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
281
+ <td style="text-align:center">{{row.max_days}}</td>
282
+ <td style="text-align:center">{{row.all_days}}</td>
283
+ <td style="text-align:center">
284
+ <nobr>{{row.max_days_type}}</nobr>
285
+ </td>
286
+ <td style="text-align:center">
287
+ <nobr>{{row.all_days_type}}</nobr>
288
+ </td>
289
+ <td style="text-align:center">
290
+ <nobr>{{row.min_insert_date}}</nobr>
291
+ </td>
292
+ <td style="text-align:center">
293
+ <nobr>{{row.max_insert_date}}</nobr>
294
+ </td>
295
+ <td style="text-align:center">{{row.c}}</td>
296
+ <!--<td style="text-align:center">{{row.new_days}}</td>-->
297
+ <!--<td style="text-align:center">{{row.f_state}}</td>-->
298
+
299
+ </template>
300
+ </data-grid>
301
+ </criteria-paged>
302
+ </div>
303
+ <div v-show="echarts" style="height: 40px;width: 100%;">
304
+ <div style="display: inline-block;">
305
+ <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
306
+ </div>
307
+ <div class="mystyle" style="display: inline-block;">
308
+ <label class="font_normal_body">图表统计项</label>
309
+ <v-select style="width:60%" id="Groupname" v-model="groupname"
310
+ placeholder='分组项'
311
+ value-single="true"
312
+ :value.sync="groupname"
313
+ :options='getgroupname'
314
+ close-on-select></v-select>
315
+ </div>
316
+ </div>
317
+ <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
318
+ <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
319
+ :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
320
+ </div>
321
+ <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
322
+ <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
323
+ <!-- </div>-->
324
+ <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
325
+ <lost-contact-eform :condition="condition" :startdate="startDate"
326
+ :enddate="endDate"></lost-contact-eform>
327
+ </div>
328
+ </template>
329
+
330
+ <script>
331
+ import {PagedList} from 'vue-client'
332
+ import UserGasEcharts from './UserGasEcharts'
333
+ import * as Util from '../../../Util'
334
+ import getLodop from '../../../plugins/LodopFuncs'
335
+ import plugins from '../../../plugins/GetLoginInfoService'
336
+ export default {
337
+ title: '失联分析',
338
+ props: ['data'],
339
+ components: {UserGasEcharts},
340
+ data() {
341
+ return {
342
+ model: new PagedList('rs/sql/webmeter_getNewLoseQuery', 20, {
343
+ startDate: 'this.model.startDate',
344
+ endDate: 'this.model.endDate'
345
+ }),
346
+ getfield:{"f_orgname":"组织机构","f_meternumber":"表钢号",
347
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称",
348
+ "f_address":"客户地址",
349
+ "f_gas_date":"安装日期","f_user_type":"客户类型",
350
+ "f_gasproperties":"用气性质","max_days":"最长失联天数",
351
+ "all_days":"合计失联天数",
352
+ "max_days_type":"最长失联类型","all_days_type":"合计失联类型",
353
+ "min_insert_date":"期初上报日期","max_insert_date":"期末上报日期",
354
+ "c":"期间上报次数"},
355
+ reportStr: null,
356
+ show: false,
357
+ startDate: '',
358
+ endDate: '',
359
+ criteriaShow:false,
360
+ outlets: [],
361
+ operator: [],
362
+ filename: '',
363
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
364
+ echarts: false,
365
+ orgid:[this.$login.f.orgid],
366
+ searchshow: false,
367
+ isActiveTotalForm: false,
368
+ condition: '1=1',
369
+ groupname: ['max_days_type'],
370
+ getgroupname: [
371
+ {label: '客户类型', value: 'f_user_type'},
372
+ {label: '用气性质', value: 'f_gasproperties'},
373
+ {label: '分公司', value: 'f_orgname'},
374
+ {label: '最长失联天数', value: 'max_days_type'},
375
+ {label: '合计失联天数', value: 'all_days_type'}
376
+ ],
377
+ obj: {
378
+ userid: this.$login.f.id,
379
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
380
+ res: this.$login.f.f_fengongsi,
381
+ resids: this.$login.f.f_orgid
382
+ }
383
+ }
384
+ },
385
+ ready() {
386
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
387
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
388
+ this.$refs.paged.$refs.cri.search()
389
+ },
390
+ methods: {
391
+ hidden(){
392
+ this.criteriaShow = !this.criteriaShow
393
+ },
394
+ clickshow() {
395
+ this.searchshow = !this.searchshow
396
+ },
397
+ search(args) {
398
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
399
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
400
+ if (this.endDate == '' || this.startDate == '') {
401
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
402
+ }
403
+ if (this.orgCondtionStr){
404
+ this.condition = this.$refs.paged.$refs.cri.condition + `and u.f_orgid in ${this.orgCondtionStr}`
405
+ }
406
+ else
407
+ this.condition = this.$refs.paged.$refs.cri.condition
408
+ args.condition = this.condition
409
+ this.model.search(args.condition, args.model)
410
+ },
411
+ getRes(obj) {
412
+ this.orgCondtionStr = plugins.convertToIn(obj)
413
+ },
414
+ // SaveAsFile(str) {
415
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
416
+ // if (res === 'confirm') {
417
+ // let style = '<style>' +
418
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
419
+ // let strHtml = style + document.getElementById(str).innerHTML;
420
+ // console.log(strHtml);
421
+ // let LODOP = getLodop();
422
+ // LODOP.PRINT_INIT('');
423
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
424
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
425
+ // }
426
+ // })
427
+ // },
428
+ clearmsg() {
429
+ this.$refs.paged.$refs.cri.model = {}
430
+ },
431
+ close() {
432
+ this.show = false
433
+ },
434
+ // 显示柱状图
435
+ showEcharts() {
436
+ this.echarts = true
437
+ this.isActiveTotalForm = false
438
+ },
439
+ notShowTotalForm() {
440
+ this.echarts = false
441
+ this.isActiveTotalForm = false
442
+ },
443
+ // 不显示柱状图
444
+ notShowEcharts() {
445
+ this.echarts = false
446
+ this.isActiveTotalForm = false
447
+ },
448
+ // 显示汇总数据表格
449
+ showTotalForm() {
450
+ this.echarts = false
451
+ this.isActiveTotalForm = true
452
+ }
453
+ },
454
+ watch: {
455
+ 'data'(val) {
456
+ if (val.f_files_path) {
457
+ this.getFileContent(val.f_files_path)
458
+ } else {
459
+ this.reportStr = null
460
+ }
461
+ }
462
+ },
463
+ computed: {
464
+ // usertypes () {
465
+ // return this.$appdate.getParams("客户类型")
466
+ // },
467
+ getCondition() {
468
+ var con=""
469
+ if (this.orgCondtionStr) {
470
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
471
+ }
472
+ else{
473
+ con= `${this.$refs.paged.$refs.cri.condition} `
474
+ }
475
+ return {
476
+ condition: con ,
477
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
478
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
479
+ }
480
+
481
+ },
482
+ usertypes() {
483
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
484
+ },
485
+ Gasproperties() {
486
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
487
+ },
488
+ f_outlets() {
489
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
490
+ },
491
+ valveStatus() {
492
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
493
+ },
494
+ getstate() {
495
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
496
+ }
497
+ }
498
+ }
499
+ </script>
500
+ <style>
501
+ .form-input-group label {
502
+ text-align: right;
503
+ width: auto;
504
+ }
505
+
506
+ .mystyle {
507
+ float: right;
508
+ padding-right: 10%;
509
+ }
510
+
511
+ .mystyle1 {
512
+ padding-top: 10px;
513
+
514
+ }
515
+
516
+ .mystyle2 {
517
+ width: 100%;
518
+ height: 35px;
519
+ /*background: #00A3F0;*/
520
+ padding-left: 15px;
521
+ float: left;
522
+ }
523
+
524
+ .datapanel {
525
+ color: #333;
526
+ background-color: white;
527
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
528
+ padding: 10px 30px 10px 30px;
529
+ border-radius: 15px;
530
+ }
531
+ </style>