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,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
+ <v-select :value.sync="model.p_yd"
14
+ :options='$parent.$parent.jfnfArray' placeholder='请选择' v-model="model.p_yd" multiple
15
+ condition="p_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.a_dabm"
21
+ condition="a_dabm = '{}' " 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.f_yqxz"
27
+ :options='$parent.$parent.yqxzArray' placeholder='请选择' v-model="model.f_yqxz" multiple
28
+ condition="f_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.r_bjlx"
35
+ :options='$parent.$parent.bjlxArray' placeholder='请选择' v-model="model.r_bjlx" multiple
36
+ condition="r_bjlx 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="qnJgqSfZD" 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
+ </tr>
118
+ </template>
119
+ <template partial='body'>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.a_dabm}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.b_yhmc}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.c_dz}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.d_lxfs}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.e_yhlx}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr>{{row.f_yqxz}}</nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.g_jgmc}}</nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.h_bh}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.i_qd}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.j_zd}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.k_ql}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.l_dj}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.m_ysje}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.n_ssje}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.o_sfsj}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.p_yd}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.q_sfy}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.r_bjlx}}</nobr>
173
+ </td>
174
+ </template>
175
+ <template partial='foot'>
176
+ </template>
177
+ </data-grid>
178
+ </criteria-paged>
179
+ <table class="table-hover">
180
+ <tr style="position: relative" class="table-bordered">
181
+ <td
182
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
183
+ 汇总信息
184
+ </td>
185
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
186
+ 气量合计:&emsp;{{sumsmodel.k_ql}}&emsp;&emsp;应收金额合计:&emsp;{{sumsmodel.m_ysje}}&emsp;&emsp;实收金额合计:&emsp;{{sumsmodel.n_ssje}}
187
+ </td>
188
+ </tr>
189
+ </table>
190
+ </div>
191
+
192
+ </div>
193
+ </div>
194
+ <div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
195
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
196
+ </div>
197
+ </div>
198
+ </template>
199
+
200
+ <script>
201
+ import {HttpResetClass, PagedList} from 'vue-client'
202
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
203
+ import exportConfig from './exportConfig'
204
+
205
+ let readySomething = async function (self) {
206
+ self.$MagGetSaleParam.initinputtor();
207
+ self.getinputtores();
208
+ // 获取区县
209
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
210
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
211
+ // await self.$refs.paged.$refs.cri.search()
212
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
213
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
214
+ }
215
+
216
+ export default {
217
+ title: '工商销售明细',
218
+ data() {
219
+ return {
220
+ other:[],
221
+ footer:[],
222
+ model: new PagedList('rs/sql/qnJgqSfZD', 20, {}, {k_ql: 0, m_ysje: 0, n_ssje: 0}),
223
+ criteriaShow: false,
224
+ orgCondtionStr: '',
225
+ modelval: [],
226
+ printshow: false,
227
+ all: false,
228
+ fields: {},
229
+ //排序
230
+ orderitem:'',
231
+ orderFields: {
232
+
233
+ },
234
+ gasproperties:[],
235
+ //默认打印列
236
+ defaultfield: [],
237
+ config: {
238
+ defaultPrint: []
239
+ },
240
+ balance2:'',
241
+ thead: '',
242
+ tfoot: '',
243
+ area: [],
244
+ //合计数据
245
+ sumsmodel: {},
246
+ initres: {
247
+ org:[this.$login.f.orgid],
248
+ dep:[],
249
+ user:[],
250
+ },
251
+ userdetail: {
252
+ show: false,
253
+ f_userinfo_code: '',
254
+ f_filialeids: ''
255
+ },
256
+
257
+ show:false,
258
+ rowdata:{},
259
+ meterInfo:{},
260
+ deviceInfo:{},
261
+ condition2:'',
262
+
263
+
264
+ weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
265
+ //小区
266
+ residentialArea: [],
267
+ //缴费月份
268
+ jfnfArray: [],
269
+ yqxzArray: [],
270
+ bjlxArray: [],
271
+ //表册片区
272
+ bookSlice:[{label: '全部',value: ''}],
273
+ inputtores:[{label: '全部',value: ''}], //抄表员
274
+ allorgid:[],
275
+ f_filialeid: this.$login.f.f_orgid,
276
+ dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
277
+ }
278
+ },
279
+ ready() {
280
+ this.getaddress()
281
+ // this.$refs.paged.$refs.cri.model.f_user_state=['正常']
282
+ readySomething(this).then(() => {
283
+ this.$emit('ready')
284
+ }).catch((error) => {
285
+ this.$emit('error', error)
286
+ })
287
+ this.initAreas(this.$login.f.orgid)
288
+ //self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
289
+ //self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
290
+ this.getjfyf()
291
+ this.getBjlx()
292
+ this.getYqxz()
293
+ this.userTypeChange ();
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
+ getotherfooter () {
322
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
323
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
324
+ this.other = [];
325
+ this.footer = [];
326
+ let exportdata = this.getCondition;
327
+ let otherInData = [];
328
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
329
+ let footerData = [], exportfield = this.getExportField;
330
+ footerData.push("合计");
331
+ let self = this;
332
+ for (var field in self.sumsmodel) {
333
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
334
+ }
335
+ this.footer.push(footerData);
336
+ this.other.push(otherInData);
337
+ },
338
+ async getaddress(){
339
+ console.log('开始获取小区')
340
+ let HttpReset = new HttpResetClass()
341
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
342
+ data: {
343
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
344
+ }
345
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
346
+ console.log('小区',data)
347
+ let house = []
348
+ for (let row of data.data){
349
+ console.log('开始保存小区')
350
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
351
+ }
352
+ this.residentialArea = house
353
+ },
354
+ async getjfyf(){
355
+ let HttpReset = new HttpResetClass()
356
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
357
+ data: {
358
+ condition: '1=1',
359
+ tablename: 'qn_jgq_sf_zd',
360
+ groupitem: 'p_yd',
361
+ orderitem: 'p_yd',
362
+ items: 'p_yd'
363
+ }
364
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
365
+ let nameArr = [{label: '全部', value: ''}]
366
+ for (let row of data.data){
367
+ nameArr.push({label: row.p_yd, value: row.p_yd})
368
+ }
369
+ this.jfnfArray = nameArr
370
+ },
371
+ async getYqxz(){
372
+ let HttpReset = new HttpResetClass()
373
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
374
+ data: {
375
+ condition: '1=1',
376
+ tablename: 'qn_jgq_sf_zd',
377
+ groupitem: 'f_yqxz',
378
+ orderitem: 'f_yqxz',
379
+ items: 'f_yqxz'
380
+ }
381
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
382
+ let nameArr = [{label: '全部', value: ''}]
383
+ for (let row of data.data){
384
+ nameArr.push({label: row.f_yqxz, value: row.f_yqxz})
385
+ }
386
+ this.yqxzArray = nameArr
387
+ },
388
+ async getBjlx(){
389
+ let HttpReset = new HttpResetClass()
390
+ var data = await HttpReset.load('POST', 'rs/sql/singleTable_Final', {
391
+ data: {
392
+ condition: '1=1',
393
+ tablename: 'qn_jgq_sf_zd',
394
+ groupitem: 'r_bjlx',
395
+ orderitem: 'r_bjlx',
396
+ items: 'r_bjlx'
397
+ }
398
+ }, {resolveMsg: null, rejectMsg: '获取失败!'})
399
+ let nameArr = [{label: '全部', value: ''}]
400
+ for (let row of data.data){
401
+ nameArr.push({label: row.r_bjlx, value: row.r_bjlx})
402
+ }
403
+ this.bjlxArray = 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','rs/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','rs/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.qnJgqSfZD
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>