manage-client 3.2.241 → 3.2.242

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 (70) hide show
  1. package/package.json +5 -3
  2. package/src/filiale/WEINAN/reportManage.js +6 -9
  3. package/src/filiale/WEINAN/sale.js +50 -54
  4. package/src/filiale/WEINAN/webmeterManage.js +4 -7
  5. package/src/filiale/alashan/reportManage.js +4 -6
  6. package/src/filiale/aode/sale.js +7 -12
  7. package/src/filiale/ceshi/reportManage.js +5 -3
  8. package/src/filiale/ceshi/sale.js +6 -9
  9. package/src/filiale/dongguan/reportManage.js +5 -14
  10. package/src/filiale/gaomi/sale.js +10 -9
  11. package/src/filiale/gehua/sale.js +5 -4
  12. package/src/filiale/gehua/webmeterManage.js +4 -8
  13. package/src/filiale/gongyi/sale.js +15 -15
  14. package/src/filiale/huayin/sale.js +5 -6
  15. package/src/filiale/jingwei/sale.js +4 -4
  16. package/src/filiale/jingzhou/sale.js +5 -8
  17. package/src/filiale/kelai/sale.js +5 -7
  18. package/src/filiale/konggang/sale.js +5 -6
  19. package/src/filiale/liaoyuan/sale.js +10 -9
  20. package/src/filiale/macheng/reportManage.js +14 -16
  21. package/src/filiale/macheng/sale.js +13 -12
  22. package/src/filiale/macheng/webmeterManage.js +4 -7
  23. package/src/filiale/meihekou/sale.js +25 -28
  24. package/src/filiale/pingxiang/sale.js +3 -7
  25. package/src/filiale/qianneng/QnJgqCbjbZD.vue +672 -0
  26. package/src/filiale/qianneng/QnJgqCbwlwZD.vue +654 -0
  27. package/src/filiale/qianneng/QnJgqGsxsmxJX.vue +708 -0
  28. package/src/filiale/qianneng/QnJgqMyxsmxJX.vue +708 -0
  29. package/src/filiale/qianneng/QnJgqReport.vue +24 -0
  30. package/src/filiale/qianneng/QnJgqSfZD.vue +684 -0
  31. package/src/filiale/qianneng/QnJgqXsjgbbJX.vue +642 -0
  32. package/src/filiale/qianneng/QnJgqZhdacxZD.vue +638 -0
  33. package/src/filiale/qianneng/exportConfig.js +34 -0
  34. package/src/filiale/qianneng/reportManage.js +17 -1
  35. package/src/filiale/qingtongxia/sale.js +8 -11
  36. package/src/filiale/qingtongxia/webmeterManage.js +3 -6
  37. package/src/filiale/rizhao/sale.js +9 -20
  38. package/src/filiale/rongcheng/sale.js +8 -12
  39. package/src/filiale/rongchuang/reportManage.js +4 -8
  40. package/src/filiale/rongchuang/sale.js +6 -10
  41. package/src/filiale/shangluo/reportManage.js +4 -7
  42. package/src/filiale/shangluo/sale.js +4 -8
  43. package/src/filiale/shanxian/reportManage.js +8 -13
  44. package/src/filiale/shanxian/sale.js +12 -16
  45. package/src/filiale/shaoguan/sale.js +19 -18
  46. package/src/filiale/shennongjia/sale.js +4 -7
  47. package/src/filiale/shiquan/reportManage.js +7 -5
  48. package/src/filiale/tongchuan/reportManage.js +7 -4
  49. package/src/filiale/tongchuan/sale.js +11 -18
  50. package/src/filiale/tongchuan/webmeterManage.js +3 -7
  51. package/src/filiale/wenxi/sale.js +5 -8
  52. package/src/filiale/wuan/sale.js +4 -7
  53. package/src/filiale/wuhai/sale.js +8 -7
  54. package/src/filiale/wuhai/webmeterManage.js +4 -3
  55. package/src/filiale/xiangyun/sale.js +3 -3
  56. package/src/filiale/xinkang/reportManage.js +6 -5
  57. package/src/filiale/xinkang/sale.js +8 -11
  58. package/src/filiale/zhongsheng/sale.js +3 -7
  59. package/src/filiale/zhongyi/reportManage.js +6 -11
  60. package/src/filiale/zhongyi/sale.js +27 -41
  61. package/src/filiale/zhongyi/webmeterManage.js +7 -10
  62. package/src/main.js +1 -1
  63. package/src/newmanage.js +1 -1
  64. package/src/reportManage.js +1 -8
  65. package/src/saleManage.js +1 -9
  66. package/src/webmeterManage.js +1 -9
  67. package/src/filiale/zhoukou/CardHandplanQuery.vue +0 -457
  68. package/src/filiale/zhoukou/OtherChargeQuery.vue +0 -614
  69. package/src/filiale/zhoukou/TransferQuery.vue +0 -404
  70. package/src/filiale/zhoukou/sale.js +0 -15
@@ -0,0 +1,638 @@
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_gasproperties 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="qnJgqZhdacxZD" 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
+
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">表具类型</label>
58
+ <v-select :value.sync="model.f_meter_type"
59
+ :options='$parent.$parent.metertypes()' placeholder='请选择' v-model="model.f_meter_type"
60
+ condition="f_meter_type in {}"
61
+ close-on-select></v-select>
62
+ </div>
63
+
64
+ <div class="row">
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">表号</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
68
+ condition="f_meternumber = {} " placeholder="表号">
69
+ </div>
70
+ </div>
71
+ </div>
72
+
73
+ </div>
74
+ </criteria>
75
+
76
+ <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
77
+ <template partial='head'>
78
+ <tr>
79
+ <th>
80
+ <nobr>客户编号</nobr>
81
+ </th>
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
+ </tr>
107
+ </template>
108
+ <template partial='body'>
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_userinfo_code}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_user_name}}</nobr>
114
+ </td>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.f_address}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_user_phone}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_meter_type}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_meternumber}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_user_type}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_gasproperties}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_price_name}}</nobr>
135
+ </td>
136
+ </template>
137
+ <template partial='foot'>
138
+ </template>
139
+ </data-grid>
140
+ </criteria-paged>
141
+ <table class="table-hover">
142
+ <tr style="position: relative" class="table-bordered">
143
+ <td
144
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
145
+ 汇总信息
146
+ </td>
147
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
148
+ &nbsp;
149
+ </td>
150
+ </tr>
151
+ </table>
152
+ </div>
153
+
154
+ </div>
155
+ </div>
156
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
157
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
158
+ </div>
159
+ </div>
160
+ </template>
161
+
162
+ <script>
163
+ import {HttpResetClass, PagedList} from 'vue-client'
164
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
165
+ import exportConfig from './exportConfig'
166
+
167
+ let readySomething = async function (self) {
168
+ self.$MagGetSaleParam.initinputtor();
169
+ self.getinputtores();
170
+ // 获取区县
171
+ //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
172
+ //self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
173
+ // await self.$refs.paged.$refs.cri.search()
174
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
175
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
176
+
177
+ // 初始化气表品牌
178
+ let brandArr = []
179
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
180
+ let temp = {}
181
+ temp.label = item.label
182
+ temp.value = item.value.f_meter_brand
183
+ brandArr.push(temp)
184
+ })
185
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
186
+ }
187
+
188
+ export default {
189
+ title: '综合档案查询',
190
+ data() {
191
+ return {
192
+ other:[],
193
+ footer:[],
194
+ model: new PagedList('rs/sql/qnJgqZhdacxZD', 20, {}, {thecount:0}),
195
+ criteriaShow: false,
196
+ orgCondtionStr: '',
197
+ modelval: [],
198
+ printshow: false,
199
+ all: false,
200
+ fields: {},
201
+ //排序
202
+ orderitem:'',
203
+ orderFields: {
204
+
205
+ },
206
+ gasproperties:[],
207
+ meterbrands: [],
208
+ //默认打印列
209
+ defaultfield: [],
210
+ config: {
211
+ defaultPrint: []
212
+ },
213
+ balance2:'',
214
+ thead: '',
215
+ tfoot: '',
216
+ area: [],
217
+ //合计数据
218
+ sumsmodel: {},
219
+ initres: {
220
+ org:[this.$login.f.orgid],
221
+ dep:[],
222
+ user:[],
223
+ },
224
+ userdetail: {
225
+ show: false,
226
+ f_userinfo_code: '',
227
+ f_filialeids: ''
228
+ },
229
+
230
+ show:false,
231
+ rowdata:{},
232
+ meterInfo:{},
233
+ deviceInfo:{},
234
+ condition2:'',
235
+
236
+ yhztArray:[],
237
+ bjztArray:[],
238
+
239
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
240
+ //小区
241
+ residentialArea: [],
242
+ //表册片区
243
+ bookSlice:[{label: '全部',value: ''}],
244
+ inputtores:[{label: '全部',value: ''}], //抄表员
245
+ allorgid:[],
246
+ f_filialeid: this.$login.f.f_orgid,
247
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
248
+ }
249
+ },
250
+ ready() {
251
+ this.getaddress()
252
+ // this.$refs.paged.$refs.cri.model.f_user_state=['正常']
253
+ readySomething(this).then(() => {
254
+ this.$emit('ready')
255
+ }).catch((error) => {
256
+ this.$emit('error', error)
257
+ })
258
+ //this.initAreas(this.$login.f.orgid)
259
+ //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
260
+ //self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
261
+ this.getJgqYhzt();
262
+ this.getJgqBjzt();
263
+ },
264
+ methods: {
265
+ //-------------------------------------------------------------
266
+ async getJgqYhzt(){
267
+ let HttpReset = new HttpResetClass()
268
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
269
+ data: {
270
+ condition: '1=1',
271
+ tablename: 'qn_jgq_zhdacx',
272
+ groupitem: 'f_user_state',
273
+ orderitem: 'f_user_state',
274
+ items: 'f_user_state'
275
+ }
276
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
277
+ let nameArr = [{label: '全部', value: ''}]
278
+ for (let row of data.data){
279
+ nameArr.push({label: row.f_user_state, value: row.f_user_state})
280
+ }
281
+ this.yhztArray = nameArr
282
+ },
283
+ async getJgqBjzt(){
284
+ let HttpReset = new HttpResetClass()
285
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
286
+ data: {
287
+ condition: '1=1',
288
+ tablename: 'qn_jgq_zhdacx',
289
+ groupitem: 'f_table_state',
290
+ orderitem: 'f_table_state',
291
+ items: 'f_table_state'
292
+ }
293
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
294
+ let nameArr = [{label: '全部', value: ''}]
295
+ for (let row of data.data){
296
+ nameArr.push({label: row.f_table_state, value: row.f_table_state})
297
+ }
298
+ this.bjztArray = nameArr
299
+ },
300
+ async getinputtores () {
301
+ // 获取抄表员
302
+ let rs = []
303
+ if (this.$login.f.f_gasman.length > 0) {
304
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
305
+ let temp = {
306
+ label: this.$login.f.f_gasman[i].name,
307
+ value: this.$login.f.f_gasman[i].name
308
+ }
309
+ rs.push(temp)
310
+ }
311
+ }
312
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
313
+ },
314
+ async updateParams() {
315
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
316
+ this.inputtores = [];
317
+ this.inputtores.push({label: "全部", value: ""})
318
+ this.initSlice(this.f_filialeid)
319
+ if(this.allorgid!=null){
320
+ this.allorgid.forEach((res)=>{
321
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
322
+ })
323
+ }
324
+ },
325
+ getotherfooter () {
326
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
327
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
328
+ this.other = [];
329
+ this.footer = [];
330
+ let exportdata = this.getCondition;
331
+ let otherInData = [];
332
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
333
+ let footerData = [], exportfield = this.getExportField;
334
+ footerData.push("合计");
335
+ let self = this;
336
+ for (var field in self.sumsmodel) {
337
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
338
+ }
339
+ this.footer.push(footerData);
340
+ this.other.push(otherInData);
341
+ },
342
+ async getaddress(){
343
+ console.log('开始获取小区')
344
+ let HttpReset = new HttpResetClass()
345
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
346
+ data: {
347
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
348
+ }
349
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
350
+ console.log('小区',data)
351
+ let house = []
352
+ for (let row of data.data){
353
+ console.log('开始保存小区')
354
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
355
+ }
356
+ this.residentialArea = house
357
+ },
358
+
359
+ //把数据库查询数据转换为下拉数据
360
+ calculate(rows){
361
+ let data = []
362
+ rows.forEach((row, n) => {
363
+ data[n] = {label: row.f_residential_area, value: row.id}
364
+ })
365
+ return data
366
+ },
367
+ search(){
368
+ console.log("=====search====")
369
+ //this.$refs.paged.$refs.cri.search()
370
+ this.$refs.paged.$refs.cri.search()
371
+ },
372
+ cancel(obj) {
373
+ console.log("=====cancel====" + obj)
374
+ this.show = false
375
+ },
376
+ showmsg(obj){
377
+ this.rowdata=obj
378
+ this.show=true
379
+ // let http = new HttpResetClass()
380
+ // http.load('POST','rs/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
381
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
382
+ // this.meterInfo = res.data})
383
+ // let http2 = new HttpResetClass()
384
+ // http2.load('POST','rs/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
385
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
386
+ // this.deviceInfo = res.data})
387
+
388
+ // this.f_userinfo_id=obj.f_userinfo_id
389
+ },
390
+ userTypeChange () {
391
+ this.gasproperties=[]
392
+ if(this.$refs.paged.$refs.cri.model !==null) {
393
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
394
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
395
+ }
396
+ else{
397
+ this.gasproperties =[{label: '全部', value: ''}]
398
+ }
399
+ },
400
+ //初始化片区
401
+ async initSlice (val) {
402
+ if (val) {
403
+ let getAllArea = await this.$resetpost('/rs/search', {
404
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
405
+ userid: this.$login.f.id
406
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
407
+ let arr = getAllArea.data.filter((res) => {
408
+ return res.parentid == val
409
+ })
410
+ this.bookSlice = []
411
+ console.log('过滤之后的片区-------------------', arr)
412
+ arr.forEach((res) => {
413
+ this.bookSlice.push({label: res.name, value: res.name})
414
+ })
415
+ }
416
+ },
417
+ async initAreas (val) {
418
+
419
+ if (val) {
420
+ let getAllArea = await this.$resetpost('/rs/search', {
421
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
422
+ userid: this.$login.f.id
423
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
424
+
425
+ let arr = getAllArea.data.filter((res) => {
426
+ return res.parentid == val
427
+ })
428
+ console.log('过滤之后的片区', arr)
429
+ this.sliceArea = []
430
+ arr.forEach((res) => {
431
+ this.sliceArea.push({label: res.name, value: res.name})
432
+ })
433
+ }
434
+ },
435
+ selfSearch(args) {
436
+ console.log('args', args)
437
+ console.log('this.orgCondtionStr', this.orgCondtionStr)
438
+ if (!this.orgCondtionStr) {
439
+ args.condition = `${args.condition}` + " and tr.f_orgid = " + this.$login.f.orgid
440
+ } else {
441
+ args.condition = `${args.condition}` + this.orgCondtionStr
442
+ }
443
+ this.condition2 = args.condition
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
+ sort (field, rule) {
502
+ // 将所有排序方式设为不排序,实现相互排斥
503
+ for (let key in this.orderFields) {
504
+ if (key === field) {
505
+ this.orderFields[key] = rule
506
+ } else {
507
+ this.orderFields[key] = 'no'
508
+ }
509
+ }
510
+ // 如果新规则不排序,还原为默认排序
511
+ if (rule === 'no') {
512
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
513
+ } else {
514
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
515
+ }
516
+
517
+ this.search()
518
+ }
519
+ },
520
+
521
+ watch: {
522
+ 'all'(val) {
523
+ if (val) {
524
+ this.modelval = this.bodyData
525
+ } else {
526
+ this.modelval = defaultPrint.config
527
+ this.put()
528
+ }
529
+ },
530
+ 'modelval.length'() {
531
+ this.put()
532
+ },
533
+ sumsmodel:{
534
+ handler: function(val) {
535
+ this.getotherfooter();
536
+ },
537
+ deep: true
538
+ },
539
+ 'orgCondtionStr'(val) {
540
+ let res = val.match(/'(.*?)'/)
541
+ console.log('正则提取:',res && res[1])
542
+ if (res) {
543
+ this.f_filialeid = res[1]
544
+ if(res.input !=null){
545
+ let resorgid = res.input.substring(res.input.indexOf("'"));
546
+ if(resorgid!= null && resorgid!=''){
547
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
548
+ // resorgid = resorgid.replaceAll("'","");
549
+ resorgid = resorgid.replace(/'/g,"");
550
+ this.allorgid = resorgid.split(",")
551
+ }
552
+ }
553
+ this.updateParams()
554
+ }
555
+ },
556
+ },
557
+ computed: {
558
+ // defaultexport() {
559
+ // return exportConfig.chargeexportConfig
560
+ // },
561
+ authArr () {
562
+ return this.$login.r ? this.$login.r : []
563
+ },
564
+
565
+ getCondition() {
566
+ return {condition: this.condition2,orderitem:this.orderitem}
567
+ },
568
+ getfield() {
569
+ let data = {}
570
+ this.bodyData.forEach((value, index) => {
571
+ data[this.bodyData[index]] = this.headData[index]
572
+ })
573
+ //合计字段打印
574
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
575
+ if (this.sumsmodel) {
576
+ Object.keys(this.sumsmodel).forEach((key) => {
577
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
578
+ })
579
+ } else {
580
+ this.tfoot += '暂无'
581
+ }
582
+ this.tfoot += '</th></tr>'
583
+ return data
584
+ },
585
+ getExportField() {
586
+ return exportConfig.qnJgqZhdacxZD
587
+ },
588
+ inputtor () {
589
+ // 获取抄表员
590
+ console.log('获取抄表员', this.$login.f)
591
+ let rs = []
592
+ if (this.$login.f.f_gasman.length > 0) {
593
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
594
+ let temp = {
595
+ label: this.$login.f.f_gasman[i].name,
596
+ value: this.$login.f.f_gasman[i].name
597
+ }
598
+ rs.push(temp)
599
+ }
600
+ }
601
+
602
+ return [{label: '全部', value: ''}, ...rs]
603
+ },
604
+ userstates() {
605
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
606
+ },
607
+ userLevels () {
608
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
609
+ },
610
+ usertypes () {
611
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
612
+ },
613
+ hairpin() {
614
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
615
+ },
616
+ addressstate() {
617
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
618
+ },
619
+ fcalculation() {
620
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('结算方式')]
621
+ },
622
+ metertypes() {
623
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表分类')]
624
+ },
625
+ accountsState() {
626
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
627
+ }
628
+ }
629
+ }
630
+ </script>
631
+ <style>
632
+ .back-red{ /* 红色背景 */
633
+ background-color: #F6C6CE;
634
+ }
635
+ .back-blue{ /* 蓝色背景 */
636
+
637
+ }
638
+ </style>