manage-client 4.0.26 → 4.0.28
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/SellReport/YuShouTable.vue +33 -18
- package/src/components/sale/businessquery/gasDeviceStatistics.vue +180 -0
- package/src/components/sale/config/exportConfig.js +4 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +6 -2
- package/src/filiale/meihekou/CardHandplanQuery.vue +2 -2
- package/src/filiale/ruihua/MeterExceptionList.vue +557 -0
- package/src/filiale/ruihua/webmeterManage.js +14 -0
- package/src/filiale/xinjiangdexin/UserGasAll.vue +659 -0
- package/src/filiale/xinjiangdexin/UserGasEcharts.vue +240 -0
- package/src/filiale/xinjiangdexin/webmeterManage.js +7 -0
- package/src/filiale/zhongsheng/GasStatistics.vue +1 -1
- package/src/saleManage.js +4 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div class="basic-main" style="height: 100%;">
|
|
3
|
+
<div class="row" style="height: 15%;width: 100%;" v-show="echarts">
|
|
4
|
+
<div class="col-sm-2" style="display: inline-block;">
|
|
5
|
+
<button @click="$parent.notShowEcharts()" class="button_clear button_spacing">隐藏图表</button>
|
|
6
|
+
</div>
|
|
7
|
+
<!--图显示模板-->
|
|
8
|
+
<div class="row col-sm-3 mystyle" style="display: inline-block;">
|
|
9
|
+
<label class="font_normal_body">图表统计项</label>
|
|
10
|
+
<v-select :options='$parent.getgroupname' :value.sync="groupname"
|
|
11
|
+
close-on-select
|
|
12
|
+
id="groupname"
|
|
13
|
+
placeholder='分组项'
|
|
14
|
+
v-model="groupname"
|
|
15
|
+
value-single="true"></v-select>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div style="height: 80%;width: 98%;">
|
|
19
|
+
<div id="info"></div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import * as Util from '../../Util'
|
|
26
|
+
import co from 'co'
|
|
27
|
+
import { HttpResetClass } from 'vue-client'
|
|
28
|
+
|
|
29
|
+
let getData = function * (self, condition) {
|
|
30
|
+
let load = new HttpResetClass()
|
|
31
|
+
load.load('POST', 'api/af-revenue/sql/webmeter_getUserGasGroup',
|
|
32
|
+
{data: {condition: condition, groupname: self.groupname[0], startDate: self.startdate,
|
|
33
|
+
endDate: self.enddate}},
|
|
34
|
+
{resolveMsg: null, rejectMsg: null})
|
|
35
|
+
.then((res) => {
|
|
36
|
+
let arrparams = []
|
|
37
|
+
let gasdata1 = []
|
|
38
|
+
let gasdata2 = []
|
|
39
|
+
let gasdata3 = []
|
|
40
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
41
|
+
arrparams[i] = res.data[i].f_type
|
|
42
|
+
gasdata1[i] = res.data[i].f_oughtamount1
|
|
43
|
+
gasdata2[i] = res.data[i].f_oughtamount2
|
|
44
|
+
gasdata3[i] = res.data[i].f_oughtamount3
|
|
45
|
+
}
|
|
46
|
+
self.set(arrparams, gasdata1, gasdata2, gasdata3)
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
export default {
|
|
50
|
+
props: {
|
|
51
|
+
echarts:{
|
|
52
|
+
type:Boolean,
|
|
53
|
+
default:false
|
|
54
|
+
},
|
|
55
|
+
startdate: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: Util.toStandardDateString()
|
|
58
|
+
},
|
|
59
|
+
enddate: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: Util.toStandardDateString()
|
|
62
|
+
},
|
|
63
|
+
condition: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '1=1'
|
|
66
|
+
},
|
|
67
|
+
groupname: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: 'year'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data () {
|
|
73
|
+
title: '业务类型'
|
|
74
|
+
return {
|
|
75
|
+
xc: ''
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
ready(){
|
|
79
|
+
console.log(this.echarts)
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
set (arrparams, gasdata1, gasdata2, gasdata3) {
|
|
83
|
+
console.log('--------->>>>>>>>>>>>',arrparams,gasdata1,gasdata3)
|
|
84
|
+
console.log("ec:"+this.echarts)
|
|
85
|
+
let name = ''
|
|
86
|
+
if (this.groupname === 'year')
|
|
87
|
+
{
|
|
88
|
+
name = '年'
|
|
89
|
+
} else if (this.groupname === 'month'){
|
|
90
|
+
name = '月'
|
|
91
|
+
} else if (this.groupname === 'week'){
|
|
92
|
+
name = '周'
|
|
93
|
+
} else {
|
|
94
|
+
name = '日'
|
|
95
|
+
}
|
|
96
|
+
const statInfo = document.getElementById('info') // 获取图表元素
|
|
97
|
+
statInfo.style.width = window.innerWidth - 200 + "px"; //初始化echarts图表宽度
|
|
98
|
+
statInfo.style.height = window.innerHeight - 200 + "px"; //初始化echarts图表宽度
|
|
99
|
+
this.xc = this.$echarts.init(statInfo)
|
|
100
|
+
// 设置宽度自适应
|
|
101
|
+
window.addEventListener('resize', () => {
|
|
102
|
+
statInfo.style.width = window.innerWidth - 200 + "px";
|
|
103
|
+
statInfo.style.height = window.innerHeight - 200 + "px";
|
|
104
|
+
this.xc.resize();
|
|
105
|
+
})
|
|
106
|
+
// this.xc.resize({height: '100%',width: '100%'})
|
|
107
|
+
this.xc.setOption({
|
|
108
|
+
title: {
|
|
109
|
+
text: '用气' + name + '分析图',
|
|
110
|
+
left: 'center',
|
|
111
|
+
y: '10',
|
|
112
|
+
textStyle: {
|
|
113
|
+
color: '#000',
|
|
114
|
+
fontSize: 20
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
color: ['#0070c0', '#00b050','#e1a822'],
|
|
118
|
+
tooltip: {
|
|
119
|
+
trigger: 'axis',
|
|
120
|
+
extraCssText: 'width: auto;height: auto;'
|
|
121
|
+
},
|
|
122
|
+
grid:{
|
|
123
|
+
top:'20%',
|
|
124
|
+
},
|
|
125
|
+
legend: {
|
|
126
|
+
y: '50',
|
|
127
|
+
data: ['用气量(民用)(m³)', '用气量(商业)(m³)', '用气量(工业)(m³)']
|
|
128
|
+
},
|
|
129
|
+
toolbox: {
|
|
130
|
+
y: '50',
|
|
131
|
+
show: true,
|
|
132
|
+
right:'2%',
|
|
133
|
+
feature: {
|
|
134
|
+
mark: {show: true},
|
|
135
|
+
dataView: {show: true, readOnly: false},
|
|
136
|
+
magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
|
|
137
|
+
restore: {show: true},
|
|
138
|
+
saveAsImage: {show: true}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
calculable: true,
|
|
142
|
+
xAxis: [
|
|
143
|
+
{ name: '日期',
|
|
144
|
+
nameTextStyle: {
|
|
145
|
+
fontSize: 15
|
|
146
|
+
},
|
|
147
|
+
type: 'category',
|
|
148
|
+
data: arrparams
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
yAxis : [
|
|
152
|
+
{
|
|
153
|
+
type : 'value',
|
|
154
|
+
name: '用气量(m³)',
|
|
155
|
+
nameTextStyle: {
|
|
156
|
+
fontSize: 15
|
|
157
|
+
},
|
|
158
|
+
axisLabel: {
|
|
159
|
+
show: true,
|
|
160
|
+
textStyle: {
|
|
161
|
+
fontSize: 15,
|
|
162
|
+
'color': '#7d8000'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
series : [
|
|
168
|
+
{
|
|
169
|
+
name: '用气量(民用)(m³)',
|
|
170
|
+
type: 'bar',
|
|
171
|
+
smooth: true,
|
|
172
|
+
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
|
173
|
+
data: gasdata1,
|
|
174
|
+
markPoint: {
|
|
175
|
+
data: [
|
|
176
|
+
{type: 'max', name: '最大值'},
|
|
177
|
+
{type: 'min', name: '最小值'}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
markLine: {
|
|
181
|
+
data: [
|
|
182
|
+
{type: 'average', name: '平均值'}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: '用气量(商业)(m³)',
|
|
188
|
+
type: 'bar',
|
|
189
|
+
smooth: true,
|
|
190
|
+
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
|
191
|
+
data: gasdata2,
|
|
192
|
+
markPoint: {
|
|
193
|
+
data: [
|
|
194
|
+
{type: 'max', name: '最大值'},
|
|
195
|
+
{type: 'min', name: '最小值'}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
markLine: {
|
|
199
|
+
data: [
|
|
200
|
+
{type: 'average', name: '平均值'}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: '用气量(工业)(m³)',
|
|
206
|
+
type: 'bar',
|
|
207
|
+
smooth: true,
|
|
208
|
+
itemStyle: {normal: {areaStyle: {type: 'default'}}},
|
|
209
|
+
data: gasdata3,
|
|
210
|
+
markPoint: {
|
|
211
|
+
data: [
|
|
212
|
+
{type: 'max', name: '最大值'},
|
|
213
|
+
{type: 'min', name: '最小值'}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
markLine: {
|
|
217
|
+
data: [
|
|
218
|
+
{type: 'average', name: '平均值'}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
})
|
|
224
|
+
},
|
|
225
|
+
searchdata (condition) {
|
|
226
|
+
console.log("ec:"+this.echarts)
|
|
227
|
+
let getGen = getData(this, condition)
|
|
228
|
+
co(getGen)
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
watch: {
|
|
232
|
+
'echarts' (val) {
|
|
233
|
+
this.searchdata(this.condition)
|
|
234
|
+
},
|
|
235
|
+
'groupname' (val) {
|
|
236
|
+
this.searchdata(this.condition)
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
</script>
|
|
@@ -326,7 +326,7 @@ export default {
|
|
|
326
326
|
//默认打印列
|
|
327
327
|
defaultfield: [],
|
|
328
328
|
orgCondtionStr: '',
|
|
329
|
-
model: new PagedList('
|
|
329
|
+
model: new PagedList('api/af-revenue/sql/queryGasRecord', 50,{
|
|
330
330
|
startDate: 'this.model.startDate',
|
|
331
331
|
endDate: 'this.model.endDate'
|
|
332
332
|
},{
|
package/src/saleManage.js
CHANGED
|
@@ -500,6 +500,10 @@ export default function () {
|
|
|
500
500
|
Vue.component('pricetype-gas-money', (resolve) => {
|
|
501
501
|
require(['./components/sale/businessquery/PricetypeGasMoney'], resolve)
|
|
502
502
|
})
|
|
503
|
+
// 用气设备统计报表
|
|
504
|
+
Vue.component('gas-device-statistics', (resolve) => {
|
|
505
|
+
require(['./components/sale/businessquery/gasDeviceStatistics'], resolve)
|
|
506
|
+
})
|
|
503
507
|
|
|
504
508
|
// 经纬报表
|
|
505
509
|
Vue.component('payment-notice', (resolve) => {
|