manage-client 3.2.253 → 3.2.255
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/filiale/ningjin/ChargeQuery.vue +1340 -0
- package/src/filiale/ningjin/GasStatistics.vue +513 -0
- package/src/filiale/ningjin/MeterExceptionList.vue +571 -0
- package/src/filiale/ningjin/config/DefaultPrint.js +6 -0
- package/src/filiale/ningjin/config/exportConfig.js +1990 -0
- package/src/filiale/ningjin/config/tableConfig.js +54 -0
- package/src/filiale/ningjin/sale.js +6 -0
- package/src/filiale/ningjin/webmeterManage.js +9 -0
- package/src/filiale/shanxian/BankManager.vue +20 -28
- package/src/filiale/shanxian/BussinessType.vue +16 -23
- package/src/filiale/shanxian/Paymentpie.vue +9 -9
- package/src/filiale/shanxian/SiteManager.vue +6 -6
- package/src/filiale/wuhai/ChargeQuery.vue +6 -0
|
@@ -0,0 +1,571 @@
|
|
|
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 style="width:35%" 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 style="width:35%" class="font_normal_body">客户名称</label>
|
|
20
|
+
<input style="width:60%" type="text" class="input_search"
|
|
21
|
+
v-model="model.username"
|
|
22
|
+
@keyup.enter="search"
|
|
23
|
+
placeholder='客户名称'
|
|
24
|
+
condition="username 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 style="width:35%" class="font_normal_body">客户地址</label>
|
|
30
|
+
<input style="width:60%" type="text" class="input_search"
|
|
31
|
+
v-model="model.address" placeholder='地址'
|
|
32
|
+
condition="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 style="width:35%" 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 style="float:right">
|
|
46
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
47
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
48
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
49
|
+
:field="$parent.$parent.getfield"
|
|
50
|
+
sqlurl="rs/logic/exportfile" sql-name="getExceptionList" template-name='异常查询'
|
|
51
|
+
:choose-col="true"></export-excel>
|
|
52
|
+
<!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()">显示汇总</button>-->
|
|
53
|
+
<!-- <button class="button_search button_spacing" @click="$parent.$parent.showEcharts()">显示图表</button>-->
|
|
54
|
+
<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>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
58
|
+
<div class="col-sm-2 form-group">
|
|
59
|
+
<label style="width:35%" class="font_normal_body"> 公司 </label>
|
|
60
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
61
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label style="width:35%" class="font_normal_body">余额 大于</label>
|
|
65
|
+
<input style="width:60%" type="number" class="input_search"
|
|
66
|
+
v-model="model.f_balance_amount_sta" placeholder='账户余额'
|
|
67
|
+
condition="f_balance_amount>{}"
|
|
68
|
+
@keyup.enter="search"
|
|
69
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
70
|
+
>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group">
|
|
73
|
+
<label style="width:35%" class="font_normal_body">小于</label>
|
|
74
|
+
<input style="width:60%" type="number" class="input_search"
|
|
75
|
+
v-model="model.f_balance_amount_end" placeholder='账户余额'
|
|
76
|
+
condition="f_balance_amount < {}"
|
|
77
|
+
@keyup.enter="search"
|
|
78
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
79
|
+
>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label style="width:35%" class="font_normal_body">气表品牌</label>
|
|
83
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
84
|
+
v-model="model.f_meter_brand"
|
|
85
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
86
|
+
condition="f_meter_brand = '{}'"
|
|
87
|
+
close-on-select></v-select>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-2 form-group">
|
|
90
|
+
<label style="width:35%" class="font_normal_body">上报区间</label>
|
|
91
|
+
<datepicker style="width:60%" id="startdate" placeholder="开始时间"
|
|
92
|
+
v-model="model.startDate"
|
|
93
|
+
:value.sync="model.startDate"
|
|
94
|
+
:disabled-days-of-Week="[]"
|
|
95
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
96
|
+
condition="f_insert_date >= '{}'"
|
|
97
|
+
:show-reset-button="reset">
|
|
98
|
+
</datepicker>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-2 form-group">
|
|
101
|
+
<label style="width:35%" class="font_normal_body" style="word-break:keep-all;"> 至 </label>
|
|
102
|
+
<datepicker style="width:60%" id="enddate" placeholder="结束日期"
|
|
103
|
+
v-model="model.endDate"
|
|
104
|
+
:value.sync="model.endDate"
|
|
105
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
106
|
+
:disabled-days-of-Week="[]"
|
|
107
|
+
condition="f_insert_date <= '{}'"
|
|
108
|
+
:show-reset-button="reset">
|
|
109
|
+
</datepicker>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-2 form-group">
|
|
112
|
+
<label style="width:35%" class="font_normal_body">未抄表天数 ></label>
|
|
113
|
+
<input style="width:60%" type="number" class="input_search"
|
|
114
|
+
v-model="model.f_day" placeholder='未抄表天数'
|
|
115
|
+
condition="DateDiff(dd,f_hand_date,getdate())>{}"
|
|
116
|
+
@keyup.enter="search"
|
|
117
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
118
|
+
>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label style="width:35%" class="font_normal_body">电池电量大于</label>
|
|
122
|
+
<input style="width:60%" type="number" class="input_search"
|
|
123
|
+
v-model="model.f_electricity_sta" placeholder='电池电量'
|
|
124
|
+
condition="f_electricity>{}"
|
|
125
|
+
@keyup.enter="search"
|
|
126
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
127
|
+
>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="col-sm-2 form-group">
|
|
130
|
+
<label style="width:35%" class="font_normal_body">小于</label>
|
|
131
|
+
<input style="width:60%" type="number" class="input_search"
|
|
132
|
+
v-model="model.f_electricity_end" placeholder='电池电量'
|
|
133
|
+
condition="f_electricity < {}"
|
|
134
|
+
@keyup.enter="search"
|
|
135
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
136
|
+
>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="col-sm-2 form-group">
|
|
139
|
+
<label style="width:35%" class="font_normal_body">电池电压大于</label>
|
|
140
|
+
<input style="width:60%" type="number" class="input_search"
|
|
141
|
+
v-model="model.f_batterylevel_sta" placeholder='电池电压'
|
|
142
|
+
condition="f_batterylevel>{}"
|
|
143
|
+
@keyup.enter="search"
|
|
144
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
145
|
+
>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="col-sm-2 form-group">
|
|
148
|
+
<label style="width:35%" class="font_normal_body">小于</label>
|
|
149
|
+
<input style="width:60%" type="number" class="input_search"
|
|
150
|
+
v-model="model.f_batterylevel_end" placeholder='电池电压'
|
|
151
|
+
condition="f_batterylevel < {}"
|
|
152
|
+
@keyup.enter="search"
|
|
153
|
+
v-el:xq v-next-el='f_day' v-el:area
|
|
154
|
+
>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="col-sm-2 form-group">
|
|
157
|
+
<label style="width:35%" class="font_normal_body"> 异常级别</label>
|
|
158
|
+
<v-select style="width:60%"
|
|
159
|
+
v-model="model.f_error_level"
|
|
160
|
+
placeholder='异常级别'
|
|
161
|
+
@change="$parent.$parent.getErrorInfo('f_error_type')"
|
|
162
|
+
:value.sync="model.f_error_level"
|
|
163
|
+
:options='$parent.$parent.GetErrorLevel'
|
|
164
|
+
condition="f_error_level = '{}'"
|
|
165
|
+
close-on-select>
|
|
166
|
+
</v-select>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="col-sm-2 form-group">
|
|
169
|
+
<label style="width:35%" class="font_normal_body">异常类型</label>
|
|
170
|
+
<v-select style="width:60%"
|
|
171
|
+
v-model="model.f_error_type"
|
|
172
|
+
placeholder='异常类型'
|
|
173
|
+
:value.sync="model.f_error_type"
|
|
174
|
+
:options='$parent.$parent.GetErrorType'
|
|
175
|
+
condition="f_error_type = '{}'"
|
|
176
|
+
close-on-select>
|
|
177
|
+
</v-select>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="col-sm-2 form-group">
|
|
180
|
+
<label style="width:35%" class="font_normal_body">客户类型</label>
|
|
181
|
+
<v-select style="width:60%"
|
|
182
|
+
v-model="model.f_user_type"
|
|
183
|
+
placeholder='客户类型'
|
|
184
|
+
:value.sync="model.f_user_type"
|
|
185
|
+
:options='$parent.$parent.usertypes'
|
|
186
|
+
condition="f_user_type = '{}'"
|
|
187
|
+
close-on-select>
|
|
188
|
+
</v-select>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</criteria>
|
|
193
|
+
<data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
194
|
+
<template partial='head'>
|
|
195
|
+
<tr>
|
|
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
|
+
<th style="text-align:center">
|
|
230
|
+
<nobr>电池电量</nobr>
|
|
231
|
+
</th>
|
|
232
|
+
<th style="text-align:center">
|
|
233
|
+
<nobr>电池电压</nobr>
|
|
234
|
+
</th>
|
|
235
|
+
<th style="text-align:center">
|
|
236
|
+
<nobr>信号强度</nobr>
|
|
237
|
+
</th>
|
|
238
|
+
<th style="text-align:center">
|
|
239
|
+
<nobr>磁干扰异常</nobr>
|
|
240
|
+
</th>
|
|
241
|
+
<th style="text-align:center">
|
|
242
|
+
<nobr>阀门状态</nobr>
|
|
243
|
+
</th>
|
|
244
|
+
<th style="text-align:center">
|
|
245
|
+
<nobr>异常类型</nobr>
|
|
246
|
+
</th>
|
|
247
|
+
<th style="text-align:center">
|
|
248
|
+
<nobr>异常级别</nobr>
|
|
249
|
+
</th>
|
|
250
|
+
<th style="text-align:center">
|
|
251
|
+
<nobr>分公司</nobr>
|
|
252
|
+
</th>
|
|
253
|
+
|
|
254
|
+
</tr>
|
|
255
|
+
|
|
256
|
+
</template>
|
|
257
|
+
<template partial='body'>
|
|
258
|
+
<td style="text-align:center">
|
|
259
|
+
<nobr>{{$index+1}}</nobr>
|
|
260
|
+
</td>
|
|
261
|
+
<td style="text-align: center;"><nobr>
|
|
262
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
263
|
+
</nobr> </td>
|
|
264
|
+
<td style="text-align:center"><nobr>{{row.username}}</nobr></td>
|
|
265
|
+
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
266
|
+
<td>
|
|
267
|
+
<nobr>{{row.address}}</nobr>
|
|
268
|
+
</td>
|
|
269
|
+
<td style="text-align:center">{{row.f_balance_amount}}</td>
|
|
270
|
+
<td style="text-align:center">{{row.f_user_phone}}</td>
|
|
271
|
+
<td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
272
|
+
<td style="text-align:center">
|
|
273
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
274
|
+
</td>
|
|
275
|
+
<td style="text-align:center">
|
|
276
|
+
<nobr>{{row.f_hand_date}}</nobr>
|
|
277
|
+
</td>
|
|
278
|
+
<td style="text-align:center">
|
|
279
|
+
<nobr>{{row.f_insert_date}}</nobr>
|
|
280
|
+
</td>
|
|
281
|
+
<td style="text-align:center">
|
|
282
|
+
<nobr>{{row.f_electricity}}</nobr>
|
|
283
|
+
</td>
|
|
284
|
+
<td style="text-align:center">
|
|
285
|
+
<nobr>{{row.f_batterylevel}}</nobr>
|
|
286
|
+
</td>
|
|
287
|
+
<td style="text-align:center">
|
|
288
|
+
<nobr>{{row.f_signal}}</nobr>
|
|
289
|
+
</td>
|
|
290
|
+
<td style="text-align:center">
|
|
291
|
+
<nobr>{{row.f_magneticInterference == 1 ? '异常' : '正常'}}</nobr>
|
|
292
|
+
</td>
|
|
293
|
+
<td style="text-align:center">
|
|
294
|
+
<nobr>{{row.f_valvestate == 0 ? '开阀' : '关阀'}}</nobr>
|
|
295
|
+
</td>
|
|
296
|
+
<td style="text-align:center">
|
|
297
|
+
<nobr>{{row.f_error_type}}</nobr>
|
|
298
|
+
</td>
|
|
299
|
+
<td style="text-align:center">
|
|
300
|
+
<nobr>{{row.f_error_level}}</nobr>
|
|
301
|
+
</td>
|
|
302
|
+
<td style="text-align:center">
|
|
303
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
304
|
+
</td>
|
|
305
|
+
</template>
|
|
306
|
+
</data-grid>
|
|
307
|
+
</criteria-paged>
|
|
308
|
+
</div>
|
|
309
|
+
<!--<div style="height: 40px;width: 100%;" v-show="echarts">
|
|
310
|
+
<div style="display: inline-block;width: 20%;">
|
|
311
|
+
<button class="button_search button_spacing" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
|
|
312
|
+
<button class="button_search button_spacing" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
|
|
313
|
+
</div>
|
|
314
|
+
<!–图显示模板–>
|
|
315
|
+
<div class="mystyle" style="display: inline-block;" >
|
|
316
|
+
<label class="font_normal_body">图表统计项</label>
|
|
317
|
+
<v-select style="width:60%" id="groupname" v-model="groupname"
|
|
318
|
+
placeholder='分组项'
|
|
319
|
+
value-single="true"
|
|
320
|
+
:value.sync="groupname"
|
|
321
|
+
:options='getgroupname'
|
|
322
|
+
close-on-select></v-select>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<div v-show="echarts" style="width: 100%;height: 90%;">
|
|
326
|
+
<new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
|
|
327
|
+
:enddate="endDate" :echarts="echarts"></new-exception-echarts>
|
|
328
|
+
</div>
|
|
329
|
+
<div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
|
|
330
|
+
<new-exception-eform-total :condition="condition" :startdate="startDate"
|
|
331
|
+
:enddate="endDate"></new-exception-eform-total>
|
|
332
|
+
</div>-->
|
|
333
|
+
</div>
|
|
334
|
+
<div class="flex" v-if="showdetail">
|
|
335
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
336
|
+
</div>
|
|
337
|
+
</template>
|
|
338
|
+
|
|
339
|
+
<script>
|
|
340
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
341
|
+
import * as Util from './../../Util'
|
|
342
|
+
import getLodop from './../../plugins/LodopFuncs'
|
|
343
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
344
|
+
|
|
345
|
+
let readySomething = async function (self) {
|
|
346
|
+
await self.$MagLoadParams.loadParam()
|
|
347
|
+
self.initParams()
|
|
348
|
+
}
|
|
349
|
+
export default {
|
|
350
|
+
title: '异常查看',
|
|
351
|
+
props: ['data'],
|
|
352
|
+
data() {
|
|
353
|
+
return {
|
|
354
|
+
model: new PagedList('rs/sql/getExceptionList', 20),
|
|
355
|
+
reportStr: null,
|
|
356
|
+
show: false,
|
|
357
|
+
startDate: '',
|
|
358
|
+
endDate: '',
|
|
359
|
+
meterbrands: [],
|
|
360
|
+
f_error_type:'',
|
|
361
|
+
groupname: ['year'],
|
|
362
|
+
getgroupname: [
|
|
363
|
+
{label: '年份', value: 'year'},
|
|
364
|
+
{label: '月份', value: 'month'},
|
|
365
|
+
{label: '周', value: 'week'},
|
|
366
|
+
{label: '日', value: 'day'}
|
|
367
|
+
],
|
|
368
|
+
getfield:{
|
|
369
|
+
"f_userinfo_code":"客户编号", "f_user_name":"客户名称","f_residential_area":"小区", "address":"客户地址","f_balance_amount":"账户余额","f_user_phone":"联系电话",
|
|
370
|
+
"f_meternumber":"表号","f_meter_brand":"气表品牌","f_hand_date":"抄表日期","f_insert_date":"最后一次通讯时间","f_electricity":"电池电量","f_batterylevel":"电池电压",
|
|
371
|
+
"f_signal":"信号强度","f_magneticInterference":"磁干扰异常","f_valvestate":"阀门状态","f_error_type":"异常类型","f_error_level":"异常级别","f_orgname":"分公司"
|
|
372
|
+
},
|
|
373
|
+
outlets: [],
|
|
374
|
+
operator: [],
|
|
375
|
+
showdetail:false,
|
|
376
|
+
rowdata:{},
|
|
377
|
+
filename: '',
|
|
378
|
+
criteriaShow: false,
|
|
379
|
+
echarts: false,
|
|
380
|
+
searchshow: false,
|
|
381
|
+
isActiveTotalForm: false,
|
|
382
|
+
GetErrorLevel:[],
|
|
383
|
+
GetErrorType:[],
|
|
384
|
+
condition: '1=1',
|
|
385
|
+
org:[this.$login.f.orgid],
|
|
386
|
+
orgCondtionStr: ` and f_orgid = ${this.$login.f.orgid}`
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
ready() {
|
|
390
|
+
readySomething(this)
|
|
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_level')
|
|
395
|
+
// console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
|
|
396
|
+
this.$refs.paged.$refs.cri.search()
|
|
397
|
+
|
|
398
|
+
},
|
|
399
|
+
methods: {
|
|
400
|
+
showmsg(obj){
|
|
401
|
+
this.rowdata=obj
|
|
402
|
+
this.showdetail=true
|
|
403
|
+
},
|
|
404
|
+
cancel() {
|
|
405
|
+
this.showdetail = false
|
|
406
|
+
},
|
|
407
|
+
getorg(obj) {
|
|
408
|
+
if (obj.resids.length>0) {
|
|
409
|
+
this.orgCondtionStr = " and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
410
|
+
}else
|
|
411
|
+
{
|
|
412
|
+
this.orgCondtionStr = " and f_orgid = " + this.$login.f.orgid
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
initParams () {
|
|
416
|
+
let arr = []
|
|
417
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
418
|
+
let temp = {}
|
|
419
|
+
if(item.value.f_meter_type==='物联网表'){
|
|
420
|
+
temp.label = item.label
|
|
421
|
+
temp.value = item.value.f_meter_brand
|
|
422
|
+
arr.push(temp )
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
})
|
|
426
|
+
this.meterbrands = [{label: '全部', value: ''}, ...arr]
|
|
427
|
+
},
|
|
428
|
+
hidden(){
|
|
429
|
+
this.criteriaShow = !this.criteriaShow
|
|
430
|
+
},
|
|
431
|
+
clickshow() {
|
|
432
|
+
this.searchshow = !this.searchshow
|
|
433
|
+
},
|
|
434
|
+
getErrorInfo(items){
|
|
435
|
+
let self = this
|
|
436
|
+
let f_error_level=''
|
|
437
|
+
if (items!='f_error_level') {
|
|
438
|
+
if(this.$refs.paged.$refs.cri.model.f_error_level){
|
|
439
|
+
f_error_level=this.$refs.paged.$refs.cri.model.f_error_level[0]
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
let load = new HttpResetClass()
|
|
443
|
+
load.load('POST', 'rs/sql/singleTableParam', {
|
|
444
|
+
data: {
|
|
445
|
+
items:items+' f_type',
|
|
446
|
+
tablename:'t_exception',
|
|
447
|
+
condition:items=='f_error_level'?'1=1 group by '+items:`f_error_level='${f_error_level}' group by `+items
|
|
448
|
+
}
|
|
449
|
+
},{warnMsg:null,resolveMsg:null}).then((res) => {
|
|
450
|
+
let i = 0
|
|
451
|
+
let rows=res.data
|
|
452
|
+
let array1=[]
|
|
453
|
+
array1.push({label: '全部', value: ''})
|
|
454
|
+
console.log("rows========",rows)
|
|
455
|
+
for (i = 0; i < rows.length; i++) {
|
|
456
|
+
let dr = {label: '全部', value: ''}
|
|
457
|
+
dr.label=rows[i].f_type
|
|
458
|
+
dr.value=rows[i].f_type
|
|
459
|
+
array1.push(dr)
|
|
460
|
+
console.log("rows[i]========",rows[i],dr)
|
|
461
|
+
}
|
|
462
|
+
console.log("array1========",array1)
|
|
463
|
+
if (items=='f_error_level'){
|
|
464
|
+
self.GetErrorLevel=array1
|
|
465
|
+
}else {
|
|
466
|
+
self.GetErrorType=array1
|
|
467
|
+
}
|
|
468
|
+
})
|
|
469
|
+
|
|
470
|
+
},
|
|
471
|
+
search(args) {
|
|
472
|
+
this.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
473
|
+
this.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
474
|
+
this.f_error_type=this.$refs.paged.$refs.cri.model.f_error_type
|
|
475
|
+
console.log('1231321312312321')
|
|
476
|
+
/* if (this.endDate == '' || this.startDate == '') {
|
|
477
|
+
return this.$showMessage("时间区间的开始和结束时间不能为空!")
|
|
478
|
+
}*/
|
|
479
|
+
this.condition = this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
480
|
+
|
|
481
|
+
args.condition = this.condition
|
|
482
|
+
this.model.search(args.condition, args.model)
|
|
483
|
+
},
|
|
484
|
+
SaveAsFile(str) {
|
|
485
|
+
this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
486
|
+
if (res === 'confirm') {
|
|
487
|
+
let style = '<style>' +
|
|
488
|
+
'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
|
|
489
|
+
let strHtml = style + document.getElementById(str).innerHTML;
|
|
490
|
+
console.log(strHtml);
|
|
491
|
+
let LODOP = getLodop();
|
|
492
|
+
LODOP.PRINT_INIT('');
|
|
493
|
+
LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
|
|
494
|
+
LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
|
|
495
|
+
}
|
|
496
|
+
})
|
|
497
|
+
},
|
|
498
|
+
clearmsg() {
|
|
499
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
500
|
+
},
|
|
501
|
+
close() {
|
|
502
|
+
this.show = false
|
|
503
|
+
},
|
|
504
|
+
// 显示柱状图
|
|
505
|
+
showEcharts() {
|
|
506
|
+
this.echarts = true
|
|
507
|
+
this.isActiveTotalForm = false
|
|
508
|
+
},
|
|
509
|
+
notShowTotalForm() {
|
|
510
|
+
this.echarts = false
|
|
511
|
+
this.isActiveTotalForm = false
|
|
512
|
+
},
|
|
513
|
+
// 不显示柱状图
|
|
514
|
+
notShowEcharts() {
|
|
515
|
+
this.echarts = false
|
|
516
|
+
this.isActiveTotalForm = false
|
|
517
|
+
},
|
|
518
|
+
// 显示汇总数据表格
|
|
519
|
+
showTotalForm() {
|
|
520
|
+
this.echarts = false
|
|
521
|
+
this.isActiveTotalForm = true
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
watch: {
|
|
525
|
+
'data'(val) {
|
|
526
|
+
if (val.f_files_path) {
|
|
527
|
+
this.getFileContent(val.f_files_path)
|
|
528
|
+
} else {
|
|
529
|
+
this.reportStr = null
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
computed: {
|
|
534
|
+
getCondition() {
|
|
535
|
+
let condition=this.$refs.paged.$refs.cri.condition + this.orgCondtionStr
|
|
536
|
+
return {
|
|
537
|
+
condition: condition
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
usertypes() {
|
|
541
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')]
|
|
542
|
+
},
|
|
543
|
+
Gasproperties() {
|
|
544
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
545
|
+
},
|
|
546
|
+
abnormalstatus(){
|
|
547
|
+
return this.$getParams('异常状态', [{label: '全部', value: ''}])
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
</script>
|
|
553
|
+
<style>
|
|
554
|
+
.form-input-group label {
|
|
555
|
+
text-align: right;
|
|
556
|
+
width: auto;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.mystyle {
|
|
560
|
+
float: right;
|
|
561
|
+
padding-right: 10%;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.datapanel {
|
|
565
|
+
color: #333;
|
|
566
|
+
background-color: white;
|
|
567
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
568
|
+
padding: 10px 30px 10px 30px;
|
|
569
|
+
border-radius: 15px;
|
|
570
|
+
}
|
|
571
|
+
</style>
|