manage-client 3.2.52-aode → 3.2.53-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 (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  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/DayReportList.vue +516 -516
  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 +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  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 +392 -392
  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 +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,530 +1,530 @@
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
-
125
-
126
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
127
- <label class="font_normal_body">最长失联&nbsp;</label>
128
- <div class="row">
129
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
130
- condition="max_interval_day >= {} " placeholder="">
131
- <label class="font_normal_body"> ≤ x ≤ </label>
132
- <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
133
- condition="max_interval_day <= {} " placeholder="">
134
- </div>
135
- </div>
136
-
137
-
138
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
139
- <label class="font_normal_body">合计失联&nbsp;</label>
140
- <div class="row">
141
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
142
- condition="SLdays >= {} " placeholder="">
143
- <label class="font_normal_body"> ≤ x ≤ </label>
144
- <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
145
- condition="SLdays <= {} " placeholder="">
146
- </div>
147
- </div>
148
-
149
- <!--<div class="col-sm-2 form-group">-->
150
- <!--<label class="font_normal_body">最新失联</label>-->
151
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
152
- <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
153
- <!--&gt;-->
154
- <!--</div>-->
155
- <!--<div class="col-sm-2 form-group">-->
156
- <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
157
- <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
158
- <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
159
- <!--&gt;-->
160
- <!--</div>-->
161
-
162
- </div>
163
-
164
-
165
-
166
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
167
- <!--:thead='"<th>序号</th>\n"+-->
168
- <!--"<th>档案编号</th>" +-->
169
- <!--" <th>档案标识</th>"+-->
170
- <!--"<th>客户名称</th>"+-->
171
- <!--"<th>表号</th"+-->
172
- <!--"<th>表具类型</th>"+-->
173
- <!--"<th>客户类型</th>"+-->
174
- <!--"<th>区域</th>"+-->
175
- <!--"<th>小区</th>"+-->
176
- <!--"<th>地址</th>"+-->
177
- <!--"<th>用气气量</th>"+-->
178
- <!--"<th>用气金额</th>"-->
179
- <!--+"<th>用气价格</th>"-->
180
- <!--+"<th>时间</th>"-->
181
- <!--+"<th>所属机构</th>"'-->
182
- <!--: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"]'>-->
183
- <!--</print-table>-->
184
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
185
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
186
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
187
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
188
-
189
- </div>
190
- </criteria>
191
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
192
- <template partial='head'>
193
- <tr>
194
- <th style="text-align:center">
195
- <nobr>序号</nobr>
196
- </th>
197
- <th style="text-align:center">
198
- <nobr>客户编号</nobr>
199
- </th>
200
- <th style="text-align:center">
201
- <nobr>客户名称</nobr>
202
- </th>
203
- <th style="text-align:center">
204
- <nobr>客户地址</nobr>
205
- </th>
206
- <th style="text-align:center">
207
- <nobr>客户类型</nobr>
208
- </th>
209
- <th style="text-align:center">
210
- <nobr>用气性质</nobr>
211
- </th>
212
- <th style="text-align:center">
213
- <nobr>表号</nobr>
214
- </th>
215
- <th style="text-align:center">
216
- <nobr>启用日期</nobr>
217
- </th>
218
-
219
- <th style="text-align:center">
220
- <nobr>应报天数</nobr>
221
- </th>
222
- <th style="text-align:center">
223
- <nobr>实报天数</nobr>
224
- </th>
225
- <th style="text-align:center">
226
- <nobr>最长失联天数</nobr>
227
- </th>
228
- <th style="text-align:center">
229
- <nobr>累计失联天数</nobr>
230
- </th>
231
- <th style="text-align:center">
232
- <nobr>气表厂家</nobr>
233
- </th>
234
- <th style="text-align:center" >
235
- <nobr>组织机构</nobr>
236
- </th>
237
-
238
- </tr>
239
-
240
- </template>
241
- <template partial='body'>
242
- <td style="text-align:center">{{$index+1}}</td>
243
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
244
- <td style="text-align: center;"><nobr>
245
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
246
- </nobr> </td>
247
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
248
- <td><nobr>{{row.f_address}}</nobr></td>
249
- <td style="text-align:center">{{row.f_user_type}}</td>
250
- <td style="text-align:center">{{row.f_gasproperties}}</td>
251
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
252
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
253
-
254
- <td style="text-align:center">{{row.ybdays}}</td>
255
- <td style="text-align:center">{{row.sbdays}}</td>
256
- <td style="text-align:center">
257
- <nobr>{{row.max_interval_day}}</nobr>
258
- </td>
259
- <td style="text-align:center">
260
- <nobr>{{row.sldays}}</nobr>
261
- </td>
262
- <td style="text-align:center">
263
- <nobr>{{row.f_meter_brand}}</nobr>
264
- </td>
265
- <td style="text-align:center">
266
- <nobr>{{row.f_orgname}}</nobr>
267
- </td>
268
-
269
- </template>
270
- </data-grid>
271
- </criteria-paged>
272
- </div>
273
- <div v-show="echarts" style="height: 40px;width: 100%;">
274
- <div style="display: inline-block;">
275
- <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
276
- </div>
277
- <div class="mystyle" style="display: inline-block;">
278
- <label class="font_normal_body">图表统计项</label>
279
- <v-select style="width:60%" id="Groupname" v-model="groupname"
280
- placeholder='分组项'
281
- value-single="true"
282
- :value.sync="groupname"
283
- :options='getgroupname'
284
- close-on-select></v-select>
285
- </div>
286
- </div>
287
- <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
288
- <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
289
- :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
290
- </div>
291
- <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
292
- <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
293
- <!-- </div>-->
294
- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
295
- <lost-contact-eform :condition="condition" :startdate="startDate"
296
- :enddate="endDate"></lost-contact-eform>
297
- </div>
298
- </div>
299
- <div class="basic-main" v-if="showdetail">
300
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
301
- </div>
302
- </template>
303
-
304
- <script>
305
- import {PagedList} from 'vue-client'
306
- import UserGasEcharts from './UserGasEcharts'
307
- import * as Util from '../../../Util'
308
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
309
-
310
- let readySomething = async function (self) {
311
-
312
- await self.$MagLoadParams.loadParam()
313
- self.initParams()
314
- let year = new Date().getFullYear()
315
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
316
- self.$refs.paged.$refs.cri.model.max_interval_day1 = 0
317
- self.$refs.paged.$refs.cri.model.max_interval_day2 = 7
318
-
319
- // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
320
- self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
321
- self.$refs.paged.$refs.cri.search()
322
- }
323
- export default {
324
- title: '失联分析',
325
- props: ['data'],
326
- components: {UserGasEcharts},
327
- data() {
328
- return {
329
- model: new PagedList('rs/sql/webmeter_getAllLoseQuery', 20, {
330
- startDate: 'this.model.startDate',
331
- endDate: 'this.model.endDate'
332
- }),
333
- getfield:{
334
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
335
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
336
- "f_meternumber":"表号",
337
-
338
- "f_startuse_date":"启用日期",
339
- "ybdays":"应报天数",
340
- "sbdays":"实报天数",
341
- "max_interval_day":"最长失联天数","sldays":"累计失联天数",
342
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
343
- reportStr: null,
344
- show: false,
345
- showdetail:false,
346
- rowdata:{},
347
- startDate: '',
348
- endDate: '',
349
- criteriaShow:true,
350
- outlets: [],
351
- operator: [],
352
- meterbrands:[],
353
- filename: '',
354
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
355
- echarts: false,
356
- orgid:[this.$login.f.orgid],
357
- searchshow: false,
358
- isActiveTotalForm: false,
359
- condition: '1=1',
360
- groupname: ['max_days_type'],
361
- getgroupname: [
362
- {label: '客户类型', value: 'f_user_type'},
363
- {label: '用气性质', value: 'f_gasproperties'},
364
- {label: '分公司', value: 'f_orgid'},
365
- {label: '最长失联天数', value: 'max_days_type'},
366
- {label: '合计失联天数', value: 'all_days_type'}
367
- ],
368
- org:[this.$login.f.orgid]
369
-
370
- }
371
- },
372
- ready() {
373
- readySomething(this)
374
- },
375
- methods: {
376
- hidden(){
377
- this.criteriaShow = !this.criteriaShow
378
- },
379
- clickshow() {
380
- this.searchshow = !this.searchshow
381
- },
382
- showmsg(obj){
383
- this.rowdata=obj
384
- this.showdetail=true
385
- },
386
- cancel() {
387
- this.showdetail = false
388
- },
389
- initParams () {
390
- let arr = []
391
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
392
- let temp = {}
393
- if(item.value.f_meter_type==='物联网表'){
394
- temp.label = item.label
395
- temp.value = item.value.f_meter_brand
396
- arr.push(temp )
397
- }
398
-
399
- })
400
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
401
- },
402
- search(args) {
403
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
404
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
405
- if (this.endDate == '' || this.startDate == '') {
406
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
407
- }
408
- args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
409
- this.model.search(args.condition, args.model)
410
- },
411
- getorg(obj) {
412
- if (obj.resids.length>0) {
413
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
414
- }else
415
- {
416
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
417
- }
418
- },
419
- // SaveAsFile(str) {
420
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
421
- // if (res === 'confirm') {
422
- // let style = '<style>' +
423
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
424
- // let strHtml = style + document.getElementById(str).innerHTML;
425
- // console.log(strHtml);
426
- // let LODOP = getLodop();
427
- // LODOP.PRINT_INIT('');
428
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
429
- // LODOP.SAVE_TO_FILE('失联分析.xls')
430
- // }
431
- // })
432
- // },
433
- clearmsg() {
434
- this.$refs.paged.$refs.cri.model = {}
435
- },
436
- close() {
437
- this.show = false
438
- },
439
- // 显示柱状图
440
- showEcharts() {
441
- this.echarts = true
442
- this.isActiveTotalForm = false
443
- },
444
- notShowTotalForm() {
445
- this.echarts = false
446
- this.isActiveTotalForm = false
447
- },
448
- // 不显示柱状图
449
- notShowEcharts() {
450
- this.echarts = false
451
- this.isActiveTotalForm = false
452
- },
453
- // 显示汇总数据表格
454
- showTotalForm() {
455
- this.echarts = false
456
- this.isActiveTotalForm = true
457
- }
458
- },
459
- watch: {
460
- 'data'(val) {
461
- if (val.f_files_path) {
462
- this.getFileContent(val.f_files_path)
463
- } else {
464
- this.reportStr = null
465
- }
466
- }
467
- },
468
- computed: {
469
- // usertypes () {
470
- // return this.$appdate.getParams("客户类型")
471
- // },
472
- getCondition() {
473
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
474
- return {
475
- condition: condition ,
476
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
477
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
478
- }
479
-
480
- },
481
- usertypes() {
482
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
483
- },
484
- Gasproperties() {
485
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
486
- },
487
- f_outlets() {
488
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
489
- },
490
- valveStatus() {
491
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
492
- },
493
- getstate() {
494
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
495
- }
496
- }
497
- }
498
- </script>
499
- <style>
500
- .form-input-group label {
501
- text-align: right;
502
- width: auto;
503
- }
504
-
505
- .mystyle {
506
- float: right;
507
- padding-right: 10%;
508
- }
509
-
510
- .mystyle1 {
511
- padding-top: 10px;
512
-
513
- }
514
-
515
- .mystyle2 {
516
- width: 100%;
517
- height: 35px;
518
- /*background: #00A3F0;*/
519
- padding-left: 15px;
520
- float: left;
521
- }
522
-
523
- .datapanel {
524
- color: #333;
525
- background-color: white;
526
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
527
- padding: 10px 30px 10px 30px;
528
- border-radius: 15px;
529
- }
530
- </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
+
125
+
126
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
127
+ <label class="font_normal_body">最长失联&nbsp;</label>
128
+ <div class="row">
129
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day1"
130
+ condition="max_interval_day >= {} " placeholder="">
131
+ <label class="font_normal_body"> ≤ x ≤ </label>
132
+ <input type="text" style="width:27%" class="input_search" v-model="model.max_interval_day2"
133
+ condition="max_interval_day <= {} " placeholder="">
134
+ </div>
135
+ </div>
136
+
137
+
138
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
139
+ <label class="font_normal_body">合计失联&nbsp;</label>
140
+ <div class="row">
141
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays1"
142
+ condition="SLdays >= {} " placeholder="">
143
+ <label class="font_normal_body"> ≤ x ≤ </label>
144
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLdays2"
145
+ condition="SLdays <= {} " placeholder="">
146
+ </div>
147
+ </div>
148
+
149
+ <!--<div class="col-sm-2 form-group">-->
150
+ <!--<label class="font_normal_body">最新失联</label>-->
151
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days1" placeholder='天数大于等于'-->
152
+ <!--condition="new_days >= {}" v-next-el='new_days' v-el:new_days-->
153
+ <!--&gt;-->
154
+ <!--</div>-->
155
+ <!--<div class="col-sm-2 form-group">-->
156
+ <!--<label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>-->
157
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.new_days2" placeholder='天数小于等于'-->
158
+ <!--condition="new_days <= {}" v-next-el='new_days' v-el:new_days-->
159
+ <!--&gt;-->
160
+ <!--</div>-->
161
+
162
+ </div>
163
+
164
+
165
+
166
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
167
+ <!--:thead='"<th>序号</th>\n"+-->
168
+ <!--"<th>档案编号</th>" +-->
169
+ <!--" <th>档案标识</th>"+-->
170
+ <!--"<th>客户名称</th>"+-->
171
+ <!--"<th>表号</th"+-->
172
+ <!--"<th>表具类型</th>"+-->
173
+ <!--"<th>客户类型</th>"+-->
174
+ <!--"<th>区域</th>"+-->
175
+ <!--"<th>小区</th>"+-->
176
+ <!--"<th>地址</th>"+-->
177
+ <!--"<th>用气气量</th>"+-->
178
+ <!--"<th>用气金额</th>"-->
179
+ <!--+"<th>用气价格</th>"-->
180
+ <!--+"<th>时间</th>"-->
181
+ <!--+"<th>所属机构</th>"'-->
182
+ <!--: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"]'>-->
183
+ <!--</print-table>-->
184
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
185
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
186
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
187
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
188
+
189
+ </div>
190
+ </criteria>
191
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
192
+ <template partial='head'>
193
+ <tr>
194
+ <th style="text-align:center">
195
+ <nobr>序号</nobr>
196
+ </th>
197
+ <th style="text-align:center">
198
+ <nobr>客户编号</nobr>
199
+ </th>
200
+ <th style="text-align:center">
201
+ <nobr>客户名称</nobr>
202
+ </th>
203
+ <th style="text-align:center">
204
+ <nobr>客户地址</nobr>
205
+ </th>
206
+ <th style="text-align:center">
207
+ <nobr>客户类型</nobr>
208
+ </th>
209
+ <th style="text-align:center">
210
+ <nobr>用气性质</nobr>
211
+ </th>
212
+ <th style="text-align:center">
213
+ <nobr>表号</nobr>
214
+ </th>
215
+ <th style="text-align:center">
216
+ <nobr>启用日期</nobr>
217
+ </th>
218
+
219
+ <th style="text-align:center">
220
+ <nobr>应报天数</nobr>
221
+ </th>
222
+ <th style="text-align:center">
223
+ <nobr>实报天数</nobr>
224
+ </th>
225
+ <th style="text-align:center">
226
+ <nobr>最长失联天数</nobr>
227
+ </th>
228
+ <th style="text-align:center">
229
+ <nobr>累计失联天数</nobr>
230
+ </th>
231
+ <th style="text-align:center">
232
+ <nobr>气表厂家</nobr>
233
+ </th>
234
+ <th style="text-align:center" >
235
+ <nobr>组织机构</nobr>
236
+ </th>
237
+
238
+ </tr>
239
+
240
+ </template>
241
+ <template partial='body'>
242
+ <td style="text-align:center">{{$index+1}}</td>
243
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
244
+ <td style="text-align: center;"><nobr>
245
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
246
+ </nobr> </td>
247
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
248
+ <td><nobr>{{row.f_address}}</nobr></td>
249
+ <td style="text-align:center">{{row.f_user_type}}</td>
250
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
251
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
252
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
253
+
254
+ <td style="text-align:center">{{row.ybdays}}</td>
255
+ <td style="text-align:center">{{row.sbdays}}</td>
256
+ <td style="text-align:center">
257
+ <nobr>{{row.max_interval_day}}</nobr>
258
+ </td>
259
+ <td style="text-align:center">
260
+ <nobr>{{row.sldays}}</nobr>
261
+ </td>
262
+ <td style="text-align:center">
263
+ <nobr>{{row.f_meter_brand}}</nobr>
264
+ </td>
265
+ <td style="text-align:center">
266
+ <nobr>{{row.f_orgname}}</nobr>
267
+ </td>
268
+
269
+ </template>
270
+ </data-grid>
271
+ </criteria-paged>
272
+ </div>
273
+ <div v-show="echarts" style="height: 40px;width: 100%;">
274
+ <div style="display: inline-block;">
275
+ <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
276
+ </div>
277
+ <div class="mystyle" style="display: inline-block;">
278
+ <label class="font_normal_body">图表统计项</label>
279
+ <v-select style="width:60%" id="Groupname" v-model="groupname"
280
+ placeholder='分组项'
281
+ value-single="true"
282
+ :value.sync="groupname"
283
+ :options='getgroupname'
284
+ close-on-select></v-select>
285
+ </div>
286
+ </div>
287
+ <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
288
+ <lost-contact-echarts :groupname="groupname[0]" :condition="condition" :startdate="startDate"
289
+ :enddate="endDate" :echarts="echarts"></lost-contact-echarts>
290
+ </div>
291
+ <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
292
+ <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
293
+ <!-- </div>-->
294
+ <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
295
+ <lost-contact-eform :condition="condition" :startdate="startDate"
296
+ :enddate="endDate"></lost-contact-eform>
297
+ </div>
298
+ </div>
299
+ <div class="basic-main" v-if="showdetail">
300
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
301
+ </div>
302
+ </template>
303
+
304
+ <script>
305
+ import {PagedList} from 'vue-client'
306
+ import UserGasEcharts from './UserGasEcharts'
307
+ import * as Util from '../../../Util'
308
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
309
+
310
+ let readySomething = async function (self) {
311
+
312
+ await self.$MagLoadParams.loadParam()
313
+ self.initParams()
314
+ let year = new Date().getFullYear()
315
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
316
+ self.$refs.paged.$refs.cri.model.max_interval_day1 = 0
317
+ self.$refs.paged.$refs.cri.model.max_interval_day2 = 7
318
+
319
+ // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
320
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
321
+ self.$refs.paged.$refs.cri.search()
322
+ }
323
+ export default {
324
+ title: '失联分析',
325
+ props: ['data'],
326
+ components: {UserGasEcharts},
327
+ data() {
328
+ return {
329
+ model: new PagedList('rs/sql/webmeter_getAllLoseQuery', 20, {
330
+ startDate: 'this.model.startDate',
331
+ endDate: 'this.model.endDate'
332
+ }),
333
+ getfield:{
334
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称",
335
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
336
+ "f_meternumber":"表号",
337
+
338
+ "f_startuse_date":"启用日期",
339
+ "ybdays":"应报天数",
340
+ "sbdays":"实报天数",
341
+ "max_interval_day":"最长失联天数","sldays":"累计失联天数",
342
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
343
+ reportStr: null,
344
+ show: false,
345
+ showdetail:false,
346
+ rowdata:{},
347
+ startDate: '',
348
+ endDate: '',
349
+ criteriaShow:true,
350
+ outlets: [],
351
+ operator: [],
352
+ meterbrands:[],
353
+ filename: '',
354
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
355
+ echarts: false,
356
+ orgid:[this.$login.f.orgid],
357
+ searchshow: false,
358
+ isActiveTotalForm: false,
359
+ condition: '1=1',
360
+ groupname: ['max_days_type'],
361
+ getgroupname: [
362
+ {label: '客户类型', value: 'f_user_type'},
363
+ {label: '用气性质', value: 'f_gasproperties'},
364
+ {label: '分公司', value: 'f_orgid'},
365
+ {label: '最长失联天数', value: 'max_days_type'},
366
+ {label: '合计失联天数', value: 'all_days_type'}
367
+ ],
368
+ org:[this.$login.f.orgid]
369
+
370
+ }
371
+ },
372
+ ready() {
373
+ readySomething(this)
374
+ },
375
+ methods: {
376
+ hidden(){
377
+ this.criteriaShow = !this.criteriaShow
378
+ },
379
+ clickshow() {
380
+ this.searchshow = !this.searchshow
381
+ },
382
+ showmsg(obj){
383
+ this.rowdata=obj
384
+ this.showdetail=true
385
+ },
386
+ cancel() {
387
+ this.showdetail = false
388
+ },
389
+ initParams () {
390
+ let arr = []
391
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
392
+ let temp = {}
393
+ if(item.value.f_meter_type==='物联网表'){
394
+ temp.label = item.label
395
+ temp.value = item.value.f_meter_brand
396
+ arr.push(temp )
397
+ }
398
+
399
+ })
400
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
401
+ },
402
+ search(args) {
403
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
404
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
405
+ if (this.endDate == '' || this.startDate == '') {
406
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
407
+ }
408
+ args.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
409
+ this.model.search(args.condition, args.model)
410
+ },
411
+ getorg(obj) {
412
+ if (obj.resids.length>0) {
413
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
414
+ }else
415
+ {
416
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
417
+ }
418
+ },
419
+ // SaveAsFile(str) {
420
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
421
+ // if (res === 'confirm') {
422
+ // let style = '<style>' +
423
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
424
+ // let strHtml = style + document.getElementById(str).innerHTML;
425
+ // console.log(strHtml);
426
+ // let LODOP = getLodop();
427
+ // LODOP.PRINT_INIT('');
428
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
429
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
430
+ // }
431
+ // })
432
+ // },
433
+ clearmsg() {
434
+ this.$refs.paged.$refs.cri.model = {}
435
+ },
436
+ close() {
437
+ this.show = false
438
+ },
439
+ // 显示柱状图
440
+ showEcharts() {
441
+ this.echarts = true
442
+ this.isActiveTotalForm = false
443
+ },
444
+ notShowTotalForm() {
445
+ this.echarts = false
446
+ this.isActiveTotalForm = false
447
+ },
448
+ // 不显示柱状图
449
+ notShowEcharts() {
450
+ this.echarts = false
451
+ this.isActiveTotalForm = false
452
+ },
453
+ // 显示汇总数据表格
454
+ showTotalForm() {
455
+ this.echarts = false
456
+ this.isActiveTotalForm = true
457
+ }
458
+ },
459
+ watch: {
460
+ 'data'(val) {
461
+ if (val.f_files_path) {
462
+ this.getFileContent(val.f_files_path)
463
+ } else {
464
+ this.reportStr = null
465
+ }
466
+ }
467
+ },
468
+ computed: {
469
+ // usertypes () {
470
+ // return this.$appdate.getParams("客户类型")
471
+ // },
472
+ getCondition() {
473
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
474
+ return {
475
+ condition: condition ,
476
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
477
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
478
+ }
479
+
480
+ },
481
+ usertypes() {
482
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
483
+ },
484
+ Gasproperties() {
485
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
486
+ },
487
+ f_outlets() {
488
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
489
+ },
490
+ valveStatus() {
491
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
492
+ },
493
+ getstate() {
494
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
495
+ }
496
+ }
497
+ }
498
+ </script>
499
+ <style>
500
+ .form-input-group label {
501
+ text-align: right;
502
+ width: auto;
503
+ }
504
+
505
+ .mystyle {
506
+ float: right;
507
+ padding-right: 10%;
508
+ }
509
+
510
+ .mystyle1 {
511
+ padding-top: 10px;
512
+
513
+ }
514
+
515
+ .mystyle2 {
516
+ width: 100%;
517
+ height: 35px;
518
+ /*background: #00A3F0;*/
519
+ padding-left: 15px;
520
+ float: left;
521
+ }
522
+
523
+ .datapanel {
524
+ color: #333;
525
+ background-color: white;
526
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
527
+ padding: 10px 30px 10px 30px;
528
+ border-radius: 15px;
529
+ }
530
+ </style>