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,311 +1,311 @@
1
- <template>
2
- <div class="flex-row binary" id="unit">
3
- <div class="basic-main" @keyup.enter="search1">
4
- <div class="flex">
5
- <div class="flex" style="flex:1;" v-show="!echarts">
6
- <criteria-paged :model="model" :pager='true' v-ref:paged>
7
- <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
- <div class="row" width="100%">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">表&ensp;钢&ensp;号</label>
12
- <input style="width:60%" class="input_search" condition="uf.f_meternumber like '%{}%'" placeholder='表钢号' type="text"
13
- v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
14
- >
15
- </div>
16
- <div class="col-sm-2 form-group">
17
- <label class="font_normal_body">组织机构</label>
18
- <res-select :initresid="$parent.$parent.orgid"
19
- @res-select="$parent.$parent.getRes"
20
- restype='organization'style="width: 60%">
21
- </res-select>
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label class="font_normal_body">客户编号</label>
25
- <input style="width:60%" class="input_search" condition="u.f_userinfo_code like '%{}%'" placeholder='客户编号' type="text"
26
- v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
27
- >
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户名称</label>
31
- <input style="width:60%" class="input_search" condition="u.f_user_name like '%{}%'" placeholder='客户名称' type="text"
32
- v-el:username v-model="model.f_username" v-next-el='userid'>
33
- </div>
34
- <div class="span" style="float:right;">
35
- <button @click="search()" class="button_search button_spacing">查询</button>
36
- <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
37
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
- :field="$parent.$parent.getfield"
39
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewInstructChanceList" template-name='指令分析'
40
- :choose-col="true"></export-excel>
41
- <!-- <button @click="$parent.$parent.showEcharts()" class="button_export button_spacing">显示图表</button>-->
42
- <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>
43
- </div>
44
- </div>
45
- <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <div class="col-sm-2 form-group">
47
- <label class="font_normal_body">客户地址</label>
48
- <input style="width:60%" class="input_search" condition="a.f_address like '%{}%'" placeholder='地址' type="text"
49
- v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
50
- >
51
- </div>
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">用户类型</label>
54
- <v-select :options='$parent.$parent.usertypes'
55
- :value.sync="model.f_user_type"
56
- close-on-select
57
- style="width:60%"
58
- condition="uf.f_user_type = '{}'"
59
- id="f_user_type"
60
- placeholder='用户类型'
61
- v-model="model.f_user_type">
62
- </v-select>
63
- </div>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">用气性质</label>
66
- <v-select :options='$parent.$parent.Gasproperties'
67
- :value.sync="model.f_gasproperties"
68
- close-on-select
69
- style="width:60%"
70
- condition="uf.f_gasproperties = '{}'"
71
- id="f_gasproperties"
72
- placeholder='用气性质'
73
- v-model="model.f_gasproperties">
74
- </v-select>
75
- </div>
76
- <div class="col-sm-2 form-group">
77
- <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
78
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
79
- :value.sync="model.startDate"
80
- style="width:60%"
81
- placeholder="起始时间"
82
- v-model="model.startDate"
83
- ></datepicker>
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body" style="word-break:keep-all;">&emsp;&ensp;至&emsp;</label>
87
- <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
88
- :value.sync="model.endDate"
89
- placeholder="结束时间"
90
- style="width:60%"
91
- v-model="model.endDate"
92
- ></datepicker>
93
- </div>
94
-
95
- </div>
96
- </div>
97
- </criteria>
98
- <data-grid :model="model" id="reportgas" partial='list' class="list_area table_sy" v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <th style="text-align:center">序号</th>
102
- <th style="text-align:center">
103
- <nobr>上报日期</nobr>
104
- </th>
105
- <th style="text-align:center" title="在用户数:表具状态为正常的用户数">
106
- <nobr>在用户数</nobr>
107
- </th>
108
- <th style="text-align:center" title="停用户数:表具状态为停用的用户数">
109
- <nobr>停用户数</nobr>
110
- </th>
111
-
112
- <th style="text-align:center" title="指令下发成功表具数">
113
- <nobr>指令下发成功表具数</nobr>
114
- </th>
115
- <th style="text-align:center" title="指令下发总表具数">
116
- <nobr>指令下发总表具数</nobr>
117
- </th>
118
- <th style="text-align:center" title="表具指令成功率=指令上报成功表具数/指令上报总表具数">
119
- <nobr>表具指令成功率</nobr>
120
- </th>
121
- <th style="text-align:center" title="成功指令数">
122
- <nobr>成功指令数</nobr>
123
- </th>
124
- <th style="text-align:center" title="总指令数">
125
- <nobr>总指令数</nobr>
126
- </th>
127
- <th style="text-align:center" title="指令成功率=成功指令数/总指令数">
128
- <nobr>指令成功率</nobr>
129
- </th>
130
- <th style="text-align:center" title="综合指令成功率=指令下发总表具数/在用户数">
131
- <nobr>综合指令成功率</nobr>
132
- </th>
133
- </tr>
134
- </template>
135
- <template partial='body' partial='list' v-ref:grid>
136
- <tr>
137
- <td style="text-align:center">{{$index + 1}}</td>
138
- <td style="text-align:center;width: 170px;">
139
- <nobr>{{row.f_insert_date}}</nobr>
140
- </td>
141
- <td style="text-align:center">{{row.zaiyong}}</td>
142
- <th style="text-align:center">{{row.tingyong}}</th>
143
-
144
- <td style="text-align:center">{{row.c0}}</td>
145
- <th style="text-align:center">{{row.c}}</th>
146
- <th style="text-align:center">{{row.f_bv1}}</th>
147
- <td style="text-align:center">
148
- <nobr>{{row.success}}</nobr>
149
- </td>
150
- <td style="text-align:center">
151
- <nobr>{{row.c1}}</nobr>
152
- </td>
153
- <td style="text-align:center">
154
- <nobr>{{row.f_bv2}}</nobr>
155
- </td>
156
- <td style="text-align:center">
157
- <nobr>{{row.f_bv0}}</nobr>
158
- </td>
159
- </tr>
160
- </template>
161
- <template partial='foot'></template>
162
- </data-grid>
163
- </criteria-paged>
164
- </div>
165
- <div style="height: 40px;width: 100%;" v-show="echarts">
166
- <button @click="showEcharts()" class="button_search button_spacing">隐藏图表</button>
167
- </div>
168
- <!-- 图显示模板-->
169
- <div class="span " style="width: 100%;" v-show="echarts">
170
- <user-instruct-echarts-list :condition="condition" :echarts="echarts"
171
- :enddate="endDate" :startdate="startDate"></user-instruct-echarts-list>
172
- </div>
173
- </div>
174
- </div>
175
- </div>
176
- </template>
177
- <script>
178
- import {PagedList} from 'vue-client'
179
- import * as Util from '../../../Util'
180
- import getLodop from '../../../plugins/LodopFuncs'
181
- import UserInstructEchartsList from './UserInstructEchartsList'
182
- import plugins from '../../../plugins/GetLoginInfoService'
183
-
184
- export default {
185
- title: '指令分析',
186
- props: ['data'],
187
- components: {UserInstructEchartsList},
188
- data() {
189
- return {
190
- model: new PagedList('rs/sql/webmeter_getNewInstructChanceList', 100, {
191
- startDate: 'this.model.startDate',
192
- endDate: 'this.model.endDate'
193
- }),
194
- condition: '1=1',
195
- startDate: '',
196
- endDate: '',
197
- getfield:{"f_insert_date":"上报日期","zaiyong":"在用户数",
198
- "tingyong":"停用户数",
199
- "c0":"指令下发成功表具数","c":"指令下发总表具数",
200
- "f_bv1":"表具指令成功率",
201
- "success":"成功指令数","c1":"总指令数",
202
- "f_bv2":"指令成功率",
203
- "f_bv0":"综合指令成功率"
204
- },
205
- criteriaShow: false,
206
- echarts: false,
207
- searchshow: false,
208
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
209
- orgid: [this.$login.f.orgid]
210
- }
211
- },
212
- ready() {
213
- this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
214
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
215
- this.getdata()
216
- },
217
- methods: {
218
- search1(){
219
- this.$refs.paged.$refs.cri.search()
220
- },
221
- // 查询开关
222
- hidden() {
223
- this.criteriaShow = !this.criteriaShow
224
- },
225
- getdata() {
226
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
227
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
228
- if (this.orgCondtionStr)
229
- this.condition = this.$refs.paged.$refs.cri.condition + 'and uf.f_orgid in ' + this.orgCondtionStr
230
- this.$refs.paged.$refs.cri.search()
231
- },
232
- // 显示柱状图
233
- showEcharts() {
234
- this.echarts = !this.echarts
235
- },
236
- close() {
237
- this.show = false
238
- },
239
- // SaveAsFile(str) {
240
- // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
241
- // if (res === 'confirm') {
242
- // let style = '<style>' +
243
- // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
244
- // let strHtml = style + document.getElementById(str).innerHTML;
245
- // console.log(strHtml);
246
- // let LODOP = getLodop();
247
- // LODOP.PRINT_INIT('');
248
- // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
249
- // LODOP.SAVE_TO_FILE('抄表统计.xls')
250
- // }
251
- // })
252
- // },
253
- clearmsg() {
254
- this.$refs.paged.$refs.cri.model = {}
255
- },
256
- search(args) {
257
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
258
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
259
- if (this.endDate == '' || this.startDate == '') {
260
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
261
- }
262
- if (this.orgCondtionStr)
263
- args.condition = `${args.condition}` + 'and uf.f_orgid in ' + this.orgCondtionStr
264
- this.condition = args.condition
265
- this.model.search(args.condition, args.model)
266
- },
267
- getRes(obj) {
268
- this.orgCondtionStr = plugins.convertToIn(obj)
269
- }
270
- },
271
- computed: {
272
- getCondition() {
273
- var con=""
274
- if (this.orgCondtionStr) {
275
- con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
276
- }
277
- else{
278
- con= `${this.$refs.paged.$refs.cri.condition} `
279
- }
280
- return {
281
- condition: con ,
282
- startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
283
- endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
284
- }
285
-
286
- },
287
- usertypes() {
288
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
289
- },
290
- Gasproperties() {
291
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
292
- },
293
- Getuserstyle() {
294
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
295
- }
296
- }
297
- }
298
- </script>
299
- <style>
300
- .mystyle {
301
- margin-left: 80px;
302
- }
303
-
304
- .datapanel {
305
- color: #333;
306
- background-color: white;
307
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
308
- padding: 10px 10px 10px 10px;
309
- border-radius: 15px;
310
- }
311
- </style>
1
+ <template>
2
+ <div class="flex-row binary" id="unit">
3
+ <div class="basic-main" @keyup.enter="search1">
4
+ <div class="flex">
5
+ <div class="flex" style="flex:1;" v-show="!echarts">
6
+ <criteria-paged :model="model" :pager='true' v-ref:paged>
7
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row" width="100%">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">表&ensp;钢&ensp;号</label>
12
+ <input style="width:60%" class="input_search" condition="uf.f_meternumber like '%{}%'" placeholder='表钢号' type="text"
13
+ v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
14
+ >
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">组织机构</label>
18
+ <res-select :initresid="$parent.$parent.orgid"
19
+ @res-select="$parent.$parent.getRes"
20
+ restype='organization'style="width: 60%">
21
+ </res-select>
22
+ </div>
23
+ <div class="col-sm-2 form-group">
24
+ <label class="font_normal_body">客户编号</label>
25
+ <input style="width:60%" class="input_search" condition="u.f_userinfo_code like '%{}%'" placeholder='客户编号' type="text"
26
+ v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
27
+ >
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户名称</label>
31
+ <input style="width:60%" class="input_search" condition="u.f_user_name like '%{}%'" placeholder='客户名称' type="text"
32
+ v-el:username v-model="model.f_username" v-next-el='userid'>
33
+ </div>
34
+ <div class="span" style="float:right;">
35
+ <button @click="search()" class="button_search button_spacing">查询</button>
36
+ <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
37
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
+ :field="$parent.$parent.getfield"
39
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getNewInstructChanceList" template-name='指令分析'
40
+ :choose-col="true"></export-excel>
41
+ <!-- <button @click="$parent.$parent.showEcharts()" class="button_export button_spacing">显示图表</button>-->
42
+ <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>
43
+ </div>
44
+ </div>
45
+ <div class="row" v-show="$parent.$parent.criteriaShow">
46
+ <div class="col-sm-2 form-group">
47
+ <label class="font_normal_body">客户地址</label>
48
+ <input style="width:60%" class="input_search" condition="a.f_address like '%{}%'" placeholder='地址' type="text"
49
+ v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
50
+ >
51
+ </div>
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">用户类型</label>
54
+ <v-select :options='$parent.$parent.usertypes'
55
+ :value.sync="model.f_user_type"
56
+ close-on-select
57
+ style="width:60%"
58
+ condition="uf.f_user_type = '{}'"
59
+ id="f_user_type"
60
+ placeholder='用户类型'
61
+ v-model="model.f_user_type">
62
+ </v-select>
63
+ </div>
64
+ <div class="col-sm-2 form-group">
65
+ <label class="font_normal_body">用气性质</label>
66
+ <v-select :options='$parent.$parent.Gasproperties'
67
+ :value.sync="model.f_gasproperties"
68
+ close-on-select
69
+ style="width:60%"
70
+ condition="uf.f_gasproperties = '{}'"
71
+ id="f_gasproperties"
72
+ placeholder='用气性质'
73
+ v-model="model.f_gasproperties">
74
+ </v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
78
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
79
+ :value.sync="model.startDate"
80
+ style="width:60%"
81
+ placeholder="起始时间"
82
+ v-model="model.startDate"
83
+ ></datepicker>
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body" style="word-break:keep-all;">&emsp;&ensp;至&emsp;</label>
87
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
88
+ :value.sync="model.endDate"
89
+ placeholder="结束时间"
90
+ style="width:60%"
91
+ v-model="model.endDate"
92
+ ></datepicker>
93
+ </div>
94
+
95
+ </div>
96
+ </div>
97
+ </criteria>
98
+ <data-grid :model="model" id="reportgas" partial='list' class="list_area table_sy" v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <th style="text-align:center">序号</th>
102
+ <th style="text-align:center">
103
+ <nobr>上报日期</nobr>
104
+ </th>
105
+ <th style="text-align:center" title="在用户数:表具状态为正常的用户数">
106
+ <nobr>在用户数</nobr>
107
+ </th>
108
+ <th style="text-align:center" title="停用户数:表具状态为停用的用户数">
109
+ <nobr>停用户数</nobr>
110
+ </th>
111
+
112
+ <th style="text-align:center" title="指令下发成功表具数">
113
+ <nobr>指令下发成功表具数</nobr>
114
+ </th>
115
+ <th style="text-align:center" title="指令下发总表具数">
116
+ <nobr>指令下发总表具数</nobr>
117
+ </th>
118
+ <th style="text-align:center" title="表具指令成功率=指令上报成功表具数/指令上报总表具数">
119
+ <nobr>表具指令成功率</nobr>
120
+ </th>
121
+ <th style="text-align:center" title="成功指令数">
122
+ <nobr>成功指令数</nobr>
123
+ </th>
124
+ <th style="text-align:center" title="总指令数">
125
+ <nobr>总指令数</nobr>
126
+ </th>
127
+ <th style="text-align:center" title="指令成功率=成功指令数/总指令数">
128
+ <nobr>指令成功率</nobr>
129
+ </th>
130
+ <th style="text-align:center" title="综合指令成功率=指令下发总表具数/在用户数">
131
+ <nobr>综合指令成功率</nobr>
132
+ </th>
133
+ </tr>
134
+ </template>
135
+ <template partial='body' partial='list' v-ref:grid>
136
+ <tr>
137
+ <td style="text-align:center">{{$index + 1}}</td>
138
+ <td style="text-align:center;width: 170px;">
139
+ <nobr>{{row.f_insert_date}}</nobr>
140
+ </td>
141
+ <td style="text-align:center">{{row.zaiyong}}</td>
142
+ <th style="text-align:center">{{row.tingyong}}</th>
143
+
144
+ <td style="text-align:center">{{row.c0}}</td>
145
+ <th style="text-align:center">{{row.c}}</th>
146
+ <th style="text-align:center">{{row.f_bv1}}</th>
147
+ <td style="text-align:center">
148
+ <nobr>{{row.success}}</nobr>
149
+ </td>
150
+ <td style="text-align:center">
151
+ <nobr>{{row.c1}}</nobr>
152
+ </td>
153
+ <td style="text-align:center">
154
+ <nobr>{{row.f_bv2}}</nobr>
155
+ </td>
156
+ <td style="text-align:center">
157
+ <nobr>{{row.f_bv0}}</nobr>
158
+ </td>
159
+ </tr>
160
+ </template>
161
+ <template partial='foot'></template>
162
+ </data-grid>
163
+ </criteria-paged>
164
+ </div>
165
+ <div style="height: 40px;width: 100%;" v-show="echarts">
166
+ <button @click="showEcharts()" class="button_search button_spacing">隐藏图表</button>
167
+ </div>
168
+ <!-- 图显示模板-->
169
+ <div class="span " style="width: 100%;" v-show="echarts">
170
+ <user-instruct-echarts-list :condition="condition" :echarts="echarts"
171
+ :enddate="endDate" :startdate="startDate"></user-instruct-echarts-list>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ </template>
177
+ <script>
178
+ import {PagedList} from 'vue-client'
179
+ import * as Util from '../../../Util'
180
+ import getLodop from '../../../plugins/LodopFuncs'
181
+ import UserInstructEchartsList from './UserInstructEchartsList'
182
+ import plugins from '../../../plugins/GetLoginInfoService'
183
+
184
+ export default {
185
+ title: '指令分析',
186
+ props: ['data'],
187
+ components: {UserInstructEchartsList},
188
+ data() {
189
+ return {
190
+ model: new PagedList('rs/sql/webmeter_getNewInstructChanceList', 100, {
191
+ startDate: 'this.model.startDate',
192
+ endDate: 'this.model.endDate'
193
+ }),
194
+ condition: '1=1',
195
+ startDate: '',
196
+ endDate: '',
197
+ getfield:{"f_insert_date":"上报日期","zaiyong":"在用户数",
198
+ "tingyong":"停用户数",
199
+ "c0":"指令下发成功表具数","c":"指令下发总表具数",
200
+ "f_bv1":"表具指令成功率",
201
+ "success":"成功指令数","c1":"总指令数",
202
+ "f_bv2":"指令成功率",
203
+ "f_bv0":"综合指令成功率"
204
+ },
205
+ criteriaShow: false,
206
+ echarts: false,
207
+ searchshow: false,
208
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
209
+ orgid: [this.$login.f.orgid]
210
+ }
211
+ },
212
+ ready() {
213
+ this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
214
+ this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
215
+ this.getdata()
216
+ },
217
+ methods: {
218
+ search1(){
219
+ this.$refs.paged.$refs.cri.search()
220
+ },
221
+ // 查询开关
222
+ hidden() {
223
+ this.criteriaShow = !this.criteriaShow
224
+ },
225
+ getdata() {
226
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
227
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
228
+ if (this.orgCondtionStr)
229
+ this.condition = this.$refs.paged.$refs.cri.condition + 'and uf.f_orgid in ' + this.orgCondtionStr
230
+ this.$refs.paged.$refs.cri.search()
231
+ },
232
+ // 显示柱状图
233
+ showEcharts() {
234
+ this.echarts = !this.echarts
235
+ },
236
+ close() {
237
+ this.show = false
238
+ },
239
+ // SaveAsFile(str) {
240
+ // this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
241
+ // if (res === 'confirm') {
242
+ // let style = '<style>' +
243
+ // 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
244
+ // let strHtml = style + document.getElementById(str).innerHTML;
245
+ // console.log(strHtml);
246
+ // let LODOP = getLodop();
247
+ // LODOP.PRINT_INIT('');
248
+ // LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
249
+ // LODOP.SAVE_TO_FILE('抄表统计.xls')
250
+ // }
251
+ // })
252
+ // },
253
+ clearmsg() {
254
+ this.$refs.paged.$refs.cri.model = {}
255
+ },
256
+ search(args) {
257
+ this.startDate = this.$refs.paged.$refs.cri.model.startDate
258
+ this.endDate = this.$refs.paged.$refs.cri.model.endDate
259
+ if (this.endDate == '' || this.startDate == '') {
260
+ return this.$showMessage("时间区间的开始和结束时间不能为空!")
261
+ }
262
+ if (this.orgCondtionStr)
263
+ args.condition = `${args.condition}` + 'and uf.f_orgid in ' + this.orgCondtionStr
264
+ this.condition = args.condition
265
+ this.model.search(args.condition, args.model)
266
+ },
267
+ getRes(obj) {
268
+ this.orgCondtionStr = plugins.convertToIn(obj)
269
+ }
270
+ },
271
+ computed: {
272
+ getCondition() {
273
+ var con=""
274
+ if (this.orgCondtionStr) {
275
+ con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
276
+ }
277
+ else{
278
+ con= `${this.$refs.paged.$refs.cri.condition} `
279
+ }
280
+ return {
281
+ condition: con ,
282
+ startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
283
+ endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
284
+ }
285
+
286
+ },
287
+ usertypes() {
288
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
289
+ },
290
+ Gasproperties() {
291
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
292
+ },
293
+ Getuserstyle() {
294
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
295
+ }
296
+ }
297
+ }
298
+ </script>
299
+ <style>
300
+ .mystyle {
301
+ margin-left: 80px;
302
+ }
303
+
304
+ .datapanel {
305
+ color: #333;
306
+ background-color: white;
307
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
308
+ padding: 10px 10px 10px 10px;
309
+ border-radius: 15px;
310
+ }
311
+ </style>