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