manage-client 3.2.60-aode → 3.2.61-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 (71) hide show
  1. package/build/dev-server.js +193 -193
  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/InspectManage.vue +34 -34
  18. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  19. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  20. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  21. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  22. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  23. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  24. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  25. package/src/components/sale/config/exportConfig.js +260 -260
  26. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  27. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  28. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  29. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  30. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  31. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  32. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  33. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  34. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  35. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  36. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  37. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  38. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  39. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  40. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  41. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  42. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  43. package/src/components/sale/report/aode/iot/ReportQuery.vue +5 -0
  44. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  45. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  46. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  47. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  48. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  49. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  50. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  51. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  52. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  53. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  54. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  55. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  56. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  57. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  58. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  59. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  60. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  61. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  62. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  63. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  65. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  67. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  68. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  69. package/src/components/webmeter/report/ReportList.vue +211 -211
  70. package/src/main.js +56 -56
  71. package/src/saleManage.js +256 -256
@@ -1,556 +1,556 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
-
12
- <div class="span" style="float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
-
17
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
- :field="$parent.$parent.getExportField"
19
- sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
20
- :choose-col="true"></export-excel>
21
-
22
- <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>
23
- </div>
24
- </div>
25
- <div class="row" v-show="$parent.$parent.criteriaShow">
26
- <div class="col-sm-2">
27
- <label class="font_normal_body">客户编号</label>
28
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
29
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
30
- </div>
31
- <div class="col-sm-2">
32
- <label class="font_normal_body">客户名称</label>
33
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
34
- condition="f_user_name like '%{}%'" placeholder="客户名称">
35
- </div>
36
- <div class="col-sm-2">
37
- <label class="font_normal_body">客户电话</label>
38
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
39
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
40
- </div>
41
- <div class="col-sm-2">
42
- <label class="font_normal_body">身份证号</label>
43
- <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
44
- condition="f_idnumber like '%{}%'" placeholder="身份证号">
45
- </div>
46
- <div class="col-sm-2">
47
- <label class="font_normal_body">客户状态</label>
48
- <v-select :value.sync="model.f_user_state"
49
- v-model="model.f_user_state"
50
- :options='$parent.$parent.userstates' placeholder='请选择'
51
- condition="f_user_state = '{}'"
52
- close-on-select></v-select>
53
- </div>
54
- <div class="col-sm-2">
55
- <label class="font_normal_body">客户类型</label>
56
- <v-select :value.sync="model.f_user_type"
57
- :options='$parent.$parent.usertypes'
58
- @change="$parent.$parent.userTypeChange()"
59
- placeholder='请选择' v-model="model.f_user_type"
60
- condition="f_user_type = '{}'"
61
- close-on-select></v-select>
62
- </div>
63
- <div class="col-sm-2">
64
- <label class="font_normal_body">用气性质</label>
65
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
66
- :options='$parent.$parent.gasproperties' placeholder='请选择'
67
- condition="f_gasproperties = '{}'"
68
- close-on-select></v-select>
69
- </div>
70
- <div class="col-sm-2">
71
- <label class="font_normal_body">人&nbsp;&nbsp;&nbsp;&nbsp;数</label>
72
- <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
73
- condition="f_people_num = '{}'" placeholder="人数">
74
- </div>
75
- <div class="col-sm-2">
76
- <label class="font_normal_body">片&nbsp;&nbsp;&nbsp;&nbsp;区</label>
77
- <v-select
78
- :value.sync="model.f_slice_area"
79
- v-model="model.f_slice_area"
80
- :options='$parent.$parent.sliceArea'
81
- placeholder='请选择'
82
- condition="f_slice_area = '{}'"
83
- close-on-select></v-select>
84
- </div>
85
- <div class="col-sm-2">
86
- <label class="font_normal_body">客户地址</label>
87
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
88
- condition="f_address like '%{}%'" placeholder='客户地址'>
89
- </div>
90
-
91
- <div class="col-sm-2">
92
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;区</label>
93
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
94
- condition="f_residential_area like '%{}%'" placeholder="小区"/>
95
- </div>
96
- <div class="col-sm-2">
97
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;栋</label>
98
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
99
- condition="f_building = '{}'" placeholder="楼栋"/>
100
- </div>
101
- <div class="col-sm-2">
102
- <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;元</label>
103
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
104
- condition="f_unit = '{}'" placeholder="单元"/>
105
- </div>
106
- <div class="col-sm-2">
107
- <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;层</label>
108
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
109
- condition="f_floor = '{}'" placeholder="楼层"/>
110
- </div>
111
- <div class="col-sm-2">
112
- <label class="font_normal_body">门&nbsp;&nbsp;牌号</label>
113
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
114
- condition="f_room = '{}'" placeholder="门牌号">
115
- </div>
116
- <!-- <div class="col-sm-2" >-->
117
- <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
118
- <!-- <div class="form-group">-->
119
- <!-- <v-input id="f_balance" placeholder="账户结余"-->
120
- <!-- :expression.sync = 'model.f_balance'-->
121
- <!-- v-model="model.f_balance"-->
122
- <!-- condition= "f_balance {}"-->
123
- <!-- :show-reset-button="reset"-->
124
- <!-- v-ref:f_balance>-->
125
- <!-- </v-input>-->
126
- <!-- </div>-->
127
- <!-- </div>-->
128
- <div class="col-sm-2">
129
- <label for="startDate" class="font_normal_body">开始日期</label>
130
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
131
- v-model="model.startDate"
132
- :value.sync="model.startDate"
133
- :format="'yyyy-MM-dd'"
134
- :show-reset-button="true"
135
- condition="f_createfile_date >= '{} 00:00:00'">
136
- </datepicker>
137
- </div>
138
- <div class="col-sm-2">
139
- <label for="endDate" class="font_normal_body">结束日期</label>
140
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
141
- v-model="model.endDate"
142
- :value.sync="model.endDate"
143
- :format="'yyyy-MM-dd'"
144
- :show-reset-button="true"
145
- condition="f_createfile_date <= '{} 23:59:59'">
146
- </datepicker>
147
- </div>
148
-
149
- </div>
150
- </div>
151
- </criteria>
152
-
153
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
154
- <template partial='head'>
155
- <tr>
156
- <th>
157
- <nobr>客户编号</nobr>
158
- </th>
159
- <th>
160
- <nobr>客户名称</nobr>
161
- </th>
162
- <th>
163
- <nobr>客户电话</nobr>
164
- </th>
165
- <th>
166
- <nobr>身份证号</nobr>
167
- </th>
168
- <th>
169
- <nobr>用户等级</nobr>
170
- </th>
171
- <th>
172
- <nobr>账户余额</nobr>
173
- </th>
174
- <th>
175
- <nobr>客户地址</nobr>
176
- </th>
177
- <th>
178
- <nobr>小区</nobr>
179
- </th>
180
- <th>
181
- <nobr>楼栋</nobr>
182
- </th>
183
- <th>
184
- <nobr>单元</nobr>
185
- </th>
186
- <th>
187
- <nobr>楼层</nobr>
188
- </th>
189
- <th>
190
- <nobr>门牌号</nobr>
191
- </th>
192
- <th>
193
- <nobr>客户状态</nobr>
194
- </th>
195
- <th>
196
- <nobr>建档日期</nobr>
197
- </th>
198
- <th>
199
- <nobr>建档人</nobr>
200
- </th>
201
- <th>
202
- <nobr>开户人</nobr>
203
- </th>
204
- <th>
205
- <nobr>备注</nobr>
206
- </th>
207
- <!-- <th>-->
208
- <!-- <nobr>部门</nobr>-->
209
- <!-- </th>-->
210
- <!-- <th>-->
211
- <!-- <nobr>公司</nobr>-->
212
- <!-- </th>-->
213
- </tr>
214
- </template>
215
- <template partial='body'>
216
- <td style="text-align: center;"><nobr>
217
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
218
- </nobr> </td>
219
- <td style="text-align: center;">
220
- <nobr>{{row.f_user_name}}</nobr>
221
- </td>
222
- <td style="text-align: center;">
223
- <nobr>{{row.f_user_phone}}</nobr>
224
- </td>
225
- <td style="text-align: center;">
226
- <nobr>{{row.f_idnumber}}</nobr>
227
- </td>
228
- <td style="text-align: center;">
229
- <nobr>{{row.f_user_level}}</nobr>
230
- </td>
231
- <td style="text-align: center;">
232
- <nobr>{{row.f_balance}}</nobr>
233
- </td>
234
- <td style="text-align: center;">
235
- <nobr>{{row.f_address}}</nobr>
236
- </td>
237
- <td style="text-align: center;">
238
- <nobr>{{row.f_residential_area}}</nobr>
239
- </td>
240
- <td style="text-align: center;">
241
- <nobr>{{row.f_building}}</nobr>
242
- </td>
243
- <td style="text-align: center;">
244
- <nobr>{{row.f_unit}}</nobr>
245
- </td>
246
- <td style="text-align: center;">
247
- <nobr>{{row.f_floor}}</nobr>
248
- </td>
249
- <td style="text-align: center;">
250
- <nobr>{{row.f_room}}</nobr>
251
- </td>
252
- <td style="text-align: center;">
253
- <nobr>{{row.f_user_state}}</nobr>
254
- </td>
255
- <td style="text-align: center;">
256
- <nobr>{{row.f_createfile_date}}</nobr>
257
- </td>
258
- <td style="text-align: center;">
259
- <nobr>{{row.f_createfile_person}}</nobr>
260
- </td>
261
- <td style="text-align: center;">
262
- <nobr>{{row.f_open_person}}</nobr>
263
- </td>
264
- <td style="text-align: center;">
265
- <nobr>{{row.f_comments}}</nobr>
266
- </td>
267
- <!-- <td style="text-align: center;">-->
268
- <!-- <nobr>{{row.f_depname}}</nobr>-->
269
- <!-- </td>-->
270
- <!-- <td style="text-align: center;">-->
271
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
272
- <!-- </td>-->
273
- </template>
274
- <template partial='foot'>
275
- </template>
276
- </data-grid>
277
- </criteria-paged>
278
-
279
- <table class="table-hover">
280
- <tr style="position: relative" class="table-bordered">
281
- <td
282
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
283
- 汇总信息
284
- </td>
285
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
286
- 结余合计:&emsp;{{sumsmodel.f_balance}}
287
- </td>
288
- </tr>
289
- </table>
290
-
291
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
292
- <!--<header slot="modal-header" class="modal-header text-center">-->
293
- <!--<h4 class="modal-title">打印列选择</h4>-->
294
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
295
- <!--<label for="f_generations" class="font-size">全选</label>-->
296
- <!--</header>-->
297
- <!--<article slot="modal-body">-->
298
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
299
- <!--<div class="col-sm-3" v-for="f in fields">-->
300
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
301
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
302
- <!--</div>-->
303
- <!--</div>-->
304
- <!--</article>-->
305
- <!--<footer slot="modal-footer" class="modal-footer">-->
306
- <!--<center>-->
307
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
308
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
309
- <!--<print-table :model='model' v-show="false" v-ref:print-->
310
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
311
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
312
- <!--:fields="modelval" :printpage="true">-->
313
- <!--</print-table>-->
314
- <!--</center>-->
315
- <!--</footer>-->
316
- <!--</modal>-->
317
- <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
318
- </div>
319
- <div v-if="show">
320
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
321
- </div>
322
- </div>
323
- </div>
324
- </div>
325
- </template>
326
-
327
- <script>
328
- import {HttpResetClass, PagedList} from 'vue-client'
329
- import defaultPrint from '../config/DefaultPrint'
330
- import exportConfig from '../config/exportConfig'
331
-
332
- let readySomething = async function (self) {
333
- // 获取区县
334
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
335
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
336
- // await self.$refs.paged.$refs.cri.search()
337
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
338
- }
339
-
340
- export default {
341
- data() {
342
- return {
343
- model: new PagedList('rs/sql/filesQuery', 20, {}, {f_balance: 0}),
344
- criteriaShow: false,
345
- orgCondtionStr: '',
346
- modelval: [],
347
- printshow: false,
348
- all: false,
349
- fields: {},
350
- thead: '',
351
- tfoot: '',
352
- //合计数据
353
- sumsmodel: {},
354
- initres: {
355
- org:[this.$login.f.orgid],
356
- dep:[],
357
- user:[],
358
- },
359
- userdetail: {
360
- show: false,
361
- f_userinfo_code: '',
362
- f_filialeids: ''
363
- },
364
- userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
365
- show:false,
366
- rowdata:{},
367
- meterInfo:{},
368
- deviceInfo:{},
369
- sliceArea: [],
370
- selectfields:[],
371
- usertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
372
- gasproperties:[]
373
- }
374
- },
375
- ready() {
376
- readySomething(this).then(() => {
377
- this.$emit('ready')
378
- }).catch((error) => {
379
- this.$emit('error', error)
380
- })
381
- this.initAreas(this.$login.f.orgid)
382
- for(var item in exportConfig.dataReportConfig){
383
- this.selectfields.push(item)
384
- }
385
- },
386
- methods: {
387
- userTypeChange () {
388
- this.gasproperties=[]
389
- if(this.$refs.paged.$refs.cri.model !==null) {
390
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
391
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
392
- }
393
- else{
394
- this.gasproperties =[{label: '全部', value: ''}]
395
- }
396
- },
397
- search(){
398
- this.$refs.paged.$refs.cri.search()
399
- },
400
- cancel(obj) {
401
- this.show = false
402
- },
403
- showmsg(obj){
404
-
405
- this.rowdata=obj
406
- this.show=true
407
- // let http = new HttpResetClass()
408
- // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
409
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
410
- // this.meterInfo = res.data})
411
- // let http2 = new HttpResetClass()
412
- // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
413
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
414
- // this.deviceInfo = res.data})
415
-
416
- // this.f_userinfo_id=obj.f_userinfo_id
417
- },
418
- async initAreas (val) {
419
-
420
- if (val) {
421
- let getAllArea = await this.$resetpost('/rs/search', {
422
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
423
- userid: this.$login.f.id
424
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
425
-
426
- let arr = getAllArea.data.filter((res) => {
427
- return res.parentid == val
428
- })
429
- console.log('过滤之后的片区', arr)
430
- this.sliceArea = []
431
- this.sliceArea.push({label: "全部", value: ""})
432
- arr.forEach((res) => {
433
- this.sliceArea.push({label: res.name, value: res.name})
434
- })
435
- console.log(this.sliceArea)
436
- }
437
- },
438
- selfSearch(args) {
439
- if (!this.orgCondtionStr) {
440
- args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
441
- } else {
442
- args.condition = `${args.condition}` + this.orgCondtionStr
443
- }
444
- this.model.search(args.condition, args.model)
445
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
446
- console.log('合计字段', this.sumsmodel)
447
- },
448
- clear() {
449
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
450
- this.$refs.paged.$refs.cri.model[key] = ''
451
- })
452
- },
453
- hidden() {
454
- this.criteriaShow = !this.criteriaShow
455
- },
456
- getRes(obj) {
457
- this.orgCondtionStr = obj
458
- },
459
- stamp() {
460
- this.all = false
461
- //默认选择要打印的列
462
- this.modelval = defaultPrint.config
463
- this.fields = this.getfield
464
- console.log('所有打印字段', this.fields)
465
- this.printshow = true
466
- this.put()
467
- },
468
- put() {
469
- // 对Modelval进行排序
470
- this.sortModelval()
471
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
472
- for (let key of this.modelval) {
473
- this.thead += '<th>' + this.fields[key] + '</th>'
474
- }
475
- this.thead += '</tr>'
476
- },
477
- print() {
478
- this.$refs.print.PrintAsFile()
479
- this.printshow = false
480
- },
481
- close() {
482
- this.printshow = false
483
- },
484
- // 对选择的列进行排序
485
- sortModelval() {
486
- let sortModel = []
487
- Object.keys(this.fields).forEach((key) => {
488
- if (this.modelval.includes(key)) {
489
- sortModel.push(key)
490
- }
491
- })
492
- this.modelval = sortModel
493
- console.log('选择的打印的字段', this.modelval)
494
- },
495
- dblclick(row, index) {
496
- console.log('双击之后数据', row, index)
497
- this.userdetail.show = true
498
- this.userdetail.f_userinfo_code = row.f_userinfo_code
499
- this.userdetail.f_filialeids = row.f_filialeids
500
- }
501
- },
502
- watch: {
503
- 'all'(val) {
504
- if (val) {
505
- this.modelval = this.bodyData
506
- } else {
507
- this.modelval = defaultPrint.config
508
- this.put()
509
- }
510
- },
511
- 'modelval.length'() {
512
- this.put()
513
- },
514
- },
515
- computed: {
516
- getCondition() {
517
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
518
- },
519
- getfield() {
520
- let data = {}
521
- this.bodyData.forEach((value, index) => {
522
- data[this.bodyData[index]] = this.headData[index]
523
- })
524
- //合计字段打印
525
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
526
- if (this.sumsmodel) {
527
- Object.keys(this.sumsmodel).forEach((key) => {
528
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
529
- })
530
- } else {
531
- this.tfoot += '暂无'
532
- }
533
- this.tfoot += '</th></tr>'
534
- return data
535
- },
536
- getExportField() {
537
- return exportConfig.userConfig
538
- },
539
- userstates() {
540
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
541
- }
542
- // sliceArea() {
543
- // let rs = new Array()
544
- // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
545
- // let temp = {
546
- // label: this.$login.f.f_allArea[i].label,
547
- // value: this.$login.f.f_allArea[i].label
548
- // }
549
- // rs.push(temp)
550
- // }
551
- // return [{label: '全部', value: ''}, ...rs]
552
- // }
553
- }
554
- }
555
- </script>
556
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
+
12
+ <div class="span" style="float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
+
17
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
+ :field="$parent.$parent.getExportField"
19
+ sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出'
20
+ :choose-col="true"></export-excel>
21
+
22
+ <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>
23
+ </div>
24
+ </div>
25
+ <div class="row" v-show="$parent.$parent.criteriaShow">
26
+ <div class="col-sm-2">
27
+ <label class="font_normal_body">客户编号</label>
28
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
29
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
30
+ </div>
31
+ <div class="col-sm-2">
32
+ <label class="font_normal_body">客户名称</label>
33
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
34
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
35
+ </div>
36
+ <div class="col-sm-2">
37
+ <label class="font_normal_body">客户电话</label>
38
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
39
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
40
+ </div>
41
+ <div class="col-sm-2">
42
+ <label class="font_normal_body">身份证号</label>
43
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_idnumber"
44
+ condition="f_idnumber like '%{}%'" placeholder="身份证号">
45
+ </div>
46
+ <div class="col-sm-2">
47
+ <label class="font_normal_body">客户状态</label>
48
+ <v-select :value.sync="model.f_user_state"
49
+ v-model="model.f_user_state"
50
+ :options='$parent.$parent.userstates' placeholder='请选择'
51
+ condition="f_user_state = '{}'"
52
+ close-on-select></v-select>
53
+ </div>
54
+ <div class="col-sm-2">
55
+ <label class="font_normal_body">客户类型</label>
56
+ <v-select :value.sync="model.f_user_type"
57
+ :options='$parent.$parent.usertypes'
58
+ @change="$parent.$parent.userTypeChange()"
59
+ placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2">
64
+ <label class="font_normal_body">用气性质</label>
65
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
66
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
67
+ condition="f_gasproperties = '{}'"
68
+ close-on-select></v-select>
69
+ </div>
70
+ <div class="col-sm-2">
71
+ <label class="font_normal_body">人&nbsp;&nbsp;&nbsp;&nbsp;数</label>
72
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_people_num"
73
+ condition="f_people_num = '{}'" placeholder="人数">
74
+ </div>
75
+ <div class="col-sm-2">
76
+ <label class="font_normal_body">片&nbsp;&nbsp;&nbsp;&nbsp;区</label>
77
+ <v-select
78
+ :value.sync="model.f_slice_area"
79
+ v-model="model.f_slice_area"
80
+ :options='$parent.$parent.sliceArea'
81
+ placeholder='请选择'
82
+ condition="f_slice_area = '{}'"
83
+ close-on-select></v-select>
84
+ </div>
85
+ <div class="col-sm-2">
86
+ <label class="font_normal_body">客户地址</label>
87
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
88
+ condition="f_address like '%{}%'" placeholder='客户地址'>
89
+ </div>
90
+
91
+ <div class="col-sm-2">
92
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;区</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
94
+ condition="f_residential_area like '%{}%'" placeholder="小区"/>
95
+ </div>
96
+ <div class="col-sm-2">
97
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;栋</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
99
+ condition="f_building = '{}'" placeholder="楼栋"/>
100
+ </div>
101
+ <div class="col-sm-2">
102
+ <label class="font_normal_body">单&nbsp;&nbsp;&nbsp;&nbsp;元</label>
103
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
104
+ condition="f_unit = '{}'" placeholder="单元"/>
105
+ </div>
106
+ <div class="col-sm-2">
107
+ <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;层</label>
108
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
109
+ condition="f_floor = '{}'" placeholder="楼层"/>
110
+ </div>
111
+ <div class="col-sm-2">
112
+ <label class="font_normal_body">门&nbsp;&nbsp;牌号</label>
113
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
114
+ condition="f_room = '{}'" placeholder="门牌号">
115
+ </div>
116
+ <!-- <div class="col-sm-2" >-->
117
+ <!-- <label for="f_balance" class="font_normal_body">账户结余</label>-->
118
+ <!-- <div class="form-group">-->
119
+ <!-- <v-input id="f_balance" placeholder="账户结余"-->
120
+ <!-- :expression.sync = 'model.f_balance'-->
121
+ <!-- v-model="model.f_balance"-->
122
+ <!-- condition= "f_balance {}"-->
123
+ <!-- :show-reset-button="reset"-->
124
+ <!-- v-ref:f_balance>-->
125
+ <!-- </v-input>-->
126
+ <!-- </div>-->
127
+ <!-- </div>-->
128
+ <div class="col-sm-2">
129
+ <label for="startDate" class="font_normal_body">开始日期</label>
130
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
131
+ v-model="model.startDate"
132
+ :value.sync="model.startDate"
133
+ :format="'yyyy-MM-dd'"
134
+ :show-reset-button="true"
135
+ condition="f_createfile_date >= '{} 00:00:00'">
136
+ </datepicker>
137
+ </div>
138
+ <div class="col-sm-2">
139
+ <label for="endDate" class="font_normal_body">结束日期</label>
140
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
141
+ v-model="model.endDate"
142
+ :value.sync="model.endDate"
143
+ :format="'yyyy-MM-dd'"
144
+ :show-reset-button="true"
145
+ condition="f_createfile_date <= '{} 23:59:59'">
146
+ </datepicker>
147
+ </div>
148
+
149
+ </div>
150
+ </div>
151
+ </criteria>
152
+
153
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
154
+ <template partial='head'>
155
+ <tr>
156
+ <th>
157
+ <nobr>客户编号</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>客户名称</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>客户电话</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>身份证号</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>用户等级</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>账户余额</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>客户地址</nobr>
176
+ </th>
177
+ <th>
178
+ <nobr>小区</nobr>
179
+ </th>
180
+ <th>
181
+ <nobr>楼栋</nobr>
182
+ </th>
183
+ <th>
184
+ <nobr>单元</nobr>
185
+ </th>
186
+ <th>
187
+ <nobr>楼层</nobr>
188
+ </th>
189
+ <th>
190
+ <nobr>门牌号</nobr>
191
+ </th>
192
+ <th>
193
+ <nobr>客户状态</nobr>
194
+ </th>
195
+ <th>
196
+ <nobr>建档日期</nobr>
197
+ </th>
198
+ <th>
199
+ <nobr>建档人</nobr>
200
+ </th>
201
+ <th>
202
+ <nobr>开户人</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>备注</nobr>
206
+ </th>
207
+ <!-- <th>-->
208
+ <!-- <nobr>部门</nobr>-->
209
+ <!-- </th>-->
210
+ <!-- <th>-->
211
+ <!-- <nobr>公司</nobr>-->
212
+ <!-- </th>-->
213
+ </tr>
214
+ </template>
215
+ <template partial='body'>
216
+ <td style="text-align: center;"><nobr>
217
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
218
+ </nobr> </td>
219
+ <td style="text-align: center;">
220
+ <nobr>{{row.f_user_name}}</nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{row.f_user_phone}}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{row.f_idnumber}}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{row.f_user_level}}</nobr>
230
+ </td>
231
+ <td style="text-align: center;">
232
+ <nobr>{{row.f_balance}}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{row.f_address}}</nobr>
236
+ </td>
237
+ <td style="text-align: center;">
238
+ <nobr>{{row.f_residential_area}}</nobr>
239
+ </td>
240
+ <td style="text-align: center;">
241
+ <nobr>{{row.f_building}}</nobr>
242
+ </td>
243
+ <td style="text-align: center;">
244
+ <nobr>{{row.f_unit}}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{row.f_floor}}</nobr>
248
+ </td>
249
+ <td style="text-align: center;">
250
+ <nobr>{{row.f_room}}</nobr>
251
+ </td>
252
+ <td style="text-align: center;">
253
+ <nobr>{{row.f_user_state}}</nobr>
254
+ </td>
255
+ <td style="text-align: center;">
256
+ <nobr>{{row.f_createfile_date}}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{row.f_createfile_person}}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{row.f_open_person}}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{row.f_comments}}</nobr>
266
+ </td>
267
+ <!-- <td style="text-align: center;">-->
268
+ <!-- <nobr>{{row.f_depname}}</nobr>-->
269
+ <!-- </td>-->
270
+ <!-- <td style="text-align: center;">-->
271
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
272
+ <!-- </td>-->
273
+ </template>
274
+ <template partial='foot'>
275
+ </template>
276
+ </data-grid>
277
+ </criteria-paged>
278
+
279
+ <table class="table-hover">
280
+ <tr style="position: relative" class="table-bordered">
281
+ <td
282
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
283
+ 汇总信息
284
+ </td>
285
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
286
+ 结余合计:&emsp;{{sumsmodel.f_balance}}
287
+ </td>
288
+ </tr>
289
+ </table>
290
+
291
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
292
+ <!--<header slot="modal-header" class="modal-header text-center">-->
293
+ <!--<h4 class="modal-title">打印列选择</h4>-->
294
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
295
+ <!--<label for="f_generations" class="font-size">全选</label>-->
296
+ <!--</header>-->
297
+ <!--<article slot="modal-body">-->
298
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
299
+ <!--<div class="col-sm-3" v-for="f in fields">-->
300
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
301
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
302
+ <!--</div>-->
303
+ <!--</div>-->
304
+ <!--</article>-->
305
+ <!--<footer slot="modal-footer" class="modal-footer">-->
306
+ <!--<center>-->
307
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
308
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
309
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
310
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
311
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
312
+ <!--:fields="modelval" :printpage="true">-->
313
+ <!--</print-table>-->
314
+ <!--</center>-->
315
+ <!--</footer>-->
316
+ <!--</modal>-->
317
+ <!--<user-detail v-if="userdetail.show" :data="userdetail"></user-detail>-->
318
+ </div>
319
+ <div v-if="show">
320
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ </template>
326
+
327
+ <script>
328
+ import {HttpResetClass, PagedList} from 'vue-client'
329
+ import defaultPrint from '../config/DefaultPrint'
330
+ import exportConfig from '../config/exportConfig'
331
+
332
+ let readySomething = async function (self) {
333
+ // 获取区县
334
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
335
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
336
+ // await self.$refs.paged.$refs.cri.search()
337
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
338
+ }
339
+
340
+ export default {
341
+ data() {
342
+ return {
343
+ model: new PagedList('rs/sql/filesQuery', 20, {}, {f_balance: 0}),
344
+ criteriaShow: false,
345
+ orgCondtionStr: '',
346
+ modelval: [],
347
+ printshow: false,
348
+ all: false,
349
+ fields: {},
350
+ thead: '',
351
+ tfoot: '',
352
+ //合计数据
353
+ sumsmodel: {},
354
+ initres: {
355
+ org:[this.$login.f.orgid],
356
+ dep:[],
357
+ user:[],
358
+ },
359
+ userdetail: {
360
+ show: false,
361
+ f_userinfo_code: '',
362
+ f_filialeids: ''
363
+ },
364
+ userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
365
+ show:false,
366
+ rowdata:{},
367
+ meterInfo:{},
368
+ deviceInfo:{},
369
+ sliceArea: [],
370
+ selectfields:[],
371
+ usertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
372
+ gasproperties:[]
373
+ }
374
+ },
375
+ ready() {
376
+ readySomething(this).then(() => {
377
+ this.$emit('ready')
378
+ }).catch((error) => {
379
+ this.$emit('error', error)
380
+ })
381
+ this.initAreas(this.$login.f.orgid)
382
+ for(var item in exportConfig.dataReportConfig){
383
+ this.selectfields.push(item)
384
+ }
385
+ },
386
+ methods: {
387
+ userTypeChange () {
388
+ this.gasproperties=[]
389
+ if(this.$refs.paged.$refs.cri.model !==null) {
390
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
391
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
392
+ }
393
+ else{
394
+ this.gasproperties =[{label: '全部', value: ''}]
395
+ }
396
+ },
397
+ search(){
398
+ this.$refs.paged.$refs.cri.search()
399
+ },
400
+ cancel(obj) {
401
+ this.show = false
402
+ },
403
+ showmsg(obj){
404
+
405
+ this.rowdata=obj
406
+ this.show=true
407
+ // let http = new HttpResetClass()
408
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
409
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
410
+ // this.meterInfo = res.data})
411
+ // let http2 = new HttpResetClass()
412
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
413
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
414
+ // this.deviceInfo = res.data})
415
+
416
+ // this.f_userinfo_id=obj.f_userinfo_id
417
+ },
418
+ async initAreas (val) {
419
+
420
+ if (val) {
421
+ let getAllArea = await this.$resetpost('/rs/search', {
422
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
423
+ userid: this.$login.f.id
424
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
425
+
426
+ let arr = getAllArea.data.filter((res) => {
427
+ return res.parentid == val
428
+ })
429
+ console.log('过滤之后的片区', arr)
430
+ this.sliceArea = []
431
+ this.sliceArea.push({label: "全部", value: ""})
432
+ arr.forEach((res) => {
433
+ this.sliceArea.push({label: res.name, value: res.name})
434
+ })
435
+ console.log(this.sliceArea)
436
+ }
437
+ },
438
+ selfSearch(args) {
439
+ if (!this.orgCondtionStr) {
440
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
441
+ } else {
442
+ args.condition = `${args.condition}` + this.orgCondtionStr
443
+ }
444
+ this.model.search(args.condition, args.model)
445
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
446
+ console.log('合计字段', this.sumsmodel)
447
+ },
448
+ clear() {
449
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
450
+ this.$refs.paged.$refs.cri.model[key] = ''
451
+ })
452
+ },
453
+ hidden() {
454
+ this.criteriaShow = !this.criteriaShow
455
+ },
456
+ getRes(obj) {
457
+ this.orgCondtionStr = obj
458
+ },
459
+ stamp() {
460
+ this.all = false
461
+ //默认选择要打印的列
462
+ this.modelval = defaultPrint.config
463
+ this.fields = this.getfield
464
+ console.log('所有打印字段', this.fields)
465
+ this.printshow = true
466
+ this.put()
467
+ },
468
+ put() {
469
+ // 对Modelval进行排序
470
+ this.sortModelval()
471
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
472
+ for (let key of this.modelval) {
473
+ this.thead += '<th>' + this.fields[key] + '</th>'
474
+ }
475
+ this.thead += '</tr>'
476
+ },
477
+ print() {
478
+ this.$refs.print.PrintAsFile()
479
+ this.printshow = false
480
+ },
481
+ close() {
482
+ this.printshow = false
483
+ },
484
+ // 对选择的列进行排序
485
+ sortModelval() {
486
+ let sortModel = []
487
+ Object.keys(this.fields).forEach((key) => {
488
+ if (this.modelval.includes(key)) {
489
+ sortModel.push(key)
490
+ }
491
+ })
492
+ this.modelval = sortModel
493
+ console.log('选择的打印的字段', this.modelval)
494
+ },
495
+ dblclick(row, index) {
496
+ console.log('双击之后数据', row, index)
497
+ this.userdetail.show = true
498
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
499
+ this.userdetail.f_filialeids = row.f_filialeids
500
+ }
501
+ },
502
+ watch: {
503
+ 'all'(val) {
504
+ if (val) {
505
+ this.modelval = this.bodyData
506
+ } else {
507
+ this.modelval = defaultPrint.config
508
+ this.put()
509
+ }
510
+ },
511
+ 'modelval.length'() {
512
+ this.put()
513
+ },
514
+ },
515
+ computed: {
516
+ getCondition() {
517
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
518
+ },
519
+ getfield() {
520
+ let data = {}
521
+ this.bodyData.forEach((value, index) => {
522
+ data[this.bodyData[index]] = this.headData[index]
523
+ })
524
+ //合计字段打印
525
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
526
+ if (this.sumsmodel) {
527
+ Object.keys(this.sumsmodel).forEach((key) => {
528
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
529
+ })
530
+ } else {
531
+ this.tfoot += '暂无'
532
+ }
533
+ this.tfoot += '</th></tr>'
534
+ return data
535
+ },
536
+ getExportField() {
537
+ return exportConfig.userConfig
538
+ },
539
+ userstates() {
540
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
541
+ }
542
+ // sliceArea() {
543
+ // let rs = new Array()
544
+ // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
545
+ // let temp = {
546
+ // label: this.$login.f.f_allArea[i].label,
547
+ // value: this.$login.f.f_allArea[i].label
548
+ // }
549
+ // rs.push(temp)
550
+ // }
551
+ // return [{label: '全部', value: ''}, ...rs]
552
+ // }
553
+ }
554
+ }
555
+ </script>
556
+