manage-client 3.3.196 → 3.3.198

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.196",
3
+ "version": "3.3.198",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -38,6 +38,7 @@
38
38
  <button class="button_clear button_spacing" @click="clear">清空</button>
39
39
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
40
  :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
41
+ :header="$parent.$parent.other"
41
42
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getNoMetereadData" template-name='未上报查询'
42
43
  :choose-col="true"></export-excel>
43
44
 
@@ -219,6 +220,8 @@
219
220
  self.initParams()
220
221
  self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() +' 00:00:00'
221
222
  self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
223
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
224
+
222
225
  }
223
226
  export default {
224
227
  title: '未上报查询',
@@ -240,6 +243,8 @@
240
243
  endDate: '',
241
244
  criteriaShow:false,
242
245
  outlets: [],
246
+ other: [],
247
+ sumsmodel: {},
243
248
  gasproperties:[{label: '全部', value: ''}],
244
249
  operator: [],
245
250
  meterbrands: [],
@@ -255,7 +260,22 @@
255
260
  readySomething(this)
256
261
  },
257
262
  methods: {
263
+ getotherfooter() {
264
+ this.other = [];
265
+
266
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
267
+
268
+
269
+ let secondLine = [
270
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
271
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
272
+ ];
258
273
 
274
+ this.other.push(firstLine);
275
+ this.other.push(secondLine);
276
+
277
+ console.log('Header Data:', this.other);
278
+ },
259
279
  userTypeChange () {
260
280
  this.gasproperties=[{label: '全部', value: ''}]
261
281
  if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
@@ -319,6 +339,12 @@
319
339
  }
320
340
  },
321
341
  watch: {
342
+ sumsmodel:{
343
+ handler: function(val) {
344
+ this.getotherfooter();
345
+ },
346
+ deep: true
347
+ },
322
348
  },
323
349
  computed: {
324
350
  getCondition() {
@@ -44,6 +44,7 @@
44
44
  <button class="button_clear button_spacing" @click="clear">清空</button>
45
45
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
46
46
  :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
47
+ :header="$parent.$parent.other"
47
48
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getAllLoseQuery" template-name='失联分析'
48
49
  :choose-col="true"></export-excel>
49
50
  <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
@@ -380,6 +381,7 @@
380
381
  // self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
381
382
  self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
382
383
  self.$refs.paged.$refs.cri.model.f_user_state='正常'
384
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
383
385
  }
384
386
  export default {
385
387
  title: '失联分析',
@@ -411,6 +413,8 @@
411
413
  show: false,
412
414
  showdetail:false,
413
415
  rowdata:{},
416
+ other: [],
417
+ sumsmodel: {},
414
418
  startDate: '',
415
419
  endDate: '',
416
420
  criteriaShow:false,
@@ -448,6 +452,22 @@
448
452
  this.getMeterTypeAndBrand('f_meter_brand', '1=1')
449
453
  },
450
454
  methods: {
455
+ getotherfooter() {
456
+ this.other = [];
457
+
458
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
459
+
460
+
461
+ let secondLine = [
462
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
463
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
464
+ ];
465
+
466
+ this.other.push(firstLine);
467
+ this.other.push(secondLine);
468
+
469
+ console.log('Header Data:', this.other);
470
+ },
451
471
  getMeterType() {
452
472
  this.Warningstyle = [{label: '全部', value: ''}]
453
473
  this.styles = false
@@ -599,7 +619,13 @@
599
619
  } else {
600
620
  this.reportStr = null
601
621
  }
602
- }
622
+ },
623
+ sumsmodel:{
624
+ handler: function(val) {
625
+ this.getotherfooter();
626
+ },
627
+ deep: true
628
+ },
603
629
  },
604
630
  computed: {
605
631
  // usertypes () {
@@ -45,6 +45,7 @@
45
45
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
46
46
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
47
47
  :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
48
+ :header="$parent.$parent.other"
48
49
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getUserLoseQuery" template-name='用户失联查询'
49
50
  :choose-col="true"></export-excel>
50
51
  <!-- <button class="button_export button_spacing" @click="$parent.$parent.SaveAsFile('lostuserlist')">导出</button>-->
@@ -342,6 +343,7 @@
342
343
  self.$refs.paged.$refs.cri.model.notappear='不包含'
343
344
  self.$refs.paged.$refs.cri.model.SLday1=10
344
345
  self.$refs.paged.$refs.cri.model.f_user_state='正常'
346
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
345
347
  }
346
348
  export default {
347
349
  title: '失联分析',
@@ -374,6 +376,8 @@
374
376
  criteriaShow:false,
375
377
  outlets: [],
376
378
  operator: [],
379
+ other: [],
380
+ sumsmodel: {},
377
381
  filename: '',
378
382
  WarningType: [
379
383
  {label: '全部', value: ''}
@@ -403,6 +407,22 @@
403
407
  },
404
408
 
405
409
  methods: {
410
+ getotherfooter() {
411
+ this.other = [];
412
+
413
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
414
+
415
+
416
+ let secondLine = [
417
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
418
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
419
+ ];
420
+
421
+ this.other.push(firstLine);
422
+ this.other.push(secondLine);
423
+
424
+ console.log('Header Data:', this.other);
425
+ },
406
426
  getMeterType() {
407
427
  this.Warningstyle = [{label: '全部', value: ''}]
408
428
  this.styles = false
@@ -543,7 +563,13 @@
543
563
  } else {
544
564
  this.reportStr = null
545
565
  }
546
- }
566
+ },
567
+ sumsmodel:{
568
+ handler: function(val) {
569
+ this.getotherfooter();
570
+ },
571
+ deep: true
572
+ },
547
573
  },
548
574
  computed: {
549
575
  // usertypes () {
@@ -38,6 +38,7 @@
38
38
  <button class="button_clear button_spacing" @click="clear">清空</button>
39
39
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
40
  :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
41
+ :header="$parent.$parent.other"
41
42
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webmeterSettlementAnalysis" template-name='物联网表结算分析'
42
43
  :choose-col="true"></export-excel>
43
44
 
@@ -276,6 +277,7 @@
276
277
  self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() +' 00:00:00'
277
278
  self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
278
279
  self.$refs.paged.$refs.cri.search()
280
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
279
281
  }
280
282
  export default {
281
283
  title: '物联网表结算分析',
@@ -300,6 +302,8 @@
300
302
  endDate: '',
301
303
  criteriaShow:false,
302
304
  outlets: [],
305
+ other: [],
306
+ sumsmodel: {},
303
307
  gasproperties:[{label: '全部', value: ''}],
304
308
  operator: [],
305
309
  meterbrands: [],
@@ -316,7 +320,22 @@
316
320
  readySomething(this)
317
321
  },
318
322
  methods: {
323
+ getotherfooter() {
324
+ this.other = [];
319
325
 
326
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
327
+
328
+
329
+ let secondLine = [
330
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
331
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
332
+ ];
333
+
334
+ this.other.push(firstLine);
335
+ this.other.push(secondLine);
336
+
337
+ console.log('Header Data:', this.other);
338
+ },
320
339
  userTypeChange () {
321
340
  this.gasproperties=[{label: '全部', value: ''}]
322
341
  if(this.$refs.paged.$refs.cri.model && this.$refs.paged.$refs.cri.model.f_user_type) {
@@ -381,6 +400,12 @@
381
400
  }
382
401
  },
383
402
  watch: {
403
+ sumsmodel:{
404
+ handler: function(val) {
405
+ this.getotherfooter();
406
+ },
407
+ deep: true
408
+ },
384
409
  },
385
410
  computed: {
386
411
  getCondition() {
@@ -390,7 +415,6 @@
390
415
  startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
391
416
  endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
392
417
  }
393
-
394
418
  },
395
419
  usertypes() {
396
420
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
@@ -49,6 +49,7 @@
49
49
  f_start_date: $parent.$parent.f_start_date,
50
50
  f_end_date: $parent.$parent.f_end_date
51
51
  }"
52
+ :header="$parent.$parent.other"
52
53
  :field="$parent.$parent.getfield" sql-name="manage_getNewQueryInstruct" sqlurl="api/af-revenue/logic/openapi/exportfile"
53
54
  template-name='指令查看'></export-excel>
54
55
  <div
@@ -337,6 +338,7 @@
337
338
  console.log('指令查看config', self.config)
338
339
  self.getfield = self.config.excelHeaders
339
340
  self.getOperators(self.$login.f.orgid)
341
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
340
342
  // self.reflash()
341
343
  }
342
344
  export default {
@@ -351,6 +353,8 @@
351
353
  Gasproperties:[],
352
354
  meterbrand: [],
353
355
  operators:[],
356
+ other: [],
357
+ sumsmodel: {},
354
358
  userType:[],
355
359
  instructtype:[],
356
360
  instructstate:[],
@@ -546,15 +550,43 @@
546
550
  await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
547
551
 
548
552
  },
553
+ getotherfooter() {
554
+ this.other = [];
555
+
556
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
557
+
558
+
559
+ let secondLine = [
560
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
561
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
562
+ ];
563
+
564
+ this.other.push(firstLine);
565
+ this.other.push(secondLine);
566
+
567
+ console.log('Header Data:', this.other);
568
+ },
549
569
 
550
570
  },
571
+ watch:{
572
+ sumsmodel:{
573
+ handler: function(val) {
574
+ this.getotherfooter();
575
+ },
576
+ deep: true
577
+ },
578
+ },
551
579
  computed: {
552
580
  userType () {
553
581
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
554
582
  },
555
583
  Gasproperties () {
556
584
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
557
- }
585
+ },
586
+ mounted() {
587
+ this.getotherfooter();
588
+ }
589
+
558
590
 
559
591
  }
560
592
  }
@@ -47,6 +47,7 @@
47
47
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
48
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
49
  :field="$parent.$parent.getfield"
50
+ :header="$parent.$parent.other"
50
51
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="getExceptionList" template-name='异常查询'
51
52
  :choose-col="true"></export-excel>
52
53
  <!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
@@ -332,6 +333,7 @@
332
333
  let readySomething = async function (self) {
333
334
  await self.$MagLoadParams.loadParam()
334
335
  self.initParams()
336
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
335
337
  }
336
338
  export default {
337
339
  title: '异常查看',
@@ -344,6 +346,8 @@
344
346
  startDate: '',
345
347
  endDate: '',
346
348
  meterbrands: [],
349
+ other: [],
350
+ sumsmodel: {},
347
351
  f_error_type:'',
348
352
  groupname: ['year'],
349
353
  getgroupname: [
@@ -504,7 +508,23 @@
504
508
  showTotalForm() {
505
509
  this.echarts = false
506
510
  this.isActiveTotalForm = true
507
- }
511
+ },
512
+ getotherfooter() {
513
+ this.other = [];
514
+
515
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
516
+
517
+
518
+ let secondLine = [
519
+ `开始时间(上报区间): ${this.$refs.paged.$refs.cri.model.startDate}`,
520
+ `结束时间: ${this.$refs.paged.$refs.cri.model.endDate}`
521
+ ];
522
+
523
+ this.other.push(firstLine);
524
+ this.other.push(secondLine);
525
+
526
+ console.log('Header Data:', this.other);
527
+ },
508
528
  },
509
529
  watch: {
510
530
  'data'(val) {
@@ -513,8 +533,16 @@
513
533
  } else {
514
534
  this.reportStr = null
515
535
  }
516
- }
517
- },
536
+ },
537
+ sumsmodel:{
538
+ handler: function(val) {
539
+ this.getotherfooter();
540
+ },
541
+ deep: true
542
+ },
543
+ }, mounted() {
544
+ this.getotherfooter();
545
+ },
518
546
  computed: {
519
547
  getCondition() {
520
548
  let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
@@ -547,6 +547,10 @@ export default {
547
547
  let exportdata = this.getCondition;
548
548
  let otherInData=[];
549
549
  otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
550
+ let secondLine = [
551
+ `开始时间(抄表日期): ${this.$refs.paged.$refs.cri.model.handStartDate}`,
552
+ `结束时间: ${this.$refs.paged.$refs.cri.model.handEndDate}`
553
+ ];
550
554
  let footerData=[],exportfield=this.getfield;
551
555
  footerData.push("合计");
552
556
  let self = this;
@@ -555,6 +559,8 @@ export default {
555
559
  }
556
560
  this.footer.push(footerData);
557
561
  this.other.push(otherInData);
562
+ this.other.push(secondLine);
563
+
558
564
  },
559
565
  // async getaddress(){
560
566
  // let HttpReset = new HttpResetClass()
@@ -46,6 +46,7 @@
46
46
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
47
47
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
48
48
  :field="$parent.$parent.getfield"
49
+ :header="$parent.$parent.other"
49
50
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="rechargeInstruct" template-name='充值指令查询'
50
51
  :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>
@@ -181,7 +182,7 @@
181
182
  let readySomething = async function (self) {
182
183
  await self.$MagLoadParams.loadParam()
183
184
  self.initParams()
184
- // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
185
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
185
186
  }
186
187
  export default {
187
188
  title: '充值指令查询',
@@ -198,6 +199,7 @@
198
199
  gasproperties:[],
199
200
  condition:'',
200
201
  rowdata:{},
202
+ other: [],
201
203
  sumsmodel: {},
202
204
  orgid:[this.$login.f.orgid],
203
205
  criteriaShow:false,
@@ -215,6 +217,22 @@
215
217
  this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
216
218
  },
217
219
  methods: {
220
+ getotherfooter() {
221
+ this.other = [];
222
+
223
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
224
+
225
+
226
+ let secondLine = [
227
+ `开始时间(充值): ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
228
+ `结束时间(充值): ${this.$refs.paged.$refs.criteria.model.f_end_date}`
229
+ ];
230
+
231
+ this.other.push(firstLine);
232
+ this.other.push(secondLine);
233
+
234
+ console.log('Header Data:', this.other);
235
+ },
218
236
  initParams() {
219
237
  // 初始化气表品牌
220
238
  let brandArr = []
@@ -308,7 +326,13 @@
308
326
  this.f_filialeid = res[1]
309
327
  // this.updateParams()
310
328
  }
311
- }
329
+ },
330
+ sumsmodel:{
331
+ handler: function(val) {
332
+ this.getotherfooter();
333
+ },
334
+ deep: true
335
+ },
312
336
  },
313
337
  computed: {
314
338
  getfield () {
@@ -46,6 +46,7 @@
46
46
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
47
47
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
48
48
  :field="$parent.$parent.getfield"
49
+ :header="$parent.$parent.other"
49
50
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="manage_getReportList" template-name='上报查询'
50
51
  :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>
@@ -234,7 +235,7 @@
234
235
  let readySomething = async function (self) {
235
236
  await self.$MagLoadParams.loadParam()
236
237
  self.initParams()
237
- // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
238
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
238
239
  }
239
240
  export default {
240
241
  title: '上报查询',
@@ -251,6 +252,7 @@
251
252
  gasproperties:[],
252
253
  condition:'',
253
254
  rowdata:{},
255
+ other: [],
254
256
  sumsmodel: {},
255
257
  orgid:[this.$login.f.orgid],
256
258
  criteriaShow:false,
@@ -269,6 +271,22 @@
269
271
  this.$refs.paged.$refs.criteria.model.f_end_date = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
270
272
  },
271
273
  methods: {
274
+ getotherfooter() {
275
+ this.other = [];
276
+
277
+ let firstLine = [`导出时间: ${this.$login.toStandardTimeString()}`];
278
+
279
+
280
+ let secondLine = [
281
+ `开始时间: ${this.$refs.paged.$refs.criteria.model.f_start_date}`,
282
+ `结束时间: ${this.$refs.paged.$refs.criteria.model.f_end_date}`
283
+ ];
284
+
285
+ this.other.push(firstLine);
286
+ this.other.push(secondLine);
287
+
288
+ console.log('Header Data:', this.other);
289
+ },
272
290
  initParams() {
273
291
  // 初始化气表品牌
274
292
  let brandArr = []
@@ -351,7 +369,13 @@
351
369
  this.f_filialeid = res[1]
352
370
  // this.updateParams()
353
371
  }
354
- }
372
+ },
373
+ sumsmodel:{
374
+ handler: function(val) {
375
+ this.getotherfooter();
376
+ },
377
+ deep: true
378
+ },
355
379
  },
356
380
  computed: {
357
381
  getPricenames() {
@@ -165,12 +165,14 @@
165
165
  await self.$MagLoadParams.loadParam()
166
166
  self.initParams()
167
167
  // self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
168
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
168
169
  }
169
170
  export default {
170
171
  title: '上报数据查询',
171
172
  data() {
172
173
  return {
173
174
  other:[],
175
+ sumsmodel: {},
174
176
  footer:[],
175
177
  model: new PagedList('api/af-revenue/sql/manage_getReportDataQuery', 20, {}),
176
178
  criteriaShow: false,
@@ -288,19 +290,29 @@
288
290
  // getRes(obj) {
289
291
  // this.orgCondtionStr = obj
290
292
  // }
291
- getotherfooter () {
292
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
293
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
293
+ getotherfooter() {
294
294
  this.other = [];
295
295
  this.footer = [];
296
296
  let otherInData = [];
297
+ let secondLine = [
298
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
299
+ `结束时间: ${this.$refs.paged.$refs.cri.model.startDate}`
300
+ ];
297
301
  otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
298
302
  let footerData = []
303
+
299
304
  this.footer.push(footerData);
300
305
  this.other.push(otherInData);
306
+ this.other.push(secondLine);
301
307
  }
302
308
  },
303
309
  watch: {
310
+ sumsmodel:{
311
+ handler: function(val) {
312
+ this.getotherfooter();
313
+ },
314
+ deep: true
315
+ },
304
316
  },
305
317
  computed: {
306
318
  metertypes() {
@@ -34,10 +34,13 @@
34
34
  <div class="span" style="float:right;margin-top:10px">
35
35
  <button class="button_search button_spacing" @click="search()">查询</button>
36
36
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
37
+
37
38
  <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
- :field="$parent.$parent.getfield"
39
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
39
40
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
40
- :choose-col="true"></export-excel>
41
+ :choose-col="true">
42
+ </export-excel>
43
+
41
44
  <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
45
  :defaultfield="$parent.$parent.defaultfield"
43
46
  titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
@@ -315,6 +318,8 @@ export default {
315
318
  //f_filialeid: this.$login.f.f_orgid,
316
319
  detaillist: [],
317
320
  meterbrands: [],
321
+ other:[],
322
+ sumsmodel: {},
318
323
  prices: [],
319
324
  gasproperties:[],
320
325
  condition:'',
@@ -324,7 +329,6 @@ export default {
324
329
  defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
325
330
  'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
326
331
  },
327
- sumsmodel: {},
328
332
  orgid:[this.$login.f.orgid],
329
333
  criteriaShow:false,
330
334
  //默认打印列
@@ -361,6 +365,21 @@ export default {
361
365
  // this.$refs.paged.$refs.criteria.search()
362
366
  },
363
367
  methods: {
368
+ getotherfooter() {
369
+ this.other=[];
370
+ let exportdata=this.getCondition;
371
+ // 第一行数据
372
+ let firstLine = [];
373
+ firstLine.push(`导出时间: ${this.$login.toStandardTimeString()}`);
374
+ // 第二行数据
375
+ let secondLine = [];
376
+ secondLine.push(`开始时间: ${this.$refs.paged.$refs.criteria.model.startDate}`);
377
+ secondLine.push(`结束时间: ${this.$refs.paged.$refs.criteria.model.endDate}`);
378
+ let self = this;
379
+ // 将每行数据作为一个独立的数组添加到other数组中
380
+ this.other.push(firstLine); // 添加第一行
381
+ this.other.push(secondLine); // 添加第二行
382
+ },
364
383
  initParams() {
365
384
  // 初始化气表品牌
366
385
  let brandArr = []
@@ -453,7 +472,13 @@ export default {
453
472
  this.f_filialeid = res[1]
454
473
  // this.updateParams()
455
474
  }
456
- }
475
+ },
476
+ sumsmodel:{
477
+ handler: function(val) {
478
+ this.getotherfooter();
479
+ },
480
+ deep: true
481
+ },
457
482
  },
458
483
  computed: {
459
484
  getCondition() {