manage-client 3.2.70-aode → 3.2.71-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 (65) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,548 +1,548 @@
1
- <template>
2
- <div class="flex-row" v-if="!showdetail">
3
- <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
- <criteria-paged :model="model" :pager='true' v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
- <div class="row">
8
- <!--<div class="form-group">-->
9
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
- <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
- <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
- <!--</div>-->
13
-
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户编号</label>
16
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
- v-model="model.f_userinfo_code" placeholder='客户编号'
18
- condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
- >
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">客户名称</label>
23
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
- v-model="model.f_user_name" placeholder='客户名称'
25
- condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
- >
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户地址</label>
30
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
- placeholder='地址'
32
- condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
- >
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
- v-model="model.f_meternumber" placeholder='表号'
39
- condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
- >
41
- </div>
42
- <div style="float:right">
43
- <button class="button_search button_spacing" @click="search()">查询</button>
44
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</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"
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
- :options='$parent.$parent.usertypes'
68
- condition="f_user_type = '{}'"
69
- close-on-select>
70
- </v-select>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">用气性质</label>
74
- <v-select style="width:60%" id="f_gasproperties"
75
- v-model="model.f_gasproperties"
76
- placeholder='用气性质'
77
- :value.sync="model.f_gasproperties"
78
- :options='$parent.$parent.Gasproperties'
79
- condition="f_gasproperties = '{}'"
80
- close-on-select>
81
- </v-select>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">气表品牌</label>
85
- <v-select :value.sync="model.f_meter_brand"
86
- v-model="model.f_meter_brand"
87
- :options='$parent.$parent.meterbrands' placeholder='请选择'
88
- condition="f_meter_brand = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <!--<div class="col-sm-2 form-group">-->
92
- <!--<label class="font_normal_body">最新状态</label>-->
93
- <!-- <v-select style="width:60%" id="f_state"-->
94
- <!--v-model="model.f_state"-->
95
- <!--placeholder='最新状态'-->
96
- <!--:value.sync="model.f_state"-->
97
- <!--:options='$parent.$parent.getstate'-->
98
- <!--condition="f_state = '{}'"-->
99
- <!--close-on-select>-->
100
- <!--</v-select>-->
101
- <!--</div>-->
102
- <div class="col-sm-2 form-group">
103
- <label class="font_normal_body">开始时间</label>
104
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
105
- v-model="model.startDate"
106
- :value.sync="model.startDate"
107
- :disabled-days-of-Week="[]"
108
- :format="'yyyy-MM-dd HH:mm:ss'"
109
-
110
- :show-reset-button="reset">
111
- </datepicker>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">结束时间</label>
115
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
116
- v-model="model.endDate"
117
- :value.sync="model.endDate"
118
- :disabled-days-of-Week="[]"
119
- :format="'yyyy-MM-dd HH:mm:ss'"
120
-
121
- :show-reset-button="reset">
122
- </datepicker>
123
- </div>
124
- <div class="col-sm-2">
125
- <label class="font_normal_body">阀门状态</label>
126
- <v-select
127
- placeholder='阀门状态'
128
- value-single="true"
129
- style="width:60%"
130
- :value.sync="model.f_valvestate"
131
- v-model="model.f_valvestate"
132
- :options='$parent.$parent.ValveState'
133
- close-on-select condition="f_valvestate ='{}'">
134
- </v-select>
135
- </div>
136
-
137
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
138
- <label class="font_normal_body">最长失联&nbsp;</label>
139
- <div class="row">
140
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
141
- condition="max_interval_day >= {} " placeholder="">
142
- <label class="font_normal_body"> ≤ x ≤ </label>
143
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
144
- condition="max_interval_day <= {} " placeholder="">
145
- </div>
146
- </div>
147
-
148
-
149
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
150
- <label class="font_normal_body">合计失联&nbsp;</label>
151
- <div class="row">
152
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
153
- condition="SLdays >= {} " placeholder="">
154
- <label class="font_normal_body"> ≤ x ≤ </label>
155
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
156
- condition="SLdays <= {} " placeholder="">
157
- </div>
158
- </div>
159
-
160
- <!--<div class="col-sm-2 form-group">-->
161
- <!--<label class="font_normal_body">最新失联</label>-->
162
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
163
- <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
164
- <!--&gt;-->
165
- <!--</div>-->
166
- <!--<div class="col-sm-2 form-group">-->
167
- <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
168
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
169
- <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
170
- <!--&gt;-->
171
- <!--</div>-->
172
-
173
- </div>
174
-
175
-
176
-
177
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
178
- <!--:thead='"<th>序号</th>\n"+-->
179
- <!--"<th>档案编号</th>" +-->
180
- <!--" <th>档案标识</th>"+-->
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
- <!--: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"]'>-->
194
- <!--</print-table>-->
195
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
196
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
197
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
198
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
199
-
200
- </div>
201
- </criteria>
202
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
203
- <template partial='head'>
204
- <tr>
205
- <th style="text-align:center">
206
- <nobr>序号</nobr>
207
- </th>
208
- <th style="text-align:center">
209
- <nobr>客户编号</nobr>
210
- </th>
211
- <th style="text-align:center">
212
- <nobr>客户名称</nobr>
213
- </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">
236
- <nobr>实报天数</nobr>
237
- </th>
238
- <th style="text-align:center">
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" >
248
- <nobr>组织机构</nobr>
249
- </th>
250
-
251
- </tr>
252
-
253
- </template>
254
- <template partial='body'>
255
- <td style="text-align:center">{{$index+1}}</td>
256
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
257
- <td style="text-align: center;"><nobr>
258
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
259
- </nobr> </td>
260
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
261
- <td><nobr>{{row.f_address}}</nobr></td>
262
- <td style="text-align:center">{{row.f_user_type}}</td>
263
- <td style="text-align:center">{{row.f_gasproperties}}</td>
264
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
265
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
266
- <td style="text-align:center">{{row.f_valvestate}}</td>
267
- <td style="text-align:center">{{row.ybdays}}</td>
268
- <td style="text-align:center">{{row.sbdays}}</td>
269
- <td style="text-align:center">
270
- <nobr>{{row.max_interval_day}}</nobr>
271
- </td>
272
- <td style="text-align:center">
273
- <nobr>{{row.sldays}}</nobr>
274
- </td>
275
- <td style="text-align:center">
276
- <nobr>{{row.f_meter_brand}}</nobr>
277
- </td>
278
- <td style="text-align:center">
279
- <nobr>{{row.f_orgname}}</nobr>
280
- </td>
281
-
282
- </template>
283
- </data-grid>
284
- </criteria-paged>
285
- </div>
286
- <div v-show="echarts" style="height: 40px;width: 100%;">
287
- <div style="display: inline-block;">
288
- <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
289
- </div>
290
- <div class="mystyle" style="display: inline-block;">
291
- <label class="font_normal_body">图表统计项</label>
292
- <v-select style="width:60%" id="Groupname" v-model="groupname"
293
- placeholder='分组项'
294
- value-single="true"
295
- :value.sync="groupname"
296
- :options='getgroupname'
297
- close-on-select></v-select>
298
- </div>
299
- </div>
300
- <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
301
- <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
302
- :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
303
- </div>
304
- <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
305
- <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
306
- <!-- </div>-->
307
- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
308
- <lost-contact-eform :condition="condition" :startdate="startDate"
309
- :enddate="endDate"></lost-contact-eform>
310
- </div>
311
- </div>
312
- <div class="basic-main" v-if="showdetail">
313
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
314
- </div>
315
- </template>
316
-
317
- <script>
318
- import {PagedList} from 'vue-client'
319
- import UserGasEcharts from './UserGasEcharts'
320
- import * as Util from '../../../Util'
321
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
- import {toStandardYearMonth, toStandardYearMonth1} from "../../../Util";
323
-
324
- let readySomething = async function (self) {
325
-
326
- await self.$MagLoadParams.loadParam()
327
- self.initParams()
328
- let year = new Date().getFullYear()
329
- let month = new Date().getFullYear()
330
- self.$refs.paged.$refs.cri.model.startDate = Util.toStandardYearMonth() +'-01 00:00:00'
331
- self.$refs.paged.$refs.cri.model.max_interval_day1 = 0
332
- self.$refs.paged.$refs.cri.model.max_interval_day2 = 7
333
-
334
- // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
335
- self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
336
- // self.$refs.paged.$refs.cri.search()
337
- }
338
- export default {
339
- title: '失联分析',
340
- props: ['data'],
341
- components: {UserGasEcharts},
342
- data() {
343
- return {
344
- model: new PagedList('rs/sql/webmeter_getAllLoseQuery', 20, {
345
- startDate: 'this.model.startDate',
346
- endDate: 'this.model.endDate'
347
- }),
348
- getfield:{
349
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
350
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
351
- "f_meternumber":"表号",
352
- "f_valvestate":"阀门状态",
353
- "f_startuse_date":"启用日期",
354
- "ybdays":"应报天数",
355
- "sbdays":"实报天数",
356
- "max_interval_day":"最长失联天数","sldays":"累计失联天数",
357
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
358
- reportStr: null,
359
- show: false,
360
- showdetail:false,
361
- rowdata:{},
362
- startDate: '',
363
- endDate: '',
364
- criteriaShow:true,
365
- outlets: [],
366
- operator: [],
367
- meterbrands:[],
368
- filename: '',
369
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
370
- echarts: false,
371
- orgid:[this.$login.f.orgid],
372
- searchshow: false,
373
- isActiveTotalForm: false,
374
- condition: '1=1',
375
- groupname: ['max_days_type'],
376
- getgroupname: [
377
- {label: '客户类型', value: 'f_user_type'},
378
- {label: '用气性质', value: 'f_gasproperties'},
379
- {label: '分公司', value: 'f_orgid'},
380
- {label: '最长失联天数', value: 'max_days_type'},
381
- {label: '合计失联天数', value: 'all_days_type'}
382
- ],
383
- org:[this.$login.f.orgid]
384
-
385
- }
386
- },
387
- ready() {
388
- readySomething(this)
389
- },
390
- methods: {
391
- hidden(){
392
- this.criteriaShow = !this.criteriaShow
393
- },
394
- clickshow() {
395
- this.searchshow = !this.searchshow
396
- },
397
- showmsg(obj){
398
- this.rowdata=obj
399
- this.showdetail=true
400
- },
401
- cancel() {
402
- this.showdetail = false
403
- },
404
- initParams () {
405
- let arr = []
406
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
407
- let temp = {}
408
- if(item.value.f_meter_type==='物联网表'){
409
- temp.label = item.label
410
- temp.value = item.value.f_meter_brand
411
- arr.push(temp )
412
- }
413
-
414
- })
415
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
416
- },
417
- search(args) {
418
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
419
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
420
- if (this.endDate == '' || this.startDate == '') {
421
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
422
- }
423
- args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
424
- this.model.search(args.condition, args.model)
425
- },
426
- getorg(obj) {
427
- if (obj.resids.length>0) {
428
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
429
- }else
430
- {
431
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
432
- }
433
- },
434
- // SaveAsFile(str) {
435
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
436
- // if (res === 'confirm') {
437
- // let style = '<style>' +
438
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
439
- // let strHtml = style + document.getElementById(str).innerHTML;
440
- // console.log(strHtml);
441
- // let LODOP = getLodop();
442
- // LODOP.PRINT_INIT('');
443
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
444
- // LODOP.SAVE_TO_FILE('失联分析.xls')
445
- // }
446
- // })
447
- // },
448
- clearmsg() {
449
- this.$refs.paged.$refs.cri.model = {}
450
- },
451
- close() {
452
- this.show = false
453
- },
454
- // 显示柱状图
455
- showEcharts() {
456
- this.echarts = true
457
- this.isActiveTotalForm = false
458
- },
459
- notShowTotalForm() {
460
- this.echarts = false
461
- this.isActiveTotalForm = false
462
- },
463
- // 不显示柱状图
464
- notShowEcharts() {
465
- this.echarts = false
466
- this.isActiveTotalForm = false
467
- },
468
- // 显示汇总数据表格
469
- showTotalForm() {
470
- this.echarts = false
471
- this.isActiveTotalForm = true
472
- }
473
- },
474
- watch: {
475
- 'data'(val) {
476
- if (val.f_files_path) {
477
- this.getFileContent(val.f_files_path)
478
- } else {
479
- this.reportStr = null
480
- }
481
- }
482
- },
483
- computed: {
484
- // usertypes () {
485
- // return this.$appdate.getParams("客户类型")
486
- // },
487
- ValveState() {
488
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
489
- },
490
- getCondition() {
491
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
492
- return {
493
- condition: condition ,
494
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
495
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
496
- }
497
-
498
- },
499
- usertypes() {
500
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
501
- },
502
- Gasproperties() {
503
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
504
- },
505
- f_outlets() {
506
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
507
- },
508
- valveStatus() {
509
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
510
- },
511
- getstate() {
512
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
513
- }
514
- }
515
- }
516
- </script>
517
- <style>
518
- .form-input-group label {
519
- text-align: right;
520
- width: auto;
521
- }
522
-
523
- .mystyle {
524
- float: right;
525
- padding-right: 10%;
526
- }
527
-
528
- .mystyle1 {
529
- padding-top: 10px;
530
-
531
- }
532
-
533
- .mystyle2 {
534
- width: 100%;
535
- height: 35px;
536
- /*background: #00A3F0;*/
537
- padding-left: 15px;
538
- float: left;
539
- }
540
-
541
- .datapanel {
542
- color: #333;
543
- background-color: white;
544
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
545
- padding: 10px 30px 10px 30px;
546
- border-radius: 15px;
547
- }
548
- </style>
1
+ <template>
2
+ <div class="flex-row" v-if="!showdetail">
3
+ <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <!--<div class="form-group">-->
9
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
+ <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
+ <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
+ <!--</div>-->
13
+
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
+ v-model="model.f_userinfo_code" placeholder='客户编号'
18
+ condition="f_userinfo_code like '{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
+ >
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
+ v-model="model.f_user_name" placeholder='客户名称'
25
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
+ >
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户地址</label>
30
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
+ placeholder='地址'
32
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
+ >
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
+ v-model="model.f_meternumber" placeholder='表号'
39
+ condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
+ >
41
+ </div>
42
+ <div style="float:right">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</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"
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
+ :options='$parent.$parent.usertypes'
68
+ condition="f_user_type = '{}'"
69
+ close-on-select>
70
+ </v-select>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">用气性质</label>
74
+ <v-select style="width:60%" id="f_gasproperties"
75
+ v-model="model.f_gasproperties"
76
+ placeholder='用气性质'
77
+ :value.sync="model.f_gasproperties"
78
+ :options='$parent.$parent.Gasproperties'
79
+ condition="f_gasproperties = '{}'"
80
+ close-on-select>
81
+ </v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">气表品牌</label>
85
+ <v-select :value.sync="model.f_meter_brand"
86
+ v-model="model.f_meter_brand"
87
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
88
+ condition="f_meter_brand = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <!--<div class="col-sm-2 form-group">-->
92
+ <!--<label class="font_normal_body">最新状态</label>-->
93
+ <!-- <v-select style="width:60%" id="f_state"-->
94
+ <!--v-model="model.f_state"-->
95
+ <!--placeholder='最新状态'-->
96
+ <!--:value.sync="model.f_state"-->
97
+ <!--:options='$parent.$parent.getstate'-->
98
+ <!--condition="f_state = '{}'"-->
99
+ <!--close-on-select>-->
100
+ <!--</v-select>-->
101
+ <!--</div>-->
102
+ <div class="col-sm-2 form-group">
103
+ <label class="font_normal_body">开始时间</label>
104
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
105
+ v-model="model.startDate"
106
+ :value.sync="model.startDate"
107
+ :disabled-days-of-Week="[]"
108
+ :format="'yyyy-MM-dd HH:mm:ss'"
109
+
110
+ :show-reset-button="reset">
111
+ </datepicker>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">结束时间</label>
115
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
116
+ v-model="model.endDate"
117
+ :value.sync="model.endDate"
118
+ :disabled-days-of-Week="[]"
119
+ :format="'yyyy-MM-dd HH:mm:ss'"
120
+
121
+ :show-reset-button="reset">
122
+ </datepicker>
123
+ </div>
124
+ <div class="col-sm-2">
125
+ <label class="font_normal_body">阀门状态</label>
126
+ <v-select
127
+ placeholder='阀门状态'
128
+ value-single="true"
129
+ style="width:60%"
130
+ :value.sync="model.f_valvestate"
131
+ v-model="model.f_valvestate"
132
+ :options='$parent.$parent.ValveState'
133
+ close-on-select condition="f_valvestate ='{}'">
134
+ </v-select>
135
+ </div>
136
+
137
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
138
+ <label class="font_normal_body">最长失联&nbsp;</label>
139
+ <div class="row">
140
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
141
+ condition="max_interval_day >= {} " placeholder="">
142
+ <label class="font_normal_body"> ≤ x ≤ </label>
143
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
144
+ condition="max_interval_day <= {} " placeholder="">
145
+ </div>
146
+ </div>
147
+
148
+
149
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
150
+ <label class="font_normal_body">合计失联&nbsp;</label>
151
+ <div class="row">
152
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
153
+ condition="SLdays >= {} " placeholder="">
154
+ <label class="font_normal_body"> ≤ x ≤ </label>
155
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
156
+ condition="SLdays <= {} " placeholder="">
157
+ </div>
158
+ </div>
159
+
160
+ <!--<div class="col-sm-2 form-group">-->
161
+ <!--<label class="font_normal_body">最新失联</label>-->
162
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
163
+ <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
164
+ <!--&gt;-->
165
+ <!--</div>-->
166
+ <!--<div class="col-sm-2 form-group">-->
167
+ <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
168
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
169
+ <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
170
+ <!--&gt;-->
171
+ <!--</div>-->
172
+
173
+ </div>
174
+
175
+
176
+
177
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
178
+ <!--:thead='"<th>序号</th>\n"+-->
179
+ <!--"<th>档案编号</th>" +-->
180
+ <!--" <th>档案标识</th>"+-->
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
+ <!--: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"]'>-->
194
+ <!--</print-table>-->
195
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
196
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
197
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
198
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
199
+
200
+ </div>
201
+ </criteria>
202
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
203
+ <template partial='head'>
204
+ <tr>
205
+ <th style="text-align:center">
206
+ <nobr>序号</nobr>
207
+ </th>
208
+ <th style="text-align:center">
209
+ <nobr>客户编号</nobr>
210
+ </th>
211
+ <th style="text-align:center">
212
+ <nobr>客户名称</nobr>
213
+ </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">
236
+ <nobr>实报天数</nobr>
237
+ </th>
238
+ <th style="text-align:center">
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" >
248
+ <nobr>组织机构</nobr>
249
+ </th>
250
+
251
+ </tr>
252
+
253
+ </template>
254
+ <template partial='body'>
255
+ <td style="text-align:center">{{$index+1}}</td>
256
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
257
+ <td style="text-align: center;"><nobr>
258
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
259
+ </nobr> </td>
260
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
261
+ <td><nobr>{{row.f_address}}</nobr></td>
262
+ <td style="text-align:center">{{row.f_user_type}}</td>
263
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
264
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
265
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
266
+ <td style="text-align:center">{{row.f_valvestate}}</td>
267
+ <td style="text-align:center">{{row.ybdays}}</td>
268
+ <td style="text-align:center">{{row.sbdays}}</td>
269
+ <td style="text-align:center">
270
+ <nobr>{{row.max_interval_day}}</nobr>
271
+ </td>
272
+ <td style="text-align:center">
273
+ <nobr>{{row.sldays}}</nobr>
274
+ </td>
275
+ <td style="text-align:center">
276
+ <nobr>{{row.f_meter_brand}}</nobr>
277
+ </td>
278
+ <td style="text-align:center">
279
+ <nobr>{{row.f_orgname}}</nobr>
280
+ </td>
281
+
282
+ </template>
283
+ </data-grid>
284
+ </criteria-paged>
285
+ </div>
286
+ <div v-show="echarts" style="height: 40px;width: 100%;">
287
+ <div style="display: inline-block;">
288
+ <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
289
+ </div>
290
+ <div class="mystyle" style="display: inline-block;">
291
+ <label class="font_normal_body">图表统计项</label>
292
+ <v-select style="width:60%" id="Groupname" v-model="groupname"
293
+ placeholder='分组项'
294
+ value-single="true"
295
+ :value.sync="groupname"
296
+ :options='getgroupname'
297
+ close-on-select></v-select>
298
+ </div>
299
+ </div>
300
+ <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
301
+ <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
302
+ :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
303
+ </div>
304
+ <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
305
+ <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
306
+ <!-- </div>-->
307
+ <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
308
+ <lost-contact-eform :condition="condition" :startdate="startDate"
309
+ :enddate="endDate"></lost-contact-eform>
310
+ </div>
311
+ </div>
312
+ <div class="basic-main" v-if="showdetail">
313
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
314
+ </div>
315
+ </template>
316
+
317
+ <script>
318
+ import {PagedList} from 'vue-client'
319
+ import UserGasEcharts from './UserGasEcharts'
320
+ import * as Util from '../../../Util'
321
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
+ import {toStandardYearMonth, toStandardYearMonth1} from "../../../Util";
323
+
324
+ let readySomething = async function (self) {
325
+
326
+ await self.$MagLoadParams.loadParam()
327
+ self.initParams()
328
+ let year = new Date().getFullYear()
329
+ let month = new Date().getFullYear()
330
+ self.$refs.paged.$refs.cri.model.startDate = Util.toStandardYearMonth() +'-01 00:00:00'
331
+ self.$refs.paged.$refs.cri.model.max_interval_day1 = 0
332
+ self.$refs.paged.$refs.cri.model.max_interval_day2 = 7
333
+
334
+ // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
335
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
336
+ // self.$refs.paged.$refs.cri.search()
337
+ }
338
+ export default {
339
+ title: '失联分析',
340
+ props: ['data'],
341
+ components: {UserGasEcharts},
342
+ data() {
343
+ return {
344
+ model: new PagedList('rs/sql/webmeter_getAllLoseQuery', 20, {
345
+ startDate: 'this.model.startDate',
346
+ endDate: 'this.model.endDate'
347
+ }),
348
+ getfield:{
349
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称",
350
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
351
+ "f_meternumber":"表号",
352
+ "f_valvestate":"阀门状态",
353
+ "f_startuse_date":"启用日期",
354
+ "ybdays":"应报天数",
355
+ "sbdays":"实报天数",
356
+ "max_interval_day":"最长失联天数","sldays":"累计失联天数",
357
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
358
+ reportStr: null,
359
+ show: false,
360
+ showdetail:false,
361
+ rowdata:{},
362
+ startDate: '',
363
+ endDate: '',
364
+ criteriaShow:true,
365
+ outlets: [],
366
+ operator: [],
367
+ meterbrands:[],
368
+ filename: '',
369
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
370
+ echarts: false,
371
+ orgid:[this.$login.f.orgid],
372
+ searchshow: false,
373
+ isActiveTotalForm: false,
374
+ condition: '1=1',
375
+ groupname: ['max_days_type'],
376
+ getgroupname: [
377
+ {label: '客户类型', value: 'f_user_type'},
378
+ {label: '用气性质', value: 'f_gasproperties'},
379
+ {label: '分公司', value: 'f_orgid'},
380
+ {label: '最长失联天数', value: 'max_days_type'},
381
+ {label: '合计失联天数', value: 'all_days_type'}
382
+ ],
383
+ org:[this.$login.f.orgid]
384
+
385
+ }
386
+ },
387
+ ready() {
388
+ readySomething(this)
389
+ },
390
+ methods: {
391
+ hidden(){
392
+ this.criteriaShow = !this.criteriaShow
393
+ },
394
+ clickshow() {
395
+ this.searchshow = !this.searchshow
396
+ },
397
+ showmsg(obj){
398
+ this.rowdata=obj
399
+ this.showdetail=true
400
+ },
401
+ cancel() {
402
+ this.showdetail = false
403
+ },
404
+ initParams () {
405
+ let arr = []
406
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
407
+ let temp = {}
408
+ if(item.value.f_meter_type==='物联网表'){
409
+ temp.label = item.label
410
+ temp.value = item.value.f_meter_brand
411
+ arr.push(temp )
412
+ }
413
+
414
+ })
415
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
416
+ },
417
+ search(args) {
418
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
419
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
420
+ if (this.endDate == '' || this.startDate == '') {
421
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
422
+ }
423
+ args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
424
+ this.model.search(args.condition, args.model)
425
+ },
426
+ getorg(obj) {
427
+ if (obj.resids.length>0) {
428
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
429
+ }else
430
+ {
431
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
432
+ }
433
+ },
434
+ // SaveAsFile(str) {
435
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
436
+ // if (res === 'confirm') {
437
+ // let style = '<style>' +
438
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
439
+ // let strHtml = style + document.getElementById(str).innerHTML;
440
+ // console.log(strHtml);
441
+ // let LODOP = getLodop();
442
+ // LODOP.PRINT_INIT('');
443
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
444
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
445
+ // }
446
+ // })
447
+ // },
448
+ clearmsg() {
449
+ this.$refs.paged.$refs.cri.model = {}
450
+ },
451
+ close() {
452
+ this.show = false
453
+ },
454
+ // 显示柱状图
455
+ showEcharts() {
456
+ this.echarts = true
457
+ this.isActiveTotalForm = false
458
+ },
459
+ notShowTotalForm() {
460
+ this.echarts = false
461
+ this.isActiveTotalForm = false
462
+ },
463
+ // 不显示柱状图
464
+ notShowEcharts() {
465
+ this.echarts = false
466
+ this.isActiveTotalForm = false
467
+ },
468
+ // 显示汇总数据表格
469
+ showTotalForm() {
470
+ this.echarts = false
471
+ this.isActiveTotalForm = true
472
+ }
473
+ },
474
+ watch: {
475
+ 'data'(val) {
476
+ if (val.f_files_path) {
477
+ this.getFileContent(val.f_files_path)
478
+ } else {
479
+ this.reportStr = null
480
+ }
481
+ }
482
+ },
483
+ computed: {
484
+ // usertypes () {
485
+ // return this.$appdate.getParams("客户类型")
486
+ // },
487
+ ValveState() {
488
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
489
+ },
490
+ getCondition() {
491
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
492
+ return {
493
+ condition: condition ,
494
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
495
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
496
+ }
497
+
498
+ },
499
+ usertypes() {
500
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
501
+ },
502
+ Gasproperties() {
503
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
504
+ },
505
+ f_outlets() {
506
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
507
+ },
508
+ valveStatus() {
509
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
510
+ },
511
+ getstate() {
512
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
513
+ }
514
+ }
515
+ }
516
+ </script>
517
+ <style>
518
+ .form-input-group label {
519
+ text-align: right;
520
+ width: auto;
521
+ }
522
+
523
+ .mystyle {
524
+ float: right;
525
+ padding-right: 10%;
526
+ }
527
+
528
+ .mystyle1 {
529
+ padding-top: 10px;
530
+
531
+ }
532
+
533
+ .mystyle2 {
534
+ width: 100%;
535
+ height: 35px;
536
+ /*background: #00A3F0;*/
537
+ padding-left: 15px;
538
+ float: left;
539
+ }
540
+
541
+ .datapanel {
542
+ color: #333;
543
+ background-color: white;
544
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
545
+ padding: 10px 30px 10px 30px;
546
+ border-radius: 15px;
547
+ }
548
+ </style>