manage-client 3.3.225-kelai → 3.3.226

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.
File without changes
@@ -19,21 +19,13 @@ var qtx= 'http://36.103.222.144:6300/'
19
19
  // var bendi = 'http://203.57.101.233:8400/'
20
20
  // var bendi = 'http://121.36.106.17:8400/'
21
21
  // var fuwu = 'http://203.57.101.233:9001'
22
- var bendi = 'http://192.168.50.4:8400/'
22
+ var bendi = 'http://203.57.101.233:8400/'
23
23
  // var bendi = 'http://119.187.112.234:8400/'
24
24
  var wode = 'http://203.57.101.233:8400/'
25
25
  // 192.168.
26
26
  // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
27
27
  // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
28
28
  var proxyTable = {
29
- '/api/af-revenue/sql/compreQuery': {
30
- pathRewrite: {'^/api/af-revenue': '/rs/sql/compreQuery'},
31
- target: 'http://localhost:8080'
32
- },
33
- 'api/af-revenue/sql/queryGasRecord': {
34
- pathRewrite: {'^/api/af-revenue': '/rs/sql/queryGasRecord'},
35
- target: 'http://localhost:8080'
36
- },
37
29
  '/rs/logic/exportfile': {
38
30
  target: bendi
39
31
  },
@@ -65,9 +57,6 @@ var proxyTable = {
65
57
  '/rs/logic/getSaleInitData': {
66
58
  target: bendi
67
59
  },
68
- '/rs/logic': {
69
- target: 'http://localhost:8080'
70
- },
71
60
  // 用户登录服务地址
72
61
  '/rs/user': {
73
62
  target: bendi
@@ -106,7 +95,7 @@ var proxyTable = {
106
95
  target: bendi
107
96
  },
108
97
  '/rs': {
109
- target: bendi
98
+ target: wode
110
99
  }
111
100
  }
112
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.225-kelai",
3
+ "version": "3.3.226",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -59,6 +59,16 @@
59
59
  <right-tree @re-res="$parent.$parent.getorg" width="60%"
60
60
  :initresid='$parent.$parent.org'></right-tree>
61
61
  </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门</label>
64
+ <res-select id="dep" restype='department' style="width: 60%"
65
+ is-mul="false"
66
+ @res-select="$parent.$parent.getdep"
67
+ :parentresid="$parent.$parent.depresid"
68
+ :initresid='$parent.$parent.depid' >
69
+ </res-select>
70
+
71
+ </div>
62
72
  <div class="col-sm-2 form-group">
63
73
  <label class="font_normal_body">客户类型</label>
64
74
  <v-select style="width:60%" id="f_user_type"
@@ -419,6 +429,13 @@
419
429
  endDate: '',
420
430
  criteriaShow:false,
421
431
  outlets: [],
432
+ depresid: [],
433
+ queryData: {
434
+ f_orgid: [],
435
+ f_depid: [],
436
+ f_operatorid: [],
437
+ f_payment: []
438
+ },
422
439
  gasproperties:[{label: '全部', value: ''}],
423
440
  operator: [],
424
441
  WarningType: [
@@ -564,12 +581,36 @@
564
581
  },
565
582
  getorg(obj) {
566
583
  if (obj.resids.length>0) {
584
+ this.depresid = obj.resids
567
585
  this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
568
586
  }else
569
587
  {
588
+ this.depresid = obj.resids
570
589
  this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
571
590
  }
572
591
  },
592
+ getdep(obj, val) {
593
+ this.orgCondtionStr = ""
594
+
595
+ this.depname = val[0]
596
+ this.userresid = obj
597
+ this.queryData.f_depid = obj
598
+ console.log(this.queryData.f_depid)
599
+
600
+ if (obj.length > 0) {
601
+ this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
602
+ } else {
603
+ this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
604
+ }
605
+
606
+ if (this.depresid && this.depresid.length > 0) {
607
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
608
+ } else {
609
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
610
+ }
611
+
612
+ console.log(this.orgCondtionStr);
613
+ },
573
614
  // SaveAsFile(str) {
574
615
  // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
575
616
  // if (res === 'confirm') {
@@ -60,6 +60,16 @@
60
60
  <right-tree @re-res="$parent.$parent.getorg"
61
61
  :initresid='$parent.$parent.org'></right-tree>
62
62
  </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门</label>
65
+ <res-select id="dep" restype='department' style="width: 60%"
66
+ is-mul="false"
67
+ @res-select="$parent.$parent.getdep"
68
+ :parentresid="$parent.$parent.depresid"
69
+ :initresid='$parent.$parent.depid' >
70
+ </res-select>
71
+
72
+ </div>
63
73
  <div class="col-sm-2 form-group">
64
74
  <label class="font_normal_body">客户类型</label>
65
75
  <v-select style="width:60%" id="f_user_type"
@@ -375,6 +385,14 @@
375
385
  rowdata:{},
376
386
  criteriaShow:false,
377
387
  outlets: [],
388
+ depresid: [],
389
+ queryData: {
390
+ f_orgid: [],
391
+ f_depid: [],
392
+ f_operatorid: [],
393
+ f_payment: []
394
+ },
395
+ depid: [],
378
396
  operator: [],
379
397
  other: [],
380
398
  sumsmodel: {},
@@ -387,7 +405,7 @@
387
405
  ],
388
406
  styles:false,
389
407
  org:[this.$login.f.orgid],
390
- orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`,
408
+ orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid} `,
391
409
  echarts: false,
392
410
  searchshow: false,
393
411
  isActiveTotalForm: false,
@@ -496,13 +514,38 @@
496
514
  this.model.search(args.condition, args.model)
497
515
  },
498
516
  getorg(obj) {
499
- if (obj.resids.length>0) {
517
+ if (obj.resids.length > 0) {
518
+ this.depresid = obj.resids
500
519
  this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
501
- }else
502
- {
520
+ } else {
521
+ this.depresid = obj.resids
503
522
  this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
504
523
  }
524
+ console.log(this.orgCondtionStr);
505
525
  },
526
+ getdep(obj, val) {
527
+ this.orgCondtionStr = ""
528
+
529
+ this.depname = val[0]
530
+ this.userresid = obj
531
+ this.queryData.f_depid = obj
532
+ console.log(this.queryData.f_depid)
533
+
534
+ if (obj.length > 0) {
535
+ this.orgCondtionStr += " and f_depid in " + plugin.convertToIn(obj)
536
+ } else {
537
+ this.orgCondtionStr += " and f_depid = " + this.$login.f.depid
538
+ }
539
+
540
+ if (this.depresid && this.depresid.length > 0) {
541
+ this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(this.depresid) + this.orgCondtionStr
542
+ } else {
543
+ this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid + this.orgCondtionStr
544
+ }
545
+
546
+ console.log(this.orgCondtionStr);
547
+ },
548
+
506
549
  // SaveAsFile(str) {
507
550
  // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
508
551
  // if (res === 'confirm') {
@@ -1,77 +0,0 @@
1
- <template>
2
- <tab-button class="foot_tabset" :active="-1">
3
- <tabs header="指令查询" v-if="permission('指令查询')">
4
- <instruct-manage v-if="show.includes('指令查询')"></instruct-manage>
5
- </tabs>
6
- <tabs header="历史指令查询" v-if="permission('历史指令查询')">
7
- <instruct-manage-history v-if="show.includes('历史指令查询')"></instruct-manage-history>
8
- </tabs>
9
- <tabs header="上报查询" v-if="permission('上报查询')">
10
- <report-list v-if="show.includes('上报查询')"></report-list>
11
- </tabs>
12
- <tabs header="结算查询" v-if="permission('结算查询')">
13
- <report-data-query v-if="show.includes('结算查询')"></report-data-query>
14
- </tabs>
15
- <tabs header="缴费查询" v-if="permission('缴费查询')">
16
- <recharge-instruct-query v-if="show.includes('缴费查询')"></recharge-instruct-query>
17
- </tabs>
18
- <tabs header="异常查询" v-if="permission('异常查询')">
19
- <meter-exception-list v-if="show.includes('异常查询')"></meter-exception-list>
20
- </tabs>
21
- <tabs header="用户失联" v-if="permission('用户失联')">
22
- <user-lost-contact-analysis v-if="show.includes('用户失联')"></user-lost-contact-analysis>
23
- </tabs>
24
- <tabs header="失联查询" v-if="permission('失联查询')">
25
- <lost-contact-analysis-list v-if="show.includes('失联查询')"></lost-contact-analysis-list>
26
- </tabs>
27
- <tabs header="用气查询" v-if="!newWebHand && permission('用气查询')">
28
- <use-gas-statistics v-if="show.includes('用气查询')"></use-gas-statistics>
29
- </tabs>
30
- <tabs header="新用气查询" v-if="permission('用气查询')">
31
- <new-use-gas-statistics v-if="show.includes('用气查询')"></new-use-gas-statistics>
32
- </tabs>
33
- <tabs header="未用气查询" v-if="permission('未用气查询')">
34
- <get-no-meteread-query v-if="show.includes('未用气查询')"></get-no-meteread-query>
35
- </tabs>
36
- <tabs header="物联网表结算分析" v-if="!newWebHand && permission('物联网表结算分析')">
37
- <webmeter-settlement-analysis v-if="show.includes('物联网表结算分析')"></webmeter-settlement-analysis>
38
- </tabs>
39
- <tabs header="物联网表结算分析" v-if="newWebHand &&permission('物联网表结算分析')">
40
- <new-webmeter-settlement-analysis v-if="show.includes('物联网表结算分析')"></new-webmeter-settlement-analysis>
41
- </tabs>
42
- <tabs header="物联用户月度结算查询" v-if="permission('物联用户月度结算查询')">
43
- <webhand-month-gas v-if="show.includes('物联用户月度结算查询')"></webhand-month-gas>
44
- </tabs>
45
- </tab-button>
46
-
47
- </template>
48
-
49
- <script>
50
- import TabButton from '../../components/sale/common/TabButton'
51
- import Tabs from '../../components/sale/common/Tabs'
52
-
53
- export default {
54
- title: '物联查询',
55
- data () {
56
- return {
57
- newWebHand: this.$appdata.getSingleValue('新抄表'),
58
- show: []
59
- }
60
- },
61
- components: {Tabs, TabButton},
62
- methods: {
63
- permission (name) {
64
- // 保留是为了后面可能也会和综合查询一样加权限
65
- if (this.$login.r.find(value => value === '物联查询') || name === '历史指令查询') {
66
- if (!this.$login.r.find(value => value === name)) {
67
- return false
68
- }
69
- }
70
- return true
71
- }
72
- }
73
- }
74
- </script>
75
-
76
- <style scoped>
77
- </style>