manage-client 3.2.52-aode → 3.2.53-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 (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,293 +1,293 @@
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 HH:mm:ss'"
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 HH:mm:ss'"
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" title="日均户均用气量=总用气量/抄表成功户数"><nobr>日均户均用气量(成功)</nobr></th>
110
- <th style="text-align:center" title="日均户均用气量=总用气量/在用户数"><nobr>日均户均用气量(在用)</nobr></th>
111
- <!--<th style="text-align:center"><nobr>指令成功户数</nobr></th>-->
112
- <th style="text-align:center" title="抄表成功率=抄表成功户数/在用户数"><nobr>抄表成功率</nobr></th>
113
- <!--<th style="text-align:center" title="指令成功率=指令成功户数/抄表成功户数"><nobr>指令成功率</nobr></th>-->
114
- <!--<th style="text-align:center" title="综合成功率=指令成功户数/在用户数"><nobr>综合成功率</nobr></th>-->
115
- </tr>
116
- </template>
117
- <template partial='body' partial='list' v-ref:grid>
118
- <tr>
119
- <td style="text-align:center">{{$index + 1}}</td>
120
- <td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
121
- <td style="text-align:center">{{row.anzhuang}}</td>
122
-
123
- <th style="text-align:center">{{row.c0}}</th>
124
- <td style="text-align:center"><nobr>{{row.c}}</nobr></td>
125
-
126
- <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>
127
- <!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
128
- <td style="text-align:center">{{row.c1}}</td>
129
- <td style="text-align:center">{{row.f_gas_all}}</td>
130
- <td style="text-align:center">{{row.f_gas}}</td>
131
- <td style="text-align:center">{{row.f_gas1}}</td>
132
- <td style="text-align:center">{{row.f_bv1}}%</td>
133
- <!--<td style="text-align:center">{{row.f_bv2}}%</td>-->
134
- <!--<td style="text-align:center;width: 170px;"><nobr>{{row.f_bv3}}%</nobr></td>-->
135
- </tr>
136
- </template>
137
- <template partial='foot'></template>
138
- </data-grid>
139
- </criteria-paged>
140
- </div>
141
- <div style="height: 40px;width: 100%;" v-show="echarts">
142
- <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>
143
- </div>
144
- <!--图显示模板-->
145
- <div class="span " v-show="echarts" style="width: 100%;height: 90%;">
146
- <user-gas-echarts-list :condition="condition" :startdate="startDate"
147
- :enddate="endDate" :echarts="echarts"></user-gas-echarts-list>
148
- </div>
149
- </div>
150
- </template>
151
- <script>
152
- import {PagedList} from 'vue-client'
153
- import UserGasEcharts from './UserGasEchartsList'
154
- import * as Util from '../../../Util'
155
- import plugins from '../../../plugins/GetLoginInfoService'
156
-
157
- export default {
158
- title: '抄表分析',
159
- props: ['data'],
160
- components: {UserGasEcharts},
161
- data () {
162
- return {
163
- model: new PagedList('rs/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
164
- condition: '1=1',
165
- startDate: '',
166
- endDate: '',
167
- orgid:[this.$login.f.orgid],
168
- getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
169
- "c0":"停用户数",
170
- "c":"在用户数","user_bv":"用户使用率",
171
- "c1":"抄表成功户数",
172
- "f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
173
- "f_gas1":"日均户均用气量(在用)",
174
- "f_bv1":"抄表成功率"
175
- },
176
- criteriaShow:false,
177
- echarts: false,
178
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
179
- searchshow: false,
180
- obj: {
181
- userid: this.$login.f.id,
182
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
183
- res: this.$login.f.f_fengongsi,
184
- resids: this.$login.f.orgid
185
- }
186
- }
187
- },
188
- ready () {
189
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
190
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
191
- this.$refs.paged.$refs.cri.search()
192
- },
193
- methods: {
194
- hidden(){
195
- this.criteriaShow = !this.criteriaShow
196
- },
197
- // 查询开关
198
- seachchange () {
199
- this.searchshow = !this.searchshow
200
- },
201
-
202
- // 显示柱状图
203
- showEcharts () {
204
- this.echarts = !this.echarts
205
- console.log(this.echarts)
206
- },
207
- close () {
208
- this.show = false
209
- },
210
- // SaveAsFile(str) {
211
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
212
- // if (res === 'confirm') {
213
- // let style = '<style>' +
214
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
215
- // let strHtml = style + document.getElementById(str).innerHTML;
216
- // console.log(strHtml);
217
- // let LODOP = getLodop();
218
- // LODOP.PRINT_INIT('');
219
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
220
- // LODOP.SAVE_TO_FILE('抄表统计.xls')
221
- // }
222
- // })
223
- // },
224
- clearmsg () {
225
- this.$refs.paged.$refs.cri.model = {}
226
- },
227
- search (args) {
228
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
229
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
230
- if (this.endDate == '' || this.startDate == '') {
231
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
232
- }
233
- if (this.orgCondtionStr){
234
- this.condition = this.$refs.paged.$refs.cri.condition + `and uf.f_orgid in ${this.orgCondtionStr}`
235
- }
236
- else
237
- this.condition = this.$refs.paged.$refs.cri.condition
238
- args.condition = this.condition
239
- this.model.search(args.condition, args.model)
240
- },
241
- getRes (obj) {
242
- this.orgCondtionStr = plugins.convertToIn(obj)
243
- }
244
- },
245
- computed: {
246
- getCondition() {
247
- var con=""
248
- if (this.orgCondtionStr) {
249
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
250
- }
251
- else{
252
- con= `${this.$refs.paged.$refs.cri.condition} `
253
- }
254
- return {
255
- condition: con ,
256
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
257
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
258
- }
259
-
260
- },
261
- usertypes () {
262
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
263
- },
264
- // usertypes () {
265
- // return this.$getParams('用户类型', [{label: '全部', value: ''}])
266
- // },
267
- f_outlets () {
268
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
269
- },
270
- valveStatus () {
271
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
272
- },
273
- Gasproperties () {
274
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
275
- },
276
- Getuserstyle () {
277
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
278
- }
279
- }
280
- }
281
- </script>
282
- <style>
283
- .mystyle{
284
- margin-left:80px;
285
- }
286
- .datapanel {
287
- color: #333;
288
- background-color: white;
289
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
290
- padding: 10px 10px 10px 10px;
291
- border-radius:15px;
292
- }
293
- </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 HH:mm:ss'"
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 HH:mm:ss'"
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" title="日均户均用气量=总用气量/抄表成功户数"><nobr>日均户均用气量(成功)</nobr></th>
110
+ <th style="text-align:center" title="日均户均用气量=总用气量/在用户数"><nobr>日均户均用气量(在用)</nobr></th>
111
+ <!--<th style="text-align:center"><nobr>指令成功户数</nobr></th>-->
112
+ <th style="text-align:center" title="抄表成功率=抄表成功户数/在用户数"><nobr>抄表成功率</nobr></th>
113
+ <!--<th style="text-align:center" title="指令成功率=指令成功户数/抄表成功户数"><nobr>指令成功率</nobr></th>-->
114
+ <!--<th style="text-align:center" title="综合成功率=指令成功户数/在用户数"><nobr>综合成功率</nobr></th>-->
115
+ </tr>
116
+ </template>
117
+ <template partial='body' partial='list' v-ref:grid>
118
+ <tr>
119
+ <td style="text-align:center">{{$index + 1}}</td>
120
+ <td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
121
+ <td style="text-align:center">{{row.anzhuang}}</td>
122
+
123
+ <th style="text-align:center">{{row.c0}}</th>
124
+ <td style="text-align:center"><nobr>{{row.c}}</nobr></td>
125
+
126
+ <td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>
127
+ <!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
128
+ <td style="text-align:center">{{row.c1}}</td>
129
+ <td style="text-align:center">{{row.f_gas_all}}</td>
130
+ <td style="text-align:center">{{row.f_gas}}</td>
131
+ <td style="text-align:center">{{row.f_gas1}}</td>
132
+ <td style="text-align:center">{{row.f_bv1}}%</td>
133
+ <!--<td style="text-align:center">{{row.f_bv2}}%</td>-->
134
+ <!--<td style="text-align:center;width: 170px;"><nobr>{{row.f_bv3}}%</nobr></td>-->
135
+ </tr>
136
+ </template>
137
+ <template partial='foot'></template>
138
+ </data-grid>
139
+ </criteria-paged>
140
+ </div>
141
+ <div style="height: 40px;width: 100%;" v-show="echarts">
142
+ <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>
143
+ </div>
144
+ <!--图显示模板-->
145
+ <div class="span " v-show="echarts" style="width: 100%;height: 90%;">
146
+ <user-gas-echarts-list :condition="condition" :startdate="startDate"
147
+ :enddate="endDate" :echarts="echarts"></user-gas-echarts-list>
148
+ </div>
149
+ </div>
150
+ </template>
151
+ <script>
152
+ import {PagedList} from 'vue-client'
153
+ import UserGasEcharts from './UserGasEchartsList'
154
+ import * as Util from '../../../Util'
155
+ import plugins from '../../../plugins/GetLoginInfoService'
156
+
157
+ export default {
158
+ title: '抄表分析',
159
+ props: ['data'],
160
+ components: {UserGasEcharts},
161
+ data () {
162
+ return {
163
+ model: new PagedList('rs/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
164
+ condition: '1=1',
165
+ startDate: '',
166
+ endDate: '',
167
+ orgid:[this.$login.f.orgid],
168
+ getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
169
+ "c0":"停用户数",
170
+ "c":"在用户数","user_bv":"用户使用率",
171
+ "c1":"抄表成功户数",
172
+ "f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
173
+ "f_gas1":"日均户均用气量(在用)",
174
+ "f_bv1":"抄表成功率"
175
+ },
176
+ criteriaShow:false,
177
+ echarts: false,
178
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
179
+ searchshow: false,
180
+ obj: {
181
+ userid: this.$login.f.id,
182
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
183
+ res: this.$login.f.f_fengongsi,
184
+ resids: this.$login.f.orgid
185
+ }
186
+ }
187
+ },
188
+ ready () {
189
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
190
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
191
+ this.$refs.paged.$refs.cri.search()
192
+ },
193
+ methods: {
194
+ hidden(){
195
+ this.criteriaShow = !this.criteriaShow
196
+ },
197
+ // 查询开关
198
+ seachchange () {
199
+ this.searchshow = !this.searchshow
200
+ },
201
+
202
+ // 显示柱状图
203
+ showEcharts () {
204
+ this.echarts = !this.echarts
205
+ console.log(this.echarts)
206
+ },
207
+ close () {
208
+ this.show = false
209
+ },
210
+ // SaveAsFile(str) {
211
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
212
+ // if (res === 'confirm') {
213
+ // let style = '<style>' +
214
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
215
+ // let strHtml = style + document.getElementById(str).innerHTML;
216
+ // console.log(strHtml);
217
+ // let LODOP = getLodop();
218
+ // LODOP.PRINT_INIT('');
219
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
220
+ // LODOP.SAVE_TO_FILE('抄表统计.xls')
221
+ // }
222
+ // })
223
+ // },
224
+ clearmsg () {
225
+ this.$refs.paged.$refs.cri.model = {}
226
+ },
227
+ search (args) {
228
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
229
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
230
+ if (this.endDate == '' || this.startDate == '') {
231
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
232
+ }
233
+ if (this.orgCondtionStr){
234
+ this.condition = this.$refs.paged.$refs.cri.condition + `and uf.f_orgid in ${this.orgCondtionStr}`
235
+ }
236
+ else
237
+ this.condition = this.$refs.paged.$refs.cri.condition
238
+ args.condition = this.condition
239
+ this.model.search(args.condition, args.model)
240
+ },
241
+ getRes (obj) {
242
+ this.orgCondtionStr = plugins.convertToIn(obj)
243
+ }
244
+ },
245
+ computed: {
246
+ getCondition() {
247
+ var con=""
248
+ if (this.orgCondtionStr) {
249
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
250
+ }
251
+ else{
252
+ con= `${this.$refs.paged.$refs.cri.condition} `
253
+ }
254
+ return {
255
+ condition: con ,
256
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
257
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
258
+ }
259
+
260
+ },
261
+ usertypes () {
262
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
263
+ },
264
+ // usertypes () {
265
+ // return this.$getParams('用户类型', [{label: '全部', value: ''}])
266
+ // },
267
+ f_outlets () {
268
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
269
+ },
270
+ valveStatus () {
271
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
272
+ },
273
+ Gasproperties () {
274
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
275
+ },
276
+ Getuserstyle () {
277
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
278
+ }
279
+ }
280
+ }
281
+ </script>
282
+ <style>
283
+ .mystyle{
284
+ margin-left:80px;
285
+ }
286
+ .datapanel {
287
+ color: #333;
288
+ background-color: white;
289
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
290
+ padding: 10px 10px 10px 10px;
291
+ border-radius:15px;
292
+ }
293
+ </style>