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