manage-client 3.3.210 → 3.3.211

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