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