manage-client 3.2.249 → 3.2.251

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.
@@ -8,7 +8,7 @@ export default{
8
8
  meterConfig: {
9
9
  'f_userinfo_code': '客户编号','f_user_name':'客户名称','f_user_phone': '客户电话','f_idnumber': '身份证号','f_address': '客户地址','f_balance_amount': '表上余额',
10
10
  'f_user_type': '客户类型','f_gasproperties': '用气性质','f_meternumber': '表号',"f_card_id":'卡号','f_price_name': '气价名称',
11
- 'value': '气价详情','f_meter_brand': '气表品牌', 'f_meter_style': '气表型号',
11
+ 'value': '气价详情','f_meter_brand': '气表品牌', 'f_meter_style': '气表型号','f_gongye_type': '用气类型',
12
12
  'f_gas_person': '通气人','f_gas_date': '通气时间','f_input_date': '建表时间', 'f_table_state': '气表状态'
13
13
  },
14
14
  ResidentialQuery: {
@@ -12,4 +12,6 @@ export default function () {
12
12
  Vue.component('record-info-query', (resolve) => { require(['./RecordInfoQuery'], resolve) })
13
13
  // 月用气查询
14
14
  Vue.component('month-gas-query', (resolve) => { require(['./MonthGasQuery'], resolve) })
15
+ // 表具查询
16
+ Vue.component('meter-query', (resolve) => { require(['./MeterQuery'], resolve) })
15
17
  }
@@ -8,9 +8,9 @@
8
8
  import * as Util from '../../Util'
9
9
  import co from 'co'
10
10
  import echarts from 'echarts'
11
- import {HttpResetClass } from 'vue-client'
11
+ import {HttpResetClass} from 'vue-client'
12
12
 
13
- let getData = function * (self) {
13
+ let getData = function* (self) {
14
14
  let load = new HttpResetClass()
15
15
  load.load('POST', 'rs/sql/userfilesvalues',
16
16
  {data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
@@ -20,20 +20,20 @@ let getData = function * (self) {
20
20
  // let arrparams = []
21
21
  console.log('获取数据。。', res.data)
22
22
  let org = []
23
- //let name = []
24
- let minyongvalue=[]
25
- let feiminyongvalue=[]
23
+ // let name = []
24
+ let minyongvalue = []
25
+ let feiminyongvalue = []
26
26
  for (var i = 0; i < res.data.length; i++) {
27
27
  if (!org.includes(res.data[i].org)) {
28
28
  org.push(res.data[i].org)
29
29
  }
30
30
  if (res.data[i].name === '民用') {
31
31
  minyongvalue[org.indexOf(res.data[i].org)] = res.data[i].number
32
- }else{
33
- feiminyongvalue[org.indexOf(res.data[i].org)]= res.data[i].number
32
+ } else {
33
+ feiminyongvalue[org.indexOf(res.data[i].org)] = res.data[i].number
34
34
  }
35
35
  }
36
- self.set(org,minyongvalue,feiminyongvalue)
36
+ self.set(org, minyongvalue, feiminyongvalue)
37
37
  })
38
38
  }
39
39
  export default {
@@ -61,16 +61,16 @@ export default {
61
61
  }
62
62
  },
63
63
  methods: {
64
- set (org,minyongvalue,feiminyongvalue) {
64
+ set (org, minyongvalue, feiminyongvalue) {
65
65
  this.xc = echarts.init(document.getElementById('bm'))
66
66
  this.xc.setOption({
67
- color: [ '#786570', '#c4ccd3' ],
68
- title : {
67
+ color: ['#FE974B', '#3D72FF'],
68
+ title: {
69
69
  text: '新增用户散列图',
70
70
  subtext: '数据查询来源',
71
71
  x: 'left'
72
72
  },
73
- tooltip : {
73
+ tooltip: {
74
74
  trigger: 'axis',
75
75
  formatter: function (params) {
76
76
  var str = ''
@@ -84,47 +84,47 @@ export default {
84
84
  legend: {
85
85
  x: 'left',
86
86
  y: 'bottom',
87
- data: ['民用','非民用']
87
+ data: ['民用', '非民用']
88
88
  },
89
89
  toolbox: {
90
- show : true,
91
- feature : {
92
- dataView : {show: true, readOnly: false},
93
- magicType : {show: true, type: ['line', 'bar']},
94
- restore : {show: true},
95
- saveAsImage : {show: true}
90
+ show: true,
91
+ feature: {
92
+ dataView: {show: true, readOnly: false},
93
+ magicType: {show: true, type: ['line', 'bar']},
94
+ restore: {show: true},
95
+ saveAsImage: {show: true}
96
96
  }
97
97
  },
98
- calculable : true,
99
- xAxis : [
98
+ calculable: true,
99
+ xAxis: [
100
100
  {
101
- type : 'category',
102
- data : org
101
+ type: 'category',
102
+ data: org
103
103
  }
104
104
  ],
105
- yAxis : [
105
+ yAxis: [
106
106
  {
107
- type : 'value'
107
+ type: 'value'
108
108
  }
109
109
  ],
110
- series : [
110
+ series: [
111
111
  {
112
- name:'民用',
113
- type:'bar',
114
- data:minyongvalue,
115
- markLine : {
116
- data : [
117
- {type : 'average', name: '平均值'}
112
+ name: '民用',
113
+ type: 'bar',
114
+ data: minyongvalue,
115
+ markLine: {
116
+ data: [
117
+ {type: 'average', name: '平均值'}
118
118
  ]
119
119
  }
120
120
  },
121
121
  {
122
- name:'非民用',
123
- type:'bar',
124
- data:feiminyongvalue,
125
- markLine : {
126
- data : [
127
- {type : 'average', name : '平均值'}
122
+ name: '非民用',
123
+ type: 'bar',
124
+ data: feiminyongvalue,
125
+ markLine: {
126
+ data: [
127
+ {type: 'average', name: '平均值'}
128
128
  ]
129
129
  }
130
130
  }
@@ -132,7 +132,7 @@ export default {
132
132
  })
133
133
  },
134
134
  searchdata () {
135
- let getGen =getData(this)
135
+ let getGen = getData(this)
136
136
  co(getGen)
137
137
  }
138
138
  },
@@ -5,30 +5,30 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- /* eslint-disable indent,key-spacing,no-labels */
8
+ /* eslint-disable indent,key-spacing,no-labels */
9
9
 
10
- import * as Util from '../../Util'
10
+ import * as Util from '../../Util'
11
11
  import co from 'co'
12
12
  import echarts from 'echarts'
13
- import {HttpResetClass } from 'vue-client'
13
+ import {HttpResetClass} from 'vue-client'
14
14
 
15
- let getData = function * (self) {
15
+ let getData = function* (self) {
16
16
  let load = new HttpResetClass()
17
- load.load('POST','rs/sql/BusinessType',
18
- {data: {startDate: self.startdate, endDate: self.enddate,f_orgid: self.orgid}},
19
- {resolveMsg: null, rejectMsg: null})
20
- .then((res) => {
21
- self.texttile = '用户类型'
22
- let arrparams = []
23
- let numdata = []
24
- let pricedata = []
25
- for (var i = 0; i < res.data.length; i++) {
17
+ load.load('POST', 'rs/sql/BusinessType',
18
+ {data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
19
+ {resolveMsg: null, rejectMsg: null})
20
+ .then((res) => {
21
+ self.texttile = '用户类型'
22
+ let arrparams = []
23
+ let numdata = []
24
+ let pricedata = []
25
+ for (var i = 0; i < res.data.length; i++) {
26
26
  arrparams[i] = res.data[i].name
27
27
  numdata[i] = res.data[i].num
28
28
  pricedata[i] = res.data[i].money
29
- }
30
- self.set(arrparams,numdata,pricedata)
31
- })
29
+ }
30
+ self.set(arrparams, numdata, pricedata)
31
+ })
32
32
  }
33
33
  export default {
34
34
  props: {
@@ -44,24 +44,24 @@ export default {
44
44
  type: String
45
45
  }
46
46
  },
47
- data () {
47
+ data () {
48
48
  title: '业务类型'
49
- return {
50
- texttile: '',
51
- xc: ''
52
- }
53
- },
54
- methods: {
55
- set (arrparams,numdata,pricedata) {
56
- this.xc = echarts.init(document.getElementById('sm'))
57
- this.xc.setOption({
58
- color: [ '#A7C2B9', '#E4B1F7' ],
59
- title : {
60
- text: '其他业务散列图',
61
- subtext: '数据查询来源',
62
- x: 'left'
63
- },
64
- tooltip:{
49
+ return {
50
+ texttile: '',
51
+ xc: ''
52
+ }
53
+ },
54
+ methods: {
55
+ set (arrparams, numdata, pricedata) {
56
+ this.xc = echarts.init(document.getElementById('sm'))
57
+ this.xc.setOption({
58
+ color: ['#FE974B', '#3D72FF'],
59
+ title: {
60
+ text: '其他业务散列图',
61
+ subtext: '数据查询来源',
62
+ x: 'left'
63
+ },
64
+ tooltip: {
65
65
  trigger: 'axis',
66
66
  formatter: function (params) {
67
67
  var str = ''
@@ -76,75 +76,75 @@ export default {
76
76
  return str
77
77
  }
78
78
  },
79
- legend: {
80
- x: 'left',
81
- y: 'bottom',
82
- data: ['数量','金额']
83
- },
84
- toolbox: {
85
- show : true,
86
- feature : {
87
- dataView : {show: true, readOnly: false},
88
- magicType : {show: true, type: ['line', 'bar']},
89
- restore : {show: true},
90
- saveAsImage : {show: true}
91
- }
92
- },
93
- calculable : true,
94
- xAxis : [
95
- {
96
- type : 'category',
97
- data : arrparams
98
- }
99
- ],
100
- yAxis : [
101
- {
102
- type : 'value'
103
- }
104
- ],
105
- series : [
106
- {
107
- name:'数量',
108
- type:'bar',
109
- data:numdata,
110
- markLine : {
111
- data : [
112
- {type : 'average', name: '平均值'}
113
- ]
79
+ legend: {
80
+ x: 'left',
81
+ y: 'bottom',
82
+ data: ['数量', '金额']
83
+ },
84
+ toolbox: {
85
+ show: true,
86
+ feature: {
87
+ dataView: {show: true, readOnly: false},
88
+ magicType: {show: true, type: ['line', 'bar']},
89
+ restore: {show: true},
90
+ saveAsImage: {show: true}
114
91
  }
115
92
  },
116
- {
117
- name:'金额',
118
- type:'bar',
119
- data:pricedata,
120
- markLine : {
121
- data : [
122
- {type : 'average', name : '平均值'}
123
- ]
93
+ calculable: true,
94
+ xAxis: [
95
+ {
96
+ type: 'category',
97
+ data: arrparams
98
+ }
99
+ ],
100
+ yAxis: [
101
+ {
102
+ type: 'value'
103
+ }
104
+ ],
105
+ series: [
106
+ {
107
+ name: '数量',
108
+ type: 'bar',
109
+ data: numdata,
110
+ markLine: {
111
+ data: [
112
+ {type: 'average', name: '平均值'}
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ name: '金额',
118
+ type: 'bar',
119
+ data: pricedata,
120
+ markLine: {
121
+ data: [
122
+ {type: 'average', name: '平均值'}
123
+ ]
124
+ }
124
125
  }
125
- }
126
- ]
127
- })
128
- },
129
- searchdata () {
130
- let getGen = getData(this)
131
- co(getGen)
132
- }
133
- },
134
- ready () {
135
- this.searchdata()
136
- },
137
- watch: {
138
- 'startdate' (val) {
139
- this.searchdata()
140
- },
141
- 'enddate' (val) {
142
- this.searchdata()
143
- },
144
- 'orgid' (val) {
145
- this.searchdata()
146
- }
147
- }
126
+ ]
127
+ })
128
+ },
129
+ searchdata () {
130
+ let getGen = getData(this)
131
+ co(getGen)
132
+ }
133
+ },
134
+ ready () {
135
+ this.searchdata()
136
+ },
137
+ watch: {
138
+ 'startdate' (val) {
139
+ this.searchdata()
140
+ },
141
+ 'enddate' (val) {
142
+ this.searchdata()
143
+ },
144
+ 'orgid' (val) {
145
+ this.searchdata()
146
+ }
147
+ }
148
148
 
149
149
  }
150
150
  </script>