manage-client 3.3.213 → 3.3.215

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