manage-client 3.3.179 → 3.3.181

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 (53) hide show
  1. package/build/dev-server.js +11 -7
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/gradlew +234 -234
  4. package/gradlew.bat +89 -89
  5. package/package.json +1 -1
  6. package/src/components/SellReport/BusinessClassify.vue +292 -292
  7. package/src/components/SellReport/GasMoneyPublicConReport.vue +258 -258
  8. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  9. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  10. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  11. package/src/components/sale/businessquery/ChargeQuery.vue +6 -0
  12. package/src/components/sale/businessquery/FMYGasQuery.vue +813 -813
  13. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  14. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  15. package/src/components/sale/config/exportConfig.js +1245 -1245
  16. package/src/components/sale/filesquery/RecordInfoQuery.vue +1443 -1443
  17. package/src/components/webmeter/gasStatistics/GasStatistics.vue +525 -525
  18. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +541 -541
  19. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +3 -1
  20. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  21. package/src/filiale/jingyang/RechargeList.vue +346 -346
  22. package/src/filiale/jingyang/sale.js +6 -6
  23. package/src/filiale/kelai/GasStatistics.vue +536 -536
  24. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  25. package/src/filiale/lixianV3/RecordInfoQuery.vue +22 -1
  26. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -0
  27. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  28. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  29. package/src/filiale/meihekou/CollectManage.vue +3 -3
  30. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  31. package/src/filiale/meihekou/OtherChargeQuery.vue +4 -5
  32. package/src/filiale/meihekou/UserSellHeadDetail.vue +492 -0
  33. package/src/filiale/meihekou/config/exportConfig.js +1 -2
  34. package/src/filiale/meihekou/sale.js +5 -0
  35. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  36. package/src/filiale/qianneng/exportConfig.js +232 -232
  37. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  38. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  39. package/src/filiale/taizhoukesi/config/exportConfig.js +2379 -2379
  40. package/src/filiale/taizhoukesi/sale.js +11 -11
  41. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  42. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  43. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  44. package/src/filiale/yangchun/RecordInfoQuery.vue +1477 -0
  45. package/src/filiale/yangchun/UserQuery.vue +980 -980
  46. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  47. package/src/filiale/yangchun/config/exportConfig.js +1230 -1231
  48. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  49. package/src/filiale/yangchun/reportManage.js +6 -6
  50. package/src/filiale/yangchun/sale.js +12 -8
  51. package/src/filiale/yangchun/webmeterManage.js +5 -5
  52. package/src/reportManage.js +768 -768
  53. package/src/saleManage.js +689 -689
@@ -1,623 +1,623 @@
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 = '{}'" 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
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getUserLoseQuery" template-name='用户失联查询'
49
- :choose-col="true"></export-excel>
50
- <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
- <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
- <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
53
- <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>
54
- </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
- <right-tree @re-res="$parent.$parent.getorg"
60
- :initresid='$parent.$parent.org'></right-tree>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户类型</label>
64
- <v-select style="width:60%" id="f_user_type"
65
- v-model="model.f_user_type"
66
- placeholder='客户类型'
67
- :value.sync="model.f_user_type"
68
- :options='$parent.$parent.usertypes'
69
- condition="f_user_type = '{}'"
70
- close-on-select>
71
- </v-select>
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_gasproperties"
76
- v-model="model.f_gasproperties"
77
- placeholder='用气性质'
78
- :value.sync="model.f_gasproperties"
79
- :options='$parent.$parent.Gasproperties'
80
- condition="f_gasproperties = '{}'"
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
87
- placeholder='气表品牌'
88
- :value.sync="model.f_meter_brand"
89
- v-model="model.f_meter_brand"
90
- :options='$parent.$parent.WarningType'
91
- @change="$parent.$parent.getMeterType"
92
- close-on-select
93
- condition="f_meter_brand='{}'">
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group" >
97
- <label class="font_normal_body">气表型号</label>
98
- <v-select v-if="$parent.$parent.styles"
99
- placeholder='气表型号'
100
- :value.sync="model.f_meter_style"
101
- v-model="model.f_meter_style"
102
- :options='$parent.$parent.Warningstyle'
103
- close-on-select
104
- condition="f_meter_style='{}'">
105
- </v-select>
106
- <v-select v-if="!$parent.$parent.styles"
107
- placeholder='气表型号'
108
- :value.sync="model.f_meter_style"
109
- v-model="model.f_meter_style"
110
- :options='$parent.$parent.Warningstyles'
111
- close-on-select
112
- condition="f_meter_style='{}'">
113
- </v-select>
114
- </div>
115
- <div class="col-sm-2 form-group">
116
- <label class="font_normal_body">用户状态</label>
117
- <v-select
118
- placeholder='用户状态'
119
- value-single
120
- style="width:60%"
121
- :value.sync="model.f_user_state"
122
- v-model="model.f_user_state"
123
- :options='$parent.$parent.userstate'
124
- close-on-select condition="f_user_state ='{}'">
125
- </v-select>
126
- </div>
127
-
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body">开始时间</label>
130
- <datepicker style="width:60%" id="startdate" placeholder="开始时间"
131
- v-model="model.startDate"
132
- :value.sync="model.startDate"
133
- :disabled-days-of-Week="[]"
134
- :format="'yyyy-MM-dd HH:mm:ss'"
135
-
136
- :show-reset-button="reset">
137
- </datepicker>
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">结束时间</label>
141
- <datepicker style="width:60%" id="enddate" placeholder="结束日期"
142
- v-model="model.endDate"
143
- :value.sync="model.endDate"
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 flex-row" style="white-space: nowrap">
151
- <label class="font_normal_body">失联天数&nbsp;</label>
152
- <div class="row">
153
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
154
- condition="SLday >= {} " placeholder="">
155
- <label class="font_normal_body"> ≤ x ≤ </label>
156
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
157
- condition="SLday <= {} " placeholder="">
158
- </div>
159
- </div>
160
- <div class="col-sm-2 form-group ">
161
- <label for="contain_newfile" class="font_normal_body">开户未上报</label>
162
- <v-select id="contain_newfile"
163
- v-model="model.notappear"
164
- style="width:60%"
165
- :value.sync="model.notappear"
166
- :options='$parent.$parent.not_appear'
167
- :value-single="true"
168
- close-on-select>
169
- </v-select>
170
- </div>
171
- <div class="col-sm-2 form-group">
172
- <label class="font_normal_body">小区</label>
173
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area"
174
- placeholder='请输入小区'
175
- condition="f_residential_area like '%{}%'"
176
- >
177
- </div>
178
-
179
- </div>
180
-
181
-
182
-
183
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
184
- <!--:thead='"<th>序号</th>\n"+-->
185
- <!--"<th>档案编号</th>" +-->
186
- <!--" <th>档案标识</th>"+-->
187
- <!--"<th>客户名称</th>"+-->
188
- <!--"<th>表号</th"+-->
189
- <!--"<th>表具类型</th>"+-->
190
- <!--"<th>客户类型</th>"+-->
191
- <!--"<th>区域</th>"+-->
192
- <!--"<th>小区</th>"+-->
193
- <!--"<th>地址</th>"+-->
194
- <!--"<th>用气气量</th>"+-->
195
- <!--"<th>用气金额</th>"-->
196
- <!--+"<th>用气价格</th>"-->
197
- <!--+"<th>时间</th>"-->
198
- <!--+"<th>所属机构</th>"'-->
199
- <!--: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"]'>-->
200
- <!--</print-table>-->
201
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
202
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
203
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
204
- <!--sqlurl="api/af-revenue/sql/getUserGas"></export-excel>-->
205
-
206
- </div>
207
- </criteria>
208
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
209
- <template partial='head'>
210
- <tr>
211
- <th style="text-align:center">
212
- <nobr>序号</nobr>
213
- </th>
214
-
215
- <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
216
-
217
- <th style="text-align:center">
218
- <nobr>客户编号</nobr>
219
- </th>
220
- <th style="text-align:center">
221
- <nobr>客户名称</nobr>
222
- </th>
223
- <th style="text-align:center">
224
- <nobr>客户地址</nobr>
225
- </th>
226
- <th style="text-align:center">
227
- <nobr>客户类型</nobr>
228
- </th>
229
- <th style="text-align:center">
230
- <nobr>用气性质</nobr>
231
- </th>
232
- <th style="text-align:center">
233
- <nobr>联系电话</nobr>
234
- </th>
235
- <th style="text-align:center">
236
- <nobr>系统金额</nobr>
237
- </th>
238
- <th style="text-align:center">
239
- <nobr>表号</nobr>
240
- </th>
241
- <th style="text-align:center">
242
- <nobr>启用日期</nobr>
243
- </th>
244
-
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
-
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
- </tr>
271
-
272
- </template>
273
- <template partial='body'>
274
- <td style="text-align:center">{{$index+1}}</td>
275
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
276
-
277
-
278
- <td style="text-align: center;"><nobr>
279
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
280
- </nobr> </td>
281
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
282
- <td>
283
- <nobr>{{row.f_address}}</nobr>
284
- </td>
285
- <td style="text-align:center">{{row.f_user_type}}</td>
286
- <td style="text-align:center">{{row.f_gasproperties}}</td>
287
- <td style="text-align:center">{{row.f_user_phone}}</td>
288
- <td style="text-align:center">{{row.f_balance_amount}}</td>
289
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
290
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
291
- <td style="text-align:center">
292
- <nobr>{{row.initinsertdate}}</nobr>
293
- </td> <td style="text-align:center">
294
- <nobr>{{row.lastinsertdate}}</nobr>
295
- </td>
296
- <td style="text-align:center">{{row.f_meter_base}}</td>
297
-
298
- <td style="text-align:center">
299
- <nobr>{{row.slday}}</nobr>
300
- </td>
301
- <td style="text-align:center">{{row.f_meter_brand}}</td>
302
- <td style="text-align:center">
303
- <nobr>{{row.f_meter_style}}</nobr>
304
- </td>
305
- <td style="text-align:center">
306
- <nobr>{{row.f_user_state}}</nobr>
307
- </td>
308
- <td style="text-align:center">
309
- <nobr>{{row.f_orgname}}</nobr>
310
- </td>
311
- <!--<td style="text-align:center">{{row.new_days}}</td>-->
312
- <!--<td style="text-align:center">{{row.f_state}}</td>-->
313
-
314
- </template>
315
- </data-grid>
316
- </criteria-paged>
317
-
318
- </div>
319
- <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
320
- <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
321
- <!-- :echarts="echarts"></lost-contact-echarts>-->
322
- <!-- </div>-->
323
- <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
324
- <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
325
- <!--&lt;!&ndash; </div>&ndash;&gt;-->
326
- <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
327
- <!-- <lost-contact-eform :condition="condition"-->
328
- <!-- ></lost-contact-eform>-->
329
- <!-- </div>-->
330
- </div>
331
- <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
332
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
333
- </div>
334
- </template>
335
-
336
- <script>
337
- import {PagedList} from 'vue-client'
338
- import UserGasEcharts from '../../components/webmeter/DrillData/UserGasEcharts'
339
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
340
- import {HttpResetClass} from 'vue-client'
341
- import * as Util from '../../Util'
342
- let readySomething = async function (self) {
343
-
344
- await self.$MagLoadParams.loadParam()
345
- self.initParams()
346
- let year = new Date().getFullYear()
347
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
348
- self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
349
- self.$refs.paged.$refs.cri.model.notappear='包含'
350
- self.$refs.paged.$refs.cri.model.f_user_state='正常'
351
- // self.$refs.paged.$refs.cri.search()
352
- }
353
- export default {
354
- title: '失联分析',
355
- props: ['data'],
356
- components: {UserGasEcharts},
357
-
358
- data() {
359
- return {
360
- model: new PagedList('api/af-revenue/sql/webmeter_getUserLoseQuery', 20,{
361
- startDate: 'this.model.startDate',
362
- endDate: 'this.model.endDate'
363
- }),
364
- getfield:{
365
- "f_userinfo_code":"客户编号","f_user_name":"客户名称","f_residential_area":"小区",
366
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
367
- "f_meternumber":"表号",
368
- "f_user_phone":"联系电话",
369
- "f_balance_amount":"系统余额",
370
-
371
- "f_startuse_date":"启用日期",
372
- "initinsertdate":"初次上报日期",
373
- "lastinsertdate":"最后上报日期",
374
- "f_meter_base":"最后表读数",
375
- "slday":"失联天数",
376
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
377
- reportStr: null,
378
- show: false,
379
- showdetail:false,
380
- rowdata:{},
381
- criteriaShow:false,
382
- outlets: [],
383
- operator: [],
384
- filename: '',
385
- WarningType: [
386
- {label: '全部', value: ''}
387
- ],
388
- Warningstyles: [
389
- {label: '全部', value: ''}
390
- ],
391
- styles:false,
392
- org:[this.$login.f.orgid],
393
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
394
- echarts: false,
395
- searchshow: false,
396
- isActiveTotalForm: false,
397
- condition: '1=1',
398
- groupname: ['max_days_type'],
399
- getgroupname: [
400
- {label: '客户类型', value: 'f_user_type'},
401
- {label: '用气性质', value: 'f_gasproperties'},
402
- {label: '分公司', value: 'f_orgname'},
403
- {label: '最长失联天数', value: 'max_days_type'},
404
- ]
405
- }
406
- },
407
- ready() {
408
- readySomething(this)
409
- this.getMeterTypeAndBrand('f_meter_brand', '1=1')
410
- },
411
-
412
- methods: {
413
- getMeterType() {
414
- this.Warningstyle = [{label: '全部', value: ''}]
415
- this.styles = false
416
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
417
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
418
- },
419
- getMeterTypeAndBrand(groupname, condition) {
420
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
421
- let self = this
422
- let load = new HttpResetClass()
423
- load.load('POST', 'api/af-revenue/sql/getMeterStyleAndBrand1', {
424
- data: {
425
- condition: condition,
426
- groupname: groupname
427
- }
428
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
429
- for (let i = 0; i < res.data.length; i++) {
430
- if (groupname == 'f_meter_brand') {
431
- let dr = {}
432
- dr.label = res.data[i].f_meter_brand
433
- dr.value = res.data[i].f_meter_brand
434
- //气表品牌
435
- self.WarningType.push(dr)
436
- } else if (groupname == 'f_meter_style') {
437
- self.Warningstyle= [
438
- {label: '全部', value: ''}
439
- ],
440
- self.$refs.paged.$refs.cri.model.f_meter_style=''
441
- let dr = {}
442
- dr.label = res.data[i].f_meter_style
443
- dr.value = res.data[i].f_meter_style
444
- //气表类型
445
- self.Warningstyle.push(dr)
446
- }
447
- }
448
- if (self.Warningstyle.length > 1) {
449
- self.showMeterStyle()
450
- }
451
- })
452
-
453
- },
454
- showMeterStyle() {
455
- this.styles = true
456
- },
457
- hidden(){
458
- this.criteriaShow = !this.criteriaShow
459
- },
460
- showmsg(obj){
461
- this.rowdata=obj
462
- this.showdetail=true
463
- },
464
- cancel() {
465
- this.showdetail = false
466
- },
467
- clickshow() {
468
- this.searchshow = !this.searchshow
469
- },
470
- search(args) {
471
- this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
472
- args.condition = this.condition
473
- if(this.$refs.paged.$refs.cri.model.notappear) {
474
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
475
- args.condition = args.condition + " and initinsertdate <> '开户未上报'"
476
- }
477
- }
478
- this.model.search(args.condition, args.model)
479
- },
480
- getorg(obj) {
481
- if (obj.resids.length>0) {
482
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
483
- }else
484
- {
485
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
486
- }
487
- },
488
- // SaveAsFile(str) {
489
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
490
- // if (res === 'confirm') {
491
- // let style = '<style>' +
492
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
493
- // let strHtml = style + document.getElementById(str).innerHTML;
494
- // console.log(strHtml);
495
- // let LODOP = getLodop();
496
- // LODOP.PRINT_INIT('');
497
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
498
- // LODOP.SAVE_TO_FILE('失联分析.xls')
499
- // }
500
- // })
501
- // },
502
- clearmsg() {
503
- this.$refs.paged.$refs.cri.model = {}
504
- },
505
- close() {
506
- this.show = false
507
- },
508
- initParams () {
509
- let arr = []
510
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
511
- let temp = {}
512
- if(item.value.f_meter_type==='物联网表'){
513
- temp.label = item.label
514
- temp.value = item.value.f_meter_brand
515
- arr.push(temp )
516
- }
517
-
518
- })
519
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
520
- },
521
- // 显示柱状图
522
- showEcharts() {
523
- this.echarts = true
524
- this.isActiveTotalForm = false
525
- },
526
- notShowTotalForm() {
527
- this.echarts = false
528
- this.isActiveTotalForm = false
529
- },
530
- // 不显示柱状图
531
- notShowEcharts() {
532
- this.echarts = false
533
- this.isActiveTotalForm = false
534
- },
535
- // 显示汇总数据表格
536
- showTotalForm() {
537
- this.echarts = false
538
- this.isActiveTotalForm = true
539
- }
540
- },
541
- watch: {
542
- 'data'(val) {
543
- if (val.f_files_path) {
544
- this.getFileContent(val.f_files_path)
545
- } else {
546
- this.reportStr = null
547
- }
548
- }
549
- },
550
- computed: {
551
- // usertypes () {
552
- // return this.$appdate.getParams("客户类型")
553
- // },
554
- getCondition() {
555
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
556
- if(this.$refs.paged.$refs.cri.model.notappear) {
557
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
558
- condition = condition + " and initinsertdate <> '开户未上报'"
559
- }
560
- }
561
- return {
562
-
563
- condition: condition ,
564
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
565
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
566
- }
567
- },
568
- usertypes() {
569
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
570
- },
571
- Gasproperties() {
572
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
573
- },
574
- f_outlets() {
575
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
576
- },
577
- valveStatus() {
578
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
579
- },
580
- not_appear(){
581
- return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
582
- },
583
- getstate() {
584
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
585
- },
586
- userstate() {
587
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
588
- }
589
- }
590
- }
591
- </script>
592
- <style>
593
- .form-input-group label {
594
- text-align: right;
595
- width: auto;
596
- }
597
-
598
- .mystyle {
599
- float: right;
600
- padding-right: 10%;
601
- }
602
-
603
- .mystyle1 {
604
- padding-top: 10px;
605
-
606
- }
607
-
608
- .mystyle2 {
609
- width: 100%;
610
- height: 35px;
611
- /*background: #00A3F0;*/
612
- padding-left: 15px;
613
- float: left;
614
- }
615
-
616
- .datapanel {
617
- color: #333;
618
- background-color: white;
619
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
620
- padding: 10px 30px 10px 30px;
621
- border-radius: 15px;
622
- }
623
- </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 = '{}'" 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
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getUserLoseQuery" template-name='用户失联查询'
49
+ :choose-col="true"></export-excel>
50
+ <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
51
+ <!-- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
52
+ <!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
53
+ <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>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
59
+ <right-tree @re-res="$parent.$parent.getorg"
60
+ :initresid='$parent.$parent.org'></right-tree>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户类型</label>
64
+ <v-select style="width:60%" id="f_user_type"
65
+ v-model="model.f_user_type"
66
+ placeholder='客户类型'
67
+ :value.sync="model.f_user_type"
68
+ :options='$parent.$parent.usertypes'
69
+ condition="f_user_type = '{}'"
70
+ close-on-select>
71
+ </v-select>
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_gasproperties"
76
+ v-model="model.f_gasproperties"
77
+ placeholder='用气性质'
78
+ :value.sync="model.f_gasproperties"
79
+ :options='$parent.$parent.Gasproperties'
80
+ condition="f_gasproperties = '{}'"
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
87
+ placeholder='气表品牌'
88
+ :value.sync="model.f_meter_brand"
89
+ v-model="model.f_meter_brand"
90
+ :options='$parent.$parent.WarningType'
91
+ @change="$parent.$parent.getMeterType"
92
+ close-on-select
93
+ condition="f_meter_brand='{}'">
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group" >
97
+ <label class="font_normal_body">气表型号</label>
98
+ <v-select v-if="$parent.$parent.styles"
99
+ placeholder='气表型号'
100
+ :value.sync="model.f_meter_style"
101
+ v-model="model.f_meter_style"
102
+ :options='$parent.$parent.Warningstyle'
103
+ close-on-select
104
+ condition="f_meter_style='{}'">
105
+ </v-select>
106
+ <v-select v-if="!$parent.$parent.styles"
107
+ placeholder='气表型号'
108
+ :value.sync="model.f_meter_style"
109
+ v-model="model.f_meter_style"
110
+ :options='$parent.$parent.Warningstyles'
111
+ close-on-select
112
+ condition="f_meter_style='{}'">
113
+ </v-select>
114
+ </div>
115
+ <div class="col-sm-2 form-group">
116
+ <label class="font_normal_body">用户状态</label>
117
+ <v-select
118
+ placeholder='用户状态'
119
+ value-single
120
+ style="width:60%"
121
+ :value.sync="model.f_user_state"
122
+ v-model="model.f_user_state"
123
+ :options='$parent.$parent.userstate'
124
+ close-on-select condition="f_user_state ='{}'">
125
+ </v-select>
126
+ </div>
127
+
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">开始时间</label>
130
+ <datepicker style="width:60%" id="startdate" placeholder="开始时间"
131
+ v-model="model.startDate"
132
+ :value.sync="model.startDate"
133
+ :disabled-days-of-Week="[]"
134
+ :format="'yyyy-MM-dd HH:mm:ss'"
135
+
136
+ :show-reset-button="reset">
137
+ </datepicker>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label class="font_normal_body">结束时间</label>
141
+ <datepicker style="width:60%" id="enddate" placeholder="结束日期"
142
+ v-model="model.endDate"
143
+ :value.sync="model.endDate"
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 flex-row" style="white-space: nowrap">
151
+ <label class="font_normal_body">失联天数&nbsp;</label>
152
+ <div class="row">
153
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
154
+ condition="SLday >= {} " placeholder="">
155
+ <label class="font_normal_body"> ≤ x ≤ </label>
156
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
157
+ condition="SLday <= {} " placeholder="">
158
+ </div>
159
+ </div>
160
+ <div class="col-sm-2 form-group ">
161
+ <label for="contain_newfile" class="font_normal_body">开户未上报</label>
162
+ <v-select id="contain_newfile"
163
+ v-model="model.notappear"
164
+ style="width:60%"
165
+ :value.sync="model.notappear"
166
+ :options='$parent.$parent.not_appear'
167
+ :value-single="true"
168
+ close-on-select>
169
+ </v-select>
170
+ </div>
171
+ <div class="col-sm-2 form-group">
172
+ <label class="font_normal_body">小区</label>
173
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area"
174
+ placeholder='请输入小区'
175
+ condition="f_residential_area like '%{}%'"
176
+ >
177
+ </div>
178
+
179
+ </div>
180
+
181
+
182
+
183
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
184
+ <!--:thead='"<th>序号</th>\n"+-->
185
+ <!--"<th>档案编号</th>" +-->
186
+ <!--" <th>档案标识</th>"+-->
187
+ <!--"<th>客户名称</th>"+-->
188
+ <!--"<th>表号</th"+-->
189
+ <!--"<th>表具类型</th>"+-->
190
+ <!--"<th>客户类型</th>"+-->
191
+ <!--"<th>区域</th>"+-->
192
+ <!--"<th>小区</th>"+-->
193
+ <!--"<th>地址</th>"+-->
194
+ <!--"<th>用气气量</th>"+-->
195
+ <!--"<th>用气金额</th>"-->
196
+ <!--+"<th>用气价格</th>"-->
197
+ <!--+"<th>时间</th>"-->
198
+ <!--+"<th>所属机构</th>"'-->
199
+ <!--: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"]'>-->
200
+ <!--</print-table>-->
201
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
202
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
203
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
204
+ <!--sqlurl="api/af-revenue/sql/getUserGas"></export-excel>-->
205
+
206
+ </div>
207
+ </criteria>
208
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
209
+ <template partial='head'>
210
+ <tr>
211
+ <th style="text-align:center">
212
+ <nobr>序号</nobr>
213
+ </th>
214
+
215
+ <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
216
+
217
+ <th style="text-align:center">
218
+ <nobr>客户编号</nobr>
219
+ </th>
220
+ <th style="text-align:center">
221
+ <nobr>客户名称</nobr>
222
+ </th>
223
+ <th style="text-align:center">
224
+ <nobr>客户地址</nobr>
225
+ </th>
226
+ <th style="text-align:center">
227
+ <nobr>客户类型</nobr>
228
+ </th>
229
+ <th style="text-align:center">
230
+ <nobr>用气性质</nobr>
231
+ </th>
232
+ <th style="text-align:center">
233
+ <nobr>联系电话</nobr>
234
+ </th>
235
+ <th style="text-align:center">
236
+ <nobr>系统金额</nobr>
237
+ </th>
238
+ <th style="text-align:center">
239
+ <nobr>表号</nobr>
240
+ </th>
241
+ <th style="text-align:center">
242
+ <nobr>启用日期</nobr>
243
+ </th>
244
+
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
+
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
+ </tr>
271
+
272
+ </template>
273
+ <template partial='body'>
274
+ <td style="text-align:center">{{$index+1}}</td>
275
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
276
+
277
+
278
+ <td style="text-align: center;"><nobr>
279
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
280
+ </nobr> </td>
281
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
282
+ <td>
283
+ <nobr>{{row.f_address}}</nobr>
284
+ </td>
285
+ <td style="text-align:center">{{row.f_user_type}}</td>
286
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
287
+ <td style="text-align:center">{{row.f_user_phone}}</td>
288
+ <td style="text-align:center">{{row.f_balance_amount}}</td>
289
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
290
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
291
+ <td style="text-align:center">
292
+ <nobr>{{row.initinsertdate}}</nobr>
293
+ </td> <td style="text-align:center">
294
+ <nobr>{{row.lastinsertdate}}</nobr>
295
+ </td>
296
+ <td style="text-align:center">{{row.f_meter_base}}</td>
297
+
298
+ <td style="text-align:center">
299
+ <nobr>{{row.slday}}</nobr>
300
+ </td>
301
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
302
+ <td style="text-align:center">
303
+ <nobr>{{row.f_meter_style}}</nobr>
304
+ </td>
305
+ <td style="text-align:center">
306
+ <nobr>{{row.f_user_state}}</nobr>
307
+ </td>
308
+ <td style="text-align:center">
309
+ <nobr>{{row.f_orgname}}</nobr>
310
+ </td>
311
+ <!--<td style="text-align:center">{{row.new_days}}</td>-->
312
+ <!--<td style="text-align:center">{{row.f_state}}</td>-->
313
+
314
+ </template>
315
+ </data-grid>
316
+ </criteria-paged>
317
+
318
+ </div>
319
+ <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
320
+ <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
321
+ <!-- :echarts="echarts"></lost-contact-echarts>-->
322
+ <!-- </div>-->
323
+ <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
324
+ <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
325
+ <!--&lt;!&ndash; </div>&ndash;&gt;-->
326
+ <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
327
+ <!-- <lost-contact-eform :condition="condition"-->
328
+ <!-- ></lost-contact-eform>-->
329
+ <!-- </div>-->
330
+ </div>
331
+ <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
332
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
333
+ </div>
334
+ </template>
335
+
336
+ <script>
337
+ import {PagedList} from 'vue-client'
338
+ import UserGasEcharts from '../../components/webmeter/DrillData/UserGasEcharts'
339
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
340
+ import {HttpResetClass} from 'vue-client'
341
+ import * as Util from '../../Util'
342
+ let readySomething = async function (self) {
343
+
344
+ await self.$MagLoadParams.loadParam()
345
+ self.initParams()
346
+ let year = new Date().getFullYear()
347
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
348
+ self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
349
+ self.$refs.paged.$refs.cri.model.notappear='包含'
350
+ self.$refs.paged.$refs.cri.model.f_user_state='正常'
351
+ // self.$refs.paged.$refs.cri.search()
352
+ }
353
+ export default {
354
+ title: '失联分析',
355
+ props: ['data'],
356
+ components: {UserGasEcharts},
357
+
358
+ data() {
359
+ return {
360
+ model: new PagedList('api/af-revenue/sql/webmeter_getUserLoseQuery', 20,{
361
+ startDate: 'this.model.startDate',
362
+ endDate: 'this.model.endDate'
363
+ }),
364
+ getfield:{
365
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称","f_residential_area":"小区",
366
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
367
+ "f_meternumber":"表号",
368
+ "f_user_phone":"联系电话",
369
+ "f_balance_amount":"系统余额",
370
+
371
+ "f_startuse_date":"启用日期",
372
+ "initinsertdate":"初次上报日期",
373
+ "lastinsertdate":"最后上报日期",
374
+ "f_meter_base":"最后表读数",
375
+ "slday":"失联天数",
376
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
377
+ reportStr: null,
378
+ show: false,
379
+ showdetail:false,
380
+ rowdata:{},
381
+ criteriaShow:false,
382
+ outlets: [],
383
+ operator: [],
384
+ filename: '',
385
+ WarningType: [
386
+ {label: '全部', value: ''}
387
+ ],
388
+ Warningstyles: [
389
+ {label: '全部', value: ''}
390
+ ],
391
+ styles:false,
392
+ org:[this.$login.f.orgid],
393
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
394
+ echarts: false,
395
+ searchshow: false,
396
+ isActiveTotalForm: false,
397
+ condition: '1=1',
398
+ groupname: ['max_days_type'],
399
+ getgroupname: [
400
+ {label: '客户类型', value: 'f_user_type'},
401
+ {label: '用气性质', value: 'f_gasproperties'},
402
+ {label: '分公司', value: 'f_orgname'},
403
+ {label: '最长失联天数', value: 'max_days_type'},
404
+ ]
405
+ }
406
+ },
407
+ ready() {
408
+ readySomething(this)
409
+ this.getMeterTypeAndBrand('f_meter_brand', '1=1')
410
+ },
411
+
412
+ methods: {
413
+ getMeterType() {
414
+ this.Warningstyle = [{label: '全部', value: ''}]
415
+ this.styles = false
416
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
417
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
418
+ },
419
+ getMeterTypeAndBrand(groupname, condition) {
420
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
421
+ let self = this
422
+ let load = new HttpResetClass()
423
+ load.load('POST', 'api/af-revenue/sql/getMeterStyleAndBrand1', {
424
+ data: {
425
+ condition: condition,
426
+ groupname: groupname
427
+ }
428
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
429
+ for (let i = 0; i < res.data.length; i++) {
430
+ if (groupname == 'f_meter_brand') {
431
+ let dr = {}
432
+ dr.label = res.data[i].f_meter_brand
433
+ dr.value = res.data[i].f_meter_brand
434
+ //气表品牌
435
+ self.WarningType.push(dr)
436
+ } else if (groupname == 'f_meter_style') {
437
+ self.Warningstyle= [
438
+ {label: '全部', value: ''}
439
+ ],
440
+ self.$refs.paged.$refs.cri.model.f_meter_style=''
441
+ let dr = {}
442
+ dr.label = res.data[i].f_meter_style
443
+ dr.value = res.data[i].f_meter_style
444
+ //气表类型
445
+ self.Warningstyle.push(dr)
446
+ }
447
+ }
448
+ if (self.Warningstyle.length > 1) {
449
+ self.showMeterStyle()
450
+ }
451
+ })
452
+
453
+ },
454
+ showMeterStyle() {
455
+ this.styles = true
456
+ },
457
+ hidden(){
458
+ this.criteriaShow = !this.criteriaShow
459
+ },
460
+ showmsg(obj){
461
+ this.rowdata=obj
462
+ this.showdetail=true
463
+ },
464
+ cancel() {
465
+ this.showdetail = false
466
+ },
467
+ clickshow() {
468
+ this.searchshow = !this.searchshow
469
+ },
470
+ search(args) {
471
+ this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
472
+ args.condition = this.condition
473
+ if(this.$refs.paged.$refs.cri.model.notappear) {
474
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
475
+ args.condition = args.condition + " and initinsertdate <> '开户未上报'"
476
+ }
477
+ }
478
+ this.model.search(args.condition, args.model)
479
+ },
480
+ getorg(obj) {
481
+ if (obj.resids.length>0) {
482
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
483
+ }else
484
+ {
485
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
486
+ }
487
+ },
488
+ // SaveAsFile(str) {
489
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
490
+ // if (res === 'confirm') {
491
+ // let style = '<style>' +
492
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
493
+ // let strHtml = style + document.getElementById(str).innerHTML;
494
+ // console.log(strHtml);
495
+ // let LODOP = getLodop();
496
+ // LODOP.PRINT_INIT('');
497
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
498
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
499
+ // }
500
+ // })
501
+ // },
502
+ clearmsg() {
503
+ this.$refs.paged.$refs.cri.model = {}
504
+ },
505
+ close() {
506
+ this.show = false
507
+ },
508
+ initParams () {
509
+ let arr = []
510
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
511
+ let temp = {}
512
+ if(item.value.f_meter_type==='物联网表'){
513
+ temp.label = item.label
514
+ temp.value = item.value.f_meter_brand
515
+ arr.push(temp )
516
+ }
517
+
518
+ })
519
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
520
+ },
521
+ // 显示柱状图
522
+ showEcharts() {
523
+ this.echarts = true
524
+ this.isActiveTotalForm = false
525
+ },
526
+ notShowTotalForm() {
527
+ this.echarts = false
528
+ this.isActiveTotalForm = false
529
+ },
530
+ // 不显示柱状图
531
+ notShowEcharts() {
532
+ this.echarts = false
533
+ this.isActiveTotalForm = false
534
+ },
535
+ // 显示汇总数据表格
536
+ showTotalForm() {
537
+ this.echarts = false
538
+ this.isActiveTotalForm = true
539
+ }
540
+ },
541
+ watch: {
542
+ 'data'(val) {
543
+ if (val.f_files_path) {
544
+ this.getFileContent(val.f_files_path)
545
+ } else {
546
+ this.reportStr = null
547
+ }
548
+ }
549
+ },
550
+ computed: {
551
+ // usertypes () {
552
+ // return this.$appdate.getParams("客户类型")
553
+ // },
554
+ getCondition() {
555
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
556
+ if(this.$refs.paged.$refs.cri.model.notappear) {
557
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
558
+ condition = condition + " and initinsertdate <> '开户未上报'"
559
+ }
560
+ }
561
+ return {
562
+
563
+ condition: condition ,
564
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
565
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
566
+ }
567
+ },
568
+ usertypes() {
569
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
570
+ },
571
+ Gasproperties() {
572
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
573
+ },
574
+ f_outlets() {
575
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
576
+ },
577
+ valveStatus() {
578
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
579
+ },
580
+ not_appear(){
581
+ return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
582
+ },
583
+ getstate() {
584
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
585
+ },
586
+ userstate() {
587
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
588
+ }
589
+ }
590
+ }
591
+ </script>
592
+ <style>
593
+ .form-input-group label {
594
+ text-align: right;
595
+ width: auto;
596
+ }
597
+
598
+ .mystyle {
599
+ float: right;
600
+ padding-right: 10%;
601
+ }
602
+
603
+ .mystyle1 {
604
+ padding-top: 10px;
605
+
606
+ }
607
+
608
+ .mystyle2 {
609
+ width: 100%;
610
+ height: 35px;
611
+ /*background: #00A3F0;*/
612
+ padding-left: 15px;
613
+ float: left;
614
+ }
615
+
616
+ .datapanel {
617
+ color: #333;
618
+ background-color: white;
619
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
620
+ padding: 10px 30px 10px 30px;
621
+ border-radius: 15px;
622
+ }
623
+ </style>