manage-client 3.2.263 → 3.2.265

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