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