manage-client 3.2.12 → 3.2.13
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 +1 -1
- package/src/components/sale/businessquery/BusinesQuery.vue +1 -2
- package/src/components/sale/config/exportConfig.js +1 -1
- package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -209
- package/src/filiale/WEINAN/UserGasAll.vue +0 -2
- package/src/filiale/WEINAN/UserGasEcharts.vue +1 -1
package/package.json
CHANGED
|
@@ -195,8 +195,7 @@
|
|
|
195
195
|
footer: [],
|
|
196
196
|
model: new PagedList('rs/sql/BusinesQuery', 20, {}, {f_money: 0}),
|
|
197
197
|
criteriaShow: false,
|
|
198
|
-
|
|
199
|
-
bodyData: ["f_userinfo_code", "f_user_name", "f_operat_type", "f_describe", "f_operat_type", "f_operate_date", "f_state", "f_operator"],
|
|
198
|
+
bodyData: ["f_userinfo_code", "f_user_name", "f_meternumber","f_money", "f_operat_type","f_state", "f_operate_date", "f_orgname", "f_depname", "f_operator"],
|
|
200
199
|
orgCondtionStr: '',
|
|
201
200
|
show:false,
|
|
202
201
|
rowdata:{},
|
|
@@ -17,7 +17,7 @@ export default{
|
|
|
17
17
|
},
|
|
18
18
|
// 业务查询
|
|
19
19
|
businesConfig: {
|
|
20
|
-
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_meternumber': '表号', '
|
|
20
|
+
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_meternumber': '表号', 'f_money': '收款金额', 'f_operat_type': '操作类型',
|
|
21
21
|
'f_state': '操作状态', 'f_operate_date': '操作日期', 'f_orgname': '组织名称', 'f_depname': '部门名称', 'f_operator': '操作人'
|
|
22
22
|
},
|
|
23
23
|
// 资源操作
|
|
@@ -1,209 +1,208 @@
|
|
|
1
|
-
<template lang="html">
|
|
2
|
-
<div>
|
|
3
|
-
<div id="m" :style="{width:'100%',height:'100%'}"></div>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import * as Util from '../../../../Util'
|
|
9
|
-
import co from 'co'
|
|
10
|
-
import { HttpResetClass } from 'vue-client'
|
|
11
|
-
|
|
12
|
-
let getData = function * (self, condition) {
|
|
13
|
-
console.log('6666666666')
|
|
14
|
-
let load = new HttpResetClass()
|
|
15
|
-
load.load('POST', 'rs/sql/webmeter_getUserGasGroup',
|
|
16
|
-
{data: {condition: '1 = 1' + (self.orgid != null ? ' and f_orgid in ( ' + self.orgid +')' : ''),
|
|
17
|
-
groupname: 'day',
|
|
18
|
-
startDate: self.startdate + ' 00:00:00',
|
|
19
|
-
endDate: self.enddate + ' 23:59:59'}},
|
|
20
|
-
{resolveMsg: null, rejectMsg: null})
|
|
21
|
-
.then((res) => {
|
|
22
|
-
let arrparams =
|
|
23
|
-
let gasdata1 = []
|
|
24
|
-
let gasdata2 = []
|
|
25
|
-
for (
|
|
26
|
-
arrparams[i]
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
console.log(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
this.xc
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
{type: '
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
{type: '
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
//
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
</script>
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div>
|
|
3
|
+
<div id="m" :style="{width:'100%',height:'100%'}"></div>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import * as Util from '../../../../Util'
|
|
9
|
+
import co from 'co'
|
|
10
|
+
import { HttpResetClass } from 'vue-client'
|
|
11
|
+
|
|
12
|
+
let getData = function * (self, condition) {
|
|
13
|
+
console.log('6666666666')
|
|
14
|
+
let load = new HttpResetClass()
|
|
15
|
+
load.load('POST', 'rs/sql/webmeter_getUserGasGroup',
|
|
16
|
+
{data: {condition: '1 = 1' + (self.orgid != null ? ' and f_orgid in ( ' + self.orgid +')' : ''),
|
|
17
|
+
groupname: 'day',
|
|
18
|
+
startDate: self.startdate + ' 00:00:00',
|
|
19
|
+
endDate: self.enddate + ' 23:59:59'}},
|
|
20
|
+
{resolveMsg: null, rejectMsg: null})
|
|
21
|
+
.then((res) => {
|
|
22
|
+
let arrparams = Array.from(new Set(res.data.map(x => x.type)))
|
|
23
|
+
let gasdata1 = []
|
|
24
|
+
let gasdata2 = []
|
|
25
|
+
for (let i = 0; i < arrparams.length; i++) {
|
|
26
|
+
gasdata1.push(res.data.filter(item => item.type == arrparams[i] && item.f_user_type == '民用').map(x => x.f_gas).reduce((x, y) => x + y,0).toFixed(2))
|
|
27
|
+
gasdata2.push(res.data.filter(item => item.type == arrparams[i] && item.f_user_type == '非民用').map(x => x.f_gas).reduce((x, y) => x + y,0).toFixed(2))
|
|
28
|
+
}
|
|
29
|
+
self.set(arrparams, gasdata1, gasdata2)
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
export default {
|
|
33
|
+
props: {
|
|
34
|
+
echarts:{
|
|
35
|
+
type:Boolean,
|
|
36
|
+
default:false
|
|
37
|
+
},
|
|
38
|
+
startdate: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: Util.toStandardDateString()
|
|
41
|
+
},
|
|
42
|
+
enddate: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: Util.toStandardDateString()
|
|
45
|
+
},
|
|
46
|
+
condition: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: '1=1'
|
|
49
|
+
},
|
|
50
|
+
orgid:'',
|
|
51
|
+
groupname: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'year'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
data () {
|
|
57
|
+
title: '业务类型'
|
|
58
|
+
return {
|
|
59
|
+
xc: ''
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
ready(){
|
|
63
|
+
console.log(this.echarts)
|
|
64
|
+
this.searchdata()
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
set (arrparams, gasdata1, gasdata2) {
|
|
68
|
+
console.log('--------->>>>>>>>>>>>',arrparams,gasdata1,gasdata2)
|
|
69
|
+
console.log("ec:"+this.echarts)
|
|
70
|
+
let name = ''
|
|
71
|
+
if (this.groupname === 'year')
|
|
72
|
+
{
|
|
73
|
+
name = '年'
|
|
74
|
+
} else if (this.groupname === 'month'){
|
|
75
|
+
name = '月'
|
|
76
|
+
} else if (this.groupname === 'week'){
|
|
77
|
+
name = '周'
|
|
78
|
+
} else {
|
|
79
|
+
name = '日'
|
|
80
|
+
}
|
|
81
|
+
this.xc = this.$echarts.init(document.getElementById('m'))
|
|
82
|
+
// this.xc.resize({height: '100%',width: '100%'})
|
|
83
|
+
this.xc.setOption({
|
|
84
|
+
title: {
|
|
85
|
+
text: '用气' + name + '分析图',
|
|
86
|
+
x: 'left',
|
|
87
|
+
textStyle: {
|
|
88
|
+
color: '#000',
|
|
89
|
+
fontSize: 20
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
color: ['#61a0a8', '#2f4554'],
|
|
93
|
+
tooltip: {
|
|
94
|
+
trigger: 'axis',
|
|
95
|
+
extraCssText: 'width: auto;height: auto;'
|
|
96
|
+
},
|
|
97
|
+
grid:{
|
|
98
|
+
top:'20%',
|
|
99
|
+
},
|
|
100
|
+
legend: {
|
|
101
|
+
x: 'left',
|
|
102
|
+
y: 'bottom',
|
|
103
|
+
textStyle: {
|
|
104
|
+
fontSize: 12
|
|
105
|
+
},
|
|
106
|
+
data: ['用气量(民用)(m³)', '用气量(非民用)(m³)']
|
|
107
|
+
},
|
|
108
|
+
toolbox: {
|
|
109
|
+
show: true,
|
|
110
|
+
feature: {
|
|
111
|
+
mark: {show: true},
|
|
112
|
+
dataView: {show: true, readOnly: false},
|
|
113
|
+
magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
|
|
114
|
+
restore: {show: true},
|
|
115
|
+
saveAsImage: {show: true}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
calculable: true,
|
|
119
|
+
xAxis: [
|
|
120
|
+
{ name: '日期',
|
|
121
|
+
nameTextStyle: {
|
|
122
|
+
fontSize: 15
|
|
123
|
+
},
|
|
124
|
+
type: 'category',
|
|
125
|
+
data: arrparams
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
yAxis : [
|
|
129
|
+
{
|
|
130
|
+
type : 'value',
|
|
131
|
+
name: '用气量(m³)',
|
|
132
|
+
nameTextStyle: {
|
|
133
|
+
fontSize: 15
|
|
134
|
+
},
|
|
135
|
+
axisLabel: {
|
|
136
|
+
show: true,
|
|
137
|
+
textStyle: {
|
|
138
|
+
fontSize: 15,
|
|
139
|
+
color: '#7d8000'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
series : [
|
|
145
|
+
{
|
|
146
|
+
name: '用气量(民用)(m³)',
|
|
147
|
+
type: 'bar',
|
|
148
|
+
smooth: true,
|
|
149
|
+
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
|
150
|
+
data: gasdata1,
|
|
151
|
+
markPoint: {
|
|
152
|
+
data: [
|
|
153
|
+
{type: 'max', name: '最大值'},
|
|
154
|
+
{type: 'min', name: '最小值'}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
markLine: {
|
|
158
|
+
data: [
|
|
159
|
+
{type: 'average', name: '平均值'}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: '用气量(非民用)(m³)',
|
|
165
|
+
type: 'bar',
|
|
166
|
+
smooth: true,
|
|
167
|
+
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
|
168
|
+
data: gasdata2,
|
|
169
|
+
markPoint: {
|
|
170
|
+
data: [
|
|
171
|
+
{type: 'max', name: '最大值'},
|
|
172
|
+
{type: 'min', name: '最小值'}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
markLine: {
|
|
176
|
+
data: [
|
|
177
|
+
{type: 'average', name: '平均值'}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
})
|
|
183
|
+
},
|
|
184
|
+
searchdata (condition) {
|
|
185
|
+
console.log("ec:"+this.echarts)
|
|
186
|
+
let getGen = getData(this, condition)
|
|
187
|
+
co(getGen)
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
watch: {
|
|
191
|
+
// 'echarts' (val) {
|
|
192
|
+
// this.searchdata(this.condition)
|
|
193
|
+
// },
|
|
194
|
+
// 'groupname' (val) {
|
|
195
|
+
// this.searchdata(this.condition)
|
|
196
|
+
// },
|
|
197
|
+
'startdate' (val) {
|
|
198
|
+
this.searchdata()
|
|
199
|
+
},
|
|
200
|
+
'enddate' (val) {
|
|
201
|
+
this.searchdata()
|
|
202
|
+
},
|
|
203
|
+
'orgid' (val) {
|
|
204
|
+
this.searchdata()
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
</script>
|
|
@@ -457,12 +457,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
|
457
457
|
// 初始化气表品牌
|
|
458
458
|
let brandArr = []
|
|
459
459
|
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
460
|
-
if (item.value.f_meter_type == '物联网表') {
|
|
461
460
|
let temp = {}
|
|
462
461
|
temp.label = item.label
|
|
463
462
|
temp.value = item.value.f_meter_brand
|
|
464
463
|
brandArr.push(temp)
|
|
465
|
-
}
|
|
466
464
|
})
|
|
467
465
|
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
468
466
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
let getData = function * (self, condition) {
|
|
45
45
|
let load = new HttpResetClass()
|
|
46
46
|
load.load('POST', 'rs/sql/webmeter_getUserGasGroup',
|
|
47
|
-
{data: {condition: condition, groupname: self.groupname
|
|
47
|
+
{data: {condition: condition, groupname: self.groupname, startDate: self.startdate,
|
|
48
48
|
endDate: self.enddate}},
|
|
49
49
|
{resolveMsg: null, rejectMsg: null})
|
|
50
50
|
.then((res) => {
|