manage-client 3.2.159 → 3.2.161

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