manage-client 3.3.128 → 3.3.130

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.
@@ -1,625 +0,0 @@
1
- <template>
2
- <div class="flex-row" id="unit" v-show="(!echarts)&&(!isActiveTotalForm)">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div class="flex" style="flex:1;">
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">客户编号</label>
12
- <input style="width:60%" class="input_search" condition="f_userinfo_code like '%{}%'" placeholder='客户编号' type="text"
13
- v-el:meternumber v-model="model.f_userinfo_code" v-next-el='f_userinfo_code'
14
- >
15
- </div>
16
- <div class="col-sm-2 form-group">
17
- <label class="font_normal_body">客户名称</label>
18
- <input style="width:60%" class="input_search" condition="f_user_name = '{}'" placeholder='客户名称' type="text"
19
- v-el:username v-model="model.f_username" v-next-el='userid'>
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
23
- <v-select :value.sync="model.f_residential_area"
24
- class="select_list select"
25
- v-model="model.f_residential_area"
26
- style="width: 60%"
27
- multiple
28
- condition="f_residential_area in {}"
29
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
30
- close-on-select>
31
-
32
- </v-select>
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">用气地址</label>
36
- <input style="width:60%" class="input_search" condition="f_address like '%{}%'" placeholder='用气地址' type="text"
37
- v-el:area v-el:xq v-model="model.f_address" v-next-el='address'
38
- >
39
- </div>
40
- <div class="col-sm-4 form-group button-range">
41
- <button @click="search()" class="button_search button_spacing">查询</button>
42
- <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition()"
44
- :field="$parent.$parent.getfield"
45
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='用气分析'
46
- v-ref:exports
47
- :choose-col="true"></export-excel>
48
- <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
49
- <button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
-
55
- <!--<div class="col-sm-2 form-group" >
56
- <label class="font_normal_body">用气属性</label>
57
- <v-select
58
- placeholder='用气属性'
59
- value-single="true"
60
- :value.sync="model.f_gasproperties2"
61
- v-model="model.f_gasproperties2"
62
- :options='$parent.$parent.Gasproperties2'
63
- close-on-select condition="uf.f_gasproperties2 {}">
64
- </v-select>
65
- </div>-->
66
- <!-- <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">表&emsp;&emsp;号</label>
69
- <input style="width:60%" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' type="text"
70
- v-el:meternumber v-model="model.f_meternumber" v-next-el='meternumber'
71
- >
72
- </div>
73
- <!-- <div class="col-sm-2">-->
74
- <!-- <label class="font_normal_body">公&emsp;&emsp;司</label>-->
75
- <!-- <right-tree @re-res="$parent.$parent.getorg"-->
76
- <!-- :initresid='$parent.$parent.orgid'></right-tree>-->
77
- <!-- </div>-->
78
- <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
79
- <!-- <div class="col-sm-2 form-group">-->
80
- <!-- <label class="font_normal_body">组织机构</label>-->
81
- <!-- <res-select :initresid="$parent.$parent.orgid"-->
82
- <!-- style="width:60%"-->
83
- <!-- @res-select="$parent.$parent.getRes"-->
84
- <!-- restype='organization'>-->
85
- <!-- </res-select>-->
86
- <!-- </div>-->
87
-
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">客户类型</label>
90
- <v-select :options='$parent.$parent.Gasusertype'
91
- :value.sync="model.f_user_type"
92
- close-on-select
93
- style="width:60%"
94
- condition="f_user_type = '{}'"
95
- id="f_user_type"
96
- placeholder='客户类型'
97
- v-model="model.f_user_type"
98
- value-single="true">
99
- </v-select>
100
- </div>
101
- <div class="col-sm-2 form-group">
102
- <label class="font_normal_body">用气性质</label>
103
- <v-select :options='$parent.$parent.Gasproperties'
104
- :value.sync="model.f_gasproperties"
105
- close-on-select
106
- condition="f_gasproperties = '{}'"
107
- id="f_gasproperties"
108
- placeholder='用气性质'
109
- style="width:60%"
110
- v-model="model.f_gasproperties"
111
- value-single="true">
112
- </v-select>
113
- </div>
114
- <div class="col-sm-2 form-group">
115
- <label class="font_normal_body">气表品牌</label>
116
- <v-select :value.sync="model.f_meter_brand"
117
- v-model="model.f_meter_brand"
118
- :options='$parent.$parent.meterbrands' placeholder='请选择'
119
- condition="f_meter_brand = '{}'"
120
- close-on-select></v-select>
121
- </div>
122
- <div class="col-sm-2 form-group">
123
- <label class="font_normal_body">时间区间</label>
124
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
125
- :show-reset-button="reset"
126
- :value.sync="model.startDate"
127
- id="startDate"
128
- style="width:60%"
129
- placeholder="开始时间"
130
- v-model="model.startDate">
131
- </datepicker>
132
- </div>
133
- <div class="col-sm-2 form-group">
134
- <label class="font_normal_body" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
135
- <datepicker :disabled-days-of-Week="[]" :format="'yyyy-MM-dd HH:mm:ss'"
136
- :show-reset-button="reset"
137
- :value.sync="model.endDate"
138
- style="width:60%"
139
- id="endDate"
140
- style="width:60%"
141
- placeholder="结束日期"
142
- v-model="model.endDate">
143
- </datepicker>
144
- </div>
145
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
146
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;用气量&nbsp;</label>
147
- <div class="row">
148
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
149
- condition="f_oughtamount >= {} " placeholder="">
150
- <label class="font_normal_body"> ≤ x ≤ </label>
151
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
152
- condition="f_oughtamount <= {} " placeholder="">
153
- </div>
154
- </div>
155
- <!--<div class="col-sm-2 form-group">
156
- <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
157
- <input type="text" style="width:60%" class="input_search"
158
- v-model="model.f_start_oughtamount" placeholder='起始气量'
159
- >
160
- </div>
161
- <div class="col-sm-2 form-group">
162
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
163
- <input type="text" style="width:60%" class="input_search"
164
- v-model="model.f_end_oughtamount" placeholder='结束气量'
165
- >
166
- </div>-->
167
- <div class="col-sm-2 form-group">
168
- <label class="font_normal_body">壁&ensp;挂&ensp;炉</label>
169
- <v-select id="f_meter_brand"
170
- v-model="model.f_usetype"
171
- placeholder=''
172
- :value.sync="model.f_usetype"
173
- :options='$parent.$parent.usetypes'
174
- condition="f_usetype {}" :search="false"
175
- close-on-select style="width: 60%">
176
- </v-select>
177
- </div>
178
- <div class="col-sm-2 form-group">
179
- <label class="font_normal_body">房屋类型</label>
180
- <v-select :value.sync="model.f_house_type" v-model="model.f_house_type"
181
- :options='$parent.$parent.houseTypes' placeholder='请选择'
182
- close-on-select
183
- condition="f_house_type = '{}'"></v-select>
184
- </div>
185
- <div class="col-sm-2 form-group">
186
- <label class="font_normal_body">安装位置</label>
187
- <v-select :value.sync="model.f_position" v-model="model.f_position"
188
- :options='$parent.$parent.positions' placeholder='请选择'
189
- condition="f_position = '{}'"
190
- close-on-select></v-select>
191
- </div>
192
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
193
- <label class="font_normal_body">期末结余</label>
194
- <div class="row">
195
- <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance1"
196
- condition="f_curbalance >= {} " placeholder="">
197
- <label class="font_normal_body"> ≤ x ≤ </label>
198
- <input type="text" style="width:27%" class="input_search" v-model="model.f_curbalance2"
199
- condition="f_curbalance <= {} " placeholder="">
200
- </div>
201
- </div>
202
- </div>
203
- </div>
204
- </criteria>
205
- <data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
206
- <template partial='head'>
207
- <tr>
208
- <th style="text-align:center">
209
- <nobr>客户编号</nobr>
210
- </th>
211
- <th style="text-align:center">
212
- <nobr>客户类型</nobr>
213
- </th>
214
- <th style="text-align:center">
215
- <nobr>用气性质</nobr>
216
- </th>
217
- <th style="text-align:center">
218
- <nobr>用户电话</nobr>
219
- </th>
220
- <!--<th style="text-align:center"><nobr>用气属性</nobr></th>-->
221
- <th style="text-align:center">
222
- <nobr>客户名称</nobr>
223
- </th>
224
- <th style="text-align:center">
225
- <nobr>小区</nobr>
226
- </th>
227
- <th style="text-align:center">
228
- <nobr>用气单价</nobr>
229
- </th>
230
- <th style="text-align:center">
231
- <nobr>用气量</nobr>
232
- </th>
233
- <th style="text-align:center">
234
- <nobr>用气金额</nobr>
235
- </th>
236
- <th style="text-align:center">
237
- <nobr>累购气量</nobr>
238
- </th>
239
- <th style="text-align:center">
240
- <nobr>累购金额</nobr>
241
- </th>
242
- <th style="text-align:center">
243
- <nobr>账号结余</nobr>
244
- </th>
245
- <th style="text-align:center">
246
- <nobr>气表名称</nobr>
247
- </th>
248
- <th style="text-align:center">
249
- <nobr>用气地址</nobr>
250
- </th>
251
- <th style="text-align:center">
252
- <nobr>表号</nobr>
253
- </th>
254
- <th style="text-align:center">
255
- <nobr>期初余额(元)</nobr>
256
- </th>
257
- <th style="text-align:center">
258
- <nobr>上期底数</nobr>
259
- </th>
260
- <th style="text-align:center">
261
- <nobr>本期底数</nobr>
262
- </th>
263
- <!-- <th style="text-align:center"><nobr>气价(元/m³)</nobr></th>-->
264
- <th style="text-align:center">
265
- <nobr>用气量(m³)</nobr>
266
- </th>
267
- <th style="text-align:center">
268
- <nobr>用气金额(元)</nobr>
269
- </th>
270
- <!-- <th style="text-align:center">-->
271
- <!-- <nobr>充值金额(元)</nobr>-->
272
- <!-- </th>-->
273
- <th style="text-align:center">
274
- <nobr>期末结余(元)</nobr>
275
- </th>
276
- </tr>
277
-
278
-
279
- </template>
280
- <template partial='body'>
281
- <td>{{row.f_userinfo_code}}</td>
282
- <td style="text-align:center">{{row.f_user_type}}</td>
283
- <td style="text-align:center">{{row.f_gasproperties}}</td>
284
- <td style="text-align:center">{{row.f_user_phone}}</td>
285
- <!--<td style="text-align:center">{{row.f_gasproperties2}}</td>-->
286
- <td style="text-align:center">
287
- <nobr>{{row.f_user_name}}</nobr>
288
- </td>
289
- <td style="text-align:center">
290
- <nobr>{{row.f_residential_area}}</nobr>
291
- </td>
292
- <td style="text-align:center">
293
- <nobr>{{row.f_price}}</nobr>
294
- </td>
295
- <td style="text-align:center">
296
- <nobr>{{row.f_gas1}}/{{row.f_gas2}}/{{row.f_gas3}}</nobr>
297
- </td>
298
- <td style="text-align:center">
299
- <nobr>{{row.f_money1}}/{{row.f_money2}}/{{row.f_money3}}</nobr>
300
- </td>
301
- <td style="text-align:center">{{row.f_total_gas}}</td>
302
- <td style="text-align:center">{{row.f_total_fee}}</td>
303
- <td style="text-align:center">{{row.f_balance_amount}}</td>
304
- <td style="text-align:center">{{row.f_meter_brand}}</td>
305
- <td>
306
- <nobr>{{row.f_address}}</nobr>
307
- </td>
308
- <td>{{row.f_meternumber}}</td>
309
- <td style="text-align:center">{{row.f_balance}}</td>
310
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
311
- <td style="text-align:center">{{row.f_tablebase}}</td>
312
- <!--<td style="text-align:center">{{row.f_avg_price}}</td>-->
313
- <td style="text-align:center">{{row.f_oughtamount}}</td>
314
- <td style="text-align:center">{{row.f_oughtfee}}</td>
315
- <!-- <td style="text-align:center">{{row.f_collection}}</td>-->
316
- <td style="text-align:center">{{row.f_curbalance}}</td>
317
- </template>
318
- </data-grid>
319
- </criteria-paged>
320
- <table class="table-hover">
321
- <tr style="position: relative" class="table-bordered">
322
- <td
323
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
324
- 汇总信息
325
- </td>
326
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
327
- 总累购气量:&emsp;{{model.sums.f_total_gas}}
328
- </td>
329
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
330
- 总累购金额:&emsp;{{model.sums.f_total_fee}}
331
- </td>
332
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
333
- 总账户结余:&emsp;{{model.sums.f_balance_amount}}
334
- </td>
335
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
336
- 本期用气量合计:&emsp;{{model.sums.f_oughtamount}}
337
- </td>
338
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
339
- 本期用气金额合计:&emsp;{{model.sums.f_oughtfee}}
340
- </td>
341
- </tr>
342
- </table>
343
- </div>
344
- </div>
345
- </div>
346
- </div>
347
- <div class="flex-row" v-if="echarts">
348
- <user-gas-echarts :condition="condition" :echarts="echarts" :enddate="endDate"
349
- :groupname="groupname[0]" :startdate="startDate"></user-gas-echarts>
350
- </div>
351
- <!--汇总表显示模板-->
352
- <div class="flex-row" v-if="isActiveTotalForm">
353
- <user-gas-eform :condition="condition" :enddate="endDate" :startdate="startDate"></user-gas-eform>
354
- </div>
355
- </template>
356
-
357
- <script>
358
- import {HttpResetClass, PagedList} from 'vue-client'
359
- import UserGasEcharts from '../../components/webmeter/DrillData/UserGasEcharts'
360
- import * as Util from '../../Util'
361
- import getLodop from '../../plugins/LodopFuncs'
362
- import plugins from '../../plugins/GetLoginInfoService'
363
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
364
- let readyGen = async function (self) {
365
- await self.$MagLoadParams.loadParam()
366
- self.initParams()
367
- self.getaddress()
368
- }
369
-
370
- export default {
371
- title: '用气分析',
372
- props: ['data'],
373
- components: {UserGasEcharts},
374
- data() {
375
- return {
376
- resshow:['company','slicearea'],
377
- model: new PagedList('rs/sql/webmeter_getUserGasList', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
378
- f_gas1: 0,
379
- f_gas2: 0,
380
- f_gas3: 0,
381
- f_money1: 0,
382
- f_money2: 0,
383
- f_money3: 0,
384
- f_oughtamount: 0,
385
- f_oughtfee: 0,
386
- f_total_gas: 0,
387
- f_total_fee: 0,
388
- f_balance_amount: 0
389
- }),
390
- getGroupNameByDate: [
391
- {label: '年份', value: 'year'},
392
- {label: '月份', value: 'month'},
393
- {label: '周', value: 'week'}
394
- ],
395
- meterbrands: [],
396
- residentialArea: [],
397
- criteriaShow: false,
398
- reportStr: null,
399
- show: false,
400
- initres: {
401
- org:[this.$login.f.orgid],
402
- dep:[],
403
- user:[]
404
- },
405
- outlets: [],
406
- operator: [],
407
- filename: '',
408
- searchshow: true,
409
- startDate: '',
410
- endDate: '',
411
- echarts: false,
412
- isActiveTotalForm: false,
413
- condition: '1=1',
414
- getfield: {},
415
- config: {
416
- excelHeaders: {
417
- 'f_userinfo_code':'客户编号',
418
- 'f_user_type':'客户类型',
419
- 'f_gasproperties': '用气性质',
420
- 'f_user_name': '客户名称',
421
- 'f_user_phone':'客户电话',
422
- 'f_residential_area': '小区',
423
- 'f_price':'用气单价',
424
- 'f_address':'用气地址',
425
- 'f_meternumber': '表号',
426
- 'f_meter_brand':'气表品牌',
427
- 'f_balance':'期初余额(元)',
428
- 'f_last_tablebase': '上期底数',
429
- 'f_tablebase':'本期底数',
430
- 'f_oughtamount':'用气量(m³)',
431
- 'f_oughtfee':'用气金额(元)',
432
- 'f_curbalance':'期末结余(元)'
433
-
434
- }
435
- },
436
- groupname: ['day'],
437
- getgroupname: [
438
- {label: '年份', value: 'year'},
439
- {label: '月份', value: 'month'},
440
- {label: '周', value: 'week'},
441
- {label: '日', value: 'day'}
442
- ],
443
- // orgCondtionStr: ' and h.f_orgid in (' + this.$login.f.orgid + ')',
444
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
445
- orgid:[this.$login.f.orgid],
446
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
447
- zonesdata:''
448
- }
449
- },
450
- ready() {
451
- readyGen(this)
452
- console.log('444444444', Util.addDate(new Date(),-6).substring(0,10))
453
- this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-4).substring(0,10) + ' 00:00:00'
454
- this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
455
- this.$refs.paged.$refs.cri.search()
456
- this.getfield = this.config.excelHeaders
457
- },
458
- methods: {
459
- // 查询开关
460
- hidden() {
461
- this.criteriaShow = !this.criteriaShow
462
- },
463
- async getaddress(){
464
- let HttpReset = new HttpResetClass()
465
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
466
- data: {
467
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
468
- }
469
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
470
- console.log('小区',data)
471
- let house = [{label: '全部', value: ''}]
472
- for (let row of data.data){
473
- house.push({label: row.f_residential_area, value: row.f_residential_area})
474
- }
475
- this.residentialArea = house
476
- },
477
- SaveAsFile(str) {
478
- this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
479
- if (res === 'confirm') {
480
- let style = '<style>' +
481
- 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
482
- let strHtml = style + document.getElementById(str).innerHTML;
483
- console.log(strHtml);
484
- let LODOP = getLodop();
485
- LODOP.PRINT_INIT('');
486
- LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
487
- LODOP.SAVE_TO_FILE('用气分析.xls')
488
- }
489
- })
490
- },
491
- clearmsg() {
492
- this.$refs.paged.$refs.cri.model = {}
493
- },
494
- initParams() {
495
- // 初始化气表品牌
496
- let brandArr = []
497
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
498
- if (item.value.f_meter_type == '物联网表') {
499
- let temp = {}
500
- temp.label = item.label
501
- temp.value = item.value.f_meter_brand
502
- brandArr.push(temp)
503
- }
504
- })
505
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
506
-
507
- },
508
- search(args) {
509
- this.startDate = this.$refs.paged.$refs.cri.model.startDate
510
- this.endDate = this.$refs.paged.$refs.cri.model.endDate
511
- if (this.endDate == '' || this.startDate == '') {
512
- return this.$showMessage("时间区间的开始和结束时间不能为空!")
513
- }
514
- // this.condition = this.$refs.paged.$refs.cri.condition + ` ${this.orgCondtionStr}`
515
- if (this.orgCondtionStr)
516
- this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid in ${this.orgCondtionStr}`
517
- else
518
- this.condition = this.$refs.paged.$refs.cri.condition + ` and f_orgid = ${this.$login.f.orgid}`
519
- if(this.zonesdata){
520
- this.condition = this.$refs.paged.$refs.cri.condition + ` and ${this.zonesdata}`
521
- }
522
- args.condition = this.condition
523
- this.model.search(args.condition, args.model)
524
- },
525
- // 显示柱状图
526
- showEcharts() {
527
- this.echarts = true
528
- this.isActiveTotalForm = false
529
- },
530
- notShowTotalForm() {
531
- this.echarts = false
532
- this.isActiveTotalForm = false
533
- },
534
- // 不显示柱状图
535
- notShowEcharts() {
536
- this.echarts = false
537
- this.isActiveTotalForm = false
538
- },
539
- // 显示汇总数据表格
540
- showTotalForm() {
541
- this.echarts = false
542
- this.isActiveTotalForm = true
543
- },
544
- close() {
545
- this.show = false
546
- },
547
- getRes(obj) {
548
- this.orgCondtionStr = plugins.convertToIn(obj)
549
- if(obj.indexOf("f_zones = ")>0){
550
- this.zonesdata = obj.substring(obj.indexOf("f_zones = "))
551
- }else{
552
- this.zonesdata='';
553
- }
554
- },
555
- getorg(obj) {
556
- this.orgCondtionStr = plugin.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
557
- },
558
- getCondition () {
559
- return {
560
- condition: this.condition,
561
- startDate: this.startDate,
562
- endDate: this.endDate
563
- }
564
- }
565
- // getRes(condition,obj) {
566
- // this.orgCondtionStr = condition
567
- // this.orgname = obj.orgnames[0]
568
- // this.depname = obj.depnames[0]
569
- // }
570
- },
571
- watch: {
572
- 'data'(val) {
573
- if (val.f_files_path) {
574
- this.getFileContent(val.f_files_path)
575
- } else {
576
- this.reportStr = null
577
- }
578
- }
579
- },
580
- computed: {
581
- houseTypes() {
582
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
583
- },
584
- positions() {
585
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
586
- },
587
- Gasusertype() {
588
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
589
- },
590
- valveStatus() {
591
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
592
- },
593
- Gasproperties() {
594
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
595
- }
596
- }
597
- }
598
- </script>
599
- <style>
600
- .mystyle {
601
- float: right;
602
- padding-right: 10%;
603
- }
604
-
605
- .mystyle1 {
606
- padding-top: 10px;
607
-
608
- }
609
-
610
- .mystyle2 {
611
- width: 100%;
612
- height: 35px;
613
- /*background: #00A3F0;*/
614
- padding-left: 15px;
615
- float: left;
616
- }
617
-
618
- .datapanel {
619
- color: #333;
620
- background-color: white;
621
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
622
- padding: 10px 10px 10px 10px;
623
- border-radius: 15px;
624
- }
625
- </style>