manage-client 3.2.232 → 3.2.234

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.
@@ -0,0 +1,691 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" >
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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 :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+ <div class="col-sm-2 form-group">
13
+ <label class="font_normal_body">客户编号</label>
14
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
15
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
16
+ </div>
17
+ <div class="col-sm-2 form-group">
18
+ <label class="font_normal_body">客户名称</label>
19
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
20
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
21
+ </div>
22
+ <div class="col-sm-2 form-group">
23
+ <label class="font_normal_body">客户类型</label>
24
+ <v-select :value.sync="model.f_user_type"
25
+ @change="$parent.$parent.userTypeChange()"
26
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
27
+ condition="f_user_type in {}"
28
+ close-on-select></v-select>
29
+ </div>
30
+
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">用气性质</label>
33
+ <v-select :value.sync="model.f_gasproperties"
34
+ :options='$parent.$parent.gasproperties' placeholder='请选择' v-model="model.f_gasproperties"
35
+ condition="f_calculation in {}"
36
+ close-on-select></v-select>
37
+ </div>
38
+
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
43
+
44
+ <export-excel :data="$parent.$parent.getCondition"
45
+ :field="$parent.$parent.getExportField"
46
+ :footer="$parent.$parent.footer"
47
+ :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="qnJgqZhdacx" template-name='综合档案查询导出'
49
+ :choose-col="true"></export-excel>
50
+
51
+ <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>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2 form-group">
56
+ <label for="startDate" class="font_normal_body">通气日期起</label>
57
+ <datepicker id="startDate" placeholder="通气日期起" style="width:60%"
58
+ v-model="model.startDate"
59
+ :value.sync="model.startDate"
60
+ :format="'yyyy-MM-dd'"
61
+ :show-reset-button="true"
62
+ condition="f_gas_date >= '{} 00:00:00'">
63
+ </datepicker>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label for="endDate" class="font_normal_body">通气日期止</label>
67
+ <datepicker id="endDate" placeholder="通气日期止" style="width:60%"
68
+ v-model="model.endDate"
69
+ :value.sync="model.endDate"
70
+ :format="'yyyy-MM-dd'"
71
+ :show-reset-button="true"
72
+ condition="f_gas_date <= '{} 23:59:59'">
73
+ </datepicker>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">气表类型</label>
77
+ <v-select :value.sync="model.f_meter_type"
78
+ :options='$parent.$parent.metertypes()' placeholder='请选择' v-model="model.f_meter_type"
79
+ condition="f_meter_type = '{}'"
80
+ close-on-select></v-select>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">气表品牌</label>
84
+ <v-select :value.sync="model.f_meter_brand"
85
+ v-model="model.f_meter_brand" multiple
86
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
87
+ condition="f_meter_brand in {}"
88
+ ></v-select>
89
+ </div>
90
+ <div class="row">
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">表号</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
94
+ condition="f_meternumber = {} " placeholder="表号">
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </criteria>
100
+
101
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
102
+ <template partial='head'>
103
+ <tr>
104
+ <th>
105
+ <nobr>客户编号</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>客户名称</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>客户状态</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>客户地址</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>客户电话</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>通气日期</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>气价名称</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>气表类型</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>气表品牌</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>气表型号</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>表号</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>气表底数</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>客户类型</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>用气性质</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>证件类型</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>证件号码</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>表状态</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>抄表册编号</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>抄表册顺序</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>备注信息</nobr>
163
+ </th>
164
+ </tr>
165
+ </template>
166
+ <template partial='body'>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_userinfo_code}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_user_name}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <nobr>{{row.f_user_state}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <nobr>{{row.f_address}}</nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr>{{row.f_user_phone}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.f_gas_date}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_price_name}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.f_meter_type}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.f_meter_brand}}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{row.f_meter_style}}</nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_meternumber}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_meter_base}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_user_type}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_gasproperties}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_credentials}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_idnumber}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_table_state}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_meter_book_num}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_meter_book_sort}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_comments}}</nobr>
226
+ </td>
227
+ </template>
228
+ <template partial='foot'>
229
+ </template>
230
+ </data-grid>
231
+ </criteria-paged>
232
+ <table class="table-hover">
233
+ <tr style="position: relative" class="table-bordered">
234
+ <td
235
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
236
+ 汇总信息
237
+ </td>
238
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
239
+ &nbsp;
240
+ </td>
241
+ </tr>
242
+ </table>
243
+ </div>
244
+
245
+ </div>
246
+ </div>
247
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
248
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
249
+ </div>
250
+ </div>
251
+ </template>
252
+
253
+ <script>
254
+ import {HttpResetClass, PagedList} from 'vue-client'
255
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
256
+ import exportConfig from './exportConfig'
257
+
258
+ let readySomething = async function (self) {
259
+ self.$MagGetSaleParam.initinputtor();
260
+ self.getinputtores();
261
+ // 获取区县
262
+ //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
263
+ //self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
264
+ // await self.$refs.paged.$refs.cri.search()
265
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
266
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
267
+
268
+ // 初始化气表品牌
269
+ let brandArr = []
270
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
271
+ let temp = {}
272
+ temp.label = item.label
273
+ temp.value = item.value.f_meter_brand
274
+ brandArr.push(temp)
275
+ })
276
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
277
+ }
278
+
279
+ export default {
280
+ title: '综合档案查询',
281
+ data() {
282
+ return {
283
+ other:[],
284
+ footer:[],
285
+ model: new PagedList('rs/sql/qnJgqZhdacx', 20, {}, {thecount:0}),
286
+ criteriaShow: false,
287
+ orgCondtionStr: '',
288
+ modelval: [],
289
+ printshow: false,
290
+ all: false,
291
+ fields: {},
292
+ //排序
293
+ orderitem:'',
294
+ orderFields: {
295
+
296
+ },
297
+ gasproperties:[],
298
+ meterbrands: [],
299
+ //默认打印列
300
+ defaultfield: [],
301
+ config: {
302
+ defaultPrint: []
303
+ },
304
+ balance2:'',
305
+ thead: '',
306
+ tfoot: '',
307
+ area: [],
308
+ //合计数据
309
+ sumsmodel: {},
310
+ initres: {
311
+ org:[this.$login.f.orgid],
312
+ dep:[],
313
+ user:[],
314
+ },
315
+ userdetail: {
316
+ show: false,
317
+ f_userinfo_code: '',
318
+ f_filialeids: ''
319
+ },
320
+
321
+ show:false,
322
+ rowdata:{},
323
+ meterInfo:{},
324
+ deviceInfo:{},
325
+ condition2:'',
326
+
327
+
328
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
329
+ //小区
330
+ residentialArea: [],
331
+ //表册片区
332
+ bookSlice:[{label: '全部',value: ''}],
333
+ inputtores:[{label: '全部',value: ''}], //抄表员
334
+ allorgid:[],
335
+ f_filialeid: this.$login.f.f_orgid,
336
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
337
+ }
338
+ },
339
+ ready() {
340
+ this.getaddress()
341
+ // this.$refs.paged.$refs.cri.model.f_user_state=['正常']
342
+ readySomething(this).then(() => {
343
+ this.$emit('ready')
344
+ }).catch((error) => {
345
+ this.$emit('error', error)
346
+ })
347
+ this.initAreas(this.$login.f.orgid)
348
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
349
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
350
+
351
+ },
352
+ methods: {
353
+ async getinputtores () {
354
+ // 获取抄表员
355
+ let rs = []
356
+ if (this.$login.f.f_gasman.length > 0) {
357
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
358
+ let temp = {
359
+ label: this.$login.f.f_gasman[i].name,
360
+ value: this.$login.f.f_gasman[i].name
361
+ }
362
+ rs.push(temp)
363
+ }
364
+ }
365
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
366
+ },
367
+ async updateParams() {
368
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
369
+ this.inputtores = [];
370
+ this.inputtores.push({label: "全部", value: ""})
371
+ this.initSlice(this.f_filialeid)
372
+ if(this.allorgid!=null){
373
+ this.allorgid.forEach((res)=>{
374
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
375
+ })
376
+ }
377
+ },
378
+ getotherfooter () {
379
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
380
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
381
+ this.other = [];
382
+ this.footer = [];
383
+ let exportdata = this.getCondition;
384
+ let otherInData = [];
385
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
386
+ let footerData = [], exportfield = this.getExportField;
387
+ footerData.push("合计");
388
+ let self = this;
389
+ for (var field in self.sumsmodel) {
390
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
391
+ }
392
+ this.footer.push(footerData);
393
+ this.other.push(otherInData);
394
+ },
395
+ async getaddress(){
396
+ console.log('开始获取小区')
397
+ let HttpReset = new HttpResetClass()
398
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
399
+ data: {
400
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
401
+ }
402
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
403
+ console.log('小区',data)
404
+ let house = []
405
+ for (let row of data.data){
406
+ console.log('开始保存小区')
407
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
408
+ }
409
+ this.residentialArea = house
410
+ },
411
+
412
+ //把数据库查询数据转换为下拉数据
413
+ calculate(rows){
414
+ let data = []
415
+ rows.forEach((row, n) => {
416
+ data[n] = {label: row.f_residential_area, value: row.id}
417
+ })
418
+ return data
419
+ },
420
+ search(){
421
+ console.log("=====search====")
422
+ //this.$refs.paged.$refs.cri.search()
423
+ this.$refs.paged.$refs.cri.search()
424
+ },
425
+ cancel(obj) {
426
+ console.log("=====cancel====" + obj)
427
+ this.show = false
428
+ },
429
+ showmsg(obj){
430
+ this.rowdata=obj
431
+ this.show=true
432
+ // let http = new HttpResetClass()
433
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
434
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
435
+ // this.meterInfo = res.data})
436
+ // let http2 = new HttpResetClass()
437
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
438
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
439
+ // this.deviceInfo = res.data})
440
+
441
+ // this.f_userinfo_id=obj.f_userinfo_id
442
+ },
443
+ userTypeChange () {
444
+ this.gasproperties=[]
445
+ if(this.$refs.paged.$refs.cri.model !==null) {
446
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
447
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
448
+ }
449
+ else{
450
+ this.gasproperties =[{label: '全部', value: ''}]
451
+ }
452
+ },
453
+ //初始化片区
454
+ async initSlice (val) {
455
+ if (val) {
456
+ let getAllArea = await this.$resetpost('/rs/search', {
457
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
458
+ userid: this.$login.f.id
459
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
460
+ let arr = getAllArea.data.filter((res) => {
461
+ return res.parentid == val
462
+ })
463
+ this.bookSlice = []
464
+ console.log('过滤之后的片区-------------------', arr)
465
+ arr.forEach((res) => {
466
+ this.bookSlice.push({label: res.name, value: res.name})
467
+ })
468
+ }
469
+ },
470
+ async initAreas (val) {
471
+
472
+ if (val) {
473
+ let getAllArea = await this.$resetpost('/rs/search', {
474
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
475
+ userid: this.$login.f.id
476
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
477
+
478
+ let arr = getAllArea.data.filter((res) => {
479
+ return res.parentid == val
480
+ })
481
+ console.log('过滤之后的片区', arr)
482
+ this.sliceArea = []
483
+ arr.forEach((res) => {
484
+ this.sliceArea.push({label: res.name, value: res.name})
485
+ })
486
+ }
487
+ },
488
+ selfSearch(args) {
489
+ console.log('args', args)
490
+ console.log('this.orgCondtionStr', this.orgCondtionStr)
491
+ if (!this.orgCondtionStr) {
492
+ args.condition = `${args.condition}` + " and tr.f_orgid = " + this.$login.f.orgid
493
+ } else {
494
+ args.condition = `${args.condition}` + this.orgCondtionStr
495
+ }
496
+ this.condition2 = args.condition
497
+ this.model.search(args.condition, args.model)
498
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
499
+ console.log('合计字段', this.sumsmodel)
500
+ },
501
+ clear() {
502
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
503
+ this.$refs.paged.$refs.cri.model[key] = []
504
+ })
505
+ },
506
+ hidden() {
507
+ this.criteriaShow = !this.criteriaShow
508
+ },
509
+ getRes(obj) {
510
+ this.orgCondtionStr = obj
511
+ },
512
+ stamp() {
513
+ this.all = false
514
+ //默认选择要打印的列
515
+ this.modelval = defaultPrint.config
516
+ this.fields = this.getfield
517
+ console.log('所有打印字段', this.fields)
518
+ this.printshow = true
519
+ this.put()
520
+ },
521
+ put() {
522
+ // 对Modelval进行排序
523
+ this.sortModelval()
524
+ this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
525
+ for (let key of this.modelval) {
526
+ this.thead += '<th>' + this.fields[key] + '</th>'
527
+ }
528
+ this.thead += '</tr>'
529
+ },
530
+ print() {
531
+ this.$refs.print.PrintAsFile()
532
+ this.printshow = false
533
+ },
534
+ close() {
535
+ this.printshow = false
536
+ },
537
+ // 对选择的列进行排序
538
+ sortModelval() {
539
+ let sortModel = []
540
+ Object.keys(this.fields).forEach((key) => {
541
+ if (this.modelval.includes(key)) {
542
+ sortModel.push(key)
543
+ }
544
+ })
545
+ this.modelval = sortModel
546
+ console.log('选择的打印的字段', this.modelval)
547
+ },
548
+ dblclick(row, index) {
549
+ console.log('双击之后数据', row, index)
550
+ this.userdetail.show = true
551
+ this.userdetail.f_userinfo_code = row.f_userinfo_code
552
+ this.userdetail.f_filialeids = row.f_filialeids
553
+ },
554
+ sort (field, rule) {
555
+ // 将所有排序方式设为不排序,实现相互排斥
556
+ for (let key in this.orderFields) {
557
+ if (key === field) {
558
+ this.orderFields[key] = rule
559
+ } else {
560
+ this.orderFields[key] = 'no'
561
+ }
562
+ }
563
+ // 如果新规则不排序,还原为默认排序
564
+ if (rule === 'no') {
565
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
566
+ } else {
567
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
568
+ }
569
+
570
+ this.search()
571
+ }
572
+ },
573
+
574
+ watch: {
575
+ 'all'(val) {
576
+ if (val) {
577
+ this.modelval = this.bodyData
578
+ } else {
579
+ this.modelval = defaultPrint.config
580
+ this.put()
581
+ }
582
+ },
583
+ 'modelval.length'() {
584
+ this.put()
585
+ },
586
+ sumsmodel:{
587
+ handler: function(val) {
588
+ this.getotherfooter();
589
+ },
590
+ deep: true
591
+ },
592
+ 'orgCondtionStr'(val) {
593
+ let res = val.match(/'(.*?)'/)
594
+ console.log('正则提取:',res && res[1])
595
+ if (res) {
596
+ this.f_filialeid = res[1]
597
+ if(res.input !=null){
598
+ let resorgid = res.input.substring(res.input.indexOf("'"));
599
+ if(resorgid!= null && resorgid!=''){
600
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
601
+ // resorgid = resorgid.replaceAll("'","");
602
+ resorgid = resorgid.replace(/'/g,"");
603
+ this.allorgid = resorgid.split(",")
604
+ }
605
+ }
606
+ this.updateParams()
607
+ }
608
+ },
609
+ },
610
+ computed: {
611
+ // defaultexport() {
612
+ // return exportConfig.chargeexportConfig
613
+ // },
614
+ authArr () {
615
+ return this.$login.r ? this.$login.r : []
616
+ },
617
+
618
+ getCondition() {
619
+ return {condition: this.condition2,orderitem:this.orderitem}
620
+ },
621
+ getfield() {
622
+ let data = {}
623
+ this.bodyData.forEach((value, index) => {
624
+ data[this.bodyData[index]] = this.headData[index]
625
+ })
626
+ //合计字段打印
627
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
628
+ if (this.sumsmodel) {
629
+ Object.keys(this.sumsmodel).forEach((key) => {
630
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
631
+ })
632
+ } else {
633
+ this.tfoot += '暂无'
634
+ }
635
+ this.tfoot += '</th></tr>'
636
+ return data
637
+ },
638
+ getExportField() {
639
+ return exportConfig.qnChaobiaoyhhz
640
+ },
641
+ inputtor () {
642
+ // 获取抄表员
643
+ console.log('获取抄表员', this.$login.f)
644
+ let rs = []
645
+ if (this.$login.f.f_gasman.length > 0) {
646
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
647
+ let temp = {
648
+ label: this.$login.f.f_gasman[i].name,
649
+ value: this.$login.f.f_gasman[i].name
650
+ }
651
+ rs.push(temp)
652
+ }
653
+ }
654
+
655
+ return [{label: '全部', value: ''}, ...rs]
656
+ },
657
+ userstates() {
658
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
659
+ },
660
+ userLevels () {
661
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
662
+ },
663
+ usertypes () {
664
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
665
+ },
666
+ hairpin() {
667
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
668
+ },
669
+ addressstate() {
670
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
671
+ },
672
+ fcalculation() {
673
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('结算方式')]
674
+ },
675
+ metertypes() {
676
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
677
+ },
678
+ accountsState() {
679
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
680
+ }
681
+ }
682
+ }
683
+ </script>
684
+ <style>
685
+ .back-red{ /* 红色背景 */
686
+ background-color: #F6C6CE;
687
+ }
688
+ .back-blue{ /* 蓝色背景 */
689
+
690
+ }
691
+ </style>