manage-client 4.0.36 → 4.0.38

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