manage-client 3.2.14 → 3.2.18

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 (73) hide show
  1. package/build/dev-server.js +6 -4
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/CivilGasReport.vue +194 -0
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  12. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  13. package/src/components/SellReport/SellingTable.vue +220 -220
  14. package/src/components/SellReport/UnCivilGasReport.vue +194 -0
  15. package/src/components/SellReport/UserSellingGas.vue +177 -177
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/BusinesQuery.vue +348 -348
  22. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  23. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  24. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  25. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  26. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  27. package/src/components/sale/config/exportConfig.js +887 -887
  28. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  29. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  30. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  31. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  32. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  33. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  34. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  35. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  36. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  37. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  38. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  39. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  40. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  43. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  44. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  45. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  46. package/src/filiale/WEINAN/reportManage.js +12 -12
  47. package/src/filiale/WEINAN/sale.js +36 -36
  48. package/src/filiale/alashan/reportManage.js +10 -10
  49. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  50. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  51. package/src/filiale/meihekou/CardHandplanQuery.vue +78 -7
  52. package/src/filiale/meihekou/RecordInfoQuery.vue +3 -3
  53. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  54. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  55. package/src/filiale/meihekou/config/exportConfig.js +831 -804
  56. package/src/filiale/meihekou/sale.js +29 -26
  57. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  58. package/src/filiale/rongchuang/reportManage.js +11 -11
  59. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +295 -295
  60. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  61. package/src/filiale/tongchuan/reportManage.js +5 -6
  62. package/src/reportManage.js +8 -0
  63. package/static/wuhai.json +1610 -1610
  64. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  65. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  66. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  67. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  68. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  69. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  70. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  71. package/.gradle/7.1/gc.properties +0 -0
  72. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  73. package/.gradle/configuration-cache/gc.properties +0 -0
@@ -1,585 +1,585 @@
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
- sqlurl="rs/logic/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="true"
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
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
128
- <label class="font_normal_body">失联天数&nbsp;</label>
129
- <div class="row">
130
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
131
- condition="SLday >= {} " placeholder="">
132
- <label class="font_normal_body"> ≤ x ≤ </label>
133
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
134
- condition="SLday <= {} " placeholder="">
135
- </div>
136
- </div>
137
- <div class="col-sm-2 form-group ">
138
- <label for="contain_newfile" class="font_normal_body">开户未上报</label>
139
- <v-select id="contain_newfile"
140
- v-model="model.notappear"
141
- style="width:60%"
142
- :value.sync="model.notappear"
143
- :options='$parent.$parent.not_appear'
144
- :value-single="true"
145
- close-on-select>
146
- </v-select>
147
- </div>
148
-
149
- </div>
150
-
151
-
152
-
153
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
154
- <!--:thead='"<th>序号</th>\n"+-->
155
- <!--"<th>档案编号</th>" +-->
156
- <!--" <th>档案标识</th>"+-->
157
- <!--"<th>客户名称</th>"+-->
158
- <!--"<th>表号</th"+-->
159
- <!--"<th>表具类型</th>"+-->
160
- <!--"<th>客户类型</th>"+-->
161
- <!--"<th>区域</th>"+-->
162
- <!--"<th>小区</th>"+-->
163
- <!--"<th>地址</th>"+-->
164
- <!--"<th>用气气量</th>"+-->
165
- <!--"<th>用气金额</th>"-->
166
- <!--+"<th>用气价格</th>"-->
167
- <!--+"<th>时间</th>"-->
168
- <!--+"<th>所属机构</th>"'-->
169
- <!--: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"]'>-->
170
- <!--</print-table>-->
171
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
172
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
173
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
174
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
175
-
176
- </div>
177
- </criteria>
178
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
179
- <template partial='head'>
180
- <tr>
181
- <th style="text-align:center">
182
- <nobr>序号</nobr>
183
- </th>
184
-
185
- <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
186
-
187
- <th style="text-align:center">
188
- <nobr>客户编号</nobr>
189
- </th>
190
- <th style="text-align:center">
191
- <nobr>客户名称</nobr>
192
- </th>
193
- <th style="text-align:center">
194
- <nobr>客户地址</nobr>
195
- </th>
196
- <th style="text-align:center">
197
- <nobr>客户类型</nobr>
198
- </th>
199
- <th style="text-align:center">
200
- <nobr>用气性质</nobr>
201
- </th>
202
- <th style="text-align:center">
203
- <nobr>联系电话</nobr>
204
- </th>
205
- <th style="text-align:center">
206
- <nobr>表上剩余金额</nobr>
207
- </th>
208
- <th style="text-align:center">
209
- <nobr>表号</nobr>
210
- </th>
211
- <th style="text-align:center">
212
- <nobr>启用日期</nobr>
213
- </th>
214
-
215
- <th style="text-align:center" >
216
- <nobr>初次上报日期</nobr>
217
- </th>
218
- <th style="text-align:center" >
219
- <nobr>最后上报日期</nobr>
220
- </th>
221
- <th style="text-align:center">
222
- <nobr>最后表读数</nobr>
223
- </th>
224
-
225
- <th style="text-align:center" >
226
- <nobr>失联天数</nobr>
227
- </th>
228
- <th style="text-align:center" >
229
- <nobr>气表厂家</nobr>
230
- </th>
231
- <th style="text-align:center" >
232
- <nobr>气表型号</nobr>
233
- </th>
234
- <th style="text-align:center" >
235
- <nobr>用户状态</nobr>
236
- </th>
237
- <th style="text-align:center" >
238
- <nobr>组织机构</nobr>
239
- </th>
240
- </tr>
241
-
242
- </template>
243
- <template partial='body'>
244
- <td style="text-align:center">{{$index+1}}</td>
245
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
246
-
247
-
248
- <td style="text-align: center;"><nobr>
249
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
250
- </nobr> </td>
251
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
252
- <td>
253
- <nobr>{{row.f_address}}</nobr>
254
- </td>
255
- <td style="text-align:center">{{row.f_user_type}}</td>
256
- <td style="text-align:center">{{row.f_gasproperties}}</td>
257
- <td style="text-align:center">{{row.f_user_phone}}</td>
258
- <td style="text-align:center">{{row.f_balance_amount}}</td>
259
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
260
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
261
- <td style="text-align:center">
262
- <nobr>{{row.initinsertdate}}</nobr>
263
- </td> <td style="text-align:center">
264
- <nobr>{{row.lastinsertdate}}</nobr>
265
- </td>
266
- <td style="text-align:center">{{row.f_meter_base}}</td>
267
-
268
- <td style="text-align:center">
269
- <nobr>{{row.slday}}</nobr>
270
- </td>
271
- <td style="text-align:center">{{row.f_meter_brand}}</td>
272
- <td style="text-align:center">
273
- <nobr>{{row.f_meter_style}}</nobr>
274
- </td>
275
- <td style="text-align:center">
276
- <nobr>{{row.f_user_state}}</nobr>
277
- </td>
278
- <td style="text-align:center">
279
- <nobr>{{row.f_orgname}}</nobr>
280
- </td>
281
- <!--<td style="text-align:center">{{row.new_days}}</td>-->
282
- <!--<td style="text-align:center">{{row.f_state}}</td>-->
283
-
284
- </template>
285
- </data-grid>
286
- </criteria-paged>
287
-
288
- </div>
289
- <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
290
- <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
291
- <!-- :echarts="echarts"></lost-contact-echarts>-->
292
- <!-- </div>-->
293
- <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
294
- <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
295
- <!--&lt;!&ndash; </div>&ndash;&gt;-->
296
- <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
297
- <!-- <lost-contact-eform :condition="condition"-->
298
- <!-- ></lost-contact-eform>-->
299
- <!-- </div>-->
300
- </div>
301
- <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
302
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
303
- </div>
304
- </template>
305
-
306
- <script>
307
- import {PagedList} from 'vue-client'
308
- import UserGasEcharts from './UserGasEcharts'
309
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
310
- import {HttpResetClass} from 'vue-client'
311
- let readySomething = async function (self) {
312
-
313
- await self.$MagLoadParams.loadParam()
314
- self.initParams()
315
- self.$refs.paged.$refs.cri.model.notappear='不包含'
316
- self.$refs.paged.$refs.cri.model.SLday1=10
317
- self.$refs.paged.$refs.cri.search()
318
- }
319
- export default {
320
- title: '失联分析',
321
- props: ['data'],
322
- components: {UserGasEcharts},
323
-
324
- data() {
325
- return {
326
- model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
327
- getfield:{
328
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
329
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
330
- "f_meternumber":"表号",
331
- "f_user_phone":"联系电话",
332
- "f_balance_amount":"表上剩余金额",
333
-
334
- "f_startuse_date":"启用日期",
335
- "initinsertdate":"初次上报日期",
336
- "lastinsertdate":"最后上报日期",
337
- "f_meter_base":"最后表读数",
338
- "slday":"失联天数",
339
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
340
- reportStr: null,
341
- show: false,
342
- showdetail:false,
343
- rowdata:{},
344
- criteriaShow:false,
345
- outlets: [],
346
- operator: [],
347
- filename: '',
348
- WarningType: [
349
- {label: '全部', value: ''}
350
- ],
351
- Warningstyles: [
352
- {label: '全部', value: ''}
353
- ],
354
- styles:false,
355
- org:[this.$login.f.orgid],
356
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
357
- echarts: false,
358
- searchshow: false,
359
- isActiveTotalForm: false,
360
- condition: '1=1',
361
- groupname: ['max_days_type'],
362
- getgroupname: [
363
- {label: '客户类型', value: 'f_user_type'},
364
- {label: '用气性质', value: 'f_gasproperties'},
365
- {label: '分公司', value: 'f_orgname'},
366
- {label: '最长失联天数', value: 'max_days_type'},
367
- ]
368
-
369
- }
370
- },
371
- ready() {
372
- readySomething(this)
373
- this.getMeterTypeAndBrand('f_meter_brand', '1=1')
374
- },
375
-
376
- methods: {
377
- getMeterType() {
378
- this.Warningstyle = [{label: '全部', value: ''}]
379
- this.styles = false
380
- let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
381
- this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
382
- },
383
- getMeterTypeAndBrand(groupname, condition) {
384
- condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
385
- let self = this
386
- let load = new HttpResetClass()
387
- load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
388
- data: {
389
- condition: condition,
390
- groupname: groupname
391
- }
392
- }, {warnMsg: null, resolveMsg: null}).then((res) => {
393
- let dr = {label: '', value: ''}
394
- let i = 0
395
- for (i = 0; i < res.data.length; i++) {
396
- dr = {label: '', value: ''}
397
- if (groupname == 'f_meter_brand') {
398
- dr.label = res.data[i].f_meter_brand
399
- dr.value = res.data[i].f_meter_brand
400
- //气表品牌
401
- self.WarningType[i + 1] = dr
402
- console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
403
- console.log(dr)
404
- console.log( self.WarningType)
405
- } else if (groupname == 'f_meter_style') {
406
- dr.label = res.data[i].f_meter_style
407
- dr.value = res.data[i].f_meter_style
408
- //气表类型
409
- self.Warningstyle[i + 1] = dr
410
- }
411
- }
412
- if (self.Warningstyle.length > 1) {
413
- self.showMeterStyle()
414
- }
415
- })
416
-
417
- },
418
- showMeterStyle() {
419
- this.styles = true
420
- },
421
- hidden(){
422
- this.criteriaShow = !this.criteriaShow
423
- },
424
- showmsg(obj){
425
- this.rowdata=obj
426
- this.showdetail=true
427
- },
428
- cancel() {
429
- this.showdetail = false
430
- },
431
- clickshow() {
432
- this.searchshow = !this.searchshow
433
- },
434
- search(args) {
435
- this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
436
- args.condition = this.condition
437
- if(this.$refs.paged.$refs.cri.model.notappear) {
438
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
439
- args.condition = args.condition + " and initinsertdate <> '开户未上报'"
440
- }
441
- }
442
- this.model.search(args.condition, args.model)
443
- },
444
- getorg(obj) {
445
- if (obj.resids.length>0) {
446
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
447
- }else
448
- {
449
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
450
- }
451
- },
452
- // SaveAsFile(str) {
453
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
454
- // if (res === 'confirm') {
455
- // let style = '<style>' +
456
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
457
- // let strHtml = style + document.getElementById(str).innerHTML;
458
- // console.log(strHtml);
459
- // let LODOP = getLodop();
460
- // LODOP.PRINT_INIT('');
461
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
462
- // LODOP.SAVE_TO_FILE('失联分析.xls')
463
- // }
464
- // })
465
- // },
466
- clearmsg() {
467
- this.$refs.paged.$refs.cri.model = {}
468
- },
469
- close() {
470
- this.show = false
471
- },
472
- initParams () {
473
- let arr = []
474
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
475
- let temp = {}
476
- if(item.value.f_meter_type==='物联网表'){
477
- temp.label = item.label
478
- temp.value = item.value.f_meter_brand
479
- arr.push(temp )
480
- }
481
-
482
- })
483
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
484
- },
485
- // 显示柱状图
486
- showEcharts() {
487
- this.echarts = true
488
- this.isActiveTotalForm = false
489
- },
490
- notShowTotalForm() {
491
- this.echarts = false
492
- this.isActiveTotalForm = false
493
- },
494
- // 不显示柱状图
495
- notShowEcharts() {
496
- this.echarts = false
497
- this.isActiveTotalForm = false
498
- },
499
- // 显示汇总数据表格
500
- showTotalForm() {
501
- this.echarts = false
502
- this.isActiveTotalForm = true
503
- }
504
- },
505
- watch: {
506
- 'data'(val) {
507
- if (val.f_files_path) {
508
- this.getFileContent(val.f_files_path)
509
- } else {
510
- this.reportStr = null
511
- }
512
- }
513
- },
514
- computed: {
515
- // usertypes () {
516
- // return this.$appdate.getParams("客户类型")
517
- // },
518
- getCondition() {
519
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
520
- if(this.$refs.paged.$refs.cri.model.notappear) {
521
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
522
- condition = condition + " and initinsertdate <> '开户未上报'"
523
- }
524
- }
525
- return {
526
-
527
- condition: condition
528
- }
529
- },
530
- usertypes() {
531
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
532
- },
533
- Gasproperties() {
534
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
535
- },
536
- f_outlets() {
537
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
538
- },
539
- valveStatus() {
540
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
541
- },
542
- not_appear(){
543
- return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
544
- },
545
- getstate() {
546
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
547
- },
548
- userstate() {
549
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
550
- }
551
- }
552
- }
553
- </script>
554
- <style>
555
- .form-input-group label {
556
- text-align: right;
557
- width: auto;
558
- }
559
-
560
- .mystyle {
561
- float: right;
562
- padding-right: 10%;
563
- }
564
-
565
- .mystyle1 {
566
- padding-top: 10px;
567
-
568
- }
569
-
570
- .mystyle2 {
571
- width: 100%;
572
- height: 35px;
573
- /*background: #00A3F0;*/
574
- padding-left: 15px;
575
- float: left;
576
- }
577
-
578
- .datapanel {
579
- color: #333;
580
- background-color: white;
581
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
582
- padding: 10px 30px 10px 30px;
583
- border-radius: 15px;
584
- }
585
- </style>
1
+ <template>
2
+ <div class="flex-row" v-if="!showdetail">
3
+ <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <!--<div class="form-group">-->
9
+ <!--<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'-->
10
+ <!--condition="f_user_name = '{}'" v-next-el='userid' v-el:username-->
11
+ <!--:size="model.f_user_name ? model.f_user_name.length * 2 : 8">-->
12
+ <!--</div>-->
13
+
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
17
+ v-model="model.f_userinfo_code" placeholder='客户编号'
18
+ condition="f_userinfo_code like '%{}%'" v-el:xq v-next-el='userinfocode' v-el:username
19
+ >
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label class="font_normal_body">客户名称</label>
23
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
24
+ v-model="model.f_user_name" placeholder='客户名称'
25
+ condition="f_user_name like '%{}%'" v-el:xq v-next-el='username' v-el:username
26
+ >
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户地址</label>
30
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_area"
31
+ placeholder='地址'
32
+ condition="f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
33
+ >
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
37
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
38
+ v-model="model.f_meternumber" placeholder='表号'
39
+ condition="f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
40
+ >
41
+ </div>
42
+
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="rs/logic/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="true"
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
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
128
+ <label class="font_normal_body">失联天数&nbsp;</label>
129
+ <div class="row">
130
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
131
+ condition="SLday >= {} " placeholder="">
132
+ <label class="font_normal_body"> ≤ x ≤ </label>
133
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
134
+ condition="SLday <= {} " placeholder="">
135
+ </div>
136
+ </div>
137
+ <div class="col-sm-2 form-group ">
138
+ <label for="contain_newfile" class="font_normal_body">开户未上报</label>
139
+ <v-select id="contain_newfile"
140
+ v-model="model.notappear"
141
+ style="width:60%"
142
+ :value.sync="model.notappear"
143
+ :options='$parent.$parent.not_appear'
144
+ :value-single="true"
145
+ close-on-select>
146
+ </v-select>
147
+ </div>
148
+
149
+ </div>
150
+
151
+
152
+
153
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
154
+ <!--:thead='"<th>序号</th>\n"+-->
155
+ <!--"<th>档案编号</th>" +-->
156
+ <!--" <th>档案标识</th>"+-->
157
+ <!--"<th>客户名称</th>"+-->
158
+ <!--"<th>表号</th"+-->
159
+ <!--"<th>表具类型</th>"+-->
160
+ <!--"<th>客户类型</th>"+-->
161
+ <!--"<th>区域</th>"+-->
162
+ <!--"<th>小区</th>"+-->
163
+ <!--"<th>地址</th>"+-->
164
+ <!--"<th>用气气量</th>"+-->
165
+ <!--"<th>用气金额</th>"-->
166
+ <!--+"<th>用气价格</th>"-->
167
+ <!--+"<th>时间</th>"-->
168
+ <!--+"<th>所属机构</th>"'-->
169
+ <!--: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"]'>-->
170
+ <!--</print-table>-->
171
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
172
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
173
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
174
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
175
+
176
+ </div>
177
+ </criteria>
178
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
179
+ <template partial='head'>
180
+ <tr>
181
+ <th style="text-align:center">
182
+ <nobr>序号</nobr>
183
+ </th>
184
+
185
+ <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
186
+
187
+ <th style="text-align:center">
188
+ <nobr>客户编号</nobr>
189
+ </th>
190
+ <th style="text-align:center">
191
+ <nobr>客户名称</nobr>
192
+ </th>
193
+ <th style="text-align:center">
194
+ <nobr>客户地址</nobr>
195
+ </th>
196
+ <th style="text-align:center">
197
+ <nobr>客户类型</nobr>
198
+ </th>
199
+ <th style="text-align:center">
200
+ <nobr>用气性质</nobr>
201
+ </th>
202
+ <th style="text-align:center">
203
+ <nobr>联系电话</nobr>
204
+ </th>
205
+ <th style="text-align:center">
206
+ <nobr>表上剩余金额</nobr>
207
+ </th>
208
+ <th style="text-align:center">
209
+ <nobr>表号</nobr>
210
+ </th>
211
+ <th style="text-align:center">
212
+ <nobr>启用日期</nobr>
213
+ </th>
214
+
215
+ <th style="text-align:center" >
216
+ <nobr>初次上报日期</nobr>
217
+ </th>
218
+ <th style="text-align:center" >
219
+ <nobr>最后上报日期</nobr>
220
+ </th>
221
+ <th style="text-align:center">
222
+ <nobr>最后表读数</nobr>
223
+ </th>
224
+
225
+ <th style="text-align:center" >
226
+ <nobr>失联天数</nobr>
227
+ </th>
228
+ <th style="text-align:center" >
229
+ <nobr>气表厂家</nobr>
230
+ </th>
231
+ <th style="text-align:center" >
232
+ <nobr>气表型号</nobr>
233
+ </th>
234
+ <th style="text-align:center" >
235
+ <nobr>用户状态</nobr>
236
+ </th>
237
+ <th style="text-align:center" >
238
+ <nobr>组织机构</nobr>
239
+ </th>
240
+ </tr>
241
+
242
+ </template>
243
+ <template partial='body'>
244
+ <td style="text-align:center">{{$index+1}}</td>
245
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
246
+
247
+
248
+ <td style="text-align: center;"><nobr>
249
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
250
+ </nobr> </td>
251
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
252
+ <td>
253
+ <nobr>{{row.f_address}}</nobr>
254
+ </td>
255
+ <td style="text-align:center">{{row.f_user_type}}</td>
256
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
257
+ <td style="text-align:center">{{row.f_user_phone}}</td>
258
+ <td style="text-align:center">{{row.f_balance_amount}}</td>
259
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
260
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
261
+ <td style="text-align:center">
262
+ <nobr>{{row.initinsertdate}}</nobr>
263
+ </td> <td style="text-align:center">
264
+ <nobr>{{row.lastinsertdate}}</nobr>
265
+ </td>
266
+ <td style="text-align:center">{{row.f_meter_base}}</td>
267
+
268
+ <td style="text-align:center">
269
+ <nobr>{{row.slday}}</nobr>
270
+ </td>
271
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
272
+ <td style="text-align:center">
273
+ <nobr>{{row.f_meter_style}}</nobr>
274
+ </td>
275
+ <td style="text-align:center">
276
+ <nobr>{{row.f_user_state}}</nobr>
277
+ </td>
278
+ <td style="text-align:center">
279
+ <nobr>{{row.f_orgname}}</nobr>
280
+ </td>
281
+ <!--<td style="text-align:center">{{row.new_days}}</td>-->
282
+ <!--<td style="text-align:center">{{row.f_state}}</td>-->
283
+
284
+ </template>
285
+ </data-grid>
286
+ </criteria-paged>
287
+
288
+ </div>
289
+ <!-- <div class="flex-row" v-show="echarts" style="width: 100%;height: 90%;">-->
290
+ <!-- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"-->
291
+ <!-- :echarts="echarts"></lost-contact-echarts>-->
292
+ <!-- </div>-->
293
+ <!--&lt;!&ndash; <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">&ndash;&gt;-->
294
+ <!--&lt;!&ndash; <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>&ndash;&gt;-->
295
+ <!--&lt;!&ndash; </div>&ndash;&gt;-->
296
+ <!-- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">-->
297
+ <!-- <lost-contact-eform :condition="condition"-->
298
+ <!-- ></lost-contact-eform>-->
299
+ <!-- </div>-->
300
+ </div>
301
+ <div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
302
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
303
+ </div>
304
+ </template>
305
+
306
+ <script>
307
+ import {PagedList} from 'vue-client'
308
+ import UserGasEcharts from './UserGasEcharts'
309
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
310
+ import {HttpResetClass} from 'vue-client'
311
+ let readySomething = async function (self) {
312
+
313
+ await self.$MagLoadParams.loadParam()
314
+ self.initParams()
315
+ self.$refs.paged.$refs.cri.model.notappear='不包含'
316
+ self.$refs.paged.$refs.cri.model.SLday1=10
317
+ self.$refs.paged.$refs.cri.search()
318
+ }
319
+ export default {
320
+ title: '失联分析',
321
+ props: ['data'],
322
+ components: {UserGasEcharts},
323
+
324
+ data() {
325
+ return {
326
+ model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
327
+ getfield:{
328
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称",
329
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
330
+ "f_meternumber":"表号",
331
+ "f_user_phone":"联系电话",
332
+ "f_balance_amount":"表上剩余金额",
333
+
334
+ "f_startuse_date":"启用日期",
335
+ "initinsertdate":"初次上报日期",
336
+ "lastinsertdate":"最后上报日期",
337
+ "f_meter_base":"最后表读数",
338
+ "slday":"失联天数",
339
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
340
+ reportStr: null,
341
+ show: false,
342
+ showdetail:false,
343
+ rowdata:{},
344
+ criteriaShow:false,
345
+ outlets: [],
346
+ operator: [],
347
+ filename: '',
348
+ WarningType: [
349
+ {label: '全部', value: ''}
350
+ ],
351
+ Warningstyles: [
352
+ {label: '全部', value: ''}
353
+ ],
354
+ styles:false,
355
+ org:[this.$login.f.orgid],
356
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
357
+ echarts: false,
358
+ searchshow: false,
359
+ isActiveTotalForm: false,
360
+ condition: '1=1',
361
+ groupname: ['max_days_type'],
362
+ getgroupname: [
363
+ {label: '客户类型', value: 'f_user_type'},
364
+ {label: '用气性质', value: 'f_gasproperties'},
365
+ {label: '分公司', value: 'f_orgname'},
366
+ {label: '最长失联天数', value: 'max_days_type'},
367
+ ]
368
+
369
+ }
370
+ },
371
+ ready() {
372
+ readySomething(this)
373
+ this.getMeterTypeAndBrand('f_meter_brand', '1=1')
374
+ },
375
+
376
+ methods: {
377
+ getMeterType() {
378
+ this.Warningstyle = [{label: '全部', value: ''}]
379
+ this.styles = false
380
+ let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
381
+ this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
382
+ },
383
+ getMeterTypeAndBrand(groupname, condition) {
384
+ condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
385
+ let self = this
386
+ let load = new HttpResetClass()
387
+ load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
388
+ data: {
389
+ condition: condition,
390
+ groupname: groupname
391
+ }
392
+ }, {warnMsg: null, resolveMsg: null}).then((res) => {
393
+ let dr = {label: '', value: ''}
394
+ let i = 0
395
+ for (i = 0; i < res.data.length; i++) {
396
+ dr = {label: '', value: ''}
397
+ if (groupname == 'f_meter_brand') {
398
+ dr.label = res.data[i].f_meter_brand
399
+ dr.value = res.data[i].f_meter_brand
400
+ //气表品牌
401
+ self.WarningType[i + 1] = dr
402
+ console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
403
+ console.log(dr)
404
+ console.log( self.WarningType)
405
+ } else if (groupname == 'f_meter_style') {
406
+ dr.label = res.data[i].f_meter_style
407
+ dr.value = res.data[i].f_meter_style
408
+ //气表类型
409
+ self.Warningstyle[i + 1] = dr
410
+ }
411
+ }
412
+ if (self.Warningstyle.length > 1) {
413
+ self.showMeterStyle()
414
+ }
415
+ })
416
+
417
+ },
418
+ showMeterStyle() {
419
+ this.styles = true
420
+ },
421
+ hidden(){
422
+ this.criteriaShow = !this.criteriaShow
423
+ },
424
+ showmsg(obj){
425
+ this.rowdata=obj
426
+ this.showdetail=true
427
+ },
428
+ cancel() {
429
+ this.showdetail = false
430
+ },
431
+ clickshow() {
432
+ this.searchshow = !this.searchshow
433
+ },
434
+ search(args) {
435
+ this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
436
+ args.condition = this.condition
437
+ if(this.$refs.paged.$refs.cri.model.notappear) {
438
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
439
+ args.condition = args.condition + " and initinsertdate <> '开户未上报'"
440
+ }
441
+ }
442
+ this.model.search(args.condition, args.model)
443
+ },
444
+ getorg(obj) {
445
+ if (obj.resids.length>0) {
446
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
447
+ }else
448
+ {
449
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
450
+ }
451
+ },
452
+ // SaveAsFile(str) {
453
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
454
+ // if (res === 'confirm') {
455
+ // let style = '<style>' +
456
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
457
+ // let strHtml = style + document.getElementById(str).innerHTML;
458
+ // console.log(strHtml);
459
+ // let LODOP = getLodop();
460
+ // LODOP.PRINT_INIT('');
461
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
462
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
463
+ // }
464
+ // })
465
+ // },
466
+ clearmsg() {
467
+ this.$refs.paged.$refs.cri.model = {}
468
+ },
469
+ close() {
470
+ this.show = false
471
+ },
472
+ initParams () {
473
+ let arr = []
474
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
475
+ let temp = {}
476
+ if(item.value.f_meter_type==='物联网表'){
477
+ temp.label = item.label
478
+ temp.value = item.value.f_meter_brand
479
+ arr.push(temp )
480
+ }
481
+
482
+ })
483
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
484
+ },
485
+ // 显示柱状图
486
+ showEcharts() {
487
+ this.echarts = true
488
+ this.isActiveTotalForm = false
489
+ },
490
+ notShowTotalForm() {
491
+ this.echarts = false
492
+ this.isActiveTotalForm = false
493
+ },
494
+ // 不显示柱状图
495
+ notShowEcharts() {
496
+ this.echarts = false
497
+ this.isActiveTotalForm = false
498
+ },
499
+ // 显示汇总数据表格
500
+ showTotalForm() {
501
+ this.echarts = false
502
+ this.isActiveTotalForm = true
503
+ }
504
+ },
505
+ watch: {
506
+ 'data'(val) {
507
+ if (val.f_files_path) {
508
+ this.getFileContent(val.f_files_path)
509
+ } else {
510
+ this.reportStr = null
511
+ }
512
+ }
513
+ },
514
+ computed: {
515
+ // usertypes () {
516
+ // return this.$appdate.getParams("客户类型")
517
+ // },
518
+ getCondition() {
519
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
520
+ if(this.$refs.paged.$refs.cri.model.notappear) {
521
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
522
+ condition = condition + " and initinsertdate <> '开户未上报'"
523
+ }
524
+ }
525
+ return {
526
+
527
+ condition: condition
528
+ }
529
+ },
530
+ usertypes() {
531
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
532
+ },
533
+ Gasproperties() {
534
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
535
+ },
536
+ f_outlets() {
537
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
538
+ },
539
+ valveStatus() {
540
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
541
+ },
542
+ not_appear(){
543
+ return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
544
+ },
545
+ getstate() {
546
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
547
+ },
548
+ userstate() {
549
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
550
+ }
551
+ }
552
+ }
553
+ </script>
554
+ <style>
555
+ .form-input-group label {
556
+ text-align: right;
557
+ width: auto;
558
+ }
559
+
560
+ .mystyle {
561
+ float: right;
562
+ padding-right: 10%;
563
+ }
564
+
565
+ .mystyle1 {
566
+ padding-top: 10px;
567
+
568
+ }
569
+
570
+ .mystyle2 {
571
+ width: 100%;
572
+ height: 35px;
573
+ /*background: #00A3F0;*/
574
+ padding-left: 15px;
575
+ float: left;
576
+ }
577
+
578
+ .datapanel {
579
+ color: #333;
580
+ background-color: white;
581
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
582
+ padding: 10px 30px 10px 30px;
583
+ border-radius: 15px;
584
+ }
585
+ </style>