manage-client 4.1.136 → 4.1.138
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.
package/package.json
CHANGED
|
@@ -212,10 +212,10 @@
|
|
|
212
212
|
</div>
|
|
213
213
|
<div class="col-sm-2 form-group" v-if="titleShow">
|
|
214
214
|
<label class="font_normal_body">用户等级</label>
|
|
215
|
-
<v-select :value.sync="model.
|
|
216
|
-
v-model="model.
|
|
215
|
+
<v-select :value.sync="model.f_user_level"
|
|
216
|
+
v-model="model.f_user_level"
|
|
217
217
|
:options='$parent.$parent.usergrade' placeholder='请选择'
|
|
218
|
-
condition="
|
|
218
|
+
condition="f_user_level = '{}'"
|
|
219
219
|
close-on-select></v-select>
|
|
220
220
|
</div>
|
|
221
221
|
<!--表册片区-->
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row" v-show="!echarts">
|
|
3
|
+
<div id='app' class="basic-main">
|
|
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
|
+
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">客户编号</label>
|
|
11
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
12
|
+
v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
13
|
+
condition="u.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
14
|
+
>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-2 form-group">
|
|
17
|
+
<label class="font_normal_body">客户名称</label>
|
|
18
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
19
|
+
v-model="model.f_username" placeholder='客户名称'
|
|
20
|
+
condition="u.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-2 form-group">
|
|
23
|
+
<label class="font_normal_body">客户地址</label>
|
|
24
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
25
|
+
v-model="model.f_address" placeholder='地址'
|
|
26
|
+
condition="a.f_address like '%{}%'" v-el:xq v-next-el='address' v-el:area
|
|
27
|
+
>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">表  号</label>
|
|
31
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search"
|
|
32
|
+
v-model="model.f_meternumber" placeholder='表钢号'
|
|
33
|
+
condition="uf.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
|
|
34
|
+
>
|
|
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="api/af-revenue/logic/openapi/exportfile" sql-name="webmeter_getNewHandChanceList" template-name='抄表分析'
|
|
42
|
+
:choose-col="true"></export-excel>
|
|
43
|
+
<button class="button_export button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>
|
|
44
|
+
<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>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
48
|
+
<div class="col-sm-2 form-group">
|
|
49
|
+
<label class="font_normal_body">公  司</label>
|
|
50
|
+
<right-tree @re-res="$parent.$parent.getRes"
|
|
51
|
+
:initresid='$parent.$parent.orgid'></right-tree>
|
|
52
|
+
<!-- <label class="font_normal_body">组织机构</label>-->
|
|
53
|
+
<!-- <res-select :initresid="$parent.$parent.orgid"-->
|
|
54
|
+
<!-- style="width:60%"-->
|
|
55
|
+
<!-- @res-select="$parent.$parent.getRes"-->
|
|
56
|
+
<!-- restype='organization'>-->
|
|
57
|
+
<!-- </res-select>-->
|
|
58
|
+
</div>
|
|
59
|
+
<!-- <res-select-group :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
|
|
60
|
+
<div class="col-sm-2 form-group">
|
|
61
|
+
<label class="font_normal_body">用户类型</label>
|
|
62
|
+
<v-select style="width:60%" id="f_user_type"
|
|
63
|
+
v-model="model.f_user_type"
|
|
64
|
+
placeholder='用户类型'
|
|
65
|
+
:value.sync="model.f_user_type"
|
|
66
|
+
@change="$parent.$parent.userTypeChange()"
|
|
67
|
+
:options='$parent.$parent.usertypes'
|
|
68
|
+
condition="uf.f_user_type = '{}'"
|
|
69
|
+
close-on-select>
|
|
70
|
+
</v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group">
|
|
73
|
+
<label class="font_normal_body">用气性质</label>
|
|
74
|
+
<v-select style="width:60%" id="f_gasproperties"
|
|
75
|
+
v-model="model.f_gasproperties"
|
|
76
|
+
placeholder='用气性质'
|
|
77
|
+
:value.sync="model.f_gasproperties"
|
|
78
|
+
:options='$parent.$parent.gasproperties'
|
|
79
|
+
condition="uf.f_gasproperties = '{}'"
|
|
80
|
+
close-on-select>
|
|
81
|
+
</v-select>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="col-sm-2 form-group">
|
|
84
|
+
<label class="font_normal_body">气表品牌</label>
|
|
85
|
+
<v-select
|
|
86
|
+
:options='$parent.$parent.meterbrand'
|
|
87
|
+
|
|
88
|
+
:value.sync="model.f_meter_brand"
|
|
89
|
+
close-on-select
|
|
90
|
+
condition="f_meter_brand='{}'"
|
|
91
|
+
placeholder='气表品牌'
|
|
92
|
+
style="width:60%"
|
|
93
|
+
v-model="model.f_meter_brand">
|
|
94
|
+
</v-select>
|
|
95
|
+
</div>
|
|
96
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
97
|
+
<!-- <label class="font_normal_body">气表品牌</label>-->
|
|
98
|
+
<!-- <v-select-->
|
|
99
|
+
<!-- placeholder='气表品牌'-->
|
|
100
|
+
<!-- :value.sync="model.f_meter_brand"-->
|
|
101
|
+
<!-- v-model="model.f_meter_brand"-->
|
|
102
|
+
<!-- :options='$parent.$parent.WarningType'-->
|
|
103
|
+
<!-- @change="$parent.$parent.getMeterType"-->
|
|
104
|
+
<!-- close-on-select-->
|
|
105
|
+
<!-- condition="gb.f_meter_brand='{}'">-->
|
|
106
|
+
<!-- </v-select>-->
|
|
107
|
+
<!-- </div>-->
|
|
108
|
+
<div class="col-sm-2 form-group" >
|
|
109
|
+
<label class="font_normal_body">气表型号</label>
|
|
110
|
+
<v-select
|
|
111
|
+
placeholder='气表型号'
|
|
112
|
+
:value.sync="model.f_meter_style"
|
|
113
|
+
v-model="model.f_meter_style"
|
|
114
|
+
:options='$parent.$parent.meterstyle[model.f_meter_brand]'
|
|
115
|
+
close-on-select
|
|
116
|
+
condition="gm.f_meter_style='{}'">
|
|
117
|
+
</v-select>
|
|
118
|
+
<!-- <v-select v-if="!$parent.$parent.styles"-->
|
|
119
|
+
<!-- placeholder='气表型号'-->
|
|
120
|
+
<!-- :value.sync="model.f_meter_style"-->
|
|
121
|
+
<!-- v-model="model.f_meter_style"-->
|
|
122
|
+
<!-- :options='$parent.$parent.Warningstyles'-->
|
|
123
|
+
<!-- close-on-select-->
|
|
124
|
+
<!-- condition="f_meter_style='{}'">-->
|
|
125
|
+
<!-- </v-select>-->
|
|
126
|
+
</div>
|
|
127
|
+
<div class="col-sm-2 form-group">
|
|
128
|
+
<label class="font_normal_body" style="word-break:keep-all;">上报时间</label>
|
|
129
|
+
<datepicker style="width:60%" placeholder="起始时间"
|
|
130
|
+
:value.sync="model.startDate"
|
|
131
|
+
v-model="model.startDate"
|
|
132
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
133
|
+
></datepicker>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-sm-2 form-group">
|
|
136
|
+
<label class="font_normal_body" style="word-break:keep-all;"> 至 </label>
|
|
137
|
+
<datepicker style="width:60%" placeholder="结束时间"
|
|
138
|
+
:value.sync="model.endDate"
|
|
139
|
+
v-model="model.endDate"
|
|
140
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
141
|
+
></datepicker>
|
|
142
|
+
</div>
|
|
143
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
144
|
+
<!-- <label class="font_normal_body">壁 挂 炉</label>-->
|
|
145
|
+
<!-- <v-select id="f_meter_brand"-->
|
|
146
|
+
<!-- v-model="model.f_usetype"-->
|
|
147
|
+
<!-- placeholder='壁挂炉'-->
|
|
148
|
+
<!-- :value.sync="model.f_usetype"-->
|
|
149
|
+
<!-- :options='$parent.$parent.usetypes'-->
|
|
150
|
+
<!-- condition="" :search="false"-->
|
|
151
|
+
<!-- close-on-select style="width: 60%">-->
|
|
152
|
+
<!-- </v-select>-->
|
|
153
|
+
<!-- </div>-->
|
|
154
|
+
<div class="col-sm-2 form-group">
|
|
155
|
+
<label class="font_normal_body">档案抄表员</label>
|
|
156
|
+
<v-select :value.sync="model.f_inputtor" v-model="model.f_inputtor"
|
|
157
|
+
:options='$parent.$parent.dainputtores' placeholder='请选择'
|
|
158
|
+
close-on-select
|
|
159
|
+
condition="uf.f_inputtor = '{}'"></v-select>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="col-sm-2 form-group">
|
|
162
|
+
<label class="font_normal_body">用户等级</label>
|
|
163
|
+
<v-select :value.sync="model.f_user_level" v-model="model.f_user_level"
|
|
164
|
+
:options='$parent.$parent.usergrade' placeholder='请选择'
|
|
165
|
+
condition="u.f_user_level = '{}'"
|
|
166
|
+
close-on-select></v-select>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</criteria>
|
|
171
|
+
<data-grid id="reportgas" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
172
|
+
<template partial='head'>
|
|
173
|
+
<tr>
|
|
174
|
+
<th style="text-align:center">序号</th>
|
|
175
|
+
<th style="text-align:center"><nobr>上报日期</nobr></th>
|
|
176
|
+
<th style="text-align:center" title="安装户数=正常户数+停用户数+未注册户数"><nobr>安装户数</nobr></th>
|
|
177
|
+
|
|
178
|
+
<th style="text-align:center" title="停用户数:表具状态为停用的用户数"><nobr>停用户数</nobr></th>
|
|
179
|
+
<th style="text-align:center" title="在用户数:表具状态为正常的用户数"><nobr>在用户数</nobr></th>
|
|
180
|
+
|
|
181
|
+
<th style="text-align:center" title="用户使用率=在用户数/正常户数"><nobr>用户使用率</nobr></th>
|
|
182
|
+
<th style="text-align:center"><nobr>抄表成功户数</nobr></th>
|
|
183
|
+
<th style="text-align:center"><nobr>总用气量</nobr></th>
|
|
184
|
+
<th style="text-align:center" title="日均用气量=总用气量/在用户数"><nobr>日均用气量</nobr></th>
|
|
185
|
+
<!--<th style="text-align:center"><nobr>指令成功户数</nobr></th>-->
|
|
186
|
+
<th style="text-align:center" title="抄表成功率=抄表成功户数/在用户数"><nobr>抄表成功率</nobr></th>
|
|
187
|
+
<!--<th style="text-align:center" title="指令成功率=指令成功户数/抄表成功户数"><nobr>指令成功率</nobr></th>-->
|
|
188
|
+
<!--<th style="text-align:center" title="综合成功率=指令成功户数/在用户数"><nobr>综合成功率</nobr></th>-->
|
|
189
|
+
</tr>
|
|
190
|
+
</template>
|
|
191
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
192
|
+
<tr>
|
|
193
|
+
<td style="text-align:center">{{$index + 1}}</td>
|
|
194
|
+
<td style="text-align:center;width: 170px;"><nobr>{{row.f_insert_date}}</nobr></td>
|
|
195
|
+
<td style="text-align:center">{{row.anzhuang}}</td>
|
|
196
|
+
|
|
197
|
+
<th style="text-align:center">{{row.c0}}</th>
|
|
198
|
+
<td style="text-align:center"><nobr>{{row.c}}</nobr></td>
|
|
199
|
+
|
|
200
|
+
<td style="text-align:center"><nobr>{{row.user_bv}}%</nobr></td>
|
|
201
|
+
<!--<td style="text-align:center"><nobr>{{row.f_gas}}</nobr></td>-->
|
|
202
|
+
<td style="text-align:center">{{row.c1}}</td>
|
|
203
|
+
<td style="text-align:center">{{row.f_gas_all}}</td>
|
|
204
|
+
<td style="text-align:center">{{row.f_gas1}}</td>
|
|
205
|
+
<td style="text-align:center">{{row.f_bv1}}%</td>
|
|
206
|
+
<!--<td style="text-align:center">{{row.f_bv2}}%</td>-->
|
|
207
|
+
<!--<td style="text-align:center;width: 170px;"><nobr>{{row.f_bv3}}%</nobr></td>-->
|
|
208
|
+
</tr>
|
|
209
|
+
</template>
|
|
210
|
+
<template partial='foot'></template>
|
|
211
|
+
</data-grid>
|
|
212
|
+
</criteria-paged>
|
|
213
|
+
</div>
|
|
214
|
+
<!-- <div style="height: 40px;width: 100%;" v-show="echarts">-->
|
|
215
|
+
<!-- <button class="button_search button_spacing" @click="showEcharts()">隐藏图表</button>-->
|
|
216
|
+
<!-- </div>-->
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
<!--图显示模板-->
|
|
220
|
+
<div class="flex-row" v-if="echarts" style="width: 100%;height: 98%;">
|
|
221
|
+
<user-gas-echarts-list :condition="condition" :startdate="startDate"
|
|
222
|
+
:enddate="endDate" :echarts="echarts"></user-gas-echarts-list>
|
|
223
|
+
</div>
|
|
224
|
+
</template>
|
|
225
|
+
<script>
|
|
226
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
227
|
+
import UserGasEcharts from './UserGasEchartsList'
|
|
228
|
+
import * as Util from '../../../Util'
|
|
229
|
+
import plugins from '../../../plugins/GetLoginInfoService'
|
|
230
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
231
|
+
let readySomething = async function (self) {
|
|
232
|
+
self.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
|
|
233
|
+
self.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
234
|
+
await self.$MagLoadParams.loadParam()
|
|
235
|
+
self.initQueryParam()
|
|
236
|
+
self.$refs.paged.$refs.cri.search()
|
|
237
|
+
}
|
|
238
|
+
export default {
|
|
239
|
+
title: '抄表分析',
|
|
240
|
+
props: ['data'],
|
|
241
|
+
components: {UserGasEcharts},
|
|
242
|
+
data () {
|
|
243
|
+
return {
|
|
244
|
+
model: new PagedList('api/af-revenue/sql/webmeter_getNewHandChanceList', 50, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
|
|
245
|
+
condition: '1=1',
|
|
246
|
+
startDate: '',
|
|
247
|
+
gasproperties:[{label: '全部', value: ''}],
|
|
248
|
+
dainputtores:[{label: '全部',value: ''}],
|
|
249
|
+
endDate: '',
|
|
250
|
+
meterbrand: [],
|
|
251
|
+
meterstyle: {},
|
|
252
|
+
WarningType: [
|
|
253
|
+
{label: '全部', value: ''}
|
|
254
|
+
],
|
|
255
|
+
Warningstyles: [
|
|
256
|
+
{label: '全部', value: ''}
|
|
257
|
+
],
|
|
258
|
+
styles:false,
|
|
259
|
+
orgid:[this.$login.f.orgid],
|
|
260
|
+
getfield:{"f_insert_date":"上报日期","anzhuang":"安装户数",
|
|
261
|
+
"c0":"停用户数",
|
|
262
|
+
"c":"在用户数","user_bv":"用户使用率",
|
|
263
|
+
"c1":"抄表成功户数",
|
|
264
|
+
"f_gas_all":"总用气量","f_gas":"日均户均用气量(成功)",
|
|
265
|
+
"f_gas1":"日均户均用气量(在用)",
|
|
266
|
+
"f_bv1":"抄表成功率"
|
|
267
|
+
},
|
|
268
|
+
criteriaShow:false,
|
|
269
|
+
echarts: false,
|
|
270
|
+
orgCondtionStr: '(\'' + this.$login.f.orgid + '\')',
|
|
271
|
+
searchshow: false,
|
|
272
|
+
initres: {
|
|
273
|
+
org:[this.$login.f.orgid],
|
|
274
|
+
dep:[],
|
|
275
|
+
user:[]
|
|
276
|
+
},
|
|
277
|
+
obj: {
|
|
278
|
+
userid: this.$login.f.id,
|
|
279
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
280
|
+
res: this.$login.f.f_fengongsi,
|
|
281
|
+
resids: this.$login.f.orgid
|
|
282
|
+
},
|
|
283
|
+
usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
ready () {
|
|
287
|
+
this.hqdainputtores()
|
|
288
|
+
readySomething(this).then(() => {
|
|
289
|
+
this.$emit('ready')
|
|
290
|
+
}).catch((error) => {
|
|
291
|
+
this.$emit('error', error)
|
|
292
|
+
})
|
|
293
|
+
},
|
|
294
|
+
methods: {
|
|
295
|
+
async hqdainputtores() {
|
|
296
|
+
let param = {
|
|
297
|
+
items: 'DISTINCT f_inputtor',
|
|
298
|
+
tablename: 't_userfiles',
|
|
299
|
+
condition: ` f_inputtor is NOT null`,
|
|
300
|
+
}
|
|
301
|
+
let getDainputtores = await new HttpResetClass().load("POST",'api/af-revenue/sql/singleTableParam', {data: param}, {
|
|
302
|
+
resolveMsg: null,
|
|
303
|
+
rejectMsg: null
|
|
304
|
+
});
|
|
305
|
+
if (getDainputtores.data.length > 0) {
|
|
306
|
+
let rs = [];
|
|
307
|
+
getDainputtores.data.forEach((item) => {
|
|
308
|
+
if (item.f_inputtor.length > 0) {
|
|
309
|
+
let temp = {
|
|
310
|
+
label: item.f_inputtor,
|
|
311
|
+
value: item.f_inputtor
|
|
312
|
+
};
|
|
313
|
+
rs.push(temp);
|
|
314
|
+
}
|
|
315
|
+
})
|
|
316
|
+
this.dainputtores = [{label: '全部', value: ''}, ...rs];
|
|
317
|
+
} else {
|
|
318
|
+
this.dainputtores = [{label: '全部', value: ''}];
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
initQueryParam () {
|
|
322
|
+
let meters = this.$MagGetSaleParam.getGasbrand().filter(item => item.value.f_meter_type==='物联网表')
|
|
323
|
+
let arr = meters.map(res => {
|
|
324
|
+
let sty = res.value.gasmodel.map(row => {
|
|
325
|
+
return {
|
|
326
|
+
label: row.label,
|
|
327
|
+
value: row.value.f_meter_style
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
this.meterstyle[res.value.f_meter_brand] = [{label: '全部', value: ''}, ...sty]
|
|
331
|
+
return {
|
|
332
|
+
label: res.label,
|
|
333
|
+
value: res.value.f_meter_brand
|
|
334
|
+
}
|
|
335
|
+
})
|
|
336
|
+
this.meterbrand = [{label: '全部', value: ''}, ...arr]
|
|
337
|
+
},
|
|
338
|
+
showMeterStyle() {
|
|
339
|
+
this.styles = true
|
|
340
|
+
},
|
|
341
|
+
userTypeChange () {
|
|
342
|
+
this.gasproperties=[{label: '全部', value: ''}]
|
|
343
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
344
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
345
|
+
|
|
346
|
+
if(this.$refs.paged.$refs.cri.model.f_user_type && this.$refs.paged.$refs.cri.model.f_user_type.length>0){
|
|
347
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
348
|
+
}
|
|
349
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
350
|
+
}
|
|
351
|
+
else{
|
|
352
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
hidden(){
|
|
356
|
+
this.criteriaShow = !this.criteriaShow
|
|
357
|
+
},
|
|
358
|
+
// 查询开关
|
|
359
|
+
seachchange () {
|
|
360
|
+
this.searchshow = !this.searchshow
|
|
361
|
+
},
|
|
362
|
+
|
|
363
|
+
// 显示柱状图
|
|
364
|
+
showEcharts () {
|
|
365
|
+
this.echarts = !this.echarts
|
|
366
|
+
console.log(this.echarts)
|
|
367
|
+
},
|
|
368
|
+
close () {
|
|
369
|
+
this.show = false
|
|
370
|
+
},
|
|
371
|
+
// SaveAsFile(str) {
|
|
372
|
+
// this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
373
|
+
// if (res === 'confirm') {
|
|
374
|
+
// let style = '<style>' +
|
|
375
|
+
// 'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
|
|
376
|
+
// let strHtml = style + document.getElementById(str).innerHTML;
|
|
377
|
+
// console.log(strHtml);
|
|
378
|
+
// let LODOP = getLodop();
|
|
379
|
+
// LODOP.PRINT_INIT('');
|
|
380
|
+
// LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
|
|
381
|
+
// LODOP.SAVE_TO_FILE('抄表统计.xls')
|
|
382
|
+
// }
|
|
383
|
+
// })
|
|
384
|
+
// },
|
|
385
|
+
clearmsg () {
|
|
386
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
387
|
+
this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
|
|
388
|
+
this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
389
|
+
},
|
|
390
|
+
search (args) {
|
|
391
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
392
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
393
|
+
if (this.endDate == '' || this.startDate == '') {
|
|
394
|
+
return this.$showMessage("时间区间的开始和结束时间不能为空!")
|
|
395
|
+
}
|
|
396
|
+
if (this.orgCondtionStr){
|
|
397
|
+
this.condition = this.$refs.paged.$refs.cri.condition + ` and uf.f_orgid in ${this.orgCondtionStr}`
|
|
398
|
+
}
|
|
399
|
+
else
|
|
400
|
+
this.condition = this.$refs.paged.$refs.cri.condition
|
|
401
|
+
args.condition = this.condition
|
|
402
|
+
this.model.search(args.condition, args.model)
|
|
403
|
+
},
|
|
404
|
+
// getRes (obj) {
|
|
405
|
+
// this.orgCondtionStr = plugins.convertToIn(obj)
|
|
406
|
+
// }
|
|
407
|
+
getRes (obj) {
|
|
408
|
+
this.orgCondtionStr = plugins.convertToIn(obj.resids)?plugin.convertToIn(obj.resids):'(' + this.$login.f.orgid + ')'
|
|
409
|
+
}
|
|
410
|
+
// getRes(condition,obj) {
|
|
411
|
+
// this.orgCondtionStr = condition
|
|
412
|
+
// this.orgname = obj.orgnames[0]
|
|
413
|
+
// this.depname = obj.depnames[0]
|
|
414
|
+
// }
|
|
415
|
+
},
|
|
416
|
+
computed: {
|
|
417
|
+
houseTypes() {
|
|
418
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('房屋类型')]
|
|
419
|
+
},
|
|
420
|
+
positions() {
|
|
421
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('安装位置')]
|
|
422
|
+
},
|
|
423
|
+
getCondition() {
|
|
424
|
+
var con=""
|
|
425
|
+
if (this.orgCondtionStr) {
|
|
426
|
+
con= `${this.$refs.paged.$refs.cri.condition} and u.f_orgid in ${this.orgCondtionStr}`
|
|
427
|
+
}
|
|
428
|
+
else{
|
|
429
|
+
con= `${this.$refs.paged.$refs.cri.condition} `
|
|
430
|
+
}
|
|
431
|
+
return {
|
|
432
|
+
condition: con ,
|
|
433
|
+
startDate:`${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
434
|
+
endDate:`${this.$refs.paged.$refs.cri.model.endDate}`
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
},
|
|
438
|
+
usertypes () {
|
|
439
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
440
|
+
},
|
|
441
|
+
usergrade(){
|
|
442
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
|
|
443
|
+
},
|
|
444
|
+
f_outlets () {
|
|
445
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('网点查询用')]
|
|
446
|
+
},
|
|
447
|
+
valveStatus () {
|
|
448
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
449
|
+
},
|
|
450
|
+
Getuserstyle () {
|
|
451
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
</script>
|
|
456
|
+
<style>
|
|
457
|
+
.mystyle{
|
|
458
|
+
margin-left:80px;
|
|
459
|
+
}
|
|
460
|
+
.datapanel {
|
|
461
|
+
color: #333;
|
|
462
|
+
background-color: white;
|
|
463
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
|
|
464
|
+
padding: 10px 10px 10px 10px;
|
|
465
|
+
border-radius:15px;
|
|
466
|
+
}
|
|
467
|
+
</style>
|
|
@@ -4,4 +4,6 @@ import Vue from 'vue'
|
|
|
4
4
|
export default function () {
|
|
5
5
|
// 用气分析明细查询
|
|
6
6
|
Vue.component('new-webmeter-user-gas-all', (resolve) => { require(['./UserGasAll'], resolve) })
|
|
7
|
+
// 上报统计分析--抄表分析
|
|
8
|
+
Vue.component('user-gas-list', (resolve) => { require(['./UserGasList'], resolve) })
|
|
7
9
|
}
|