manage-client 3.1.39 → 3.1.43

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 (98) hide show
  1. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  2. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  3. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  4. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  5. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  6. package/.gradle/5.2.1/gc.properties +0 -0
  7. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  8. package/build/dev-server.js +174 -181
  9. package/package.json +1 -1
  10. package/src/App.vue +28 -29
  11. package/src/components/BasisEcharts/BarChart.vue +247 -247
  12. package/src/components/BasisEcharts/RingChart.vue +196 -196
  13. package/src/components/SellReport/BusinessClassify.vue +317 -293
  14. package/src/components/SellReport/ChargePrick.vue +284 -284
  15. package/src/components/SellReport/DepartmentPrick.vue +288 -288
  16. package/src/components/SellReport/FinanceSellType.vue +254 -254
  17. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  18. package/src/components/SellReport/GasPrice.vue +244 -244
  19. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  20. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  21. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  22. package/src/components/SellReport/ManageSellType.vue +284 -284
  23. package/src/components/SellReport/ManageUserCount.vue +347 -347
  24. package/src/components/SellReport/MarketMonth.vue +297 -251
  25. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  26. package/src/components/SellReport/SellingTable.vue +220 -220
  27. package/src/components/SellReport/UserClassify.vue +271 -251
  28. package/src/components/SellReport/UserSellingGas.vue +251 -251
  29. package/src/components/daping/CallCenter.vue +366 -366
  30. package/src/components/daping/DataManagement.vue +537 -537
  31. package/src/components/daping/GMap.vue +636 -636
  32. package/src/components/daping/ManageMain.vue +270 -270
  33. package/src/components/daping/NetWork.vue +238 -238
  34. package/src/components/daping/RedactDaPing.vue +468 -468
  35. package/src/components/daping/Ring.vue +212 -212
  36. package/src/components/daping/SafeCheck.vue +446 -446
  37. package/src/components/daping/SafeCheckRing.vue +166 -166
  38. package/src/components/daping/SafecheckBarChart.vue +233 -233
  39. package/src/components/daping/WuHaiMap.vue +418 -418
  40. package/src/components/qinhua/BarChart.vue +256 -256
  41. package/src/components/qinhua/Pie.vue +132 -132
  42. package/src/components/qinhua/SellEcharts.vue +115 -115
  43. package/src/components/qinhua/qinHuaMap.vue +414 -414
  44. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  45. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  46. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  47. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  48. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  49. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  50. package/src/components/sale/filesquery/DeviceQuery.vue +45 -11
  51. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  52. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  53. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  54. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -597
  55. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  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/newwebmeter/NewException/NewContactEcharts.vue +171 -170
  59. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  60. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +275 -903
  61. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  62. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +213 -238
  63. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +240 -266
  64. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  65. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -218
  66. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  67. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +2 -46
  68. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  69. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  70. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  71. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  72. package/src/filiale/alashan/SellingTable.vue +234 -234
  73. package/src/filiale/alashan/reportManage.js +10 -10
  74. package/src/filiale/jingwei/RecordInfoQuery.vue +14 -14
  75. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  76. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  77. package/src/filiale/liaoyuan/ChargeQuery.vue +6 -0
  78. package/src/filiale/liaoyuan/exportConfig.js +1 -1
  79. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  80. package/src/filiale/meihekou/sale.js +26 -26
  81. package/src/filiale/rongcheng/exportConfig.js +257 -257
  82. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  83. package/src/filiale/rongchuang/reportManage.js +11 -11
  84. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  85. package/src/filiale/shaoguan/sale/businessquery/oldList.vue +41 -0
  86. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +290 -0
  87. package/src/filiale/shaoguan/sale.js +3 -1
  88. package/src/filiale/tongchuan/ManageBusSummary.vue +302 -301
  89. package/src/filiale/tongchuan/ReportList.vue +456 -0
  90. package/src/filiale/tongchuan/ResSelectGroupNew.vue +7 -2
  91. package/src/filiale/tongchuan/reportManage.js +6 -5
  92. package/src/main.js +66 -66
  93. package/src/newmanage.js +525 -525
  94. package/src/reportManage.js +462 -462
  95. package/src/saleManage.js +2 -3
  96. package/static/wuhai.json +1610 -1610
  97. package/src/components/SellReport/SellCollect.vue +0 -183
  98. package/src/components/sale/businessquery/NewHandplanQuery.vue +0 -995
@@ -33,7 +33,7 @@
33
33
  v-if="$parent.$parent.authArr.includes('档案查询导出')"
34
34
  sqlurl="rs/logic/exportfile" sql-name="deviceQuery" template-name='表具设备查询导出' :choose-col="true"></export-excel>
35
35
  <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
36
- :defaultfield="$parent.$parent.defaultfield"
36
+ :defaultfield="$parent.$parent.defaultfield"
37
37
  titletable="表具设备查询"
38
38
  :sumsmodel="$parent.$parent.sumsmodel"></print-data>
39
39
  <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,6 +53,13 @@
53
53
  condition="f_user_state = '{}'"
54
54
  close-on-select></v-select>
55
55
  </div>
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">客户类型</label>
58
+ <v-select :value.sync="model.f_user_type"
59
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
56
63
  <div class="col-sm-2 form-group" >
57
64
  <label class="font_normal_body">所属表&nbsp;&nbsp;&nbsp;</label>
58
65
  <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
@@ -126,21 +133,21 @@
126
133
  <div class="col-sm-2 form-group" >
127
134
  <label class="font_normal_body" >到期日期</label>
128
135
  <datepicker placeholder="到期日期大于" style="width:60%"
129
- v-model="model.f_expire_start_date"
130
- :value.sync="model.f_expire_start_date"
131
- :format="'yyyy-MM-dd'"
132
- :show-reset-button="true"
133
- condition="f_expire_date >= '{} 00:00:00'">
136
+ v-model="model.f_expire_start_date"
137
+ :value.sync="model.f_expire_start_date"
138
+ :format="'yyyy-MM-dd'"
139
+ :show-reset-button="true"
140
+ condition="f_expire_date >= '{} 00:00:00'">
134
141
  </datepicker>
135
142
  </div>
136
143
  <div class="col-sm-2 form-group" >
137
144
  <label class="font_normal_body">到期日期</label>
138
145
  <datepicker placeholder="到期日期小于" style="width:60%"
139
- v-model="model.f_expire_end_date"
140
- :value.sync="model.f_expire_end_date"
141
- :format="'yyyy-MM-dd'"
142
- :show-reset-button="true"
143
- condition="f_expire_date <= '{} 23:59:59'">
146
+ v-model="model.f_expire_end_date"
147
+ :value.sync="model.f_expire_end_date"
148
+ :format="'yyyy-MM-dd'"
149
+ :show-reset-button="true"
150
+ condition="f_expire_date <= '{} 23:59:59'">
144
151
  </datepicker>
145
152
  </div>
146
153
  <div class="col-sm-2 form-group" >
@@ -193,6 +200,15 @@
193
200
  <input type="text" style="width:60%" class="input_search" v-model="model.f_comments"
194
201
  condition="f_comments like '%{}%'" placeholder='备注'>
195
202
  </div>
203
+ <div class="col-sm-2 form-group">
204
+ <label class="font_normal_body" >抄表员&emsp;</label>
205
+ <v-select :value.sync="model.f_inputtor"
206
+ v-model="model.f_inputtor"
207
+ :options='$parent.$parent.inputtores' placeholder='请选择'
208
+ condition="f_inputtor = '{}'"
209
+ close-on-select :search="false">
210
+ </v-select>
211
+ </div>
196
212
  <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
197
213
  </div>
198
214
  </div>
@@ -304,6 +320,8 @@
304
320
 
305
321
  let readySomething = async function (self) {
306
322
  self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
323
+ self.$MagGetSaleParam.initinputtor();
324
+ self.getinputtores();
307
325
  // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
308
326
  // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
309
327
  // await self.$refs.paged.$refs.cri.search()
@@ -330,6 +348,8 @@
330
348
  show:false,
331
349
  rowdata:{},
332
350
  // 下拉框参数
351
+ inputtores:[],
352
+ usertypes:this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
333
353
  userstates:this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
334
354
  deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
335
355
  // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
@@ -352,6 +372,20 @@
352
372
  })
353
373
  },
354
374
  methods: {
375
+ async getinputtores () {
376
+ // 获取抄表员
377
+ let rs = []
378
+ if (this.$login.f.f_gasman.length > 0) {
379
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
380
+ let temp = {
381
+ label: this.$login.f.f_gasman[i].name,
382
+ value: this.$login.f.f_gasman[i].name
383
+ }
384
+ rs.push(temp)
385
+ }
386
+ }
387
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
388
+ },
355
389
  getotherfooter () {
356
390
  // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
357
391
  // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
@@ -1,247 +1,247 @@
1
- <template lang="html">
2
- <div :class="classname" :style="{width:width,height:height}">
3
- <div style="height: 97%;">
4
- <div class="col-sm-3" style="height: 97%">
5
- <div class="row form-group" style="height: 5%">
6
- <label class="font_normal_body" >使用公司:</label>
7
- <res-select :initresid='model.orgid'
8
- @res-select="getorg"
9
- :is-mul="false"
10
- class="select select_list"
11
- restype='organization'
12
- style="width: 60%">
13
- </res-select>
14
- </div>
15
- <div class="row" style="margin-left: 5%;margin-right: 5%;height: 15%;text-align:center;" >
16
- <h4 style="font-size: 18px;">用户数量</h4>
17
- <table class="col-sm-12 table table-bordered table-striped" style="font-size: 16px;">
18
- <tr class="text-center">
19
- <th style="text-align:center;"><nobr>现有户数</nobr></th>
20
- <th style="text-align:center;"><nobr>年度新增</nobr></th>
21
- <th style="text-align:center;"><nobr>本月新增</nobr></th>
22
- </tr>
23
- <tr>
24
- <td style="text-align:center;"><nobr>{{num}}</nobr></td>
25
- <td style="text-align:center;"><nobr>{{year}}</nobr></td>
26
- <td style="text-align:center;"><nobr>{{month}}</nobr></td>
27
- </tr>
28
- </table>
29
- </div>
30
- <div style="width: 100%;height: 40%;margin-top: 10%;text-align:center;">
31
- <h4 style="font-size: 18px;">民用分类实有户数</h4>
32
- <ring-chart :sdata="sdata2" ></ring-chart>
33
- </div>
34
- <div style="width: 100%;height: 40%;text-align:center;">
35
- <h4 style="font-size: 18px;">工商业分类实有户数</h4>
36
- <ring-chart :sdata="sdata1" ></ring-chart>
37
- </div>
38
- </div>
39
- <div class="col-sm-6" style="height: 97%;text-align:center;">
40
- <h3>营收系统数据统计信息</h3>
41
- <div style="width: 100%;height: 50%">
42
- <div>
43
- <bar-chart :xdata="xdata" :sdata="sdata" :legend="legendData" :xname="xname" :yname="yname"> </bar-chart>
44
- </div>
45
- </div>
46
- <div style="width: 100%;height: 50%">
47
- <div>
48
- <!-- <bussiness-type :orgid='model.orgid[0]' v-ref:pay ></bussiness-type>-->
49
- <bar-chart :xdata="xdata3" :sdata="sdata3" :legend="legendData1" :xname="xname" :yname="yname"> </bar-chart>
50
- </div>
51
- </div>
52
- </div>
53
- <div class="col-sm-3" style="height: 97%">
54
- <div style="width: 100%;height: 95%;margin-top: 10%;margin-right: 5%;" align="center">
55
- <h4 style="font-size: 18px;">各类表具在用用户数量</h4>
56
- <data-grid :model=mood class="table_sy" partial='list' >
57
- <template partial='head' >
58
- <tr>
59
- <th><nobr>气表品牌</nobr></th>
60
- <th><nobr>使用户数</nobr></th>
61
- <th><nobr>异常户数</nobr></th>
62
- </tr>
63
- </template>
64
- <template partial='body' >
65
- <tr>
66
- <td><nobr>{{row.f_meter_brand}}</nobr></td>
67
- <td><nobr>{{row.num}}</nobr></td>
68
- <td><nobr>{{row.c}}</nobr></td>
69
- </tr>
70
- </template>
71
- </data-grid>
72
- </div>
73
- </div>
74
- </div>
75
- </div>
76
-
77
- </template>
78
-
79
- <script>
80
- import * as Util from '../../Util'
81
- import { HttpResetClass } from 'vue-client'
82
-
83
- export default {
84
- title: '分析统计',
85
- props: {
86
- classname: {
87
- type: String,
88
- default: 'basic-main'
89
- },
90
- width: {
91
- type: String,
92
- default: '98.5%'
93
- },
94
- height: {
95
- type: String,
96
- default: '98%'
97
- }
98
- },
99
- watch:{
100
- 'f_orgid'(val) {
101
- // if (val) {
102
- this.ks()
103
- // }
104
- }
105
- },
106
- data() {
107
- return {
108
- jurisdiction: this.$login.r,
109
- model: {
110
- orgid: [this.$login.f.orgid],
111
- startDate: Util.toStandardDateString(),
112
- endDate: Util.toStandardDateString()
113
- },
114
- f_orgid: '',
115
- xdata:[],
116
- sdata: [],
117
- legendData: ['民用'],
118
- sdata1:[],
119
- sdata2:[],
120
- legendData1: ['非民用'],
121
- xdata3: [],
122
- sdata3: [],
123
- xname:"年份",
124
- yname:"户数",
125
- num:'',
126
- year:'',
127
- month:'',
128
- arr:[],
129
- arrs:[],
130
- mood:'',
131
- resoptions: []
132
- }
133
-
134
- },
135
- ready() {
136
-
137
- },
138
- methods: {
139
- ks(){
140
- this.xdata = []
141
- this.sdata = []
142
- this.sdata1 = []
143
- this.sdata2 = []
144
- this.xdata3 = []
145
- this.sdata3 = []
146
- this.num = ''
147
- this.year = ''
148
- this.month = ''
149
- this.arr = []
150
- this.arrs = []
151
- this.mood = ''
152
- this.getuser()
153
- this.getType()
154
- this.getType1()
155
- this.getnumber()
156
- this.getnumber1()
157
- this.getmeterbrand()
158
- console.log("7777777777777",this.sdata)
159
- },
160
- getorg (val) {
161
- this.f_orgid = this.$login.convertToIn(val)
162
- // this.$parent.f_orgid = this.f_orgid
163
- },
164
- async getuser (){
165
- let load = new HttpResetClass()
166
- // let id = this.model.orgid.toString()
167
- await load.load('POST','rs/sql/getUser', {data: {f_orgid: this.f_orgid}}).then((res) => {
168
- console.log("加载res",res)
169
- for (var i = 0; i < res.data.length; i++) {
170
- this.num = res.data[i].number
171
- this.year = res.data[i].year
172
- this.month = res.data[i].month
173
- }
174
- })
175
- },
176
- async getType (){
177
- let load = new HttpResetClass()
178
- // let id = this.model.orgid.toString()
179
- await load.load('POST','rs/sql/getTypess', {data: {f_orgid: this.f_orgid}}).then((res) => {
180
- const rdata = res.data
181
- for (let i = 0; i < rdata.length; i++) {
182
- const object={
183
- value: rdata[i].f_type,
184
- name: rdata[i].f_devices_type
185
- }
186
- this.sdata2.push(object)
187
- }
188
- })
189
- },
190
- async getType1 (){
191
- let load = new HttpResetClass()
192
- // let id = this.model.orgid.toString()
193
- await load.load('POST','rs/sql/getTypek', {data: {f_orgid: this.f_orgid}}).then((res) => {
194
- const rdata = res.data
195
- for (let i = 0; i < rdata.length; i++) {
196
- const object = {
197
- value:rdata[i].f_type,
198
- name:rdata[i].f_devices_type
199
- }
200
- this.sdata1.push(object)
201
- }
202
- })
203
- },
204
- async getnumber (){
205
- let load = new HttpResetClass()
206
- // let id = this.model.orgid.toString()
207
- await load.load('POST','rs/sql/getNumberss', {data: {f_orgid: this.f_orgid}}).then((res) => {
208
- const rdata=res.data
209
- for (let i = 0; i < rdata.length; i++) {
210
- this.arr.push(rdata[i].num)
211
- this.xdata.push(rdata[i].f_gas_date)
212
- }
213
- this.sdata.push(this.arr)
214
- })
215
- },
216
- async getnumber1 (){
217
- let load = new HttpResetClass()
218
- // let id = this.model.orgid.toString()
219
- await load.load('POST','rs/sql/getNumbers', {data: {f_orgid: this.f_orgid}}).then((res) => {
220
- console.log("加载res3",res)
221
- const rdata=res.data
222
- for (let i = 0; i < rdata.length; i++) {
223
- console.log(rdata[i].f_gas_date)
224
- console.log(rdata[i].num)
225
- this.arrs.push(rdata[i].num)
226
- this.xdata3.push(rdata[i].f_gas_date)
227
- }
228
- console.log("222222222222222222222222",this.xdata3)
229
- this.sdata3.push(this.arrs)
230
- })
231
- },
232
- async getmeterbrand (){
233
- let load = new HttpResetClass()
234
- // let id = this.model.orgid.toString()
235
- await load.load('POST','rs/sql/getMeterbrand', {data: {f_orgid: this.f_orgid}}).then((res) => {
236
- this.mood=res
237
- })
238
- }
239
- // searchdata () {
240
- // this.$refs.pay.searchdata()
241
- // },
242
- }
243
- }
244
- </script>
245
-
246
- <style lang="css">
247
- </style>
1
+ <template lang="html">
2
+ <div :class="classname" :style="{width:width,height:height}">
3
+ <div style="height: 97%;">
4
+ <div class="col-sm-3" style="height: 97%">
5
+ <div class="row form-group" style="height: 5%">
6
+ <label class="font_normal_body" >使用公司:</label>
7
+ <res-select :initresid='model.orgid'
8
+ @res-select="getorg"
9
+ :is-mul="false"
10
+ class="select select_list"
11
+ restype='organization'
12
+ style="width: 60%">
13
+ </res-select>
14
+ </div>
15
+ <div class="row" style="margin-left: 5%;margin-right: 5%;height: 15%;text-align:center;" >
16
+ <h4 style="font-size: 18px;">用户数量</h4>
17
+ <table class="col-sm-12 table table-bordered table-striped" style="font-size: 16px;">
18
+ <tr class="text-center">
19
+ <th style="text-align:center;"><nobr>现有户数</nobr></th>
20
+ <th style="text-align:center;"><nobr>年度新增</nobr></th>
21
+ <th style="text-align:center;"><nobr>本月新增</nobr></th>
22
+ </tr>
23
+ <tr>
24
+ <td style="text-align:center;"><nobr>{{num}}</nobr></td>
25
+ <td style="text-align:center;"><nobr>{{year}}</nobr></td>
26
+ <td style="text-align:center;"><nobr>{{month}}</nobr></td>
27
+ </tr>
28
+ </table>
29
+ </div>
30
+ <div style="width: 100%;height: 40%;margin-top: 10%;text-align:center;">
31
+ <h4 style="font-size: 18px;">民用分类实有户数</h4>
32
+ <ring-chart :sdata="sdata2" ></ring-chart>
33
+ </div>
34
+ <div style="width: 100%;height: 40%;text-align:center;">
35
+ <h4 style="font-size: 18px;">工商业分类实有户数</h4>
36
+ <ring-chart :sdata="sdata1" ></ring-chart>
37
+ </div>
38
+ </div>
39
+ <div class="col-sm-6" style="height: 97%;text-align:center;">
40
+ <h3>营收系统数据统计信息</h3>
41
+ <div style="width: 100%;height: 50%">
42
+ <div>
43
+ <bar-chart :xdata="xdata" :sdata="sdata" :legend="legendData" :xname="xname" :yname="yname"> </bar-chart>
44
+ </div>
45
+ </div>
46
+ <div style="width: 100%;height: 50%">
47
+ <div>
48
+ <!-- <bussiness-type :orgid='model.orgid[0]' v-ref:pay ></bussiness-type>-->
49
+ <bar-chart :xdata="xdata3" :sdata="sdata3" :legend="legendData1" :xname="xname" :yname="yname"> </bar-chart>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="col-sm-3" style="height: 97%">
54
+ <div style="width: 100%;height: 95%;margin-top: 10%;margin-right: 5%;" align="center">
55
+ <h4 style="font-size: 18px;">各类表具在用用户数量</h4>
56
+ <data-grid :model=mood class="table_sy" partial='list' >
57
+ <template partial='head' >
58
+ <tr>
59
+ <th><nobr>气表品牌</nobr></th>
60
+ <th><nobr>使用户数</nobr></th>
61
+ <th><nobr>异常户数</nobr></th>
62
+ </tr>
63
+ </template>
64
+ <template partial='body' >
65
+ <tr>
66
+ <td><nobr>{{row.f_meter_brand}}</nobr></td>
67
+ <td><nobr>{{row.num}}</nobr></td>
68
+ <td><nobr>{{row.c}}</nobr></td>
69
+ </tr>
70
+ </template>
71
+ </data-grid>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ </template>
78
+
79
+ <script>
80
+ import * as Util from '../../Util'
81
+ import { HttpResetClass } from 'vue-client'
82
+
83
+ export default {
84
+ title: '分析统计',
85
+ props: {
86
+ classname: {
87
+ type: String,
88
+ default: 'basic-main'
89
+ },
90
+ width: {
91
+ type: String,
92
+ default: '98.5%'
93
+ },
94
+ height: {
95
+ type: String,
96
+ default: '98%'
97
+ }
98
+ },
99
+ watch:{
100
+ 'f_orgid'(val) {
101
+ // if (val) {
102
+ this.ks()
103
+ // }
104
+ }
105
+ },
106
+ data() {
107
+ return {
108
+ jurisdiction: this.$login.r,
109
+ model: {
110
+ orgid: [this.$login.f.orgid],
111
+ startDate: Util.toStandardDateString(),
112
+ endDate: Util.toStandardDateString()
113
+ },
114
+ f_orgid: '',
115
+ xdata:[],
116
+ sdata: [],
117
+ legendData: ['民用'],
118
+ sdata1:[],
119
+ sdata2:[],
120
+ legendData1: ['非民用'],
121
+ xdata3: [],
122
+ sdata3: [],
123
+ xname:"年份",
124
+ yname:"户数",
125
+ num:'',
126
+ year:'',
127
+ month:'',
128
+ arr:[],
129
+ arrs:[],
130
+ mood:'',
131
+ resoptions: []
132
+ }
133
+
134
+ },
135
+ ready() {
136
+
137
+ },
138
+ methods: {
139
+ ks(){
140
+ this.xdata = []
141
+ this.sdata = []
142
+ this.sdata1 = []
143
+ this.sdata2 = []
144
+ this.xdata3 = []
145
+ this.sdata3 = []
146
+ this.num = ''
147
+ this.year = ''
148
+ this.month = ''
149
+ this.arr = []
150
+ this.arrs = []
151
+ this.mood = ''
152
+ this.getuser()
153
+ this.getType()
154
+ this.getType1()
155
+ this.getnumber()
156
+ this.getnumber1()
157
+ this.getmeterbrand()
158
+ console.log("7777777777777",this.sdata)
159
+ },
160
+ getorg (val) {
161
+ this.f_orgid = this.$login.convertToIn(val)
162
+ // this.$parent.f_orgid = this.f_orgid
163
+ },
164
+ async getuser (){
165
+ let load = new HttpResetClass()
166
+ // let id = this.model.orgid.toString()
167
+ await load.load('POST','rs/sql/getUser', {data: {f_orgid: this.f_orgid}}).then((res) => {
168
+ console.log("加载res",res)
169
+ for (var i = 0; i < res.data.length; i++) {
170
+ this.num = res.data[i].number
171
+ this.year = res.data[i].year
172
+ this.month = res.data[i].month
173
+ }
174
+ })
175
+ },
176
+ async getType (){
177
+ let load = new HttpResetClass()
178
+ // let id = this.model.orgid.toString()
179
+ await load.load('POST','rs/sql/getTypess', {data: {f_orgid: this.f_orgid}}).then((res) => {
180
+ const rdata = res.data
181
+ for (let i = 0; i < rdata.length; i++) {
182
+ const object={
183
+ value: rdata[i].f_type,
184
+ name: rdata[i].f_devices_type
185
+ }
186
+ this.sdata2.push(object)
187
+ }
188
+ })
189
+ },
190
+ async getType1 (){
191
+ let load = new HttpResetClass()
192
+ // let id = this.model.orgid.toString()
193
+ await load.load('POST','rs/sql/getTypek', {data: {f_orgid: this.f_orgid}}).then((res) => {
194
+ const rdata = res.data
195
+ for (let i = 0; i < rdata.length; i++) {
196
+ const object = {
197
+ value:rdata[i].f_type,
198
+ name:rdata[i].f_devices_type
199
+ }
200
+ this.sdata1.push(object)
201
+ }
202
+ })
203
+ },
204
+ async getnumber (){
205
+ let load = new HttpResetClass()
206
+ // let id = this.model.orgid.toString()
207
+ await load.load('POST','rs/sql/getNumberss', {data: {f_orgid: this.f_orgid}}).then((res) => {
208
+ const rdata=res.data
209
+ for (let i = 0; i < rdata.length; i++) {
210
+ this.arr.push(rdata[i].num)
211
+ this.xdata.push(rdata[i].f_gas_date)
212
+ }
213
+ this.sdata.push(this.arr)
214
+ })
215
+ },
216
+ async getnumber1 (){
217
+ let load = new HttpResetClass()
218
+ // let id = this.model.orgid.toString()
219
+ await load.load('POST','rs/sql/getNumbers', {data: {f_orgid: this.f_orgid}}).then((res) => {
220
+ console.log("加载res3",res)
221
+ const rdata=res.data
222
+ for (let i = 0; i < rdata.length; i++) {
223
+ console.log(rdata[i].f_gas_date)
224
+ console.log(rdata[i].num)
225
+ this.arrs.push(rdata[i].num)
226
+ this.xdata3.push(rdata[i].f_gas_date)
227
+ }
228
+ console.log("222222222222222222222222",this.xdata3)
229
+ this.sdata3.push(this.arrs)
230
+ })
231
+ },
232
+ async getmeterbrand (){
233
+ let load = new HttpResetClass()
234
+ // let id = this.model.orgid.toString()
235
+ await load.load('POST','rs/sql/getMeterbrand', {data: {f_orgid: this.f_orgid}}).then((res) => {
236
+ this.mood=res
237
+ })
238
+ }
239
+ // searchdata () {
240
+ // this.$refs.pay.searchdata()
241
+ // },
242
+ }
243
+ }
244
+ </script>
245
+
246
+ <style lang="css">
247
+ </style>