manage-client 4.0.37 → 4.0.38

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