manage-client 3.2.79-aode → 3.2.80-aode

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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,295 +1,295 @@
1
- <template>
2
- <div class="flex-row">
3
- <div id='app' class="basic-main" v-show="!echarts">
4
- <criteria-paged :model="model" :pager='true' v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="col-sm-2 form-group">
9
- <label class="font_normal_body">表&nbsp;&nbsp;号&nbsp;</label>
10
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
11
- v-model="model.f_meternumber" placeholder='表号'
12
- condition="uf.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
13
- >
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">组织机构</label>
17
- <res-select :initresid="$parent.$parent.orgid"
18
- style="width:60%"
19
- @res-select="$parent.$parent.getRes"
20
- restype='organization'>
21
- </res-select>
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label class="font_normal_body">客户编号</label>
25
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
26
- v-model="model.f_userinfo_code" placeholder='客户编号'
27
- condition="u.f_userinfo_code like '{}%'" v-next-el='f_userinfo_code' v-el:meternumber
28
- >
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户名称</label>
32
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
33
- v-model="model.f_username" placeholder='客户名称'
34
- condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
35
- </div>
36
- <div class="span" style="float:right;margin-top:10px">
37
- <button class="button_search button_spacing" @click="search()">查询</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
39
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
- :field="$parent.$parent.getfield"
41
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewHandChanceList" template-name='抄表分析'
42
- :choose-col="true"></export-excel>
43
- <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>
44
- </div>
45
- </div>
46
- <div class="row" v-show="$parent.$parent.criteriaShow">
47
- <div class="col-sm-2 form-group">
48
- <label class="font_normal_body">客户地址</label>
49
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
50
- v-model="model.f_address" placeholder='地址'
51
- condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
52
- >
53
- </div>
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">用户类型</label>
56
- <v-select style="width:60%" id="f_user_type"
57
- v-model="model.f_user_type"
58
- placeholder='用户类型'
59
- :value.sync="model.f_user_type"
60
- :options='$parent.$parent.usertypes'
61
- condition="uf.f_user_type = '{}'"
62
- close-on-select>
63
- </v-select>
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">用气性质</label>
67
- <v-select style="width:60%" id="f_gasproperties"
68
- v-model="model.f_gasproperties"
69
- placeholder='用气性质'
70
- :value.sync="model.f_gasproperties"
71
- :options='$parent.$parent.Gasproperties'
72
- condition="uf.f_gasproperties = '{}'"
73
- close-on-select>
74
- </v-select>
75
- </div>
76
-
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
79
- <datepicker style="width:60%" placeholder="起始时间"
80
- :value.sync="model.startDate"
81
- v-model="model.startDate"
82
- :format="'yyyy-MM-dd'"
83
- ></datepicker>
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
87
- <datepicker style="width:60%" placeholder="结束时间"
88
- :value.sync="model.endDate"
89
- v-model="model.endDate"
90
- :format="'yyyy-MM-dd'"
91
- ></datepicker>
92
- </div>
93
- </div>
94
- </div>
95
- </criteria>
96
- <data-grid id="reportgas" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
97
- <template partial='head'>
98
- <tr>
99
- <th style="text-align:center">序号</th>
100
- <th style="text-align:center"><nobr>上报日期</nobr></th>
101
- <th style="text-align:center" title="安装户数=正常户数+停用户数+未注册户数"><nobr>安装户数</nobr></th>
102
-
103
- <th style="text-align:center" title="停用户数:表具状态为停用的用户数"><nobr>停用户数</nobr></th>
104
- <th style="text-align:center" title="在用户数:表具状态为正常的用户数"><nobr>在用户数</nobr></th>
105
-
106
- <!-- <th style="text-align:center" title="用户使用率=在用户数/正常户数"><nobr>用户使用率</nobr></th>-->
107
- <th style="text-align:center"><nobr>抄表成功户数</nobr></th>
108
- <th style="text-align:center"><nobr>总用气量</nobr></th>
109
- <th style="text-align:center"><nobr>总用气金额</nobr></th>
110
- <th style="text-align:center" title="日均户均用气量=总用气量/抄表成功户数"><nobr>日均户均用气量(成功)</nobr></th>
111
- <th style="text-align:center" title="日均户均用气量=总用气量/在用户数"><nobr>日均户均用气量(在用)</nobr></th>
112
- <!--<th style="text-align:center"><nobr>指令成功户数</nobr></th>-->
113
- <th style="text-align:center" title="抄表成功率=抄表成功户数/在用户数"><nobr>抄表成功率</nobr></th>
114
- <!--<th style="text-align:center" title="指令成功率=指令成功户数/抄表成功户数"><nobr>指令成功率</nobr></th>-->
115
- <!--<th style="text-align:center" title="综合成功率=指令成功户数/在用户数"><nobr>综合成功率</nobr></th>-->
116
- </tr>
117
- </template>
118
- <template partial='body' partial='list' v-ref:grid>
119
- <tr>
120
- <td style="text-align:center">{{$index + 1}}</td>
121
- <td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
122
- <td style="text-align:center">{{row.anzhuang}}</td>
123
-
124
- <th style="text-align:center">{{row.c0}}</th>
125
- <td style="text-align:center"><nobr>{{row.c}}</nobr></td>
126
-
127
- <!-- <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>-->
128
- <!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
129
- <td style="text-align:center">{{row.c1}}</td>
130
- <td style="text-align:center">{{row.f_gas_all}}</td>
131
- <td style="text-align:center">{{row.f_fee_all}}</td>
132
- <td style="text-align:center">{{row.f_gas}}</td>
133
- <td style="text-align:center">{{row.f_gas1}}</td>
134
- <td style="text-align:center">{{row.f_bv1}}%</td>
135
- <!--<td style="text-align:center">{{row.f_bv2}}%</td>-->
136
- <!--<td style="text-align:center;width: 170px;"><nobr>{{row.f_bv3}}%</nobr></td>-->
137
- </tr>
138
- </template>
139
- <template partial='foot'></template>
140
- </data-grid>
141
- </criteria-paged>
142
- </div>
143
- <div style="height: 40px;width: 100%;" v-show="echarts">
144
- <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>
145
- </div>
146
- <!--图显示模板-->
147
- <div class="span " v-show="echarts" style="width: 100%;height: 90%;">
148
- <user-gas-echarts-list :condition="condition" :startdate="startDate"
149
- :enddate="endDate" :echarts="echarts"></user-gas-echarts-list>
150
- </div>
151
- </div>
152
- </template>
153
- <script>
154
- import {PagedList} from 'vue-client'
155
- import UserGasEcharts from './UserGasEchartsList'
156
- import * as Util from '../../../Util'
157
- import plugins from '../../../plugins/GetLoginInfoService'
158
-
159
- export default {
160
- title: '抄表分析',
161
- props: ['data'],
162
- components: {UserGasEcharts},
163
- data () {
164
- return {
165
- model: new PagedList('rs/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
166
- condition: '1=1',
167
- startDate: '',
168
- endDate: '',
169
- orgid:[this.$login.f.orgid],
170
- getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
171
- "c0":"停用户数",
172
- "c":"在用户数","user_bv":"用户使用率",
173
- "c1":"抄表成功户数","f_fee_all":"总用金额",
174
- "f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
175
- "f_gas1":"日均户均用气量(在用)",
176
- "f_bv1":"抄表成功率"
177
- },
178
- criteriaShow:false,
179
- echarts: false,
180
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
181
- searchshow: false,
182
- obj: {
183
- userid: this.$login.f.id,
184
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
185
- res: this.$login.f.f_fengongsi,
186
- resids: this.$login.f.orgid
187
- }
188
- }
189
- },
190
- ready () {
191
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString()
192
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString()
193
- // this.$refs.paged.$refs.cri.search()
194
- },
195
- methods: {
196
- hidden(){
197
- this.criteriaShow = !this.criteriaShow
198
- },
199
- // 查询开关
200
- seachchange () {
201
- this.searchshow = !this.searchshow
202
- },
203
-
204
- // 显示柱状图
205
- showEcharts () {
206
- this.echarts = !this.echarts
207
- console.log(this.echarts)
208
- },
209
- close () {
210
- this.show = false
211
- },
212
- // SaveAsFile(str) {
213
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
214
- // if (res === 'confirm') {
215
- // let style = '<style>' +
216
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
217
- // let strHtml = style + document.getElementById(str).innerHTML;
218
- // console.log(strHtml);
219
- // let LODOP = getLodop();
220
- // LODOP.PRINT_INIT('');
221
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
222
- // LODOP.SAVE_TO_FILE('抄表统计.xls')
223
- // }
224
- // })
225
- // },
226
- clearmsg () {
227
- this.$refs.paged.$refs.cri.model = {}
228
- },
229
- search (args) {
230
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
231
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
232
- if (this.endDate == '' || this.startDate == '') {
233
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
234
- }
235
- if (this.orgCondtionStr){
236
- this.condition = this.$refs.paged.$refs.cri.condition + `and uf.f_orgid in ${this.orgCondtionStr}`
237
- }
238
- else
239
- this.condition = this.$refs.paged.$refs.cri.condition
240
- args.condition = this.condition
241
- this.model.search(args.condition, args.model)
242
- },
243
- getRes (obj) {
244
- this.orgCondtionStr = plugins.convertToIn(obj)
245
- }
246
- },
247
- computed: {
248
- getCondition() {
249
- var con=""
250
- if (this.orgCondtionStr) {
251
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
252
- }
253
- else{
254
- con= `${this.$refs.paged.$refs.cri.condition} `
255
- }
256
- return {
257
- condition: con ,
258
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
259
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
260
- }
261
-
262
- },
263
- usertypes () {
264
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
265
- },
266
- // usertypes () {
267
- // return this.$getParams('用户类型', [{label: '全部', value: ''}])
268
- // },
269
- f_outlets () {
270
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
271
- },
272
- valveStatus () {
273
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
274
- },
275
- Gasproperties () {
276
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
277
- },
278
- Getuserstyle () {
279
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
280
- }
281
- }
282
- }
283
- </script>
284
- <style>
285
- .mystyle{
286
- margin-left:80px;
287
- }
288
- .datapanel {
289
- color: #333;
290
- background-color: white;
291
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
292
- padding: 10px 10px 10px 10px;
293
- border-radius:15px;
294
- }
295
- </style>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div id='app' class="basic-main" v-show="!echarts">
4
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">表&nbsp;&nbsp;号&nbsp;</label>
10
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
11
+ v-model="model.f_meternumber" placeholder='表号'
12
+ condition="uf.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
13
+ >
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">组织机构</label>
17
+ <res-select :initresid="$parent.$parent.orgid"
18
+ style="width:60%"
19
+ @res-select="$parent.$parent.getRes"
20
+ restype='organization'>
21
+ </res-select>
22
+ </div>
23
+ <div class="col-sm-2 form-group">
24
+ <label class="font_normal_body">客户编号</label>
25
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
26
+ v-model="model.f_userinfo_code" placeholder='客户编号'
27
+ condition="u.f_userinfo_code like '{}%'" v-next-el='f_userinfo_code' v-el:meternumber
28
+ >
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户名称</label>
32
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
33
+ v-model="model.f_username" placeholder='客户名称'
34
+ condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
35
+ </div>
36
+ <div class="span" style="float:right;margin-top:10px">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
40
+ :field="$parent.$parent.getfield"
41
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewHandChanceList" template-name='抄表分析'
42
+ :choose-col="true"></export-excel>
43
+ <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>
44
+ </div>
45
+ </div>
46
+ <div class="row" v-show="$parent.$parent.criteriaShow">
47
+ <div class="col-sm-2 form-group">
48
+ <label class="font_normal_body">客户地址</label>
49
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search"
50
+ v-model="model.f_address" placeholder='地址'
51
+ condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
52
+ >
53
+ </div>
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">用户类型</label>
56
+ <v-select style="width:60%" id="f_user_type"
57
+ v-model="model.f_user_type"
58
+ placeholder='用户类型'
59
+ :value.sync="model.f_user_type"
60
+ :options='$parent.$parent.usertypes'
61
+ condition="uf.f_user_type = '{}'"
62
+ close-on-select>
63
+ </v-select>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">用气性质</label>
67
+ <v-select style="width:60%" id="f_gasproperties"
68
+ v-model="model.f_gasproperties"
69
+ placeholder='用气性质'
70
+ :value.sync="model.f_gasproperties"
71
+ :options='$parent.$parent.Gasproperties'
72
+ condition="uf.f_gasproperties = '{}'"
73
+ close-on-select>
74
+ </v-select>
75
+ </div>
76
+
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
79
+ <datepicker style="width:60%" placeholder="起始时间"
80
+ :value.sync="model.startDate"
81
+ v-model="model.startDate"
82
+ :format="'yyyy-MM-dd'"
83
+ ></datepicker>
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
87
+ <datepicker style="width:60%" placeholder="结束时间"
88
+ :value.sync="model.endDate"
89
+ v-model="model.endDate"
90
+ :format="'yyyy-MM-dd'"
91
+ ></datepicker>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ </criteria>
96
+ <data-grid id="reportgas" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
97
+ <template partial='head'>
98
+ <tr>
99
+ <th style="text-align:center">序号</th>
100
+ <th style="text-align:center"><nobr>上报日期</nobr></th>
101
+ <th style="text-align:center" title="安装户数=正常户数+停用户数+未注册户数"><nobr>安装户数</nobr></th>
102
+
103
+ <th style="text-align:center" title="停用户数:表具状态为停用的用户数"><nobr>停用户数</nobr></th>
104
+ <th style="text-align:center" title="在用户数:表具状态为正常的用户数"><nobr>在用户数</nobr></th>
105
+
106
+ <!-- <th style="text-align:center" title="用户使用率=在用户数/正常户数"><nobr>用户使用率</nobr></th>-->
107
+ <th style="text-align:center"><nobr>抄表成功户数</nobr></th>
108
+ <th style="text-align:center"><nobr>总用气量</nobr></th>
109
+ <th style="text-align:center"><nobr>总用气金额</nobr></th>
110
+ <th style="text-align:center" title="日均户均用气量=总用气量/抄表成功户数"><nobr>日均户均用气量(成功)</nobr></th>
111
+ <th style="text-align:center" title="日均户均用气量=总用气量/在用户数"><nobr>日均户均用气量(在用)</nobr></th>
112
+ <!--<th style="text-align:center"><nobr>指令成功户数</nobr></th>-->
113
+ <th style="text-align:center" title="抄表成功率=抄表成功户数/在用户数"><nobr>抄表成功率</nobr></th>
114
+ <!--<th style="text-align:center" title="指令成功率=指令成功户数/抄表成功户数"><nobr>指令成功率</nobr></th>-->
115
+ <!--<th style="text-align:center" title="综合成功率=指令成功户数/在用户数"><nobr>综合成功率</nobr></th>-->
116
+ </tr>
117
+ </template>
118
+ <template partial='body' partial='list' v-ref:grid>
119
+ <tr>
120
+ <td style="text-align:center">{{$index + 1}}</td>
121
+ <td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
122
+ <td style="text-align:center">{{row.anzhuang}}</td>
123
+
124
+ <th style="text-align:center">{{row.c0}}</th>
125
+ <td style="text-align:center"><nobr>{{row.c}}</nobr></td>
126
+
127
+ <!-- <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>-->
128
+ <!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
129
+ <td style="text-align:center">{{row.c1}}</td>
130
+ <td style="text-align:center">{{row.f_gas_all}}</td>
131
+ <td style="text-align:center">{{row.f_fee_all}}</td>
132
+ <td style="text-align:center">{{row.f_gas}}</td>
133
+ <td style="text-align:center">{{row.f_gas1}}</td>
134
+ <td style="text-align:center">{{row.f_bv1}}%</td>
135
+ <!--<td style="text-align:center">{{row.f_bv2}}%</td>-->
136
+ <!--<td style="text-align:center;width: 170px;"><nobr>{{row.f_bv3}}%</nobr></td>-->
137
+ </tr>
138
+ </template>
139
+ <template partial='foot'></template>
140
+ </data-grid>
141
+ </criteria-paged>
142
+ </div>
143
+ <div style="height: 40px;width: 100%;" v-show="echarts">
144
+ <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>
145
+ </div>
146
+ <!--图显示模板-->
147
+ <div class="span " v-show="echarts" style="width: 100%;height: 90%;">
148
+ <user-gas-echarts-list :condition="condition" :startdate="startDate"
149
+ :enddate="endDate" :echarts="echarts"></user-gas-echarts-list>
150
+ </div>
151
+ </div>
152
+ </template>
153
+ <script>
154
+ import {PagedList} from 'vue-client'
155
+ import UserGasEcharts from './UserGasEchartsList'
156
+ import * as Util from '../../../Util'
157
+ import plugins from '../../../plugins/GetLoginInfoService'
158
+
159
+ export default {
160
+ title: '抄表分析',
161
+ props: ['data'],
162
+ components: {UserGasEcharts},
163
+ data () {
164
+ return {
165
+ model: new PagedList('rs/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
166
+ condition: '1=1',
167
+ startDate: '',
168
+ endDate: '',
169
+ orgid:[this.$login.f.orgid],
170
+ getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
171
+ "c0":"停用户数",
172
+ "c":"在用户数","user_bv":"用户使用率",
173
+ "c1":"抄表成功户数","f_fee_all":"总用金额",
174
+ "f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
175
+ "f_gas1":"日均户均用气量(在用)",
176
+ "f_bv1":"抄表成功率"
177
+ },
178
+ criteriaShow:false,
179
+ echarts: false,
180
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
181
+ searchshow: false,
182
+ obj: {
183
+ userid: this.$login.f.id,
184
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
185
+ res: this.$login.f.f_fengongsi,
186
+ resids: this.$login.f.orgid
187
+ }
188
+ }
189
+ },
190
+ ready () {
191
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString()
192
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString()
193
+ // this.$refs.paged.$refs.cri.search()
194
+ },
195
+ methods: {
196
+ hidden(){
197
+ this.criteriaShow = !this.criteriaShow
198
+ },
199
+ // 查询开关
200
+ seachchange () {
201
+ this.searchshow = !this.searchshow
202
+ },
203
+
204
+ // 显示柱状图
205
+ showEcharts () {
206
+ this.echarts = !this.echarts
207
+ console.log(this.echarts)
208
+ },
209
+ close () {
210
+ this.show = false
211
+ },
212
+ // SaveAsFile(str) {
213
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
214
+ // if (res === 'confirm') {
215
+ // let style = '<style>' +
216
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
217
+ // let strHtml = style + document.getElementById(str).innerHTML;
218
+ // console.log(strHtml);
219
+ // let LODOP = getLodop();
220
+ // LODOP.PRINT_INIT('');
221
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
222
+ // LODOP.SAVE_TO_FILE('抄表统计.xls')
223
+ // }
224
+ // })
225
+ // },
226
+ clearmsg () {
227
+ this.$refs.paged.$refs.cri.model = {}
228
+ },
229
+ search (args) {
230
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
231
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
232
+ if (this.endDate == '' || this.startDate == '') {
233
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
234
+ }
235
+ if (this.orgCondtionStr){
236
+ this.condition = this.$refs.paged.$refs.cri.condition + `and uf.f_orgid in ${this.orgCondtionStr}`
237
+ }
238
+ else
239
+ this.condition = this.$refs.paged.$refs.cri.condition
240
+ args.condition = this.condition
241
+ this.model.search(args.condition, args.model)
242
+ },
243
+ getRes (obj) {
244
+ this.orgCondtionStr = plugins.convertToIn(obj)
245
+ }
246
+ },
247
+ computed: {
248
+ getCondition() {
249
+ var con=""
250
+ if (this.orgCondtionStr) {
251
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
252
+ }
253
+ else{
254
+ con= `${this.$refs.paged.$refs.cri.condition} `
255
+ }
256
+ return {
257
+ condition: con ,
258
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
259
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
260
+ }
261
+
262
+ },
263
+ usertypes () {
264
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
265
+ },
266
+ // usertypes () {
267
+ // return this.$getParams('用户类型', [{label: '全部', value: ''}])
268
+ // },
269
+ f_outlets () {
270
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
271
+ },
272
+ valveStatus () {
273
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
274
+ },
275
+ Gasproperties () {
276
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
277
+ },
278
+ Getuserstyle () {
279
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
280
+ }
281
+ }
282
+ }
283
+ </script>
284
+ <style>
285
+ .mystyle{
286
+ margin-left:80px;
287
+ }
288
+ .datapanel {
289
+ color: #333;
290
+ background-color: white;
291
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
292
+ padding: 10px 10px 10px 10px;
293
+ border-radius:15px;
294
+ }
295
+ </style>