manage-client 1.22.61-ca → 1.22.63-ca

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": "1.22.61-ca",
3
+ "version": "1.22.63-ca",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -58,6 +58,7 @@ export default{
58
58
  'f_type': '收费类型',
59
59
  'f_state': '状态',
60
60
  'f_operate_date': '收费日期',
61
+ 'f_write_date': '写卡时间',
61
62
  'f_operator': '操作员',
62
63
  'f_filiale': '售气单位',
63
64
  'f_outlets': '售气部门',
@@ -35,7 +35,7 @@
35
35
  <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
36
36
  <export-excel :data="{condition:$parent.$parent.condition,startDate:model.startDate,endDate:model.endDate,orderitem:$parent.$parent.orderDefault}"
37
37
  :field="$parent.$parent.getfield"
38
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='表具查询'
38
+ sqlurl="rs/logic/exportfile" sql-name="getNewUserGasAll" template-name='表具查询'
39
39
  v-ref:exports
40
40
  :choose-col="true"></export-excel>
41
41
  <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>
@@ -313,128 +313,128 @@
313
313
  </div>
314
314
  </template>
315
315
  <script>
316
- import {PagedList} from 'vue-client'
317
- import UserGasEcharts from './UserGasEcharts'
318
- import * as Util from '../../../Util'
319
- import getLodop from '../../../plugins/LodopFuncs'
320
- import plugins from '../../../plugins/GetLoginInfoService'
321
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
- export default {
323
- title: '用气分析',
324
- props: ['data'],
325
- components: {UserGasEcharts},
326
- data() {
327
- return {
328
- model: new PagedList('/rs/sql/getNewUserGasAll', 20, {
329
- startDate: 'this.model.startDate',
330
- endDate: 'this.model.endDate'
331
- }, {
332
- f_oughtamount: 0,
333
- f_oughtfee: 0
334
- }),
335
- orderFields: {
336
- f_meternumber: 'no',
337
- f_oughtamount: 'no'
338
- },
339
- getGroupNameByDate: [
340
- {label: '年份', value: 'year'},
341
- {label: '月份', value: 'month'},
342
- {label: '周', value: 'week'}
343
- ],
344
- meterbrands: [],
345
- criteriaShow: false,
346
- orderDefault:'f_meternumber',
347
- reportStr: null,
348
- show: false,
349
- initres: {
350
- org:[this.$login.f.orgid],
351
- dep:[],
352
- user:[]
353
- },
354
- outlets: [],
355
- operator: [],
356
- filename: '',
357
- searchshow: true,
358
- startDate: '',
359
- endDate: '',
360
- echarts: false,
361
- isActiveTotalForm: false,
362
- condition: '1=1',
363
- getfield: {},
364
- config: {
365
- excelHeaders: {
366
- 'f_userinfo_code':'客户编号',
367
- 'f_user_type':'客户类型',
368
- 'f_gasproperties': '用气性质',
369
- 'f_user_name': '客户名称',
370
- 'f_address':'用气地址',
371
- 'f_meternumber': '表号',
372
- 'f_balance':'期初余额(元)',
373
- 'f_last_tablebase': '上期底数',
374
- 'f_tablebase':'本期底数',
375
- 'f_last_hand_date':'上期上报时间',
376
- 'f_end_hand_date':'本期上报时间',
377
- 'f_oughtamount':'用气量(m³)',
378
- 'days':'用气天数',
379
- 'aveg':'平均用气量(m³)',
380
- 'f_oughtfee':'用气金额(元)',
381
- 'f_curbalance':'期末结余(元)'
382
- }
383
- },
384
- groupname: ['year'],
385
- getgroupname: [
386
- {label: '年份', value: 'year'},
387
- {label: '月份', value: 'month'},
388
- {label: '周', value: 'week'},
389
- {label: '日', value: 'day'}
390
- ],
391
- // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
392
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
393
- orgid:[this.$login.f.orgid]
394
- }
395
- },
396
- ready() {
397
- this.$refs.paged.$refs.cri.model.startDate = Util.toStartDate() + ' 00:00:00'
398
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
399
- this.$LoadParams.loadParam()
400
- // this.$refs.paged.$refs.cri.search()
401
- this.getfield = this.config.excelHeaders
402
- },
403
- methods: {
404
- sort (field, rule) {
405
- console.log(rule)
406
- // 将所有排序方式设为不排序,实现相互排斥
407
- for (let key in this.orderFields) {
408
- if (key === field) {
409
- this.orderFields[key] = rule
410
- } else {
411
- this.orderFields[key] = 'no'
412
- }
413
- }
414
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
415
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
416
- if (this.endDate == '' || this.startDate == '') {
417
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
316
+ import {PagedList} from 'vue-client'
317
+ import UserGasEcharts from './UserGasEcharts'
318
+ import * as Util from '../../../Util'
319
+ import getLodop from '../../../plugins/LodopFuncs'
320
+ import plugins from '../../../plugins/GetLoginInfoService'
321
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
322
+ export default {
323
+ title: '用气分析',
324
+ props: ['data'],
325
+ components: {UserGasEcharts},
326
+ data() {
327
+ return {
328
+ model: new PagedList('/rs/sql/getNewUserGasAll', 20, {
329
+ startDate: 'this.model.startDate',
330
+ endDate: 'this.model.endDate'
331
+ }, {
332
+ f_oughtamount: 0,
333
+ f_oughtfee: 0
334
+ }),
335
+ orderFields: {
336
+ f_meternumber: 'no',
337
+ f_oughtamount: 'no'
338
+ },
339
+ getGroupNameByDate: [
340
+ {label: '年份', value: 'year'},
341
+ {label: '月份', value: 'month'},
342
+ {label: '周', value: 'week'}
343
+ ],
344
+ meterbrands: [],
345
+ criteriaShow: false,
346
+ orderDefault: 'f_meternumber',
347
+ reportStr: null,
348
+ show: false,
349
+ initres: {
350
+ org: [this.$login.f.orgid],
351
+ dep: [],
352
+ user: []
353
+ },
354
+ outlets: [],
355
+ operator: [],
356
+ filename: '',
357
+ searchshow: true,
358
+ startDate: '',
359
+ endDate: '',
360
+ echarts: false,
361
+ isActiveTotalForm: false,
362
+ condition: '1=1',
363
+ getfield: {},
364
+ config: {
365
+ excelHeaders: {
366
+ 'f_userinfo_code': '客户编号',
367
+ 'f_user_type': '客户类型',
368
+ 'f_gasproperties': '用气性质',
369
+ 'f_user_name': '客户名称',
370
+ 'f_address': '用气地址',
371
+ 'f_meternumber': '表号',
372
+ 'f_balance': '期初余额(元)',
373
+ 'f_last_tablebase': '上期底数',
374
+ 'f_tablebase': '本期底数',
375
+ 'f_last_hand_date': '上期上报时间',
376
+ 'f_end_hand_date': '本期上报时间',
377
+ 'f_oughtamount': '用气量(m³)',
378
+ 'days': '用气天数',
379
+ 'aveg': '平均用气量(m³)',
380
+ 'f_oughtfee': '用气金额(元)',
381
+ 'f_curbalance': '期末结余(元)'
418
382
  }
419
- // 如果新规则不排序,还原为默认排序
420
- if (rule === 'no') {
421
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
383
+ },
384
+ groupname: ['year'],
385
+ getgroupname: [
386
+ {label: '年份', value: 'year'},
387
+ {label: '月份', value: 'month'},
388
+ {label: '周', value: 'week'},
389
+ {label: '日', value: 'day'}
390
+ ],
391
+ // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
392
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
393
+ orgid: [this.$login.f.orgid]
394
+ }
395
+ },
396
+ ready() {
397
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStartDate() + ' 00:00:00'
398
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
399
+ this.$LoadParams.loadParam()
400
+ // this.$refs.paged.$refs.cri.search()
401
+ this.getfield = this.config.excelHeaders
402
+ },
403
+ methods: {
404
+ sort(field, rule) {
405
+ console.log(rule)
406
+ // 将所有排序方式设为不排序,实现相互排斥
407
+ for (let key in this.orderFields) {
408
+ if (key === field) {
409
+ this.orderFields[key] = rule
422
410
  } else {
423
- this.model.paramSource.orderitem = `'${field} ${rule}'`
411
+ this.orderFields[key] = 'no'
424
412
  }
425
- this.$refs.paged.$refs.cri.search()
426
- let condition = this.$refs.paged.$refs.cri.condition
427
- console.log(this.model.paramSource)
428
- this.model.search(condition)
429
- // this.userSearch()
430
- },
431
- // 查询开关
432
- hidden() {
433
- this.criteriaShow = !this.criteriaShow
434
- },
435
- SaveAsFile(str) {
436
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
437
- if (res === 'confirm') {
413
+ }
414
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
415
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
416
+ if (this.endDate == '' || this.startDate == '') {
417
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
418
+ }
419
+ // 如果新规则不排序,还原为默认排序
420
+ if (rule === 'no') {
421
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
422
+ } else {
423
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
424
+ }
425
+ this.$refs.paged.$refs.cri.search()
426
+ let condition = this.$refs.paged.$refs.cri.condition
427
+ console.log(this.model.paramSource)
428
+ this.model.search(condition)
429
+ // this.userSearch()
430
+ },
431
+ // 查询开关
432
+ hidden() {
433
+ this.criteriaShow = !this.criteriaShow
434
+ },
435
+ SaveAsFile(str) {
436
+ this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
437
+ if (res === 'confirm') {
438
438
  let style = '<style>' +
439
439
  'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
440
440
  let strHtml = style + document.getElementById(str).innerHTML;
@@ -445,153 +445,156 @@
445
445
  LODOP.SAVE_TO_FILE('用气分析.xls')
446
446
  }
447
447
  })
448
- },
449
- clearmsg() {
450
- this.$refs.paged.$refs.cri.model = {}
451
- },
452
- initParams() {
453
- // 初始化气表品牌
454
- let brandArr = []
455
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
456
- let temp = {}
457
- temp.label = item.label
448
+ },
449
+ clearmsg() {
450
+ this.$refs.paged.$refs.cri.model = {}
451
+ },
452
+ initParams() {
453
+ // 初始化气表品牌
454
+ let brandArr = []
455
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
456
+ let temp = {}
457
+ temp.label = item.label
458
458
  temp.value = item.value.f_meter_brand
459
459
  brandArr.push(temp)
460
460
  })
461
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
462
- },
463
- getPricenames (model) {
464
- let f_user_type = model.f_user_type
465
- let f_gasproperties = model.f_gasproperties
466
- let f_price_type = model.f_price_type
467
- console.log('气价。,。。', f_user_type, f_gasproperties, f_price_type)
468
- let rs = []
469
- if (f_user_type.length === 1 && f_gasproperties.length === 1 && f_price_type.length === 1) {
470
- let params = {
471
- f_user_type: f_user_type[0],
472
- f_gasproperties: f_gasproperties[0],
473
- f_price_type: f_price_type[0],
474
- filter: this.$login.f.f_fengongsi
475
- }
476
- rs = this.$GetSaleParam.getPrice(params)
477
- }
478
- if (rs.length === 0) {
479
- // this.row.f_price_name = ''
480
- }else{
481
- for(let i=0;i<rs.length;i++){
482
- rs[i].lable = rs[i].lable
483
- rs[i].value = rs[i].value.f_price_id
484
- }
461
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
462
+ },
463
+ getPricenames(model) {
464
+ let f_user_type = model.f_user_type
465
+ let f_gasproperties = model.f_gasproperties
466
+ let f_price_type = model.f_price_type
467
+ console.log('气价。,。。', f_user_type, f_gasproperties, f_price_type)
468
+ let rs = []
469
+ if (f_user_type.length === 1 && f_gasproperties.length === 1 && f_price_type.length === 1) {
470
+ let params = {
471
+ f_user_type: f_user_type[0],
472
+ f_gasproperties: f_gasproperties[0],
473
+ f_price_type: f_price_type[0],
474
+ filter: this.$login.f.f_fengongsi
485
475
  }
486
- return rs
487
- },
488
- search(args) {
489
- this.model.paramSource.orderitem =this.model.paramSource.orderitem ? this.model.paramSource.orderitem: `'${this.orderDefault}'`
490
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
491
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
492
- if (this.endDate == '' || this.startDate == '') {
493
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
476
+ rs = this.$GetSaleParam.getPrice(params)
477
+ }
478
+ if (rs.length === 0) {
479
+ // this.row.f_price_name = ''
480
+ } else {
481
+ for (let i = 0; i < rs.length; i++) {
482
+ rs[i].lable = rs[i].lable
483
+ rs[i].value = rs[i].value.f_price_id
494
484
  }
495
- // this.condition = this.$refs.paged.$refs.cri.condition + ` ${this.orgCondtionStr}`
496
- if (this.orgCondtionStr)
497
- this.condition = this.$refs.paged.$refs.cri.condition
498
- else
499
- this.condition = this.$refs.paged.$refs.cri.condition
500
- args.condition = this.condition
501
- this.model.search(args.condition, args.model)
502
- },
503
- // 显示柱状图
504
- showEcharts() {
505
- this.echarts = true
506
- this.isActiveTotalForm = false
507
- },
508
- notShowTotalForm() {
509
- this.echarts = false
510
- this.isActiveTotalForm = false
511
- },
512
- // 不显示柱状图
513
- notShowEcharts() {
514
- this.echarts = false
515
- this.isActiveTotalForm = false
516
- },
517
- // 显示汇总数据表格
518
- showTotalForm() {
519
- this.echarts = false
520
- this.isActiveTotalForm = true
521
- },
522
- close() {
523
- this.show = false
524
- },
525
- getRes(obj) {
526
- this.orgCondtionStr = plugins.convertToIn(obj)
527
- },
528
- getorg(obj) {
529
- this.orgCondtionStr = plugin.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
530
485
  }
531
- // getRes(condition,obj) {
532
- // this.orgCondtionStr = condition
533
- // this.orgname = obj.orgnames[0]
534
- // this.depname = obj.depnames[0]
535
- // }
486
+ return rs
536
487
  },
537
- watch: {
538
- 'data'(val) {
539
- if (val.f_files_path) {
540
- this.getFileContent(val.f_files_path)
541
- } else {
542
- this.reportStr = null
543
- }
488
+ search(args) {
489
+ this.model.paramSource.orderitem = this.model.paramSource.orderitem ? this.model.paramSource.orderitem : `'${this.orderDefault}'`
490
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
491
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
492
+ if (this.endDate == '' || this.startDate == '') {
493
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
544
494
  }
495
+ // this.condition = this.$refs.paged.$refs.cri.condition + ` ${this.orgCondtionStr}`
496
+ if (this.orgCondtionStr)
497
+ this.condition = this.$refs.paged.$refs.cri.condition
498
+ else
499
+ this.condition = this.$refs.paged.$refs.cri.condition
500
+ args.condition = this.condition
501
+ this.model.search(args.condition, args.model)
545
502
  },
546
- computed: {
547
- Gasusertype() {
548
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
549
- },
550
- valveStatus() {
551
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
552
- },
553
- pricetype() {
554
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
555
- },
556
- Gasproperties() {
557
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
558
- },
559
- f_opera_area() {
560
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('运营区域')]
561
- },
562
- f_distinct() {
563
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('行政区域')]
564
- },
565
- deviceType() {
566
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')]
567
- },
568
- // 抄表员下拉框数据
569
- inputtors () {
570
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
503
+ // 显示柱状图
504
+ showEcharts() {
505
+ this.echarts = true
506
+ this.isActiveTotalForm = false
507
+ },
508
+ notShowTotalForm() {
509
+ this.echarts = false
510
+ this.isActiveTotalForm = false
511
+ },
512
+ // 不显示柱状图
513
+ notShowEcharts() {
514
+ this.echarts = false
515
+ this.isActiveTotalForm = false
516
+ },
517
+ // 显示汇总数据表格
518
+ showTotalForm() {
519
+ this.echarts = false
520
+ this.isActiveTotalForm = true
521
+ },
522
+ close() {
523
+ this.show = false
524
+ },
525
+ getRes(obj) {
526
+ this.orgCondtionStr = plugins.convertToIn(obj)
527
+ },
528
+ getorg(obj) {
529
+ this.orgCondtionStr = plugin.convertToIn(obj.resids) ? plugin.convertToIn(obj.resids) : '(' + this.$login.f.orgid + ')'
530
+ }
531
+ // getRes(condition,obj) {
532
+ // this.orgCondtionStr = condition
533
+ // this.orgname = obj.orgnames[0]
534
+ // this.depname = obj.depnames[0]
535
+ // }
536
+ },
537
+ watch: {
538
+ 'data'(val) {
539
+ if (val.f_files_path) {
540
+ this.getFileContent(val.f_files_path)
541
+ } else {
542
+ this.reportStr = null
571
543
  }
572
544
  }
545
+ },
546
+ computed: {
547
+ Gasusertype() {
548
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
549
+ },
550
+ valveStatus() {
551
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
552
+ },
553
+ pricetype() {
554
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
555
+ },
556
+ Gasproperties() {
557
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
558
+ },
559
+ f_opera_area() {
560
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('运营区域')]
561
+ },
562
+ f_distinct() {
563
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('行政区域')]
564
+ },
565
+ deviceType() {
566
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')]
567
+ },
568
+ // 抄表员下拉框数据
569
+ inputtors() {
570
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
571
+ }
573
572
  }
573
+ }
574
574
  </script>
575
575
  <style>
576
- .mystyle {
577
- float: right;
578
- padding-right: 10%;
579
- }
580
- .mystyle1 {
581
- padding-top: 10px;
582
- }
583
- .mystyle2 {
584
- width: 100%;
585
- height: 35px;
586
- /*background: #00A3F0;*/
587
- padding-left: 15px;
588
- float: left;
589
- }
590
- .datapanel {
591
- color: #333;
592
- background-color: white;
593
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
594
- padding: 10px 10px 10px 10px;
595
- border-radius: 15px;
596
- }
576
+ .mystyle {
577
+ float: right;
578
+ padding-right: 10%;
579
+ }
580
+
581
+ .mystyle1 {
582
+ padding-top: 10px;
583
+ }
584
+
585
+ .mystyle2 {
586
+ width: 100%;
587
+ height: 35px;
588
+ /*background: #00A3F0;*/
589
+ padding-left: 15px;
590
+ float: left;
591
+ }
592
+
593
+ .datapanel {
594
+ color: #333;
595
+ background-color: white;
596
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
597
+ padding: 10px 10px 10px 10px;
598
+ border-radius: 15px;
599
+ }
597
600
  </style>
@@ -25,7 +25,7 @@ export default function () {
25
25
  require(['./components/WebReport/UserGasAll'], resolve)
26
26
  })
27
27
  Vue.component('new-user-gas-all', (resolve) => {
28
- require(['./components/WebReport/NewUserGasAll'], resolve)
28
+ require(['./components/webmeter/DrillData/NewUserGasAll'], resolve)
29
29
  })
30
30
  // 报表展示组件(异常统计报表)
31
31
  Vue.component('abnormal-info', (resolve) => {