manage-client 3.3.14 → 3.3.15

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