manage-client 3.2.67-aode → 3.2.68-aode

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 (65) hide show
  1. package/build/dev-server.js +5 -2
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +41 -4
  35. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  36. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  37. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  38. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  39. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,507 +1,507 @@
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">
85
- <label class="font_normal_body">阀门状态</label>
86
- <v-select
87
- placeholder='阀门状态'
88
- value-single="true"
89
- style="width:60%"
90
- :value.sync="model.f_valvestate"
91
- v-model="model.f_valvestate"
92
- :options='$parent.$parent.ValveState'
93
- close-on-select condition="f_valvestate ='{}'">
94
- </v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">气表品牌</label>
98
- <v-select :value.sync="model.f_meter_brand"
99
- v-model="model.f_meter_brand"
100
- :options='$parent.$parent.meterbrands' placeholder='请选择'
101
- condition="f_meter_brand = '{}'"
102
- close-on-select></v-select>
103
- </div>
104
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
105
- <label class="font_normal_body">失联天数&nbsp;</label>
106
- <div class="row">
107
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
108
- condition="SLday >= {} " placeholder="">
109
- <label class="font_normal_body"> ≤ x ≤ </label>
110
- <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
111
- condition="SLday <= {} " placeholder="">
112
- </div>
113
- </div>
114
- <div class="col-sm-2 form-group ">
115
- <label for="contain_newfile" class="font_normal_body">开户未上报</label>
116
- <v-select id="contain_newfile"
117
- v-model="model.notappear"
118
- style="width:60%"
119
- :value.sync="model.notappear"
120
- :options='$parent.$parent.not_appear'
121
- :value-single="true"
122
- close-on-select>
123
- </v-select>
124
- </div>
125
-
126
- </div>
127
-
128
-
129
-
130
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
131
- <!--:thead='"<th>序号</th>\n"+-->
132
- <!--"<th>档案编号</th>" +-->
133
- <!--" <th>档案标识</th>"+-->
134
- <!--"<th>客户名称</th>"+-->
135
- <!--"<th>表号</th"+-->
136
- <!--"<th>表具类型</th>"+-->
137
- <!--"<th>客户类型</th>"+-->
138
- <!--"<th>区域</th>"+-->
139
- <!--"<th>小区</th>"+-->
140
- <!--"<th>地址</th>"+-->
141
- <!--"<th>用气气量</th>"+-->
142
- <!--"<th>用气金额</th>"-->
143
- <!--+"<th>用气价格</th>"-->
144
- <!--+"<th>时间</th>"-->
145
- <!--+"<th>所属机构</th>"'-->
146
- <!--: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"]'>-->
147
- <!--</print-table>-->
148
- <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
149
- <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
150
- <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
151
- <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
152
-
153
- </div>
154
- </criteria>
155
- <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
156
- <template partial='head'>
157
- <tr>
158
- <th style="text-align:center">
159
- <nobr>序号</nobr>
160
- </th>
161
-
162
- <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
163
-
164
- <th style="text-align:center">
165
- <nobr>客户编号</nobr>
166
- </th>
167
- <th style="text-align:center">
168
- <nobr>客户名称</nobr>
169
- </th>
170
- <th style="text-align:center">
171
- <nobr>客户地址</nobr>
172
- </th>
173
- <th style="text-align:center">
174
- <nobr>客户类型</nobr>
175
- </th>
176
- <th style="text-align:center">
177
- <nobr>用气性质</nobr>
178
- </th>
179
- <th style="text-align:center">
180
- <nobr>表号</nobr>
181
- </th>
182
- <th style="text-align:center">
183
- <nobr>启用日期</nobr>
184
- </th>
185
- <th style="text-align:center" >
186
- <nobr>阀门状态</nobr>
187
- </th>
188
- <th style="text-align:center" >
189
- <nobr>初次上报日期</nobr>
190
- </th>
191
- <th style="text-align:center" >
192
- <nobr>最后上报日期</nobr>
193
- </th>
194
- <th style="text-align:center">
195
- <nobr>最后表读数</nobr>
196
- </th>
197
-
198
- <th style="text-align:center" >
199
- <nobr>失联天数</nobr>
200
- </th>
201
- <th style="text-align:center" >
202
- <nobr>气表厂家</nobr>
203
- </th>
204
- <th style="text-align:center" >
205
- <nobr>组织机构</nobr>
206
- </th>
207
- </tr>
208
-
209
- </template>
210
- <template partial='body'>
211
- <td style="text-align:center">{{$index+1}}</td>
212
- <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
213
-
214
-
215
- <td style="text-align: center;"><nobr>
216
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
217
- </nobr> </td>
218
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
219
- <td>
220
- <nobr>{{row.f_address}}</nobr>
221
- </td>
222
- <td style="text-align:center">{{row.f_user_type}}</td>
223
- <td style="text-align:center">{{row.f_gasproperties}}</td>
224
- <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
225
- <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
226
- <td style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></td>
227
- <td style="text-align:center">
228
- <nobr>{{row.initinsertdate}}</nobr>
229
- </td> <td style="text-align:center">
230
- <nobr>{{row.lastinsertdate}}</nobr>
231
- </td>
232
- <td style="text-align:center">{{row.f_meter_base}}</td>
233
-
234
- <td style="text-align:center">
235
- <nobr>{{row.slday}}</nobr>
236
- </td>
237
- <td style="text-align:center">{{row.f_meter_brand}}</td>
238
- <td style="text-align:center">
239
- <nobr>{{row.f_orgname}}</nobr>
240
- </td>
241
- <!--<td style="text-align:center">{{row.new_days}}</td>-->
242
- <!--<td style="text-align:center">{{row.f_state}}</td>-->
243
-
244
- </template>
245
- </data-grid>
246
- </criteria-paged>
247
- </div>
248
- <div v-show="echarts" style="height: 40px;width: 100%;">
249
- <div style="display: inline-block;">
250
- <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
251
- </div>
252
- <div class="mystyle" style="display: inline-block;">
253
- <label class="font_normal_body">图表统计项</label>
254
- <v-select style="width:60%" id="Groupname" v-model="groupname"
255
- placeholder='分组项'
256
- value-single="true"
257
- :value.sync="groupname"
258
- :options='getgroupname'
259
- close-on-select></v-select>
260
- </div>
261
- </div>
262
- <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
263
- <lost-contact-echarts :groupname="groupname[0]" :condition="condition"
264
- :echarts="echarts"></lost-contact-echarts>
265
- </div>
266
- <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
267
- <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
268
- <!-- </div>-->
269
- <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
270
- <lost-contact-eform :condition="condition"
271
- ></lost-contact-eform>
272
- </div>
273
- </div>
274
- <div class="basic-main" v-if="showdetail">
275
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
276
- </div>
277
- </template>
278
-
279
- <script>
280
- import {PagedList} from 'vue-client'
281
- import UserGasEcharts from './UserGasEcharts'
282
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
283
-
284
- let readySomething = async function (self) {
285
-
286
- await self.$MagLoadParams.loadParam()
287
- self.initParams()
288
- self.$refs.paged.$refs.cri.model.notappear='不包含'
289
- self.$refs.paged.$refs.cri.model.SLday1=10
290
- // self.$refs.paged.$refs.cri.search()
291
- }
292
- export default {
293
- title: '失联分析',
294
- props: ['data'],
295
- components: {UserGasEcharts},
296
-
297
- data() {
298
- return {
299
- model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
300
- getfield:{
301
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
302
- "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
303
- "f_meternumber":"表号",
304
-
305
- "f_startuse_date":"启用日期",
306
- "f_valvestate":"阀门状态",
307
- "initinsertdate":"初次上报日期",
308
- "lastinsertdate":"最后上报日期",
309
- "f_meter_base":"最后表读数",
310
- "slday":"失联天数",
311
- "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
312
- reportStr: null,
313
- show: false,
314
- showdetail:false,
315
- rowdata:{},
316
- criteriaShow:false,
317
- outlets: [],
318
- operator: [],
319
- filename: '',
320
- meterbrands: [],
321
- org:[this.$login.f.orgid],
322
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
323
- echarts: false,
324
- searchshow: false,
325
- isActiveTotalForm: false,
326
- condition: '1=1',
327
- groupname: ['max_days_type'],
328
- getgroupname: [
329
- {label: '客户类型', value: 'f_user_type'},
330
- {label: '用气性质', value: 'f_gasproperties'},
331
- {label: '分公司', value: 'f_orgid'},
332
- {label: '最长失联天数', value: 'max_days_type'},
333
- {label: '合计失联天数', value: 'all_days_type'}
334
- ]
335
-
336
- }
337
- },
338
- ready() {
339
- readySomething(this)
340
-
341
- },
342
- methods: {
343
- hidden(){
344
- this.criteriaShow = !this.criteriaShow
345
- },
346
- showmsg(obj){
347
- this.rowdata=obj
348
- this.showdetail=true
349
- },
350
- cancel() {
351
- this.showdetail = false
352
- },
353
- clickshow() {
354
- this.searchshow = !this.searchshow
355
- },
356
- search(args) {
357
- this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
358
- args.condition = this.condition
359
- if(this.$refs.paged.$refs.cri.model.notappear) {
360
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
361
- args.condition = args.condition + " and initinsertdate <> '开户未上报'"
362
- }
363
- }
364
- this.model.search(args.condition, args.model)
365
- },
366
- getorg(obj) {
367
- if (obj.resids.length>0) {
368
- this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
369
- }else
370
- {
371
- this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
372
- }
373
- },
374
- // SaveAsFile(str) {
375
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
376
- // if (res === 'confirm') {
377
- // let style = '<style>' +
378
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
379
- // let strHtml = style + document.getElementById(str).innerHTML;
380
- // console.log(strHtml);
381
- // let LODOP = getLodop();
382
- // LODOP.PRINT_INIT('');
383
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
384
- // LODOP.SAVE_TO_FILE('失联分析.xls')
385
- // }
386
- // })
387
- // },
388
- clearmsg() {
389
- this.$refs.paged.$refs.cri.model = {}
390
- },
391
- close() {
392
- this.show = false
393
- },
394
- initParams () {
395
- let arr = []
396
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
397
- let temp = {}
398
- if(item.value.f_meter_type==='物联网表'){
399
- temp.label = item.label
400
- temp.value = item.value.f_meter_brand
401
- arr.push(temp )
402
- }
403
-
404
- })
405
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
406
- },
407
- // 显示柱状图
408
- showEcharts() {
409
- this.echarts = true
410
- this.isActiveTotalForm = false
411
- },
412
- notShowTotalForm() {
413
- this.echarts = false
414
- this.isActiveTotalForm = false
415
- },
416
- // 不显示柱状图
417
- notShowEcharts() {
418
- this.echarts = false
419
- this.isActiveTotalForm = false
420
- },
421
- // 显示汇总数据表格
422
- showTotalForm() {
423
- this.echarts = false
424
- this.isActiveTotalForm = true
425
- }
426
- },
427
- watch: {
428
- 'data'(val) {
429
- if (val.f_files_path) {
430
- this.getFileContent(val.f_files_path)
431
- } else {
432
- this.reportStr = null
433
- }
434
- }
435
- },
436
- computed: {
437
- // usertypes () {
438
- // return this.$appdate.getParams("客户类型")
439
- // },
440
- getCondition() {
441
- let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
442
- if(this.$refs.paged.$refs.cri.model.notappear) {
443
- if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
444
- condition = condition + " and initinsertdate <> '开户未上报'"
445
- }
446
- }
447
- return {
448
-
449
- condition: condition
450
- }
451
- },
452
- usertypes() {
453
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
454
- },
455
- ValveState() {
456
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
457
- },
458
- Gasproperties() {
459
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
460
- },
461
- f_outlets() {
462
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
463
- },
464
- valveStatus() {
465
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
466
- },
467
- not_appear(){
468
- return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
469
- },
470
- getstate() {
471
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
472
- }
473
- }
474
- }
475
- </script>
476
- <style>
477
- .form-input-group label {
478
- text-align: right;
479
- width: auto;
480
- }
481
-
482
- .mystyle {
483
- float: right;
484
- padding-right: 10%;
485
- }
486
-
487
- .mystyle1 {
488
- padding-top: 10px;
489
-
490
- }
491
-
492
- .mystyle2 {
493
- width: 100%;
494
- height: 35px;
495
- /*background: #00A3F0;*/
496
- padding-left: 15px;
497
- float: left;
498
- }
499
-
500
- .datapanel {
501
- color: #333;
502
- background-color: white;
503
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
504
- padding: 10px 30px 10px 30px;
505
- border-radius: 15px;
506
- }
507
- </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">
85
+ <label class="font_normal_body">阀门状态</label>
86
+ <v-select
87
+ placeholder='阀门状态'
88
+ value-single="true"
89
+ style="width:60%"
90
+ :value.sync="model.f_valvestate"
91
+ v-model="model.f_valvestate"
92
+ :options='$parent.$parent.ValveState'
93
+ close-on-select condition="f_valvestate ='{}'">
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">气表品牌</label>
98
+ <v-select :value.sync="model.f_meter_brand"
99
+ v-model="model.f_meter_brand"
100
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
101
+ condition="f_meter_brand = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
105
+ <label class="font_normal_body">失联天数&nbsp;</label>
106
+ <div class="row">
107
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday1"
108
+ condition="SLday >= {} " placeholder="">
109
+ <label class="font_normal_body"> ≤ x ≤ </label>
110
+ <input type="text" style="width:27%" class="input_search" v-model="model.SLday2"
111
+ condition="SLday <= {} " placeholder="">
112
+ </div>
113
+ </div>
114
+ <div class="col-sm-2 form-group ">
115
+ <label for="contain_newfile" class="font_normal_body">开户未上报</label>
116
+ <v-select id="contain_newfile"
117
+ v-model="model.notappear"
118
+ style="width:60%"
119
+ :value.sync="model.notappear"
120
+ :options='$parent.$parent.not_appear'
121
+ :value-single="true"
122
+ close-on-select>
123
+ </v-select>
124
+ </div>
125
+
126
+ </div>
127
+
128
+
129
+
130
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
131
+ <!--:thead='"<th>序号</th>\n"+-->
132
+ <!--"<th>档案编号</th>" +-->
133
+ <!--" <th>档案标识</th>"+-->
134
+ <!--"<th>客户名称</th>"+-->
135
+ <!--"<th>表号</th"+-->
136
+ <!--"<th>表具类型</th>"+-->
137
+ <!--"<th>客户类型</th>"+-->
138
+ <!--"<th>区域</th>"+-->
139
+ <!--"<th>小区</th>"+-->
140
+ <!--"<th>地址</th>"+-->
141
+ <!--"<th>用气气量</th>"+-->
142
+ <!--"<th>用气金额</th>"-->
143
+ <!--+"<th>用气价格</th>"-->
144
+ <!--+"<th>时间</th>"-->
145
+ <!--+"<th>所属机构</th>"'-->
146
+ <!--: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"]'>-->
147
+ <!--</print-table>-->
148
+ <!--<export-excel :data="{orderitem: 'lastinputdate desc', condition: '1=1'}"-->
149
+ <!--:field="{f_username: '客户名称', f_meternumber: '表号',f_usertype:'客户类型',f_save_money:'剩余金额',-->
150
+ <!--f_operate_status:'状态',f_close_reason:'关阀原因',f_area:'区域',f_districtname:'小区', f_address: '地址',id:'档案编号',yytdepa:'所属机构'}"-->
151
+ <!--sqlurl="rs/sql/getUserGas"></export-excel>-->
152
+
153
+ </div>
154
+ </criteria>
155
+ <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid class="list_area table_sy">
156
+ <template partial='head'>
157
+ <tr>
158
+ <th style="text-align:center">
159
+ <nobr>序号</nobr>
160
+ </th>
161
+
162
+ <!--<th rowspan="2" style="text-align:center"><nobr>客户编号</nobr></th>-->
163
+
164
+ <th style="text-align:center">
165
+ <nobr>客户编号</nobr>
166
+ </th>
167
+ <th style="text-align:center">
168
+ <nobr>客户名称</nobr>
169
+ </th>
170
+ <th style="text-align:center">
171
+ <nobr>客户地址</nobr>
172
+ </th>
173
+ <th style="text-align:center">
174
+ <nobr>客户类型</nobr>
175
+ </th>
176
+ <th style="text-align:center">
177
+ <nobr>用气性质</nobr>
178
+ </th>
179
+ <th style="text-align:center">
180
+ <nobr>表号</nobr>
181
+ </th>
182
+ <th style="text-align:center">
183
+ <nobr>启用日期</nobr>
184
+ </th>
185
+ <th style="text-align:center" >
186
+ <nobr>阀门状态</nobr>
187
+ </th>
188
+ <th style="text-align:center" >
189
+ <nobr>初次上报日期</nobr>
190
+ </th>
191
+ <th style="text-align:center" >
192
+ <nobr>最后上报日期</nobr>
193
+ </th>
194
+ <th style="text-align:center">
195
+ <nobr>最后表读数</nobr>
196
+ </th>
197
+
198
+ <th style="text-align:center" >
199
+ <nobr>失联天数</nobr>
200
+ </th>
201
+ <th style="text-align:center" >
202
+ <nobr>气表厂家</nobr>
203
+ </th>
204
+ <th style="text-align:center" >
205
+ <nobr>组织机构</nobr>
206
+ </th>
207
+ </tr>
208
+
209
+ </template>
210
+ <template partial='body'>
211
+ <td style="text-align:center">{{$index+1}}</td>
212
+ <!--<td style="text-align:center">{{row.f_userfiles_id}}</td>-->
213
+
214
+
215
+ <td style="text-align: center;"><nobr>
216
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
217
+ </nobr> </td>
218
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
219
+ <td>
220
+ <nobr>{{row.f_address}}</nobr>
221
+ </td>
222
+ <td style="text-align:center">{{row.f_user_type}}</td>
223
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
224
+ <td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
225
+ <td style="text-align:center"><nobr>{{row.f_startuse_date}}</nobr></td>
226
+ <td style="text-align:center"><nobr>{{row.f_valvestate}}</nobr></td>
227
+ <td style="text-align:center">
228
+ <nobr>{{row.initinsertdate}}</nobr>
229
+ </td> <td style="text-align:center">
230
+ <nobr>{{row.lastinsertdate}}</nobr>
231
+ </td>
232
+ <td style="text-align:center">{{row.f_meter_base}}</td>
233
+
234
+ <td style="text-align:center">
235
+ <nobr>{{row.slday}}</nobr>
236
+ </td>
237
+ <td style="text-align:center">{{row.f_meter_brand}}</td>
238
+ <td style="text-align:center">
239
+ <nobr>{{row.f_orgname}}</nobr>
240
+ </td>
241
+ <!--<td style="text-align:center">{{row.new_days}}</td>-->
242
+ <!--<td style="text-align:center">{{row.f_state}}</td>-->
243
+
244
+ </template>
245
+ </data-grid>
246
+ </criteria-paged>
247
+ </div>
248
+ <div v-show="echarts" style="height: 40px;width: 100%;">
249
+ <div style="display: inline-block;">
250
+ <button class="button_search button_spacing" @click="notShowEcharts()">隐藏图表</button>
251
+ </div>
252
+ <div class="mystyle" style="display: inline-block;">
253
+ <label class="font_normal_body">图表统计项</label>
254
+ <v-select style="width:60%" id="Groupname" v-model="groupname"
255
+ placeholder='分组项'
256
+ value-single="true"
257
+ :value.sync="groupname"
258
+ :options='getgroupname'
259
+ close-on-select></v-select>
260
+ </div>
261
+ </div>
262
+ <div class="span" v-show="echarts" style="width: 100%;height: 90%;">
263
+ <lost-contact-echarts :groupname="groupname[0]" :condition="condition"
264
+ :echarts="echarts"></lost-contact-echarts>
265
+ </div>
266
+ <!-- <div v-show="isActiveTotalForm" style="height: 40px;width: 100%;">-->
267
+ <!-- <button class="button_search button_spacing" @click="notShowTotalForm()">隐藏汇总</button>-->
268
+ <!-- </div>-->
269
+ <div class="span" v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
270
+ <lost-contact-eform :condition="condition"
271
+ ></lost-contact-eform>
272
+ </div>
273
+ </div>
274
+ <div class="basic-main" v-if="showdetail">
275
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
276
+ </div>
277
+ </template>
278
+
279
+ <script>
280
+ import {PagedList} from 'vue-client'
281
+ import UserGasEcharts from './UserGasEcharts'
282
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
283
+
284
+ let readySomething = async function (self) {
285
+
286
+ await self.$MagLoadParams.loadParam()
287
+ self.initParams()
288
+ self.$refs.paged.$refs.cri.model.notappear='不包含'
289
+ self.$refs.paged.$refs.cri.model.SLday1=10
290
+ // self.$refs.paged.$refs.cri.search()
291
+ }
292
+ export default {
293
+ title: '失联分析',
294
+ props: ['data'],
295
+ components: {UserGasEcharts},
296
+
297
+ data() {
298
+ return {
299
+ model: new PagedList('rs/sql/webmeter_getUserLoseQuery', 20),
300
+ getfield:{
301
+ "f_userinfo_code":"客户编号","f_user_name":"客户名称",
302
+ "f_address":"客户地址","f_user_type":"客户类型","f_gasproperties":"用气性质",
303
+ "f_meternumber":"表号",
304
+
305
+ "f_startuse_date":"启用日期",
306
+ "f_valvestate":"阀门状态",
307
+ "initinsertdate":"初次上报日期",
308
+ "lastinsertdate":"最后上报日期",
309
+ "f_meter_base":"最后表读数",
310
+ "slday":"失联天数",
311
+ "f_meter_brand":"气表厂家","f_orgname":"组织机构"},
312
+ reportStr: null,
313
+ show: false,
314
+ showdetail:false,
315
+ rowdata:{},
316
+ criteriaShow:false,
317
+ outlets: [],
318
+ operator: [],
319
+ filename: '',
320
+ meterbrands: [],
321
+ org:[this.$login.f.orgid],
322
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
323
+ echarts: false,
324
+ searchshow: false,
325
+ isActiveTotalForm: false,
326
+ condition: '1=1',
327
+ groupname: ['max_days_type'],
328
+ getgroupname: [
329
+ {label: '客户类型', value: 'f_user_type'},
330
+ {label: '用气性质', value: 'f_gasproperties'},
331
+ {label: '分公司', value: 'f_orgid'},
332
+ {label: '最长失联天数', value: 'max_days_type'},
333
+ {label: '合计失联天数', value: 'all_days_type'}
334
+ ]
335
+
336
+ }
337
+ },
338
+ ready() {
339
+ readySomething(this)
340
+
341
+ },
342
+ methods: {
343
+ hidden(){
344
+ this.criteriaShow = !this.criteriaShow
345
+ },
346
+ showmsg(obj){
347
+ this.rowdata=obj
348
+ this.showdetail=true
349
+ },
350
+ cancel() {
351
+ this.showdetail = false
352
+ },
353
+ clickshow() {
354
+ this.searchshow = !this.searchshow
355
+ },
356
+ search(args) {
357
+ this.condition = this.$refs.paged.$refs.cri.condition + `${this.orgCondtionStr}`
358
+ args.condition = this.condition
359
+ if(this.$refs.paged.$refs.cri.model.notappear) {
360
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
361
+ args.condition = args.condition + " and initinsertdate <> '开户未上报'"
362
+ }
363
+ }
364
+ this.model.search(args.condition, args.model)
365
+ },
366
+ getorg(obj) {
367
+ if (obj.resids.length>0) {
368
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
369
+ }else
370
+ {
371
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
372
+ }
373
+ },
374
+ // SaveAsFile(str) {
375
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
376
+ // if (res === 'confirm') {
377
+ // let style = '<style>' +
378
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
379
+ // let strHtml = style + document.getElementById(str).innerHTML;
380
+ // console.log(strHtml);
381
+ // let LODOP = getLodop();
382
+ // LODOP.PRINT_INIT('');
383
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
384
+ // LODOP.SAVE_TO_FILE('失联分析.xls')
385
+ // }
386
+ // })
387
+ // },
388
+ clearmsg() {
389
+ this.$refs.paged.$refs.cri.model = {}
390
+ },
391
+ close() {
392
+ this.show = false
393
+ },
394
+ initParams () {
395
+ let arr = []
396
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
397
+ let temp = {}
398
+ if(item.value.f_meter_type==='物联网表'){
399
+ temp.label = item.label
400
+ temp.value = item.value.f_meter_brand
401
+ arr.push(temp )
402
+ }
403
+
404
+ })
405
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
406
+ },
407
+ // 显示柱状图
408
+ showEcharts() {
409
+ this.echarts = true
410
+ this.isActiveTotalForm = false
411
+ },
412
+ notShowTotalForm() {
413
+ this.echarts = false
414
+ this.isActiveTotalForm = false
415
+ },
416
+ // 不显示柱状图
417
+ notShowEcharts() {
418
+ this.echarts = false
419
+ this.isActiveTotalForm = false
420
+ },
421
+ // 显示汇总数据表格
422
+ showTotalForm() {
423
+ this.echarts = false
424
+ this.isActiveTotalForm = true
425
+ }
426
+ },
427
+ watch: {
428
+ 'data'(val) {
429
+ if (val.f_files_path) {
430
+ this.getFileContent(val.f_files_path)
431
+ } else {
432
+ this.reportStr = null
433
+ }
434
+ }
435
+ },
436
+ computed: {
437
+ // usertypes () {
438
+ // return this.$appdate.getParams("客户类型")
439
+ // },
440
+ getCondition() {
441
+ let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
442
+ if(this.$refs.paged.$refs.cri.model.notappear) {
443
+ if (this.$refs.paged.$refs.cri.model.notappear === '不包含') {
444
+ condition = condition + " and initinsertdate <> '开户未上报'"
445
+ }
446
+ }
447
+ return {
448
+
449
+ condition: condition
450
+ }
451
+ },
452
+ usertypes() {
453
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
454
+ },
455
+ ValveState() {
456
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('阀门状态')]
457
+ },
458
+ Gasproperties() {
459
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
460
+ },
461
+ f_outlets() {
462
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
463
+ },
464
+ valveStatus() {
465
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
466
+ },
467
+ not_appear(){
468
+ return [{label: '包含', value: '包含'},{label: '不包含', value: '不包含'} ]
469
+ },
470
+ getstate() {
471
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('最新状态')]
472
+ }
473
+ }
474
+ }
475
+ </script>
476
+ <style>
477
+ .form-input-group label {
478
+ text-align: right;
479
+ width: auto;
480
+ }
481
+
482
+ .mystyle {
483
+ float: right;
484
+ padding-right: 10%;
485
+ }
486
+
487
+ .mystyle1 {
488
+ padding-top: 10px;
489
+
490
+ }
491
+
492
+ .mystyle2 {
493
+ width: 100%;
494
+ height: 35px;
495
+ /*background: #00A3F0;*/
496
+ padding-left: 15px;
497
+ float: left;
498
+ }
499
+
500
+ .datapanel {
501
+ color: #333;
502
+ background-color: white;
503
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
504
+ padding: 10px 30px 10px 30px;
505
+ border-radius: 15px;
506
+ }
507
+ </style>