manage-client 3.3.119 → 3.3.120
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 +1 -1
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeterShiQuan.vue +630 -0
- package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +4 -4
- package/src/filiale/lixianV3/GasAnalysisQuery.vue +17 -0
- package/src/filiale/lixianV3/config/exportConfig.js +1 -1
- package/src/filiale/lixianV3/useGasYearRatioQuery.vue +19 -2
- package/src/filiale/wenxi/config/exportConfig.js +1 -0
- package/src/webmeterManage.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row" v-if="!showdetail">
|
|
3
|
+
<div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
|
|
4
|
+
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
9
|
+
<!-- <label class="font_normal_body">客户编号</label>-->
|
|
10
|
+
<!-- <input style="width:60%" type="text" class="input_search"-->
|
|
11
|
+
<!-- v-model="model.f_userinfo_code"-->
|
|
12
|
+
<!-- placeholder='客户编号'-->
|
|
13
|
+
<!-- @keyup.enter="search"-->
|
|
14
|
+
<!-- condition="f_userinfo_code like '%{}%'"-->
|
|
15
|
+
<!-- v-el:xq v-next-el='f_userinfo_code'-->
|
|
16
|
+
<!-- v-el:username>-->
|
|
17
|
+
<!-- </div>-->
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label class="font_normal_body">客户名称</label>
|
|
20
|
+
<input style="width:60%" type="text" class="input_search"
|
|
21
|
+
v-model="model.f_user_name"
|
|
22
|
+
@keyup.enter="search"
|
|
23
|
+
placeholder='客户名称'
|
|
24
|
+
condition="f_user_name like '%{}%'"
|
|
25
|
+
v-el:xq v-next-el='username'
|
|
26
|
+
v-el:username>
|
|
27
|
+
</div>
|
|
28
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
29
|
+
<!-- <label class="font_normal_body">客户地址</label>-->
|
|
30
|
+
<!-- <input style="width:60%" type="text" class="input_search"-->
|
|
31
|
+
<!-- v-model="model.f_area" placeholder='地址'-->
|
|
32
|
+
<!-- condition="f_address like '%{}%'"-->
|
|
33
|
+
<!-- @keyup.enter="search"-->
|
|
34
|
+
<!-- v-el:xq v-next-el='address' v-el:area-->
|
|
35
|
+
<!-- >-->
|
|
36
|
+
<!-- </div>-->
|
|
37
|
+
<div class="col-sm-2 form-group">
|
|
38
|
+
<label class="font_normal_body"> 表号 </label>
|
|
39
|
+
<input style="width:60%" type="text" class="input_search"
|
|
40
|
+
v-model="model.f_meternumber" placeholder='表号'
|
|
41
|
+
@keyup.enter="search"
|
|
42
|
+
condition="f_meternumber like '%{}%'"
|
|
43
|
+
v-next-el='meternumber' v-el:meternumber>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="col-sm-2 form-group">
|
|
46
|
+
<label class="font_normal_body">异常类型</label>
|
|
47
|
+
<v-select style="width:60%"
|
|
48
|
+
v-model="model.f_error_type"
|
|
49
|
+
placeholder='异常类型'
|
|
50
|
+
:value.sync="model.f_error_type"
|
|
51
|
+
:options='$parent.$parent.GetErrorType'
|
|
52
|
+
condition="f_error_type = '{}'"
|
|
53
|
+
close-on-select>
|
|
54
|
+
</v-select>
|
|
55
|
+
</div>
|
|
56
|
+
<div style="float:right">
|
|
57
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
58
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
59
|
+
<!-- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"-->
|
|
60
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
61
|
+
<!-- sqlurl="rs/logic/exportfile" sql-name="DrillErrorByUserinfo" template-name='异常分析'-->
|
|
62
|
+
<!-- :choose-col="true"></export-excel>-->
|
|
63
|
+
<!-- <!–<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>–>-->
|
|
64
|
+
<!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
|
|
65
|
+
<!-- <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>-->
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
69
|
+
<!-- <res-select-group :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>-->
|
|
70
|
+
|
|
71
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
72
|
+
<!-- <label class="font_normal_body"> 公司 </label>-->
|
|
73
|
+
<!-- <right-tree @re-res="$parent.$parent.getorg"-->
|
|
74
|
+
<!-- :initresid='$parent.$parent.org'></right-tree>-->
|
|
75
|
+
<!-- </div>-->
|
|
76
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
77
|
+
<!-- <label class="font_normal_body">客户类型</label>-->
|
|
78
|
+
<!-- <v-select style="width:60%" id="f_user_type"-->
|
|
79
|
+
<!-- v-model="model.f_user_type"-->
|
|
80
|
+
<!-- placeholder='客户类型'-->
|
|
81
|
+
<!-- @change="$parent.$parent.userTypeChange()"-->
|
|
82
|
+
<!-- :value.sync="model.f_user_type"-->
|
|
83
|
+
<!-- :options='$parent.$parent.usertypes'-->
|
|
84
|
+
<!-- condition="f_user_type = '{}'"-->
|
|
85
|
+
<!-- close-on-select>-->
|
|
86
|
+
<!-- </v-select>-->
|
|
87
|
+
<!-- </div>-->
|
|
88
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
89
|
+
<!-- <label class="font_normal_body">用气性质</label>-->
|
|
90
|
+
<!-- <v-select style="width:60%" id="f_gasproperties"-->
|
|
91
|
+
<!-- v-model="model.f_gasproperties"-->
|
|
92
|
+
<!-- placeholder='用气性质'-->
|
|
93
|
+
<!-- @keyup.enter="search"-->
|
|
94
|
+
<!-- :value.sync="model.f_gasproperties"-->
|
|
95
|
+
<!-- :options='$parent.$parent.gasproperties'-->
|
|
96
|
+
<!-- condition="f_gasproperties = '{}'"-->
|
|
97
|
+
<!-- close-on-select>-->
|
|
98
|
+
<!-- </v-select>-->
|
|
99
|
+
<!-- </div>-->
|
|
100
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
101
|
+
<!-- <label class="font_normal_body">气表品牌</label>-->
|
|
102
|
+
<!-- <v-select-->
|
|
103
|
+
<!-- placeholder='气表品牌'-->
|
|
104
|
+
<!-- :value.sync="model.f_meter_brand"-->
|
|
105
|
+
<!-- v-model="model.f_meter_brand"-->
|
|
106
|
+
<!-- :options='$parent.$parent.WarningType'-->
|
|
107
|
+
<!-- @change="$parent.$parent.getMeterType"-->
|
|
108
|
+
<!-- close-on-select-->
|
|
109
|
+
<!-- condition="f_meter_brand='{}'">-->
|
|
110
|
+
<!-- </v-select>-->
|
|
111
|
+
<!-- </div>-->
|
|
112
|
+
<!-- <div class="col-sm-2 form-group" >-->
|
|
113
|
+
<!-- <label class="font_normal_body">气表型号</label>-->
|
|
114
|
+
<!-- <v-select v-if="$parent.$parent.styles"-->
|
|
115
|
+
<!-- placeholder='气表型号'-->
|
|
116
|
+
<!-- :value.sync="model.f_meter_style"-->
|
|
117
|
+
<!-- v-model="model.f_meter_style"-->
|
|
118
|
+
<!-- :options='$parent.$parent.Warningstyle'-->
|
|
119
|
+
<!-- close-on-select-->
|
|
120
|
+
<!-- condition="f_meter_style='{}'">-->
|
|
121
|
+
<!-- </v-select>-->
|
|
122
|
+
<!-- <v-select v-if="!$parent.$parent.styles"-->
|
|
123
|
+
<!-- placeholder='气表型号'-->
|
|
124
|
+
<!-- :value.sync="model.f_meter_style"-->
|
|
125
|
+
<!-- v-model="model.f_meter_style"-->
|
|
126
|
+
<!-- :options='$parent.$parent.Warningstyles'-->
|
|
127
|
+
<!-- close-on-select-->
|
|
128
|
+
<!-- condition="f_meter_style='{}'">-->
|
|
129
|
+
<!-- </v-select>-->
|
|
130
|
+
<!-- </div>-->
|
|
131
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
132
|
+
<!-- <label class="font_normal_body">用户状态</label>-->
|
|
133
|
+
<!-- <v-select-->
|
|
134
|
+
<!-- placeholder='用户状态'-->
|
|
135
|
+
<!-- value-single="true"-->
|
|
136
|
+
<!-- style="width:60%"-->
|
|
137
|
+
<!-- :value.sync="model.f_user_state"-->
|
|
138
|
+
<!-- v-model="model.f_user_state"-->
|
|
139
|
+
<!-- :options='$parent.$parent.userstate'-->
|
|
140
|
+
<!-- close-on-select condition="f_user_state ='{}'">-->
|
|
141
|
+
<!-- </v-select>-->
|
|
142
|
+
<!-- </div>-->
|
|
143
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
144
|
+
<!-- <label class="font_normal_body">上报区间</label>-->
|
|
145
|
+
<!-- <datepicker style="width:60%" id="startdate" placeholder="开始时间"-->
|
|
146
|
+
<!-- v-model="model.startDate"-->
|
|
147
|
+
<!-- :value.sync="model.startDate"-->
|
|
148
|
+
<!-- :disabled-days-of-Week="[]"-->
|
|
149
|
+
<!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
|
|
150
|
+
<!-- condition="f_insert_date >= '{}'"-->
|
|
151
|
+
<!-- :show-reset-button="reset">-->
|
|
152
|
+
<!-- </datepicker>-->
|
|
153
|
+
<!-- </div>-->
|
|
154
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
155
|
+
<!-- <label class="font_normal_body" style="word-break:keep-all;"> 至 </label>-->
|
|
156
|
+
<!-- <datepicker style="width:60%" id="enddate" placeholder="结束日期"-->
|
|
157
|
+
<!-- v-model="model.endDate"-->
|
|
158
|
+
<!-- :value.sync="model.endDate"-->
|
|
159
|
+
<!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
|
|
160
|
+
<!-- :disabled-days-of-Week="[]"-->
|
|
161
|
+
<!-- condition="f_insert_date <= '{}'"-->
|
|
162
|
+
<!-- :show-reset-button="reset">-->
|
|
163
|
+
<!-- </datepicker>-->
|
|
164
|
+
<!-- </div>-->
|
|
165
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
166
|
+
<!-- <label class="font_normal_body">异常级别</label>-->
|
|
167
|
+
<!-- <v-select style="width:60%"-->
|
|
168
|
+
<!-- v-model="model.f_error_level"-->
|
|
169
|
+
<!-- placeholder='异常级别'-->
|
|
170
|
+
<!-- @change="$parent.$parent.getErrorInfo('f_error_type')"-->
|
|
171
|
+
<!-- :value.sync="model.f_error_level"-->
|
|
172
|
+
<!-- :options='$parent.$parent.GetErrorLevel'-->
|
|
173
|
+
<!-- condition="f_error_level = '{}'"-->
|
|
174
|
+
<!-- close-on-select>-->
|
|
175
|
+
<!-- </v-select>-->
|
|
176
|
+
<!-- </div>-->
|
|
177
|
+
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</criteria>
|
|
181
|
+
<data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
182
|
+
<template partial='head'>
|
|
183
|
+
<tr>
|
|
184
|
+
<th style="text-align:center">
|
|
185
|
+
<nobr>序号</nobr>
|
|
186
|
+
</th>
|
|
187
|
+
<th style="text-align:center">
|
|
188
|
+
<nobr>客户编号</nobr>
|
|
189
|
+
</th>
|
|
190
|
+
<th style="text-align:center">
|
|
191
|
+
<nobr>客户名称</nobr>
|
|
192
|
+
</th>
|
|
193
|
+
<th style="text-align:center">
|
|
194
|
+
<nobr>客户地址</nobr>
|
|
195
|
+
</th>
|
|
196
|
+
<th style="text-align:center">
|
|
197
|
+
<nobr>客户类型</nobr>
|
|
198
|
+
</th>
|
|
199
|
+
<th style="text-align:center">
|
|
200
|
+
<nobr>用气性质</nobr>
|
|
201
|
+
</th>
|
|
202
|
+
<th style="text-align:center">
|
|
203
|
+
<nobr>表号</nobr>
|
|
204
|
+
</th>
|
|
205
|
+
<th style="text-align:center">
|
|
206
|
+
<nobr>气表品牌</nobr>
|
|
207
|
+
</th>
|
|
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">
|
|
221
|
+
<nobr>气表型号</nobr>
|
|
222
|
+
</th>
|
|
223
|
+
<th style="text-align:center">
|
|
224
|
+
<nobr>用户状态</nobr>
|
|
225
|
+
</th>
|
|
226
|
+
<th style="text-align:center">
|
|
227
|
+
<nobr>组织机构</nobr>
|
|
228
|
+
</th>
|
|
229
|
+
</tr>
|
|
230
|
+
</template>
|
|
231
|
+
<template partial='body'>
|
|
232
|
+
<td style="text-align:center">
|
|
233
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
234
|
+
</td>
|
|
235
|
+
<td style="text-align: center;">
|
|
236
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
237
|
+
</td>
|
|
238
|
+
<td style="text-align:center">
|
|
239
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
240
|
+
</td>
|
|
241
|
+
<td style="text-align:center">
|
|
242
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
243
|
+
</td>
|
|
244
|
+
<td style="text-align:center">
|
|
245
|
+
<nobr>{{ row.f_user_type }}</nobr>
|
|
246
|
+
</td>
|
|
247
|
+
<td style="text-align:center">
|
|
248
|
+
<nobr>{{ row.f_gasproperties }}</nobr>
|
|
249
|
+
</td>
|
|
250
|
+
<td style="text-align:center">
|
|
251
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
252
|
+
</td>
|
|
253
|
+
<td style="text-align:center">
|
|
254
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
255
|
+
</td>
|
|
256
|
+
<td style="text-align:center">
|
|
257
|
+
<nobr>{{ row.f_insert_date }}</nobr>
|
|
258
|
+
</td>
|
|
259
|
+
<td style="text-align:center">
|
|
260
|
+
<nobr>{{ row.f_error_type }}</nobr>
|
|
261
|
+
</td>
|
|
262
|
+
<td style="text-align:center">
|
|
263
|
+
<nobr>{{ row.f_error_level }}</nobr>
|
|
264
|
+
</td>
|
|
265
|
+
<td style="text-align:center">
|
|
266
|
+
<nobr>{{ row.f_error_msg }}</nobr>
|
|
267
|
+
</td>
|
|
268
|
+
<td style="text-align:center">
|
|
269
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
270
|
+
</td>
|
|
271
|
+
<td style="text-align:center">
|
|
272
|
+
<nobr>{{ row.f_user_state }}</nobr>
|
|
273
|
+
</td>
|
|
274
|
+
<td style="text-align:center">
|
|
275
|
+
<nobr>{{ row.f_orgname }}</nobr>
|
|
276
|
+
</td>
|
|
277
|
+
</template>
|
|
278
|
+
</data-grid>
|
|
279
|
+
</criteria-paged>
|
|
280
|
+
</div>
|
|
281
|
+
<!--<div style="height: 40px;width: 100%;" v-show="echarts">
|
|
282
|
+
<div style="display: inline-block;width: 20%;">
|
|
283
|
+
<button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
|
|
284
|
+
<button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
|
|
285
|
+
</div>
|
|
286
|
+
<!–图显示模板–>
|
|
287
|
+
<div class="mystyle" style="display: inline-block;" >
|
|
288
|
+
<label class="font_normal_body">图表统计项</label>
|
|
289
|
+
<v-select style="width:60%" id="groupname" v-model="groupname"
|
|
290
|
+
placeholder='分组项'
|
|
291
|
+
value-single="true"
|
|
292
|
+
:value.sync="groupname"
|
|
293
|
+
:options='getgroupname'
|
|
294
|
+
close-on-select></v-select>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
<div v-show="echarts" style="width: 100%;height: 90%;">
|
|
298
|
+
<new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
|
|
299
|
+
:enddate="endDate" :echarts="echarts"></new-exception-echarts>
|
|
300
|
+
</div>
|
|
301
|
+
<div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
|
|
302
|
+
<new-exception-eform-total :condition="condition" :startdate="startDate"
|
|
303
|
+
:enddate="endDate"></new-exception-eform-total>
|
|
304
|
+
</div>-->
|
|
305
|
+
<!-- <div v-if="echarts" style="width: 100%;height: 98%;">-->
|
|
306
|
+
<!-- <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"-->
|
|
307
|
+
<!-- :enddate="endDate" :echarts="echarts"></new-exception-echarts>-->
|
|
308
|
+
<!-- </div>-->
|
|
309
|
+
</div>
|
|
310
|
+
<!-- <div class="flex" v-if="showdetail">-->
|
|
311
|
+
<!-- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"-->
|
|
312
|
+
<!-- @cancel-main="cancel"></user-info-detail-manage-new>-->
|
|
313
|
+
<!-- </div>-->
|
|
314
|
+
</template>
|
|
315
|
+
|
|
316
|
+
<script>
|
|
317
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
318
|
+
import * as Util from '../../../../Util'
|
|
319
|
+
import getLodop from '../../../../plugins/LodopFuncs'
|
|
320
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
321
|
+
|
|
322
|
+
// let readySomething = async function (self) {
|
|
323
|
+
// await self.$MagLoadParams.loadParam()
|
|
324
|
+
// self.initParams()
|
|
325
|
+
// self.getMeterTypeAndBrand('f_meter_brand', '1=1')
|
|
326
|
+
// }
|
|
327
|
+
export default {
|
|
328
|
+
title: '异常分析',
|
|
329
|
+
props: ['data'],
|
|
330
|
+
data() {
|
|
331
|
+
return {
|
|
332
|
+
model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
|
|
333
|
+
reportStr: null,
|
|
334
|
+
show: false,
|
|
335
|
+
startDate: '',
|
|
336
|
+
endDate: '',
|
|
337
|
+
WarningType: [
|
|
338
|
+
{label: '全部', value: ''}
|
|
339
|
+
],
|
|
340
|
+
Warningstyles: [
|
|
341
|
+
{label: '全部', value: ''}
|
|
342
|
+
],
|
|
343
|
+
styles: false,
|
|
344
|
+
f_error_type: '',
|
|
345
|
+
groupname: ['day'],
|
|
346
|
+
getgroupname: [
|
|
347
|
+
{label: '年份', value: 'year'},
|
|
348
|
+
{label: '月份', value: 'month'},
|
|
349
|
+
{label: '周', value: 'week'},
|
|
350
|
+
{label: '日', value: 'day'}
|
|
351
|
+
],
|
|
352
|
+
getfield: {
|
|
353
|
+
"f_userinfo_code": "客户编号",
|
|
354
|
+
"f_user_name": "客户名称",
|
|
355
|
+
"f_address": "客户地址",
|
|
356
|
+
"f_user_type": "客户类型",
|
|
357
|
+
"f_gasproperties": "用气性质",
|
|
358
|
+
"f_meternumber": "表号",
|
|
359
|
+
"f_meter_brand": "气表品牌",
|
|
360
|
+
"f_insert_date": "上报时间",
|
|
361
|
+
"f_error_level": "异常级别",
|
|
362
|
+
"f_error_type": "异常类型",
|
|
363
|
+
"f_error_msg": "异常描述",
|
|
364
|
+
"f_orgname": "组织机构"
|
|
365
|
+
},
|
|
366
|
+
outlets: [],
|
|
367
|
+
operator: [],
|
|
368
|
+
gasproperties: [{label: '全部', value: ''}],
|
|
369
|
+
showdetail: false,
|
|
370
|
+
rowdata: {},
|
|
371
|
+
filename: '',
|
|
372
|
+
criteriaShow: false,
|
|
373
|
+
echarts: false,
|
|
374
|
+
searchshow: false,
|
|
375
|
+
isActiveTotalForm: false,
|
|
376
|
+
GetErrorLevel: [],
|
|
377
|
+
GetErrorType: [],
|
|
378
|
+
initres: {
|
|
379
|
+
org: [this.$login.f.orgid],
|
|
380
|
+
dep: [],
|
|
381
|
+
user: []
|
|
382
|
+
},
|
|
383
|
+
condition: '1=1',
|
|
384
|
+
org: [this.$login.f.orgid],
|
|
385
|
+
orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
ready() {
|
|
389
|
+
// readySomething(this)
|
|
390
|
+
this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(), -2).substring(0, 10) + ' 00:00:00'
|
|
391
|
+
// this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
|
|
392
|
+
this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
393
|
+
// console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
|
|
394
|
+
this.getErrorInfo('f_error_type')
|
|
395
|
+
// console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
|
|
396
|
+
// this.$refs.paged.$refs.cri.search()
|
|
397
|
+
this.$nextTick(() => {
|
|
398
|
+
// 页面加载完成后启动定时器
|
|
399
|
+
this.startTimer()
|
|
400
|
+
})
|
|
401
|
+
},
|
|
402
|
+
methods: {
|
|
403
|
+
startTimer() {
|
|
404
|
+
console.log('进入页面执行定时器')
|
|
405
|
+
this.timer = setInterval(() => {
|
|
406
|
+
// 执行你的查询逻辑
|
|
407
|
+
this.$refs.paged.$refs.cri.search()
|
|
408
|
+
}, 600000)
|
|
409
|
+
},
|
|
410
|
+
getMeterType() {
|
|
411
|
+
this.Warningstyle = [{label: '全部', value: ''}]
|
|
412
|
+
this.styles = false
|
|
413
|
+
let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand
|
|
414
|
+
this.getMeterTypeAndBrand('f_meter_style', `f_meter_brand='${f_meter_brand}'`)
|
|
415
|
+
},
|
|
416
|
+
getMeterTypeAndBrand(groupname, condition) {
|
|
417
|
+
condition = `${condition} and ui.f_orgid like '${this.$login.f.orgid}%'`
|
|
418
|
+
let self = this
|
|
419
|
+
self.$refs.paged.$refs.cri.model.f_meter_style = ''
|
|
420
|
+
let load = new HttpResetClass()
|
|
421
|
+
load.load('POST', 'rs/sql/getMeterStyleAndBrand1', {
|
|
422
|
+
data: {
|
|
423
|
+
condition: condition,
|
|
424
|
+
groupname: groupname
|
|
425
|
+
}
|
|
426
|
+
}, {warnMsg: null, resolveMsg: null}).then((res) => {
|
|
427
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
428
|
+
if (groupname == 'f_meter_brand') {
|
|
429
|
+
self.WarningType.push({label: res.data[i].f_meter_brand, value: res.data[i].f_meter_brand})
|
|
430
|
+
console.log('气表品牌~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
|
431
|
+
console.log(self.WarningType)
|
|
432
|
+
} else if (groupname == 'f_meter_style') {
|
|
433
|
+
//气表类型
|
|
434
|
+
self.Warningstyle.push({label: res.data[i].f_meter_style, value: res.data[i].f_meter_style})
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
if (self.Warningstyle.length > 1) {
|
|
438
|
+
self.showMeterStyle()
|
|
439
|
+
}
|
|
440
|
+
})
|
|
441
|
+
|
|
442
|
+
},
|
|
443
|
+
showMeterStyle() {
|
|
444
|
+
this.styles = true
|
|
445
|
+
},
|
|
446
|
+
userTypeChange() {
|
|
447
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
448
|
+
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
449
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
450
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
|
451
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type)
|
|
452
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
453
|
+
}
|
|
454
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
showmsg(obj) {
|
|
458
|
+
this.rowdata = obj
|
|
459
|
+
this.showdetail = true
|
|
460
|
+
},
|
|
461
|
+
cancel() {
|
|
462
|
+
this.showdetail = false
|
|
463
|
+
},
|
|
464
|
+
getRes(condition, obj) {
|
|
465
|
+
this.orgCondtionStr = condition
|
|
466
|
+
this.orgname = obj.orgnames[0]
|
|
467
|
+
this.depname = obj.depnames[0]
|
|
468
|
+
},
|
|
469
|
+
getorg(obj) {
|
|
470
|
+
if (obj.resids.length > 0) {
|
|
471
|
+
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
472
|
+
} else {
|
|
473
|
+
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
initParams() {
|
|
477
|
+
let arr = []
|
|
478
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
479
|
+
let temp = {}
|
|
480
|
+
if (item.value.f_meter_type === '物联网表') {
|
|
481
|
+
temp.label = item.label
|
|
482
|
+
temp.value = item.value.f_meter_brand
|
|
483
|
+
arr.push(temp)
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
})
|
|
487
|
+
this.meterbrands = [{label: '全部', value: ''}, ...arr]
|
|
488
|
+
},
|
|
489
|
+
hidden() {
|
|
490
|
+
this.criteriaShow = !this.criteriaShow
|
|
491
|
+
},
|
|
492
|
+
clickshow() {
|
|
493
|
+
this.searchshow = !this.searchshow
|
|
494
|
+
},
|
|
495
|
+
getErrorInfo(items) {
|
|
496
|
+
let self = this
|
|
497
|
+
self.$refs.paged.$refs.cri.model.f_error_type = ''
|
|
498
|
+
console.log("self.model.f_error_type=''", self.model.f_error_type)
|
|
499
|
+
let f_error_level = ''
|
|
500
|
+
if (items != 'f_error_level') {
|
|
501
|
+
if (this.$refs.paged.$refs.cri.model.f_error_level) {
|
|
502
|
+
f_error_level = this.$refs.paged.$refs.cri.model.f_error_level[0]
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
let load = new HttpResetClass()
|
|
506
|
+
load.load('POST', 'rs/sql/singleTableParam', {
|
|
507
|
+
data: {
|
|
508
|
+
items: items + ' f_type',
|
|
509
|
+
tablename: 't_exception',
|
|
510
|
+
condition: '1=1 group by ' + items
|
|
511
|
+
}
|
|
512
|
+
}, {warnMsg: null, resolveMsg: null}).then((res) => {
|
|
513
|
+
let rows = res.data
|
|
514
|
+
let array1 = []
|
|
515
|
+
array1.push({label: '全部', value: ''})
|
|
516
|
+
for (let i = 0; i < rows.length; i++) {
|
|
517
|
+
array1.push({label: rows[i].f_type, value: rows[i].f_type})
|
|
518
|
+
}
|
|
519
|
+
console.log("array1========", array1)
|
|
520
|
+
if (items == 'f_error_level') {
|
|
521
|
+
self.GetErrorLevel = array1
|
|
522
|
+
} else {
|
|
523
|
+
self.GetErrorType = array1
|
|
524
|
+
}
|
|
525
|
+
})
|
|
526
|
+
|
|
527
|
+
},
|
|
528
|
+
search(args) {
|
|
529
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
530
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
531
|
+
this.f_error_type = this.$refs.paged.$refs.cri.model.f_error_type
|
|
532
|
+
console.log('1231321312312321')
|
|
533
|
+
/* if (this.endDate == '' || this.startDate == '') {
|
|
534
|
+
return this.$showMessage("时间区间的开始和结束时间不能为空!")
|
|
535
|
+
}*/
|
|
536
|
+
this.condition = this.$refs.paged.$refs.cri.condition
|
|
537
|
+
|
|
538
|
+
args.condition = this.condition
|
|
539
|
+
this.model.search(args.condition, args.model)
|
|
540
|
+
},
|
|
541
|
+
SaveAsFile(str) {
|
|
542
|
+
this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
543
|
+
if (res === 'confirm') {
|
|
544
|
+
let style = '<style>' +
|
|
545
|
+
'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
|
|
546
|
+
let strHtml = style + document.getElementById(str).innerHTML;
|
|
547
|
+
console.log(strHtml);
|
|
548
|
+
let LODOP = getLodop();
|
|
549
|
+
LODOP.PRINT_INIT('');
|
|
550
|
+
LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
|
|
551
|
+
LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
|
|
552
|
+
}
|
|
553
|
+
})
|
|
554
|
+
},
|
|
555
|
+
clearmsg() {
|
|
556
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
557
|
+
},
|
|
558
|
+
close() {
|
|
559
|
+
this.show = false
|
|
560
|
+
},
|
|
561
|
+
// 显示柱状图
|
|
562
|
+
showEcharts() {
|
|
563
|
+
this.echarts = true
|
|
564
|
+
this.isActiveTotalForm = false
|
|
565
|
+
},
|
|
566
|
+
notShowTotalForm() {
|
|
567
|
+
this.echarts = false
|
|
568
|
+
this.isActiveTotalForm = false
|
|
569
|
+
},
|
|
570
|
+
// 不显示柱状图
|
|
571
|
+
notShowEcharts() {
|
|
572
|
+
this.echarts = false
|
|
573
|
+
this.isActiveTotalForm = false
|
|
574
|
+
},
|
|
575
|
+
// 显示汇总数据表格
|
|
576
|
+
showTotalForm() {
|
|
577
|
+
this.echarts = false
|
|
578
|
+
this.isActiveTotalForm = true
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
watch: {
|
|
582
|
+
'data'(val) {
|
|
583
|
+
if (val.f_files_path) {
|
|
584
|
+
this.getFileContent(val.f_files_path)
|
|
585
|
+
} else {
|
|
586
|
+
this.reportStr = null
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
computed: {
|
|
591
|
+
// usertypes () {
|
|
592
|
+
// return this.$appdate.getParams("客户类型")
|
|
593
|
+
// },
|
|
594
|
+
getCondition() {
|
|
595
|
+
let condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
596
|
+
return {
|
|
597
|
+
condition: condition,
|
|
598
|
+
startDate: `${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
599
|
+
endDate: `${this.$refs.paged.$refs.cri.model.endDate}`
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
},
|
|
603
|
+
usertypes() {
|
|
604
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
605
|
+
},
|
|
606
|
+
userstate() {
|
|
607
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
</script>
|
|
612
|
+
<style>
|
|
613
|
+
.form-input-group label {
|
|
614
|
+
text-align: right;
|
|
615
|
+
width: auto;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.mystyle {
|
|
619
|
+
float: right;
|
|
620
|
+
padding-right: 10%;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.datapanel {
|
|
624
|
+
color: #333;
|
|
625
|
+
background-color: white;
|
|
626
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
627
|
+
padding: 10px 30px 10px 30px;
|
|
628
|
+
border-radius: 15px;
|
|
629
|
+
}
|
|
630
|
+
</style>
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<div class="col-sm-2 form-group">
|
|
10
10
|
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
11
|
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
-
v-model="
|
|
13
|
-
:value.sync="
|
|
12
|
+
v-model="$parent.$parent.startDate"
|
|
13
|
+
:value.sync="$parent.$parent.startDate"
|
|
14
14
|
:format="'yyyy-MM-dd'"
|
|
15
15
|
:show-reset-button="true">
|
|
16
16
|
</datepicker>
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<div class="col-sm-2 form-group">
|
|
19
19
|
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
20
|
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
-
v-model="
|
|
22
|
-
:value.sync="
|
|
21
|
+
v-model="$parent.$parent.endDate"
|
|
22
|
+
:value.sync="$parent.$parent.endDate"
|
|
23
23
|
:format="'yyyy-MM-dd'"
|
|
24
24
|
:show-reset-button="true">
|
|
25
25
|
</datepicker>
|
|
@@ -119,6 +119,16 @@
|
|
|
119
119
|
close-on-select>
|
|
120
120
|
</v-select>
|
|
121
121
|
</div>
|
|
122
|
+
|
|
123
|
+
<div class="col-sm-2 form-group">
|
|
124
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
125
|
+
<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
|
|
126
|
+
:options='$parent.$parent.meterbooks' placeholder='请选择'
|
|
127
|
+
style="width:60%"
|
|
128
|
+
multiple
|
|
129
|
+
close-on-select
|
|
130
|
+
condition="f_meter_book_num in {}"></v-select>
|
|
131
|
+
</div>
|
|
122
132
|
<div class="col-sm-2 form-group">
|
|
123
133
|
<label for="startDate" class="font_normal_body">旧月开始时间</label>
|
|
124
134
|
<datepicker id="startDate" placeholder="旧月开始日期" style="width:60%"
|
|
@@ -213,6 +223,9 @@
|
|
|
213
223
|
<th style="text-align: center;">
|
|
214
224
|
<nobr>抄表员</nobr>
|
|
215
225
|
</th>
|
|
226
|
+
<th style="text-align: center;">
|
|
227
|
+
<nobr>抄表册</nobr>
|
|
228
|
+
</th>
|
|
216
229
|
<th style="text-align: center;">
|
|
217
230
|
<nobr>往月用气</nobr>
|
|
218
231
|
</th>
|
|
@@ -239,6 +252,7 @@
|
|
|
239
252
|
<td style="text-align: center;">{{ row.f_manufacturers }}</td>
|
|
240
253
|
<td style="text-align: center;">{{ row.f_meternumber }}</td>
|
|
241
254
|
<td style="text-align: center;">{{ row.f_inputtor }}</td>
|
|
255
|
+
<td style="text-align: center;">{{ row.f_book_name }}</td>
|
|
242
256
|
<td style="text-align: center;">{{ row.f_oldgas }}</td>
|
|
243
257
|
<td style="text-align: center;">{{ row.f_newgas }}</td>
|
|
244
258
|
<td style="text-align: center;">{{ row.f_gasdiff }}</td>
|
|
@@ -419,6 +433,9 @@ export default {
|
|
|
419
433
|
meterStyle () {
|
|
420
434
|
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('燃气表型号')]
|
|
421
435
|
},
|
|
436
|
+
meterbooks(){
|
|
437
|
+
return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
|
|
438
|
+
},
|
|
422
439
|
|
|
423
440
|
|
|
424
441
|
}
|
|
@@ -2260,7 +2260,7 @@ export default {
|
|
|
2260
2260
|
'f_user_type': '用户类型', 'f_user_phone': '电话',
|
|
2261
2261
|
'f_address': '地址', 'f_inputtor': '抄表员',
|
|
2262
2262
|
'f_gasproperties': '用户性质', 'f_manufacturers': '气表品牌',
|
|
2263
|
-
'f_meter_style': '气表厂家',
|
|
2263
|
+
'f_meter_style': '气表厂家', 'f_book_name': '抄表册',
|
|
2264
2264
|
'f_meternumber': '表号', 'f_oldgas': '往月用气',
|
|
2265
2265
|
'f_newgas': '本月用气',
|
|
2266
2266
|
'f_gasdiff': '增量', 'f_gasprec': '百分比'
|
|
@@ -120,6 +120,16 @@
|
|
|
120
120
|
</v-select>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
|
+
<div class="col-sm-2 form-group">
|
|
124
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
125
|
+
<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
|
|
126
|
+
:options='$parent.$parent.meterbooks' placeholder='请选择'
|
|
127
|
+
style="width:60%"
|
|
128
|
+
multiple
|
|
129
|
+
close-on-select
|
|
130
|
+
condition="f_meter_book_num in {}"></v-select>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
123
133
|
<div class="col-sm-2 form-group" >
|
|
124
134
|
<label for="startDate" class="font_normal_body" title="建档开始日期">建档时间</label>
|
|
125
135
|
<datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
|
|
@@ -147,7 +157,7 @@
|
|
|
147
157
|
<data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
|
|
148
158
|
<template partial='head'>
|
|
149
159
|
<tr>
|
|
150
|
-
<th colspan="
|
|
160
|
+
<th colspan="11" style="text-align: center;"><nobr>用户信息</nobr></th>
|
|
151
161
|
<th colspan="13" style="text-align: center;"><nobr>查询年份</nobr></th>
|
|
152
162
|
<th colspan="13" style="text-align: center;"><nobr>对比年份</nobr></th>
|
|
153
163
|
</tr>
|
|
@@ -182,6 +192,9 @@
|
|
|
182
192
|
<th style="text-align: center;">
|
|
183
193
|
<nobr>抄表员</nobr>
|
|
184
194
|
</th>
|
|
195
|
+
<th style="text-align: center;">
|
|
196
|
+
<nobr>抄表册</nobr>
|
|
197
|
+
</th>
|
|
185
198
|
<th style="text-align: center;">
|
|
186
199
|
<nobr>一月</nobr>
|
|
187
200
|
</th>
|
|
@@ -275,6 +288,7 @@
|
|
|
275
288
|
<td style="text-align: center;">{{ row.f_manufacturers }}</td>
|
|
276
289
|
<td style="text-align: center;">{{ row.f_meternumber }}</td>
|
|
277
290
|
<td style="text-align: center;">{{ row.f_inputtor }}</td>
|
|
291
|
+
<td style="text-align: center;">{{ row.f_book_name }}</td>
|
|
278
292
|
<td style="text-align: center;">{{ row.jan }}</td>
|
|
279
293
|
<td style="text-align: center;">{{ row.feb }}</td>
|
|
280
294
|
<td style="text-align: center;">{{ row.mar }}</td>
|
|
@@ -384,7 +398,7 @@ export default {
|
|
|
384
398
|
var link = document.createElement('a');
|
|
385
399
|
link.target = "_blank"
|
|
386
400
|
link.href = downurl;
|
|
387
|
-
link.setAttribute("download", "
|
|
401
|
+
link.setAttribute("download", "气量年比澧县.xlsx"); //指定下载后的文件名,防跳转
|
|
388
402
|
document.body.appendChild(link);
|
|
389
403
|
link.click();
|
|
390
404
|
})
|
|
@@ -490,6 +504,9 @@ export default {
|
|
|
490
504
|
meterStyle () {
|
|
491
505
|
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('燃气表型号')]
|
|
492
506
|
},
|
|
507
|
+
meterbooks(){
|
|
508
|
+
return [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
|
|
509
|
+
},
|
|
493
510
|
|
|
494
511
|
|
|
495
512
|
}
|
|
@@ -263,6 +263,7 @@ export default{
|
|
|
263
263
|
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_meternumber': '表号',
|
|
264
264
|
'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_real_amount': '用气量', 'totalgas': '总购气量',
|
|
265
265
|
'f_yuliang': '余量', 'f_inputtor': '抄表员', 'f_hand_date': '下发日期', 'f_input_date': '录入日期',
|
|
266
|
+
'avg_oughtamount':"平均用气量",
|
|
266
267
|
'f_instantaneous_flow': '瞬时流量',
|
|
267
268
|
'f_pressure': '压力',
|
|
268
269
|
'f_temperature': '温度',
|
package/src/webmeterManage.js
CHANGED
|
@@ -118,5 +118,8 @@ export default function () {
|
|
|
118
118
|
Vue.component('new-webmeter-settlement-analysis', (resolve) => { require(['./components/webmeter/gasAnalysis/NewWebmeterSettlementAnalysis'], resolve) })
|
|
119
119
|
// 开关阀记录
|
|
120
120
|
Vue.component('operation-value-record', (resolve) => { require(['./components/webmeter/operationValueRecord'], resolve) })
|
|
121
|
+
|
|
122
|
+
// 石泉异常分析单页面
|
|
123
|
+
Vue.component('total-exception-by-meter-sq', (resolve) => { require(['./components/webmeter/newwebmeter/NewException/TotalExceptionByMeterShiQuan'], resolve) })
|
|
121
124
|
}
|
|
122
125
|
|