manage-client 3.2.4 → 3.2.8

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.
Files changed (91) hide show
  1. package/build/dev-server.js +5 -3
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/AmountGas.vue +3 -3
  5. package/src/components/SellReport/BonSummary.vue +3 -3
  6. package/src/components/SellReport/BusinessMoneyReport.vue +1 -1
  7. package/src/components/SellReport/BusinessReport.vue +3 -3
  8. package/src/components/SellReport/ChSellReport.vue +3 -3
  9. package/src/components/SellReport/ChargeBill.vue +3 -3
  10. package/src/components/SellReport/ChargeDayTable.vue +3 -3
  11. package/src/components/SellReport/ChargeMonthTable.vue +3 -3
  12. package/src/components/SellReport/ChargeYearTable.vue +3 -3
  13. package/src/components/SellReport/DeptHomePage.vue +2 -2
  14. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  15. package/src/components/SellReport/GasMeterBrand.vue +1 -1
  16. package/src/components/SellReport/GasPriceGroup.vue +1 -1
  17. package/src/components/SellReport/GasSummary.vue +3 -3
  18. package/src/components/SellReport/Gasc.vue +3 -3
  19. package/src/components/SellReport/GetUserNum.vue +3 -3
  20. package/src/components/SellReport/HandplanBili.vue +3 -3
  21. package/src/components/SellReport/HandplanUserCount.vue +1 -1
  22. package/src/components/SellReport/ManageGasPrice.vue +3 -3
  23. package/src/components/SellReport/ManageGasSumChange.vue +3 -3
  24. package/src/components/SellReport/ManageGasSumChangeTwo.vue +2 -2
  25. package/src/components/SellReport/ManageGasSumOtherCharge.vue +3 -3
  26. package/src/components/SellReport/MeterPrice.vue +3 -3
  27. package/src/components/SellReport/MeterReader.vue +2 -2
  28. package/src/components/SellReport/NonResidentGas.vue +3 -3
  29. package/src/components/SellReport/OperatorSellReport.vue +1 -1
  30. package/src/components/SellReport/OutletTable.vue +3 -3
  31. package/src/components/SellReport/PaymentDistribute.vue +1 -1
  32. package/src/components/SellReport/PaymentMethod.vue +1 -1
  33. package/src/components/SellReport/QTXManageBusSummary.vue +3 -3
  34. package/src/components/SellReport/SellDepReport.vue +3 -3
  35. package/src/components/SellReport/SellingTable.vue +220 -220
  36. package/src/components/SellReport/UserGasFillCard.vue +2 -2
  37. package/src/components/SellReport/UserSellingGas.vue +3 -3
  38. package/src/components/SellReport/WeiNanYuShou.vue +4 -4
  39. package/src/components/SellReport/YuShouTable.vue +1 -1
  40. package/src/components/SellReport/chargeSchedule.vue +2 -2
  41. package/src/components/SellReport/pengan/ManageBusPeng.vue +3 -3
  42. package/src/components/SellReport/userholds.vue +3 -3
  43. package/src/components/daping/GMap.vue +636 -636
  44. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  45. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  46. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  47. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  48. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  49. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  50. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  51. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  52. package/src/components/sale/config/exportConfig.js +885 -885
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  54. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +6 -7
  56. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  57. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  58. package/src/components/webmeter/instruction/NewQueryInstruct.vue +9 -11
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  60. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  62. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  63. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  64. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  66. package/src/components/webmeter/report/ReportList.vue +14 -13
  67. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  68. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  69. package/src/filiale/WEINAN/config/tableConfig.js +2 -0
  70. package/src/filiale/WEINAN/reportManage.js +12 -12
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  73. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  74. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  75. package/src/filiale/meihekou/sale.js +26 -26
  76. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  77. package/src/filiale/rongchuang/reportManage.js +11 -11
  78. package/src/filiale/shaoguan/RecordInfoQuery.vue +87 -79
  79. package/src/filiale/tongchuan/CriteriaPaged.vue +49 -0
  80. package/src/filiale/tongchuan/ReportList.vue +472 -472
  81. package/src/filiale/tongchuan/config/exportConfig.js +1 -1
  82. package/src/filiale/tongchuan/sale.js +4 -1
  83. package/src/main.js +66 -66
  84. package/static/wuhai.json +1610 -1610
  85. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  86. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  87. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  88. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  89. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  90. package/.gradle/5.2.1/gc.properties +0 -0
  91. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
@@ -41,6 +41,18 @@
41
41
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
42
42
  condition="ui.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
43
43
  </div>
44
+
45
+ <div class="span" style="float:right;margin-top:10px">
46
+ <button class="button_search button_spacing" @click="search()">查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
48
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
49
+ :field="$parent.$parent.getfield"
50
+ sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
51
+ :choose-col="true"></export-excel>
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-show="$parent.$parent.criteriaShow">
44
56
  <div class="col-sm-2">
45
57
  <label class="font_normal_body">客户地址</label>
46
58
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
@@ -77,18 +89,7 @@
77
89
  close-on-select></v-select>
78
90
  </div>
79
91
 
80
- <div class="span" style="float:right;margin-top:10px">
81
- <button class="button_search button_spacing" @click="search()">查询</button>
82
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
83
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
84
- :field="$parent.$parent.getfield"
85
- sqlurl="rs/logic/exportfile" sql-name="manage_getReportList" template-name='上报查询'
86
- :choose-col="true"></export-excel>
87
- <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>
88
- </div>
89
- </div>
90
- <div class="row" v-show="$parent.$parent.criteriaShow">
91
- <div class="col-sm-2 " >
92
+ <div class="col-sm-2 form-group" >
92
93
  <label class="font_normal_body" >开始时间</label>
93
94
  <datepicker style="width: 60%" placeholder="大于等于"
94
95
  :value.sync="model.f_start_date"
@@ -97,7 +98,7 @@
97
98
  condition="m.f_hand_date >= '{}'"
98
99
  ></datepicker>
99
100
  </div>
100
- <div class="col-sm-2 " >
101
+ <div class="col-sm-2 form-group" >
101
102
  <label class="font_normal_body">结束时间</label>
102
103
  <datepicker style="width: 60%" placeholder="小于等于"
103
104
  :value.sync="model.f_end_date"
@@ -1,110 +1,110 @@
1
- <template lang="html">
2
- <div :class="classname" v-if="jurisdiction.includes('首页')" :style="{width:width,height:height}">
3
- <div class="form-horizontal select-overspread container-fluid auto">
4
- <div class="row">
5
- <div class="col-sm-3 form-group">
6
- <label class="font_normal_body" for="startDate">开始日期:</label>
7
- <datepicker id="startDate" placeholder="开始日期"
8
- style="width:60%"
9
- v-model="model.startDate"
10
- :value.sync="model.startDate"
11
- :disabled-days-of-Week="[]"
12
- class="datepicker"
13
- :format="'yyyy-MM-dd'"
14
- :show-reset-button="reset">
15
- </datepicker>
16
- </div>
17
- <div class="col-sm-3 form-group">
18
- <label class="font_normal_body" for="endDate">结束日期:</label>
19
- <datepicker id="endDate" placeholder="结束日期"
20
- style="width:60%"
21
- class="datepicker"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-3 form-group">
30
- <label class="font_normal_body" for="endDate">使用公司:</label>
31
- <res-select restype='organization'
32
- @res-select="getRes"
33
- :initresid="model.id">
34
- </res-select>
35
- </div>
36
- </div>
37
- </div>
38
- <div style="height: 97%;">
39
- <div class="flex-row" style="flex: 1;border-bottom: 1px dashed #888;height: 48%">
40
- <div style="flex: 1;border-right: 1px dashed #888;width: 50%">
41
- <site-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
42
- v-ref:pay></site-manager>
43
- </div>
44
- <div style="flex: 1;width: 50%">
45
- <bank-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
46
- v-ref:pay></bank-manager>
47
- </div>
48
- </div>
49
- <div class="flex-row" style="flex: 1;height: 48%">
50
-
51
- <div class="flex-row" style="flex: 1;width: 50%;border-right: 1px dashed #888;">
52
- <div style="flex: 1;">
53
- <paymentpie :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></paymentpie>
54
- </div>
55
- <!-- <div style="flex: 1;">-->
56
- <!-- <usertype-pie :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></usertype-pie>-->
57
- <!-- </div>-->
58
- </div>
59
-
60
- <div style="flex: 1;width: 50%">
61
- <bussiness-type :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></bussiness-type>
62
- </div>
63
- </div>
64
- </div>
65
- </div>
66
-
67
- </template>
68
-
69
- <script>
70
- import * as Util from '../../Util'
71
-
72
- export default {
73
- props: {
74
- classname: {
75
- type: String,
76
- default: 'basic-main'
77
- },
78
- width: {
79
- type: String,
80
- default: '98.5%'
81
- },
82
- height: {
83
- type: String,
84
- default: '98%'
85
- }
86
- },
87
- data() {
88
- return {
89
- jurisdiction: this.$login.r,
90
- model: {
91
- id: [this.$login.f.orgid],
92
- orgid: [this.$login.f.orgid],
93
- startDate: Util.toStandardDateString(),
94
- endDate: Util.toStandardDateString()
95
- }
96
- }
97
- },
98
- methods: {
99
- searchdata() {
100
- this.$refs.pay.searchdata()
101
- },
102
- getRes(obj) {
103
- this.model.orgid = obj
104
- },
105
- }
106
- }
107
- </script>
108
-
109
- <style lang="css">
110
- </style>
1
+ <template lang="html">
2
+ <div :class="classname" v-if="jurisdiction.includes('首页')" :style="{width:width,height:height}">
3
+ <div class="form-horizontal select-overspread container-fluid auto">
4
+ <div class="row">
5
+ <div class="col-sm-3 form-group">
6
+ <label class="font_normal_body" for="startDate">开始日期:</label>
7
+ <datepicker id="startDate" placeholder="开始日期"
8
+ style="width:60%"
9
+ v-model="model.startDate"
10
+ :value.sync="model.startDate"
11
+ :disabled-days-of-Week="[]"
12
+ class="datepicker"
13
+ :format="'yyyy-MM-dd'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-3 form-group">
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期"
20
+ style="width:60%"
21
+ class="datepicker"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3 form-group">
30
+ <label class="font_normal_body" for="endDate">使用公司:</label>
31
+ <res-select restype='organization'
32
+ @res-select="getRes"
33
+ :initresid="model.id">
34
+ </res-select>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <div style="height: 97%;">
39
+ <div class="flex-row" style="flex: 1;border-bottom: 1px dashed #888;height: 48%">
40
+ <div style="flex: 1;border-right: 1px dashed #888;width: 50%">
41
+ <site-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
42
+ v-ref:pay></site-manager>
43
+ </div>
44
+ <div style="flex: 1;width: 50%">
45
+ <bank-manager :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]'
46
+ v-ref:pay></bank-manager>
47
+ </div>
48
+ </div>
49
+ <div class="flex-row" style="flex: 1;height: 48%">
50
+
51
+ <div class="flex-row" style="flex: 1;width: 50%;border-right: 1px dashed #888;">
52
+ <div style="flex: 1;">
53
+ <paymentpie :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></paymentpie>
54
+ </div>
55
+ <!-- <div style="flex: 1;">-->
56
+ <!-- <usertype-pie :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></usertype-pie>-->
57
+ <!-- </div>-->
58
+ </div>
59
+
60
+ <div style="flex: 1;width: 50%">
61
+ <bussiness-type :startdate='model.startDate' :enddate='model.endDate' :orgid='model.orgid[0]' v-ref:pay ></bussiness-type>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+
67
+ </template>
68
+
69
+ <script>
70
+ import * as Util from '../../Util'
71
+
72
+ export default {
73
+ props: {
74
+ classname: {
75
+ type: String,
76
+ default: 'basic-main'
77
+ },
78
+ width: {
79
+ type: String,
80
+ default: '98.5%'
81
+ },
82
+ height: {
83
+ type: String,
84
+ default: '98%'
85
+ }
86
+ },
87
+ data() {
88
+ return {
89
+ jurisdiction: this.$login.r,
90
+ model: {
91
+ id: [this.$login.f.orgid],
92
+ orgid: [this.$login.f.orgid],
93
+ startDate: Util.toStandardDateString(),
94
+ endDate: Util.toStandardDateString()
95
+ }
96
+ }
97
+ },
98
+ methods: {
99
+ searchdata() {
100
+ this.$refs.pay.searchdata()
101
+ },
102
+ getRes(obj) {
103
+ this.model.orgid = obj
104
+ },
105
+ }
106
+ }
107
+ </script>
108
+
109
+ <style lang="css">
110
+ </style>
@@ -1,191 +1,191 @@
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/getPregas',
16
- {data: {startDate: self.startdate + ' 00:00:00', endDate: self.enddate + ' 23:59:59',f_orgid: `f_orgid = ${self.orgid}`}},
17
- {resolveMsg: null, rejectMsg: null})
18
- .then((res) => {
19
- let data = res.data
20
- // let xPro = Array.from(new Set(res.data.map(x => x.f_gasproperties)))
21
- // 表型
22
- let xPro = data.map(x => x.f_meter_type)
23
- // 居民用气
24
- let yNumJM = data.map(x => x.f_ptpregas)
25
- let yNumBGL = data.map(x => x.f_bglpregas)
26
- let yNumJZCN = data.map(x => x.f_cnpregas)
27
- let yNumGF = data.map(x => x.f_gfpregas)
28
- let yNumFJM = data.map(x => x.f_fjmpregas)
29
- // xPro.forEach(item => {
30
- // yNumJB[yNumJB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '机表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
31
- // yNumKB[yNumKB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '卡表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
32
- // yNumWLWB[yNumWLWB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '物联网表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
33
- // })
34
- console.log('表型', xPro)
35
- console.log('居民用气', yNumJM)
36
- console.log('壁挂炉用气', yNumBGL)
37
- console.log('集中采暖', yNumJZCN)
38
- console.log('公福用气', yNumGF)
39
- console.log('非居民用气', yNumFJM)
40
- // self.texttile = '用户类型'
41
- // let arrparams = []
42
- // let numdata = []
43
- // let gasdata = []
44
- // let pricedata = []
45
- // for (var i = 0; i < res.data.length; i++) {
46
- // arrparams[i] = res.data[i].name
47
- // numdata[i] = res.data[i].num_value
48
- // gasdata[i] = res.data[i].gas_value
49
- // pricedata[i] = res.data[i].money_value
50
- // }
51
- self.set(xPro,yNumJM,yNumBGL,yNumJZCN,yNumGF,yNumFJM)
52
- })
53
- }
54
- export default {
55
- props: {
56
- startdate: {
57
- type: String,
58
- default: Util.toStandardDateString()
59
- },
60
- enddate: {
61
- type: String,
62
- default: Util.toStandardDateString()
63
- },
64
- orgid: {
65
- type: String
66
- }
67
- },
68
- data () {
69
- title: '用户购(用)气'
70
- return {
71
- texttile: '',
72
- xc: ''
73
- }
74
- },
75
- methods: {
76
- set (arrparams,yNumJM,yNumBGL,yNumJZCN,yNumGF,yNumFJM) {
77
- this.xc = echarts.init(document.getElementById('gph'))
78
- this.xc.setOption({
79
- title : {
80
- text: '用户购(用)气',
81
- subtext: '数据查询来源',
82
- x: 'left'
83
- },
84
- tooltip : {
85
- trigger: 'axis'
86
- },
87
- legend: {
88
- x: 'left',
89
- y: 'bottom',
90
- data: ['居民用气','壁挂炉用气','集中采暖','公福用气','非居民用气']
91
- },
92
- toolbox: {
93
- show : true,
94
- feature : {
95
- dataView : {show: true, readOnly: false},
96
- magicType : {show: true, type: ['line', 'bar']},
97
- restore : {show: true},
98
- saveAsImage : {show: true}
99
- }
100
- },
101
- calculable : true,
102
- xAxis : [
103
- {
104
- type : 'category',
105
- axisLabel :{
106
- interval:0
107
- },
108
- data : arrparams
109
- }
110
- ],
111
- yAxis : [
112
- {
113
- type : 'value'
114
- }
115
- ],
116
- series : [
117
- {
118
- name:'居民用气',
119
- type:'bar',
120
- data:yNumJM,
121
- markLine : {
122
- data : [
123
- {type : 'average', name: '平均值'}
124
- ]
125
- }
126
- },
127
- {
128
- name:'壁挂炉用气',
129
- type:'bar',
130
- data:yNumBGL,
131
- markLine : {
132
- data : [
133
- {type : 'average', name: '平均值'}
134
- ]
135
- }
136
- },
137
- {
138
- name:'集中采暖',
139
- type:'bar',
140
- data:yNumJZCN,
141
- markLine : {
142
- data : [
143
- {type : 'average', name : '平均值'}
144
- ]
145
- }
146
- },
147
- {
148
- name:'公福用气',
149
- type:'bar',
150
- data:yNumGF,
151
- markLine : {
152
- data : [
153
- {type : 'average', name : '平均值'}
154
- ]
155
- }
156
- },
157
- {
158
- name:'非居民用气',
159
- type:'bar',
160
- data:yNumFJM,
161
- markLine : {
162
- data : [
163
- {type : 'average', name : '平均值'}
164
- ]
165
- }
166
- }
167
- ]
168
- })
169
- },
170
- searchdata () {
171
- let getGen =getData(this)
172
- co(getGen)
173
- }
174
- },
175
- ready () {
176
- this.searchdata()
177
- },
178
- watch: {
179
- 'startdate' (val) {
180
- this.searchdata()
181
- },
182
- 'enddate' (val) {
183
- this.searchdata()
184
- },
185
- 'orgid' (val) {
186
- this.searchdata()
187
- }
188
- }
189
-
190
- }
191
- </script>
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/getPregas',
16
+ {data: {startDate: self.startdate + ' 00:00:00', endDate: self.enddate + ' 23:59:59',f_orgid: `f_orgid = ${self.orgid}`}},
17
+ {resolveMsg: null, rejectMsg: null})
18
+ .then((res) => {
19
+ let data = res.data
20
+ // let xPro = Array.from(new Set(res.data.map(x => x.f_gasproperties)))
21
+ // 表型
22
+ let xPro = data.map(x => x.f_meter_type)
23
+ // 居民用气
24
+ let yNumJM = data.map(x => x.f_ptpregas)
25
+ let yNumBGL = data.map(x => x.f_bglpregas)
26
+ let yNumJZCN = data.map(x => x.f_cnpregas)
27
+ let yNumGF = data.map(x => x.f_gfpregas)
28
+ let yNumFJM = data.map(x => x.f_fjmpregas)
29
+ // xPro.forEach(item => {
30
+ // yNumJB[yNumJB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '机表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
31
+ // yNumKB[yNumKB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '卡表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
32
+ // yNumWLWB[yNumWLWB.length] = data.filter(x => x.f_gasproperties === item && x.f_meter_type === '物联网表').map(x => x.f_pregas).reduce((x, y) => x + y, 0)
33
+ // })
34
+ console.log('表型', xPro)
35
+ console.log('居民用气', yNumJM)
36
+ console.log('壁挂炉用气', yNumBGL)
37
+ console.log('集中采暖', yNumJZCN)
38
+ console.log('公福用气', yNumGF)
39
+ console.log('非居民用气', yNumFJM)
40
+ // self.texttile = '用户类型'
41
+ // let arrparams = []
42
+ // let numdata = []
43
+ // let gasdata = []
44
+ // let pricedata = []
45
+ // for (var i = 0; i < res.data.length; i++) {
46
+ // arrparams[i] = res.data[i].name
47
+ // numdata[i] = res.data[i].num_value
48
+ // gasdata[i] = res.data[i].gas_value
49
+ // pricedata[i] = res.data[i].money_value
50
+ // }
51
+ self.set(xPro,yNumJM,yNumBGL,yNumJZCN,yNumGF,yNumFJM)
52
+ })
53
+ }
54
+ export default {
55
+ props: {
56
+ startdate: {
57
+ type: String,
58
+ default: Util.toStandardDateString()
59
+ },
60
+ enddate: {
61
+ type: String,
62
+ default: Util.toStandardDateString()
63
+ },
64
+ orgid: {
65
+ type: String
66
+ }
67
+ },
68
+ data () {
69
+ title: '用户购(用)气'
70
+ return {
71
+ texttile: '',
72
+ xc: ''
73
+ }
74
+ },
75
+ methods: {
76
+ set (arrparams,yNumJM,yNumBGL,yNumJZCN,yNumGF,yNumFJM) {
77
+ this.xc = echarts.init(document.getElementById('gph'))
78
+ this.xc.setOption({
79
+ title : {
80
+ text: '用户购(用)气',
81
+ subtext: '数据查询来源',
82
+ x: 'left'
83
+ },
84
+ tooltip : {
85
+ trigger: 'axis'
86
+ },
87
+ legend: {
88
+ x: 'left',
89
+ y: 'bottom',
90
+ data: ['居民用气','壁挂炉用气','集中采暖','公福用气','非居民用气']
91
+ },
92
+ toolbox: {
93
+ show : true,
94
+ feature : {
95
+ dataView : {show: true, readOnly: false},
96
+ magicType : {show: true, type: ['line', 'bar']},
97
+ restore : {show: true},
98
+ saveAsImage : {show: true}
99
+ }
100
+ },
101
+ calculable : true,
102
+ xAxis : [
103
+ {
104
+ type : 'category',
105
+ axisLabel :{
106
+ interval:0
107
+ },
108
+ data : arrparams
109
+ }
110
+ ],
111
+ yAxis : [
112
+ {
113
+ type : 'value'
114
+ }
115
+ ],
116
+ series : [
117
+ {
118
+ name:'居民用气',
119
+ type:'bar',
120
+ data:yNumJM,
121
+ markLine : {
122
+ data : [
123
+ {type : 'average', name: '平均值'}
124
+ ]
125
+ }
126
+ },
127
+ {
128
+ name:'壁挂炉用气',
129
+ type:'bar',
130
+ data:yNumBGL,
131
+ markLine : {
132
+ data : [
133
+ {type : 'average', name: '平均值'}
134
+ ]
135
+ }
136
+ },
137
+ {
138
+ name:'集中采暖',
139
+ type:'bar',
140
+ data:yNumJZCN,
141
+ markLine : {
142
+ data : [
143
+ {type : 'average', name : '平均值'}
144
+ ]
145
+ }
146
+ },
147
+ {
148
+ name:'公福用气',
149
+ type:'bar',
150
+ data:yNumGF,
151
+ markLine : {
152
+ data : [
153
+ {type : 'average', name : '平均值'}
154
+ ]
155
+ }
156
+ },
157
+ {
158
+ name:'非居民用气',
159
+ type:'bar',
160
+ data:yNumFJM,
161
+ markLine : {
162
+ data : [
163
+ {type : 'average', name : '平均值'}
164
+ ]
165
+ }
166
+ }
167
+ ]
168
+ })
169
+ },
170
+ searchdata () {
171
+ let getGen =getData(this)
172
+ co(getGen)
173
+ }
174
+ },
175
+ ready () {
176
+ this.searchdata()
177
+ },
178
+ watch: {
179
+ 'startdate' (val) {
180
+ this.searchdata()
181
+ },
182
+ 'enddate' (val) {
183
+ this.searchdata()
184
+ },
185
+ 'orgid' (val) {
186
+ this.searchdata()
187
+ }
188
+ }
189
+
190
+ }
191
+ </script>
@@ -8,7 +8,9 @@ export default{
8
8
  "气表编号":"f_meternumber",
9
9
  "上次抄表底数":"f_last_tablebase",
10
10
  "本次抄表底数":"f_tablebase",
11
+ "单价":"f_price",
11
12
  "用气量":"f_oughtamount",
13
+ "用气金额":"f_oughtfee",
12
14
  "表内剩余余额":"f_jval",
13
15
  "抄表日期":"f_insert_date",
14
16
  "上次抄表日期":"f_last_insertdate",