manage-client 3.2.140 → 3.2.144
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/build/dev-server.js +2 -2
- package/package.json +1 -1
- package/src/components/SellReport/Cardapplysgas.vue +274 -0
- package/src/components/SellReport/LeftChart.vue +132 -0
- package/src/components/SellReport/MarketMonthChart.vue +162 -0
- package/src/components/SellReport/MarketMonthgas.vue +7 -0
- package/src/components/SellReport/UserFillmoney.vue +1 -1
- package/src/components/sale/businessquery/AccountQuery/AccountListManage.vue +2 -2
- package/src/components/sale/businessquery/AccountQuery/OverdueList.vue +4 -4
- package/src/components/sale/businessquery/AccountQuery/keyUserGasRanking.vue +165 -0
- package/src/components/sale/businessquery/ArrearsQuery.vue +2 -2
- package/src/components/sale/businessquery/ChargeQuery.vue +2 -2
- package/src/components/sale/businessquery/CollectManage.vue +6 -0
- package/src/components/sale/businessquery/GroupChargeQuery.vue +2 -2
- package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
- package/src/components/sale/businessquery/InspectListGas.vue +238 -246
- package/src/components/sale/businessquery/ProceedsOper.vue +4 -4
- package/src/components/sale/businessquery/ResidentialCardQuery.vue +373 -0
- package/src/components/sale/businessquery/SellOrgnameQuery.vue +2 -2
- package/src/components/sale/businessquery/SellPeopleQuery.vue +2 -2
- package/src/components/sale/businessquery/UserSellHeadDetail.vue +4 -4
- package/src/components/sale/config/exportConfig.js +14 -14
- package/src/components/sale/filesquery/MeterQuery.vue +21 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +16 -0
- package/src/components/sale/filesquery/UserQuery.vue +6 -0
- package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +1 -1
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +2 -1
- package/src/components/webmeter/DrillData/UserGasEform.vue +1 -1
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +2 -1
- package/src/components/webmeter/recharge/RechargeList.vue +1 -1
- package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +26 -26
- package/src/filiale/dongguan/components/SellReport/BankManager.vue +146 -0
- package/src/filiale/dongguan/components/SellReport/SiteManager.vue +147 -0
- package/src/filiale/dongguan/components/WebReport/BussinessType.vue +137 -0
- package/src/filiale/dongguan/components/WebReport/Paymentpie.vue +157 -0
- package/src/filiale/dongguan/reportManage.js +21 -0
- package/src/filiale/qianneng/ArrearsQuery.vue +2 -2
- package/src/filiale/qianneng/ChargeQuery.vue +2 -2
- package/src/filiale/qianneng/HandplanQuery.vue +1 -1
- package/src/filiale/qianneng/MeterQuery.vue +21 -1
- package/src/filiale/qianneng/exportConfig.js +3 -3
- package/src/filiale/rongcheng/RecordInfoQuery.vue +1 -1
- package/src/filiale/rongcheng/exportConfig.js +2 -2
- package/src/reportManage.js +10 -0
- package/src/saleManage.js +6 -0
- package/.gradle/4.4/fileContent/fileContent.lock +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/build/libs/ManageClient-3.1.0-17.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +0 -2
|
@@ -320,6 +320,9 @@
|
|
|
320
320
|
<data-order field="f_address" name="客户地址"
|
|
321
321
|
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
322
322
|
</th>
|
|
323
|
+
<th>
|
|
324
|
+
<nobr>表号</nobr>
|
|
325
|
+
</th>
|
|
323
326
|
<th>
|
|
324
327
|
<nobr>小区</nobr>
|
|
325
328
|
</th>
|
|
@@ -412,6 +415,9 @@
|
|
|
412
415
|
<td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
|
|
413
416
|
<nobr>{{row.f_address}}</nobr>
|
|
414
417
|
</td>
|
|
418
|
+
<td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
|
|
419
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
420
|
+
</td>
|
|
415
421
|
<td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
|
|
416
422
|
<nobr>{{row.f_residential_area}}</nobr>
|
|
417
423
|
</td>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<label class="font_normal_body">用户状态</label>
|
|
117
117
|
<v-select
|
|
118
118
|
placeholder='用户状态'
|
|
119
|
-
value-single
|
|
119
|
+
value-single
|
|
120
120
|
style="width:60%"
|
|
121
121
|
:value.sync="model.f_user_state"
|
|
122
122
|
v-model="model.f_user_state"
|
|
@@ -354,6 +354,7 @@
|
|
|
354
354
|
self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
|
|
355
355
|
// self.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
|
|
356
356
|
self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
357
|
+
self.$refs.paged.$refs.cri.model.f_user_state='正常'
|
|
357
358
|
self.$refs.paged.$refs.cri.search()
|
|
358
359
|
}
|
|
359
360
|
export default {
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
if (this.groupNameForSql&& this.groupNameForSql !== 'undefined') {
|
|
154
154
|
let load = new HttpResetClass()
|
|
155
155
|
let res = await load.load('POST', 'rs/sql/webmeter_getUserGasSum',
|
|
156
|
-
{data: {condition: this.conditionForSql, groupname: this.groupNameForSql}},
|
|
156
|
+
{data: {condition: this.conditionForSql, groupname: this.groupNameForSql,startDate: this.startdate, endDate: this.enddate}},
|
|
157
157
|
{resolveMsg: null, rejectMsg: null})
|
|
158
158
|
console.log('res返回', res)
|
|
159
159
|
this.model2 = res.data
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<label class="font_normal_body">用户状态</label>
|
|
117
117
|
<v-select
|
|
118
118
|
placeholder='用户状态'
|
|
119
|
-
value-single
|
|
119
|
+
value-single
|
|
120
120
|
style="width:60%"
|
|
121
121
|
:value.sync="model.f_user_state"
|
|
122
122
|
v-model="model.f_user_state"
|
|
@@ -314,6 +314,7 @@
|
|
|
314
314
|
self.initParams()
|
|
315
315
|
self.$refs.paged.$refs.cri.model.notappear='不包含'
|
|
316
316
|
self.$refs.paged.$refs.cri.model.SLday1=10
|
|
317
|
+
self.$refs.paged.$refs.cri.model.f_user_state='正常'
|
|
317
318
|
self.$refs.paged.$refs.cri.search()
|
|
318
319
|
}
|
|
319
320
|
export default {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<div class="col-sm-2">
|
|
56
56
|
<label class="font_normal_body">客户地址</label>
|
|
57
57
|
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
|
|
58
|
-
condition="
|
|
58
|
+
condition="s.f_address like '%{}%'" v-next-el='userid' v-el:username>
|
|
59
59
|
</div>
|
|
60
60
|
<div class="col-sm-2 form-group">
|
|
61
61
|
<label class="font_normal_body">客户类型</label>
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
48
48
|
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
49
49
|
|
|
50
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
51
|
-
:field="$parent.$parent.getfield" :
|
|
50
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
51
|
+
:field="$parent.$parent.getfield" :
|
|
52
52
|
sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
|
|
53
53
|
:choose-col="true">
|
|
54
54
|
</export-excel>
|
|
55
55
|
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
56
56
|
:defaultfield="$parent.$parent.defaultfield"
|
|
57
57
|
titletable="换表记录"
|
|
58
|
-
|
|
58
|
+
></print-data>
|
|
59
59
|
<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>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
// self.$refs.paged.$refs.cri.search()
|
|
384
384
|
await self.$MagLoadParams.loadParam()
|
|
385
385
|
self.initParams()
|
|
386
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
386
|
+
// self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
387
387
|
}
|
|
388
388
|
export default {
|
|
389
389
|
|
|
@@ -458,23 +458,23 @@
|
|
|
458
458
|
this.rowdata=obj
|
|
459
459
|
this.show=true
|
|
460
460
|
},
|
|
461
|
-
getotherfooter () {
|
|
461
|
+
// getotherfooter () {
|
|
462
462
|
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
463
463
|
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
464
|
-
this.other = [];
|
|
465
|
-
this.footer = [];
|
|
466
|
-
let exportdata = this.getCondition;
|
|
467
|
-
let otherInData = [];
|
|
468
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
469
|
-
let footerData = [], exportfield = this.getfield;
|
|
470
|
-
footerData.push("合计");
|
|
471
|
-
let self = this;
|
|
472
|
-
for (var field in self.sumsmodel) {
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
this.footer.push(footerData);
|
|
476
|
-
this.other.push(otherInData);
|
|
477
|
-
},
|
|
464
|
+
// this.other = [];
|
|
465
|
+
// this.footer = [];
|
|
466
|
+
// let exportdata = this.getCondition;
|
|
467
|
+
// let otherInData = [];
|
|
468
|
+
// otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
469
|
+
// let footerData = [], exportfield = this.getfield;
|
|
470
|
+
// footerData.push("合计");
|
|
471
|
+
// let self = this;
|
|
472
|
+
// for (var field in self.sumsmodel) {
|
|
473
|
+
// footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
474
|
+
// }
|
|
475
|
+
// this.footer.push(footerData);
|
|
476
|
+
// this.other.push(otherInData);
|
|
477
|
+
// },
|
|
478
478
|
async initParams() {
|
|
479
479
|
// 初始化气表品牌
|
|
480
480
|
let brandArr = []
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
}
|
|
495
495
|
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
496
496
|
this.model.search(args.condition, args.model)
|
|
497
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
497
|
+
// this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
498
498
|
},
|
|
499
499
|
clear() {
|
|
500
500
|
//清空部门和人员
|
|
@@ -571,12 +571,12 @@
|
|
|
571
571
|
'modelval.length'() {
|
|
572
572
|
this.put()
|
|
573
573
|
},
|
|
574
|
-
sumsmodel:{
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
574
|
+
// sumsmodel:{
|
|
575
|
+
// handler: function(val) {
|
|
576
|
+
// this.getotherfooter();
|
|
577
|
+
// },
|
|
578
|
+
// deep: true
|
|
579
|
+
// }
|
|
580
580
|
},
|
|
581
581
|
computed: {
|
|
582
582
|
// getstart(){
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div id="charts">
|
|
3
|
+
<div id="bm" :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 echarts from 'echarts'
|
|
11
|
+
import {HttpResetClass } from 'vue-client'
|
|
12
|
+
|
|
13
|
+
let getData = function * (self) {
|
|
14
|
+
let load = new HttpResetClass()
|
|
15
|
+
load.load('POST', 'rs/sql/userfilesvalues',
|
|
16
|
+
{data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
|
|
17
|
+
{resolveMsg: null, rejectMsg: null})
|
|
18
|
+
.then((res) => {
|
|
19
|
+
self.texttile = '用户类型'
|
|
20
|
+
// let arrparams = []
|
|
21
|
+
console.log('获取数据。。', res.data)
|
|
22
|
+
let org = []
|
|
23
|
+
//let name = []
|
|
24
|
+
let minyongvalue=[]
|
|
25
|
+
let feiminyongvalue=[]
|
|
26
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
27
|
+
if (!org.includes(res.data[i].org)) {
|
|
28
|
+
org.push(res.data[i].org)
|
|
29
|
+
}
|
|
30
|
+
if (res.data[i].name === '民用') {
|
|
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
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
self.set(org,minyongvalue,feiminyongvalue)
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
export default {
|
|
40
|
+
props: {
|
|
41
|
+
startdate: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: Util.toStandardDateString()
|
|
44
|
+
},
|
|
45
|
+
enddate: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: Util.toStandardDateString()
|
|
48
|
+
},
|
|
49
|
+
orgid: {
|
|
50
|
+
type: String
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data () {
|
|
54
|
+
title: '银行管理'
|
|
55
|
+
return {
|
|
56
|
+
texttile: '',
|
|
57
|
+
xc: '',
|
|
58
|
+
|
|
59
|
+
minyongvalue: [],
|
|
60
|
+
feiminyongvalue: []
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
set (org,minyongvalue,feiminyongvalue) {
|
|
65
|
+
this.xc = echarts.init(document.getElementById('bm'))
|
|
66
|
+
this.xc.setOption({
|
|
67
|
+
title : {
|
|
68
|
+
text: '新增汇总',
|
|
69
|
+
subtext: '数据查询来源',
|
|
70
|
+
x: 'left'
|
|
71
|
+
},
|
|
72
|
+
tooltip : {
|
|
73
|
+
trigger: 'axis'
|
|
74
|
+
},
|
|
75
|
+
legend: {
|
|
76
|
+
x: 'left',
|
|
77
|
+
y: 'bottom',
|
|
78
|
+
data: ['民用','非民用']
|
|
79
|
+
},
|
|
80
|
+
toolbox: {
|
|
81
|
+
show : true,
|
|
82
|
+
feature : {
|
|
83
|
+
dataView : {show: true, readOnly: false},
|
|
84
|
+
magicType : {show: true, type: ['line', 'bar']},
|
|
85
|
+
restore : {show: true},
|
|
86
|
+
saveAsImage : {show: true}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
calculable : true,
|
|
90
|
+
xAxis : [
|
|
91
|
+
{
|
|
92
|
+
type : 'category',
|
|
93
|
+
data : org
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
yAxis : [
|
|
97
|
+
{
|
|
98
|
+
type : 'value'
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
series : [
|
|
102
|
+
{
|
|
103
|
+
name:'民用',
|
|
104
|
+
type:'bar',
|
|
105
|
+
data:minyongvalue,
|
|
106
|
+
markLine : {
|
|
107
|
+
data : [
|
|
108
|
+
{type : 'average', name: '平均值'}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name:'非民用',
|
|
114
|
+
type:'bar',
|
|
115
|
+
data:feiminyongvalue,
|
|
116
|
+
markLine : {
|
|
117
|
+
data : [
|
|
118
|
+
{type : 'average', name : '平均值'}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
},
|
|
125
|
+
searchdata () {
|
|
126
|
+
let getGen =getData(this)
|
|
127
|
+
co(getGen)
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
ready () {
|
|
131
|
+
this.searchdata()
|
|
132
|
+
},
|
|
133
|
+
watch: {
|
|
134
|
+
'startdate' (val) {
|
|
135
|
+
this.searchdata()
|
|
136
|
+
},
|
|
137
|
+
'enddate' (val) {
|
|
138
|
+
this.searchdata()
|
|
139
|
+
},
|
|
140
|
+
'orgid' (val) {
|
|
141
|
+
this.searchdata()
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
146
|
+
</script>
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div id="charts">
|
|
3
|
+
<div id="gph" :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 echarts from 'echarts'
|
|
11
|
+
import {HttpResetClass } from 'vue-client'
|
|
12
|
+
|
|
13
|
+
let getData = function * (self) {
|
|
14
|
+
let load = new HttpResetClass()
|
|
15
|
+
load.load('POST','rs/sql/sellinggasvalue',
|
|
16
|
+
{data: {startDate: self.startdate, endDate: self.enddate,key: 'f_depname',f_orgid: self.orgid}},
|
|
17
|
+
{resolveMsg: null, rejectMsg: null})
|
|
18
|
+
.then((res) => {
|
|
19
|
+
self.texttile = '用户类型'
|
|
20
|
+
let arrparams = []
|
|
21
|
+
let numdata = []
|
|
22
|
+
let gasdata = []
|
|
23
|
+
let pricedata = []
|
|
24
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
25
|
+
arrparams[i] = res.data[i].name
|
|
26
|
+
numdata[i] = res.data[i].num_value
|
|
27
|
+
gasdata[i] = res.data[i].gas_value
|
|
28
|
+
pricedata[i] = res.data[i].money_value
|
|
29
|
+
}
|
|
30
|
+
self.set(arrparams,numdata,gasdata,pricedata)
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
export default {
|
|
34
|
+
props: {
|
|
35
|
+
startdate: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: Util.toStandardDateString()
|
|
38
|
+
},
|
|
39
|
+
enddate: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: Util.toStandardDateString()
|
|
42
|
+
},
|
|
43
|
+
orgid: {
|
|
44
|
+
type: String
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
48
|
+
title: '站点管理'
|
|
49
|
+
return {
|
|
50
|
+
texttile: '',
|
|
51
|
+
xc: ''
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
set (arrparams,numdata,gasdata,pricedata) {
|
|
56
|
+
this.xc = echarts.init(document.getElementById('gph'))
|
|
57
|
+
this.xc.setOption({
|
|
58
|
+
title : {
|
|
59
|
+
text: '营收汇总',
|
|
60
|
+
subtext: '数据查询来源',
|
|
61
|
+
x: 'left'
|
|
62
|
+
},
|
|
63
|
+
tooltip : {
|
|
64
|
+
trigger: 'axis'
|
|
65
|
+
},
|
|
66
|
+
legend: {
|
|
67
|
+
x: 'left',
|
|
68
|
+
y: 'bottom',
|
|
69
|
+
data: ['数量','气量','金额']
|
|
70
|
+
},
|
|
71
|
+
toolbox: {
|
|
72
|
+
show : true,
|
|
73
|
+
feature : {
|
|
74
|
+
dataView : {show: true, readOnly: false},
|
|
75
|
+
magicType : {show: true, type: ['line', 'bar']},
|
|
76
|
+
restore : {show: true},
|
|
77
|
+
saveAsImage : {show: true}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
calculable : true,
|
|
81
|
+
xAxis : [
|
|
82
|
+
{
|
|
83
|
+
type : 'category',
|
|
84
|
+
data : arrparams
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
yAxis : [
|
|
88
|
+
{
|
|
89
|
+
type : 'value'
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
series : [
|
|
93
|
+
{
|
|
94
|
+
name:'数量',
|
|
95
|
+
type:'bar',
|
|
96
|
+
data:numdata,
|
|
97
|
+
markLine : {
|
|
98
|
+
data : [
|
|
99
|
+
{type : 'average', name: '平均值'}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name:'气量',
|
|
105
|
+
type:'bar',
|
|
106
|
+
data:gasdata,
|
|
107
|
+
markLine : {
|
|
108
|
+
data : [
|
|
109
|
+
{type : 'average', name: '平均值'}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name:'金额',
|
|
115
|
+
type:'bar',
|
|
116
|
+
data:pricedata,
|
|
117
|
+
markLine : {
|
|
118
|
+
data : [
|
|
119
|
+
{type : 'average', name : '平均值'}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
})
|
|
125
|
+
},
|
|
126
|
+
searchdata () {
|
|
127
|
+
let getGen =getData(this)
|
|
128
|
+
co(getGen)
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
ready () {
|
|
132
|
+
this.searchdata()
|
|
133
|
+
},
|
|
134
|
+
watch: {
|
|
135
|
+
'startdate' (val) {
|
|
136
|
+
this.searchdata()
|
|
137
|
+
},
|
|
138
|
+
'enddate' (val) {
|
|
139
|
+
this.searchdata()
|
|
140
|
+
},
|
|
141
|
+
'orgid' (val) {
|
|
142
|
+
this.searchdata()
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
</script>
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<div id="charts">
|
|
3
|
+
<div id="sm" :style="{width:'100%',height:'98%'}"></div>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
/* eslint-disable indent,key-spacing,no-labels */
|
|
9
|
+
|
|
10
|
+
import * as Util from '../../../../Util'
|
|
11
|
+
import co from 'co'
|
|
12
|
+
import echarts from 'echarts'
|
|
13
|
+
import {HttpResetClass } from 'vue-client'
|
|
14
|
+
|
|
15
|
+
let getData = function * (self) {
|
|
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++) {
|
|
26
|
+
arrparams[i] = res.data[i].name
|
|
27
|
+
numdata[i] = res.data[i].num
|
|
28
|
+
pricedata[i] = res.data[i].money
|
|
29
|
+
}
|
|
30
|
+
self.set(arrparams,numdata,pricedata)
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
export default {
|
|
34
|
+
props: {
|
|
35
|
+
startdate: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: Util.toStandardDateString()
|
|
38
|
+
},
|
|
39
|
+
enddate: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: Util.toStandardDateString()
|
|
42
|
+
},
|
|
43
|
+
orgid: {
|
|
44
|
+
type: String
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
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
|
+
title : {
|
|
59
|
+
text: '非气体营收汇总',
|
|
60
|
+
subtext: '数据查询来源',
|
|
61
|
+
x: 'left'
|
|
62
|
+
},
|
|
63
|
+
tooltip:{
|
|
64
|
+
trigger:'axis'
|
|
65
|
+
},
|
|
66
|
+
legend: {
|
|
67
|
+
x: 'left',
|
|
68
|
+
y: 'bottom',
|
|
69
|
+
data: ['数量','金额']
|
|
70
|
+
},
|
|
71
|
+
toolbox: {
|
|
72
|
+
show : true,
|
|
73
|
+
feature : {
|
|
74
|
+
dataView : {show: true, readOnly: false},
|
|
75
|
+
magicType : {show: true, type: ['line', 'bar']},
|
|
76
|
+
restore : {show: true},
|
|
77
|
+
saveAsImage : {show: true}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
calculable : true,
|
|
81
|
+
xAxis : [
|
|
82
|
+
{
|
|
83
|
+
type : 'category',
|
|
84
|
+
data : arrparams
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
yAxis : [
|
|
88
|
+
{
|
|
89
|
+
type : 'value'
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
series : [
|
|
93
|
+
{
|
|
94
|
+
name:'数量',
|
|
95
|
+
type:'bar',
|
|
96
|
+
data:numdata,
|
|
97
|
+
markLine : {
|
|
98
|
+
data : [
|
|
99
|
+
{type : 'average', name: '平均值'}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name:'金额',
|
|
105
|
+
type:'bar',
|
|
106
|
+
data:pricedata,
|
|
107
|
+
markLine : {
|
|
108
|
+
data : [
|
|
109
|
+
{type : 'average', name : '平均值'}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
searchdata () {
|
|
117
|
+
let getGen = getData(this)
|
|
118
|
+
co(getGen)
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
ready () {
|
|
122
|
+
this.searchdata()
|
|
123
|
+
},
|
|
124
|
+
watch: {
|
|
125
|
+
'startdate' (val) {
|
|
126
|
+
this.searchdata()
|
|
127
|
+
},
|
|
128
|
+
'enddate' (val) {
|
|
129
|
+
this.searchdata()
|
|
130
|
+
},
|
|
131
|
+
'orgid' (val) {
|
|
132
|
+
this.searchdata()
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
}
|
|
137
|
+
</script>
|