safecheck-client 3.0.35-gongyi → 3.0.35-gongyi-1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +119 -119
- package/src/components/Util/RightTreeSafe.vue +348 -348
- package/src/components/android/AreaPlan.vue +503 -503
- package/src/components/android/CurrentCreate.vue +972 -972
- package/src/components/android/SafecheckOrderV.vue +2408 -2408
- package/src/components/android/userinfo/SafecheckUserInfo.vue +611 -611
- package/src/components/defect/DefectListWeixiu.vue +479 -479
- package/src/components/defect/DefectPaper.vue +277 -165
- package/src/components/defect/DefectPaperWeiXiu.vue +655 -580
- package/src/components/paper/PaperList.vue +797 -757
- package/src/components/pc/CheckBookList.vue +590 -560
- package/src/components/pc/CheckBookManage.vue +964 -910
- package/src/components/pc/NewCheckpaper.vue +1333 -1333
- package/src/components/planmanage/PlanManage.vue +782 -782
- package/src/components/planmanage/checkUserList.vue +691 -691
- package/src/components/querycheckpaper/CheckSearchUser.vue +1037 -1035
- package/src/components/report/CheckPlanAreaList.vue +521 -495
- package/src/components/report/CheckPlanUserList.vue +217 -217
- package/src/components/report/HiddenSituation.vue +100 -2
- package/src/safecheck.js +1 -1
@@ -1,1035 +1,1037 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex">
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
7
|
-
<div :class="$parent.$parent.style">
|
8
|
-
<label class="font_normal_body">用户编号</label>
|
9
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
|
10
|
-
id="f_userinfo_code"
|
11
|
-
|
12
|
-
placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
|
13
|
-
</div>
|
14
|
-
<div :class="$parent.$parent.style">
|
15
|
-
<label class="font_normal_body">用户姓名</label>
|
16
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
|
17
|
-
placeholder="用户姓名" condition="f_user_name like '%{}%'">
|
18
|
-
</div>
|
19
|
-
<div :class="$parent.$parent.style">
|
20
|
-
<label class="font_normal_body">小  区</label>
|
21
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
|
22
|
-
id="f_residential_area"
|
23
|
-
placeholder="小区" condition="f_residential_area like '%{}%'">
|
24
|
-
</div>
|
25
|
-
<div :class="$parent.$parent.style">
|
26
|
-
<label class="font_normal_body">地  址</label>
|
27
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
|
28
|
-
placeholder="地址" condition="f_address like '%{}%'">
|
29
|
-
</div>
|
30
|
-
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
31
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
32
|
-
:field="$parent.$parent.excelHeaders"
|
33
|
-
:choose-col="true"
|
34
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
|
35
|
-
template-name='用户安检情况'></export-excel-safe>
|
36
|
-
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
37
|
-
<div style="float: right" class="button_spacing"
|
38
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
39
|
-
@click="$parent.$parent.hiddenr()"></div>
|
40
|
-
<div style="float: right" class="button_spacing"
|
41
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
42
|
-
@click="$parent.$parent.hidden()">
|
43
|
-
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
|
48
|
-
</div>
|
49
|
-
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
50
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
51
|
-
<label class="font_normal_body">用户类型</label>
|
52
|
-
<v-select id="f_usertype"
|
53
|
-
placeholder='用户类型'
|
54
|
-
class="select select_list"
|
55
|
-
:value.sync="model.f_usertype"
|
56
|
-
:value-single="true"
|
57
|
-
:options='$parent.$parent.usertypes'
|
58
|
-
v-model="model.f_usertype"
|
59
|
-
condition="f_user_type = '{}'"
|
60
|
-
close-on-select clear-button></v-select>
|
61
|
-
</div>
|
62
|
-
<!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
|
63
|
-
|
64
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
65
|
-
<label class="font_normal_body" style="color: red;">安检筛选</label>
|
66
|
-
<v-select
|
67
|
-
placeholder='安检筛选'
|
68
|
-
:value-single="true"
|
69
|
-
class="select select_list"
|
70
|
-
:value.sync="$parent.$parent.SafeCheckXZ"
|
71
|
-
:options='$parent.$parent.SafeCheckXZs'
|
72
|
-
v-model="$parent.$parent.SafeCheckXZ"
|
73
|
-
close-on-select clear-button></v-select>
|
74
|
-
</div>
|
75
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
76
|
-
<label class="font_normal_body">安检起始</label>
|
77
|
-
<datepicker
|
78
|
-
:value.sync="model.f_check_start"
|
79
|
-
placeholder='最后安检时间起始'
|
80
|
-
style="width: 60%"
|
81
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
82
|
-
:show-rest-button="reset"
|
83
|
-
v-model="model.f_check_start">
|
84
|
-
</datepicker>
|
85
|
-
</div>
|
86
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
87
|
-
<label class="font_normal_body">安检结束</label>
|
88
|
-
<datepicker
|
89
|
-
:value.sync="model.f_check_end"
|
90
|
-
placeholder='最后安检时间结束'
|
91
|
-
style="width: 60%"
|
92
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
93
|
-
:show-rest-button="reset"
|
94
|
-
v-model="model.f_check_end">
|
95
|
-
</datepicker>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
99
|
-
<label class="font_normal_body">安检状态</label>
|
100
|
-
<v-select id="f_entry"
|
101
|
-
placeholder='安检状态'
|
102
|
-
class="select select_list"
|
103
|
-
:value.sync="model.f_last_check_state"
|
104
|
-
:value-single="true"
|
105
|
-
:options='$parent.$parent.checkstatus'
|
106
|
-
v-model="model.f_last_check_state"
|
107
|
-
condition="f_last_check_state = '{}'"
|
108
|
-
close-on-select clear-button></v-select>
|
109
|
-
</div>
|
110
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
111
|
-
<label class="font_normal_body">隐患情况</label>
|
112
|
-
<v-select
|
113
|
-
placeholder='隐患情况'
|
114
|
-
class="select select_list"
|
115
|
-
:value-single="true"
|
116
|
-
v-model='model.f_check_result'
|
117
|
-
:value.sync="model.f_check_result"
|
118
|
-
:options='$parent.$parent.f_check_results'
|
119
|
-
condition="f_last_check_result like '%{}%'"
|
120
|
-
close-on-select clear-button></v-select>
|
121
|
-
</div>
|
122
|
-
<!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
|
123
|
-
</div>
|
124
|
-
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
125
|
-
|
126
|
-
<div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
|
127
|
-
<role-selector-safe
|
128
|
-
role-name="安检员"
|
129
|
-
role-lable="安 检 员 "
|
130
|
-
@re-res="$parent.$parent.getRes"
|
131
|
-
:value.sync="model.f_checker_id"
|
132
|
-
v-model="model.f_checker_id"
|
133
|
-
condition=" f_checker_name = '{}'">
|
134
|
-
</role-selector-safe>
|
135
|
-
</div>
|
136
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
137
|
-
<label class="font_normal_body">片  区</label>
|
138
|
-
<v-select class="select_list select"
|
139
|
-
placeholder='片区/管理站' style="width: 60%"
|
140
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
141
|
-
:options='$parent.$parent.sliceArea'
|
142
|
-
filer-key="name"
|
143
|
-
close-on-select clear-button
|
144
|
-
condition="f_slice_area='{}'"
|
145
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
146
|
-
:value-single="true">
|
147
|
-
</v-select>
|
148
|
-
</div>
|
149
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
150
|
-
<label class="font_normal_body">抄 表 册</label>
|
151
|
-
<v-select class="select_list select"
|
152
|
-
placeholder='抄表册' style="width: 60%"
|
153
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
154
|
-
:options='$parent.$parent.cbc'
|
155
|
-
filer-key="name"
|
156
|
-
close-on-select clear-button
|
157
|
-
condition="f_meter_book_num={}"
|
158
|
-
:value-single="true">
|
159
|
-
</v-select>
|
160
|
-
</div>
|
161
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
162
|
-
<label class="font_normal_body">省 市 区</label>
|
163
|
-
<v-select class="select_list select"
|
164
|
-
placeholder='请选择' style="width: 60%"
|
165
|
-
:value.sync="model.f_pcd" v-model="model.f_pcd"
|
166
|
-
:options='$parent.$parent.pcds'
|
167
|
-
filer-key="name"
|
168
|
-
close-on-select clear-button
|
169
|
-
condition="f_pcd='{}'"
|
170
|
-
:value-single="true">
|
171
|
-
</v-select>
|
172
|
-
</div>
|
173
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
174
|
-
<label class="font_normal_body">用户状态</label>
|
175
|
-
<v-select class="select_list select"
|
176
|
-
placeholder='用户状态' style="width: 60%"
|
177
|
-
:value.sync="model.f_user_state" v-model="model.f_user_state"
|
178
|
-
:options='$parent.$parent.userstates'
|
179
|
-
close-on-select clear-button
|
180
|
-
condition="f_user_state = '{}'"
|
181
|
-
:value-single="true">
|
182
|
-
</v-select>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
186
|
-
|
187
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
188
|
-
<label class="font_normal_body">气表类型</label>
|
189
|
-
<v-select class="select_list select"
|
190
|
-
placeholder='气表类型' style="width: 60%"
|
191
|
-
:value.sync="model.meter_classify" v-model="model.meter_classify"
|
192
|
-
:options='$parent.$parent.meter_classifys'
|
193
|
-
filer-key="name"
|
194
|
-
close-on-select clear-button
|
195
|
-
condition="F_METER_CLASSIFY='{}'"
|
196
|
-
:value-single="true">
|
197
|
-
</v-select>
|
198
|
-
</div>
|
199
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
200
|
-
<label class="font_normal_body">安装位置</label>
|
201
|
-
<v-select class="select_list select"
|
202
|
-
placeholder='安装位置' style="width: 60%"
|
203
|
-
:value.sync="model.f_position" v-model="model.f_position"
|
204
|
-
:options='$parent.$parent.positions'
|
205
|
-
filer-key="name"
|
206
|
-
close-on-select clear-button
|
207
|
-
condition="f_position='{}'"
|
208
|
-
:value-single="true">
|
209
|
-
</v-select>
|
210
|
-
</div>
|
211
|
-
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
212
|
-
<label class="font_normal_body">房屋类型</label>
|
213
|
-
<v-select class="select_list select"
|
214
|
-
placeholder='请选择' style="width: 60%"
|
215
|
-
:value.sync="model.f_house_type" v-model="model.f_house_type"
|
216
|
-
:options='$parent.$parent.housetype'
|
217
|
-
filer-key="name"
|
218
|
-
close-on-select clear-button
|
219
|
-
condition="f_house_type='{}'"
|
220
|
-
:value-single="true">
|
221
|
-
</v-select>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
226
|
-
<div :class="$parent.$parent.style">
|
227
|
-
<label class="font_normal_body">用户编号</label>
|
228
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
|
229
|
-
|
230
|
-
placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
|
231
|
-
</div>
|
232
|
-
<div :class="$parent.$parent.style">
|
233
|
-
<label class="font_normal_body">用户姓名</label>
|
234
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
|
235
|
-
placeholder="用户姓名" condition="f_user_name like '%{}%'">
|
236
|
-
</div>
|
237
|
-
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
238
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
239
|
-
:field="$parent.$parent.excelHeaders"
|
240
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
|
241
|
-
template-name='用户安检情况'
|
242
|
-
|
243
|
-
<
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
<
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
<
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
<
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
:value
|
275
|
-
:
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
<
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
:
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
:
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
<
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
:
|
317
|
-
:
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
<
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
:value
|
330
|
-
:
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
<
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
:
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
<
|
351
|
-
|
352
|
-
|
353
|
-
:
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
<
|
363
|
-
|
364
|
-
|
365
|
-
:
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
<
|
375
|
-
|
376
|
-
|
377
|
-
:
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
<
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
<!--
|
412
|
-
<!--
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
<!--
|
418
|
-
<!--
|
419
|
-
<!--
|
420
|
-
<!--
|
421
|
-
<!--
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
<!--
|
433
|
-
<!--
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.
|
448
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.
|
449
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.
|
450
|
-
|
451
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{
|
452
|
-
|
453
|
-
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
454
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
455
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
456
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
457
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
458
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.
|
459
|
-
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
</
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
import {
|
471
|
-
import
|
472
|
-
import
|
473
|
-
import
|
474
|
-
|
475
|
-
|
476
|
-
//
|
477
|
-
// let
|
478
|
-
//
|
479
|
-
//
|
480
|
-
//
|
481
|
-
//
|
482
|
-
//
|
483
|
-
//
|
484
|
-
//
|
485
|
-
//
|
486
|
-
//
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
let
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
'
|
513
|
-
'
|
514
|
-
'
|
515
|
-
'
|
516
|
-
'
|
517
|
-
'
|
518
|
-
'
|
519
|
-
'
|
520
|
-
'
|
521
|
-
'
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
this.
|
594
|
-
this.
|
595
|
-
this.model.
|
596
|
-
this.model.
|
597
|
-
this.
|
598
|
-
this.
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
this
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
//
|
697
|
-
//
|
698
|
-
//
|
699
|
-
//
|
700
|
-
//
|
701
|
-
//
|
702
|
-
//
|
703
|
-
//
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
con
|
739
|
-
con += args.model.
|
740
|
-
con += args.model.
|
741
|
-
con += args.model.
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
con += args.model.f_check_start ? ` and f_offsite_time
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
//
|
790
|
-
//
|
791
|
-
//
|
792
|
-
//
|
793
|
-
//
|
794
|
-
//
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
let
|
817
|
-
this.$
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
this
|
864
|
-
}
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
temp
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
this.
|
944
|
-
this.
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
this.model.safeCycle = this.
|
954
|
-
}
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
this
|
969
|
-
this
|
970
|
-
this.$refs.paged.$refs.criteria.model.
|
971
|
-
this.model.
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
this.model.
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
//
|
991
|
-
//
|
992
|
-
//
|
993
|
-
//
|
994
|
-
//
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
//
|
1014
|
-
//
|
1015
|
-
//
|
1016
|
-
//
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
}
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
7
|
+
<div :class="$parent.$parent.style">
|
8
|
+
<label class="font_normal_body">用户编号</label>
|
9
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
|
10
|
+
id="f_userinfo_code"
|
11
|
+
|
12
|
+
placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
|
13
|
+
</div>
|
14
|
+
<div :class="$parent.$parent.style">
|
15
|
+
<label class="font_normal_body">用户姓名</label>
|
16
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
|
17
|
+
placeholder="用户姓名" condition="f_user_name like '%{}%'">
|
18
|
+
</div>
|
19
|
+
<div :class="$parent.$parent.style">
|
20
|
+
<label class="font_normal_body">小  区</label>
|
21
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
|
22
|
+
id="f_residential_area"
|
23
|
+
placeholder="小区" condition="f_residential_area like '%{}%'">
|
24
|
+
</div>
|
25
|
+
<div :class="$parent.$parent.style">
|
26
|
+
<label class="font_normal_body">地  址</label>
|
27
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
|
28
|
+
placeholder="地址" condition="f_address like '%{}%'">
|
29
|
+
</div>
|
30
|
+
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
31
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
32
|
+
:field="$parent.$parent.excelHeaders"
|
33
|
+
:choose-col="true"
|
34
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
|
35
|
+
template-name='用户安检情况'></export-excel-safe>
|
36
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
37
|
+
<div style="float: right" class="button_spacing"
|
38
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
39
|
+
@click="$parent.$parent.hiddenr()"></div>
|
40
|
+
<div style="float: right" class="button_spacing"
|
41
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
42
|
+
@click="$parent.$parent.hidden()">
|
43
|
+
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
50
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
51
|
+
<label class="font_normal_body">用户类型</label>
|
52
|
+
<v-select id="f_usertype"
|
53
|
+
placeholder='用户类型'
|
54
|
+
class="select select_list"
|
55
|
+
:value.sync="model.f_usertype"
|
56
|
+
:value-single="true"
|
57
|
+
:options='$parent.$parent.usertypes'
|
58
|
+
v-model="model.f_usertype"
|
59
|
+
condition="f_user_type = '{}'"
|
60
|
+
close-on-select clear-button></v-select>
|
61
|
+
</div>
|
62
|
+
<!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
|
63
|
+
|
64
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
65
|
+
<label class="font_normal_body" style="color: red;">安检筛选</label>
|
66
|
+
<v-select
|
67
|
+
placeholder='安检筛选'
|
68
|
+
:value-single="true"
|
69
|
+
class="select select_list"
|
70
|
+
:value.sync="$parent.$parent.SafeCheckXZ"
|
71
|
+
:options='$parent.$parent.SafeCheckXZs'
|
72
|
+
v-model="$parent.$parent.SafeCheckXZ"
|
73
|
+
close-on-select clear-button></v-select>
|
74
|
+
</div>
|
75
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
76
|
+
<label class="font_normal_body">安检起始</label>
|
77
|
+
<datepicker
|
78
|
+
:value.sync="model.f_check_start"
|
79
|
+
placeholder='最后安检时间起始'
|
80
|
+
style="width: 60%"
|
81
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
82
|
+
:show-rest-button="reset"
|
83
|
+
v-model="model.f_check_start">
|
84
|
+
</datepicker>
|
85
|
+
</div>
|
86
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
87
|
+
<label class="font_normal_body">安检结束</label>
|
88
|
+
<datepicker
|
89
|
+
:value.sync="model.f_check_end"
|
90
|
+
placeholder='最后安检时间结束'
|
91
|
+
style="width: 60%"
|
92
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
93
|
+
:show-rest-button="reset"
|
94
|
+
v-model="model.f_check_end">
|
95
|
+
</datepicker>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
99
|
+
<label class="font_normal_body">安检状态</label>
|
100
|
+
<v-select id="f_entry"
|
101
|
+
placeholder='安检状态'
|
102
|
+
class="select select_list"
|
103
|
+
:value.sync="model.f_last_check_state"
|
104
|
+
:value-single="true"
|
105
|
+
:options='$parent.$parent.checkstatus'
|
106
|
+
v-model="model.f_last_check_state"
|
107
|
+
condition="f_last_check_state = '{}'"
|
108
|
+
close-on-select clear-button></v-select>
|
109
|
+
</div>
|
110
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
111
|
+
<label class="font_normal_body">隐患情况</label>
|
112
|
+
<v-select
|
113
|
+
placeholder='隐患情况'
|
114
|
+
class="select select_list"
|
115
|
+
:value-single="true"
|
116
|
+
v-model='model.f_check_result'
|
117
|
+
:value.sync="model.f_check_result"
|
118
|
+
:options='$parent.$parent.f_check_results'
|
119
|
+
condition="f_last_check_result like '%{}%'"
|
120
|
+
close-on-select clear-button></v-select>
|
121
|
+
</div>
|
122
|
+
<!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
|
123
|
+
</div>
|
124
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
125
|
+
|
126
|
+
<div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
|
127
|
+
<role-selector-safe
|
128
|
+
role-name="安检员"
|
129
|
+
role-lable="安 检 员 "
|
130
|
+
@re-res="$parent.$parent.getRes"
|
131
|
+
:value.sync="model.f_checker_id"
|
132
|
+
v-model="model.f_checker_id"
|
133
|
+
condition=" f_checker_name = '{}'">
|
134
|
+
</role-selector-safe>
|
135
|
+
</div>
|
136
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
137
|
+
<label class="font_normal_body">片  区</label>
|
138
|
+
<v-select class="select_list select"
|
139
|
+
placeholder='片区/管理站' style="width: 60%"
|
140
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
141
|
+
:options='$parent.$parent.sliceArea'
|
142
|
+
filer-key="name"
|
143
|
+
close-on-select clear-button
|
144
|
+
condition="f_slice_area='{}'"
|
145
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
146
|
+
:value-single="true">
|
147
|
+
</v-select>
|
148
|
+
</div>
|
149
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
150
|
+
<label class="font_normal_body">抄 表 册</label>
|
151
|
+
<v-select class="select_list select"
|
152
|
+
placeholder='抄表册' style="width: 60%"
|
153
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
154
|
+
:options='$parent.$parent.cbc'
|
155
|
+
filer-key="name"
|
156
|
+
close-on-select clear-button
|
157
|
+
condition="f_meter_book_num={}"
|
158
|
+
:value-single="true">
|
159
|
+
</v-select>
|
160
|
+
</div>
|
161
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
162
|
+
<label class="font_normal_body">省 市 区</label>
|
163
|
+
<v-select class="select_list select"
|
164
|
+
placeholder='请选择' style="width: 60%"
|
165
|
+
:value.sync="model.f_pcd" v-model="model.f_pcd"
|
166
|
+
:options='$parent.$parent.pcds'
|
167
|
+
filer-key="name"
|
168
|
+
close-on-select clear-button
|
169
|
+
condition="f_pcd='{}'"
|
170
|
+
:value-single="true">
|
171
|
+
</v-select>
|
172
|
+
</div>
|
173
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
174
|
+
<label class="font_normal_body">用户状态</label>
|
175
|
+
<v-select class="select_list select"
|
176
|
+
placeholder='用户状态' style="width: 60%"
|
177
|
+
:value.sync="model.f_user_state" v-model="model.f_user_state"
|
178
|
+
:options='$parent.$parent.userstates'
|
179
|
+
close-on-select clear-button
|
180
|
+
condition="f_user_state = '{}'"
|
181
|
+
:value-single="true">
|
182
|
+
</v-select>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
186
|
+
|
187
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
188
|
+
<label class="font_normal_body">气表类型</label>
|
189
|
+
<v-select class="select_list select"
|
190
|
+
placeholder='气表类型' style="width: 60%"
|
191
|
+
:value.sync="model.meter_classify" v-model="model.meter_classify"
|
192
|
+
:options='$parent.$parent.meter_classifys'
|
193
|
+
filer-key="name"
|
194
|
+
close-on-select clear-button
|
195
|
+
condition="F_METER_CLASSIFY='{}'"
|
196
|
+
:value-single="true">
|
197
|
+
</v-select>
|
198
|
+
</div>
|
199
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
200
|
+
<label class="font_normal_body">安装位置</label>
|
201
|
+
<v-select class="select_list select"
|
202
|
+
placeholder='安装位置' style="width: 60%"
|
203
|
+
:value.sync="model.f_position" v-model="model.f_position"
|
204
|
+
:options='$parent.$parent.positions'
|
205
|
+
filer-key="name"
|
206
|
+
close-on-select clear-button
|
207
|
+
condition="f_position='{}'"
|
208
|
+
:value-single="true">
|
209
|
+
</v-select>
|
210
|
+
</div>
|
211
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
212
|
+
<label class="font_normal_body">房屋类型</label>
|
213
|
+
<v-select class="select_list select"
|
214
|
+
placeholder='请选择' style="width: 60%"
|
215
|
+
:value.sync="model.f_house_type" v-model="model.f_house_type"
|
216
|
+
:options='$parent.$parent.housetype'
|
217
|
+
filer-key="name"
|
218
|
+
close-on-select clear-button
|
219
|
+
condition="f_house_type='{}'"
|
220
|
+
:value-single="true">
|
221
|
+
</v-select>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
226
|
+
<div :class="$parent.$parent.style">
|
227
|
+
<label class="font_normal_body">用户编号</label>
|
228
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
|
229
|
+
|
230
|
+
placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
|
231
|
+
</div>
|
232
|
+
<div :class="$parent.$parent.style">
|
233
|
+
<label class="font_normal_body">用户姓名</label>
|
234
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
|
235
|
+
placeholder="用户姓名" condition="f_user_name like '%{}%'">
|
236
|
+
</div>
|
237
|
+
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
238
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
239
|
+
:field="$parent.$parent.excelHeaders"
|
240
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
|
241
|
+
template-name='用户安检情况'>
|
242
|
+
</export-excel-safe>
|
243
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
244
|
+
<div style="float: right" class="button_spacing"
|
245
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
246
|
+
@click="$parent.$parent.hiddenr()"></div>
|
247
|
+
<div style="float: right" class="button_spacing"
|
248
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
249
|
+
@click="$parent.$parent.hidden()">
|
250
|
+
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
</div>
|
255
|
+
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
256
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
257
|
+
<label class="font_normal_body">小  区</label>
|
258
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
|
259
|
+
|
260
|
+
placeholder="小区" condition="f_residential_area like '%{}%'">
|
261
|
+
</div>
|
262
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
263
|
+
<label class="font_normal_body">地  址</label>
|
264
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
|
265
|
+
|
266
|
+
placeholder="地址" condition="f_address like '%{}%'">
|
267
|
+
</div>
|
268
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
269
|
+
<label class="font_normal_body">用户类型</label>
|
270
|
+
<v-select
|
271
|
+
placeholder='用户类型'
|
272
|
+
class="select select_list"
|
273
|
+
|
274
|
+
:value.sync="model.f_usertype"
|
275
|
+
:value-single="true"
|
276
|
+
:options='$parent.$parent.usertypes'
|
277
|
+
v-model="model.f_usertype"
|
278
|
+
condition="f_user_type = '{}'"
|
279
|
+
close-on-select clear-button></v-select>
|
280
|
+
</div>
|
281
|
+
<!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
|
282
|
+
|
283
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
284
|
+
<label class="font_normal_body" style="color: red;">安检筛选</label>
|
285
|
+
<v-select
|
286
|
+
placeholder='安检筛选'
|
287
|
+
:value-single="true"
|
288
|
+
|
289
|
+
class="select select_list"
|
290
|
+
:value.sync="$parent.$parent.SafeCheckXZ"
|
291
|
+
:options='$parent.$parent.SafeCheckXZs'
|
292
|
+
v-model="$parent.$parent.SafeCheckXZ"
|
293
|
+
close-on-select clear-button></v-select>
|
294
|
+
</div>
|
295
|
+
|
296
|
+
</div>
|
297
|
+
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
298
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
299
|
+
<label class="font_normal_body">安检起始</label>
|
300
|
+
<datepicker
|
301
|
+
:value.sync="model.f_check_start"
|
302
|
+
placeholder='最后安检时间起始'
|
303
|
+
:disabled-days-of-week="[]"
|
304
|
+
style="width: 60%"
|
305
|
+
:format="'yyyy-MM-dd'"
|
306
|
+
:show-rest-button="reset"
|
307
|
+
v-model="model.f_check_start">
|
308
|
+
</datepicker>
|
309
|
+
</div>
|
310
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
311
|
+
<label class="font_normal_body">安检结束</label>
|
312
|
+
<datepicker
|
313
|
+
:value.sync="model.f_check_end"
|
314
|
+
placeholder='最后安检时间结束'
|
315
|
+
style="width: 60%"
|
316
|
+
:disabled-days-of-week="[]"
|
317
|
+
:format="'yyyy-MM-dd'"
|
318
|
+
:show-rest-button="reset"
|
319
|
+
v-model="model.f_check_end">
|
320
|
+
</datepicker>
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
324
|
+
<label class="font_normal_body">安检状态</label>
|
325
|
+
<v-select
|
326
|
+
placeholder='安检状态'
|
327
|
+
class="select select_list"
|
328
|
+
|
329
|
+
:value.sync="model.f_last_check_state"
|
330
|
+
:value-single="true"
|
331
|
+
:options='$parent.$parent.checkstatus'
|
332
|
+
v-model="model.f_last_check_state"
|
333
|
+
condition="f_last_check_state = '{}'"
|
334
|
+
close-on-select clear-button></v-select>
|
335
|
+
</div>
|
336
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
337
|
+
<label class="font_normal_body">隐患情况</label>
|
338
|
+
<v-select
|
339
|
+
placeholder='隐患情况'
|
340
|
+
class="select select_list"
|
341
|
+
|
342
|
+
:value-single="true"
|
343
|
+
v-model='model.f_check_result'
|
344
|
+
:value.sync="model.f_check_result"
|
345
|
+
:options='$parent.$parent.f_check_results'
|
346
|
+
condition="f_last_check_result like '%{}%'"
|
347
|
+
close-on-select clear-button></v-select>
|
348
|
+
</div>
|
349
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
350
|
+
<label class="font_normal_body">气表类型</label>
|
351
|
+
<v-select class="select_list select"
|
352
|
+
placeholder='气表类型' style="width: 60%"
|
353
|
+
:value.sync="model.meter_classify" v-model="model.meter_classify"
|
354
|
+
:options='$parent.$parent.meter_classifys'
|
355
|
+
filer-key="name"
|
356
|
+
close-on-select clear-button
|
357
|
+
condition="F_METER_CLASSIFY='{}'"
|
358
|
+
:value-single="true">
|
359
|
+
</v-select>
|
360
|
+
</div>
|
361
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
362
|
+
<label class="font_normal_body">安装位置</label>
|
363
|
+
<v-select class="select_list select"
|
364
|
+
placeholder='安装位置' style="width: 60%"
|
365
|
+
:value.sync="model.f_position" v-model="model.f_position"
|
366
|
+
:options='$parent.$parent.positions'
|
367
|
+
filer-key="name"
|
368
|
+
close-on-select clear-button
|
369
|
+
condition="f_position='{}'"
|
370
|
+
:value-single="true">
|
371
|
+
</v-select>
|
372
|
+
</div>
|
373
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
374
|
+
<label class="font_normal_body">房屋类型</label>
|
375
|
+
<v-select class="select_list select"
|
376
|
+
placeholder='请选择' style="width: 60%"
|
377
|
+
:value.sync="model.f_house_type" v-model="model.f_house_type"
|
378
|
+
:options='$parent.$parent.housetype'
|
379
|
+
filer-key="name"
|
380
|
+
close-on-select clear-button
|
381
|
+
condition="f_house_type='{}'"
|
382
|
+
:value-single="true">
|
383
|
+
</v-select>
|
384
|
+
</div>
|
385
|
+
</div>
|
386
|
+
<!--<div class="row" v-show="$parent.$parent.$parent.showItem">
|
387
|
+
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
388
|
+
<label class="font_normal_body">公  司</label>
|
389
|
+
<right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
|
390
|
+
</right-tree>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
</div>-->
|
394
|
+
</div>
|
395
|
+
</criteria>
|
396
|
+
<data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
|
397
|
+
<template partial='head'>
|
398
|
+
<tr>
|
399
|
+
<th>
|
400
|
+
<nobr>用户编号</nobr>
|
401
|
+
</th>
|
402
|
+
<th>
|
403
|
+
<nobr>用户名称</nobr>
|
404
|
+
</th>
|
405
|
+
<th>
|
406
|
+
<nobr>用户电话</nobr>
|
407
|
+
</th>
|
408
|
+
<th>
|
409
|
+
<nobr>用户表号</nobr>
|
410
|
+
</th>
|
411
|
+
<!-- <th>-->
|
412
|
+
<!-- <nobr>气表品牌</nobr>-->
|
413
|
+
<!-- </th>-->
|
414
|
+
<th>
|
415
|
+
<nobr>用户类型</nobr>
|
416
|
+
</th>
|
417
|
+
<!-- <th>-->
|
418
|
+
<!-- <nobr>壁挂炉</nobr>-->
|
419
|
+
<!-- </th>-->
|
420
|
+
<!-- <th>-->
|
421
|
+
<!-- <nobr>灶具</nobr>-->
|
422
|
+
<!-- </th>-->
|
423
|
+
<th>
|
424
|
+
<nobr>小区名称</nobr>
|
425
|
+
</th>
|
426
|
+
<th style="padding: 0 40px">
|
427
|
+
<nobr>地址</nobr>
|
428
|
+
</th>
|
429
|
+
<th>
|
430
|
+
<nobr>安检员</nobr>
|
431
|
+
</th>
|
432
|
+
<!-- <th>-->
|
433
|
+
<!-- <nobr>安检员备注</nobr>-->
|
434
|
+
<!-- </th>-->
|
435
|
+
<th>
|
436
|
+
<nobr>安检日期</nobr>
|
437
|
+
</th>
|
438
|
+
<th>
|
439
|
+
<nobr>安检状态</nobr>
|
440
|
+
</th>
|
441
|
+
<th>
|
442
|
+
<nobr>安检结果</nobr>
|
443
|
+
</th>
|
444
|
+
</tr>
|
445
|
+
</template>
|
446
|
+
<template partial='body'>
|
447
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
|
448
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
|
449
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
|
450
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
|
451
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
|
452
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
|
453
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
|
454
|
+
<!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
|
455
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
|
456
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
|
457
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
|
458
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
|
459
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
|
460
|
+
<td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
|
461
|
+
{{row.f_last_check_result }}
|
462
|
+
</td>
|
463
|
+
</template>
|
464
|
+
</data-grid>
|
465
|
+
</criteria-paged>
|
466
|
+
</div>
|
467
|
+
</template>
|
468
|
+
|
469
|
+
<script>
|
470
|
+
import {PagedList} from 'vue-client'
|
471
|
+
import {HttpResetClass} from 'vue-client'
|
472
|
+
import co from 'co'
|
473
|
+
import * as Util from './../Util'
|
474
|
+
import Vue from 'vue'
|
475
|
+
|
476
|
+
// let select = function * (self,userid) {
|
477
|
+
// let http = new HttpResetClass()
|
478
|
+
// let getGasman = yield http.load('POST','/rs/search', {
|
479
|
+
// source: 'this.getChildByName($安检员$).getUsers()',
|
480
|
+
// userid: userid
|
481
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
482
|
+
// console.log('获取安检员', getGasman)
|
483
|
+
// getGasman.data.forEach((checker)=>{
|
484
|
+
// self.checkersid.push({label:checker.name,value:checker.id})
|
485
|
+
// })
|
486
|
+
// self.checkersid.push({label:'全部',value:''})
|
487
|
+
// }
|
488
|
+
|
489
|
+
|
490
|
+
export default {
|
491
|
+
title: '用户安检情况',
|
492
|
+
data() {
|
493
|
+
let options = []
|
494
|
+
let year = (new Date()).getFullYear()
|
495
|
+
for (let i = year; i <= year + 3; i++)
|
496
|
+
options.push({label: i + '', value: i + ''})
|
497
|
+
let moptions = []
|
498
|
+
for (let i = 1; i <= 12; i++)
|
499
|
+
moptions.push({label: i + '', value: i + ''})
|
500
|
+
|
501
|
+
return {
|
502
|
+
searchData: {
|
503
|
+
condition: '1=1',
|
504
|
+
orderitem: "f_userinfo_code",
|
505
|
+
timetype: "dd",
|
506
|
+
f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', ua.f_last_check_result ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( ua.f_last_check_result, len( ua.f_last_check_result ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
507
|
+
|
508
|
+
},
|
509
|
+
excelHeaders: {
|
510
|
+
//用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
|
511
|
+
|
512
|
+
'f_userinfo_code': '用户编号',
|
513
|
+
'f_user_name': '用户名称',
|
514
|
+
'f_user_phone': '用户电话',
|
515
|
+
'f_meternumber': '用户表号',
|
516
|
+
'f_user_type': '用户类型',
|
517
|
+
'f_checker_name':'安检员',
|
518
|
+
// 'f_last_checker': '安检员',
|
519
|
+
'f_residential_area': '小区名称',
|
520
|
+
'f_address': '地址',
|
521
|
+
'f_last_check_date': '安检日期',
|
522
|
+
'f_last_check_state': '安检状态',
|
523
|
+
'f_last_check_result': '安检结果'
|
524
|
+
},
|
525
|
+
model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
|
526
|
+
orderitem: "'f_last_check_date'",
|
527
|
+
timetype: "'dd'",
|
528
|
+
f_defect_content: 'this.f_defect_content'
|
529
|
+
}),
|
530
|
+
f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', ua.f_last_check_result ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( ua.f_last_check_result, len( ua.f_last_check_result ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
|
531
|
+
orgstrs: [{label: '全部', value: ''}],
|
532
|
+
checkersid: [],
|
533
|
+
SafeCheckXZ: '',
|
534
|
+
civil: '', //民用安检周期
|
535
|
+
civilian: '', //非民用安检周期
|
536
|
+
SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
|
537
|
+
SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
|
538
|
+
// user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
|
539
|
+
IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
540
|
+
IsShare: '否',
|
541
|
+
checker: {},
|
542
|
+
NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
543
|
+
criteriaShow: false,
|
544
|
+
checkers: [],
|
545
|
+
chosenOrg: {id: 0},
|
546
|
+
showModal: false,
|
547
|
+
checkedAll: false,
|
548
|
+
checkrows: [],
|
549
|
+
adjustables: [],
|
550
|
+
f_plan_year: year + '',
|
551
|
+
f_plan_month: moptions[new Date().getMonth()].value,
|
552
|
+
f_effective_start_time: '', //计划有效起始时间
|
553
|
+
f_effective_end_time: '', //计划有效结束时间
|
554
|
+
checkboxModel: {},
|
555
|
+
c_year_list: options,
|
556
|
+
c_month_list: moptions,
|
557
|
+
areas: this.areas(),
|
558
|
+
checkstatus: this.checkstatus(),
|
559
|
+
usertypes: this.usertypes(),
|
560
|
+
userstates: this.userstates(),
|
561
|
+
sqlname: '',
|
562
|
+
f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
|
563
|
+
creatPlanWay: '',
|
564
|
+
sliceArea: [],
|
565
|
+
cbcs:[],
|
566
|
+
cbc:[],
|
567
|
+
pcds:[],
|
568
|
+
housetype: [],
|
569
|
+
positions: [],
|
570
|
+
meter_classifys:[]//气表类型
|
571
|
+
}
|
572
|
+
},
|
573
|
+
props: {
|
574
|
+
style: {
|
575
|
+
type: String,
|
576
|
+
default: 'col-sm-2 form-group'
|
577
|
+
},
|
578
|
+
style2: {
|
579
|
+
type: String,
|
580
|
+
default: 'col-sm-4 form-group'
|
581
|
+
},
|
582
|
+
checkplan: { // 传入一条安检计划信息
|
583
|
+
type: Object
|
584
|
+
},
|
585
|
+
additemshow: {
|
586
|
+
type: Boolean,
|
587
|
+
default: false
|
588
|
+
}
|
589
|
+
},
|
590
|
+
ready() {
|
591
|
+
// 获取分公司信息
|
592
|
+
this.model.f_defect_content=this.f_defect_content
|
593
|
+
this.setConList()
|
594
|
+
//this.getfengongsi()
|
595
|
+
this.model.chosenOrg = {id: 0}
|
596
|
+
this.model.f_filialeids = this.$login.f.f_orgids
|
597
|
+
this.model.f_filiale = this.$login.f.f_fengongsi
|
598
|
+
this.model.f_OrgStr = this.$login.f.orgpathstr
|
599
|
+
this.Mreadibook(`('${this.$login.f.orgid}')`)
|
600
|
+
this.getAllMeterBook(`('${this.$login.f.orgid}')`)
|
601
|
+
},
|
602
|
+
methods: {
|
603
|
+
setConList(){
|
604
|
+
|
605
|
+
this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
|
606
|
+
label: '全部',
|
607
|
+
value: ''
|
608
|
+
}, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
609
|
+
|
610
|
+
this.positions=this.$appdata.getParam('安装位置') ? [{
|
611
|
+
label: '全部',
|
612
|
+
value: ''
|
613
|
+
}, ...this.$appdata.getParam('安装位置')] : [{label: '全部', value: ''}]
|
614
|
+
this.housetype=this.$appdata.getParam('房屋类型') ? [{
|
615
|
+
label: '全部',
|
616
|
+
value: ''
|
617
|
+
}, ...this.$appdata.getParam('房屋类型')] : [{label: '全部', value: ''}]
|
618
|
+
},
|
619
|
+
//获取省市区列表
|
620
|
+
getPcd(val){
|
621
|
+
this.pcds = [{label:'全部',value:''}]
|
622
|
+
new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
|
623
|
+
{data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
|
624
|
+
{resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
|
625
|
+
pcdlist.data.forEach((result)=>{
|
626
|
+
this.pcds.push({label:result.f_pcd,value:result.f_pcd})
|
627
|
+
})
|
628
|
+
})
|
629
|
+
},
|
630
|
+
getmeterbook(val){
|
631
|
+
|
632
|
+
console.log("进来111")
|
633
|
+
this.cbc=[]
|
634
|
+
this.cbc.push({
|
635
|
+
label:'全部',
|
636
|
+
value:''
|
637
|
+
})
|
638
|
+
if (val==''){
|
639
|
+
|
640
|
+
this.cbcs.forEach(res=>{
|
641
|
+
this.cbc.push({
|
642
|
+
label:res.f_book_name,
|
643
|
+
value:res.id
|
644
|
+
})
|
645
|
+
})
|
646
|
+
}else{
|
647
|
+
this.cbcs.forEach(res=>{
|
648
|
+
if (res.f_book_slice_area==val){
|
649
|
+
this.cbc.push({
|
650
|
+
label:res.f_book_name,
|
651
|
+
value:res.id
|
652
|
+
})
|
653
|
+
}
|
654
|
+
})
|
655
|
+
}
|
656
|
+
},
|
657
|
+
Mreadibook(val){
|
658
|
+
//console.log("999999999")
|
659
|
+
//console.log(val)
|
660
|
+
if (val){
|
661
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
662
|
+
items: 'name',
|
663
|
+
tablename: 't_zone',
|
664
|
+
condition: `parentid in ${val}`,
|
665
|
+
orderitem: 'id'
|
666
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
667
|
+
this.sliceArea=[]
|
668
|
+
this.sliceArea.push({
|
669
|
+
label:'全部',
|
670
|
+
value:''
|
671
|
+
})
|
672
|
+
res.data.forEach(ress=>{
|
673
|
+
this.sliceArea.push({
|
674
|
+
label:ress.name,
|
675
|
+
value:ress.name
|
676
|
+
})
|
677
|
+
})
|
678
|
+
|
679
|
+
})
|
680
|
+
}
|
681
|
+
},
|
682
|
+
// 获取县域分公司内容
|
683
|
+
getfengongsi() {
|
684
|
+
let val = {
|
685
|
+
source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
|
686
|
+
userid: `${this.$login.f.id}`
|
687
|
+
}
|
688
|
+
let http = new HttpResetClass()
|
689
|
+
http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
690
|
+
res.data.forEach((item) => {
|
691
|
+
this.orgstrs.push({label: item.name, value: item.id})
|
692
|
+
})
|
693
|
+
console.log(this.orgstrs.length)
|
694
|
+
})
|
695
|
+
},
|
696
|
+
// 县域分公司发生改变
|
697
|
+
// orgstrchange(val){
|
698
|
+
// if(val == undefined || val == ''){
|
699
|
+
// return
|
700
|
+
// }else {
|
701
|
+
// this.checkersid = []
|
702
|
+
// let gen = select(this,val)
|
703
|
+
// return co(gen)
|
704
|
+
// }
|
705
|
+
// },
|
706
|
+
getDefect(val) {
|
707
|
+
if (val) {
|
708
|
+
try {
|
709
|
+
var defect = JSON.parse(val)
|
710
|
+
return defect.result
|
711
|
+
} catch (e) {
|
712
|
+
console.log(val)
|
713
|
+
return '正常'
|
714
|
+
}
|
715
|
+
}
|
716
|
+
return '正常'
|
717
|
+
},
|
718
|
+
checkerchange(val) {
|
719
|
+
this.checkboxModel.f_checker = val.name
|
720
|
+
this.checkboxModel.f_checker_id = val.id
|
721
|
+
},
|
722
|
+
search(args) {
|
723
|
+
if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
|
724
|
+
this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
|
725
|
+
return
|
726
|
+
}
|
727
|
+
if (this.SafeCheckXZ == '未安检') {
|
728
|
+
args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
|
729
|
+
} else {
|
730
|
+
if (args.model.f_check_start) {
|
731
|
+
args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
|
732
|
+
}
|
733
|
+
if (args.model.f_check_end) {
|
734
|
+
args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
|
735
|
+
}
|
736
|
+
}
|
737
|
+
args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
|
738
|
+
let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
|
739
|
+
con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
|
740
|
+
con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
|
741
|
+
con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
|
742
|
+
con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
|
743
|
+
con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''
|
744
|
+
if (this.SafeCheckXZ == '未安检') {
|
745
|
+
con += args.model.f_check_start ? ` and ( f_offsite_time < '${args.model.f_check_start}' or f_offsite_time > '${args.model.f_check_end}' )` : ''
|
746
|
+
} else {
|
747
|
+
con += args.model.f_check_start ? ` and f_offsite_time >= '${args.model.f_check_start}'` : ''
|
748
|
+
con += args.model.f_check_end ? ` and f_offsite_time <= '${args.model.f_check_end}'` : ''
|
749
|
+
}
|
750
|
+
con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
|
751
|
+
con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
|
752
|
+
let condition = {
|
753
|
+
condition1: args.condition,
|
754
|
+
condition2: con
|
755
|
+
}
|
756
|
+
console.log('查询参数', condition)
|
757
|
+
this.searchData.condition = condition
|
758
|
+
return this.model.search(condition, args.model)
|
759
|
+
},
|
760
|
+
checkstatus() {
|
761
|
+
return this.$appdata.getParam('安检状态') ? [{
|
762
|
+
label: '全部',
|
763
|
+
value: ''
|
764
|
+
}, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
|
765
|
+
},
|
766
|
+
usertypes() {
|
767
|
+
return this.$appdata.getParam('用户类型') ? [{
|
768
|
+
label: '全部',
|
769
|
+
value: ''
|
770
|
+
}, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
|
771
|
+
},
|
772
|
+
userstates() {
|
773
|
+
return this.$appdata.getParam('用户状态') ? [{
|
774
|
+
label: '全部',
|
775
|
+
value: ''
|
776
|
+
}, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
|
777
|
+
},
|
778
|
+
hiddenr() {
|
779
|
+
this.$parent.showItem = !this.$parent.showItem
|
780
|
+
},
|
781
|
+
hidden() {
|
782
|
+
this.criteriaShow = !this.criteriaShow
|
783
|
+
},
|
784
|
+
confirm() {
|
785
|
+
if (!this.checkboxModel.f_plan_name) {
|
786
|
+
this.$showMessage('请填写安检计划名称!')
|
787
|
+
return
|
788
|
+
}
|
789
|
+
// if(this.f_effective_start_time == ''){
|
790
|
+
// this.$showMessage('请选择有效起始日期!')
|
791
|
+
// return
|
792
|
+
// }
|
793
|
+
// if(this.f_effective_end_time == ''){
|
794
|
+
// this.$showMessage('请选择有效结束日期!')
|
795
|
+
// return
|
796
|
+
// }
|
797
|
+
if (this.IsShare == '否') {
|
798
|
+
if (!this.checkboxModel.f_checker_id) {
|
799
|
+
this.$showMessage('请选择安检员!')
|
800
|
+
return
|
801
|
+
}
|
802
|
+
}
|
803
|
+
let gen = saveGen(this)
|
804
|
+
return co(gen)
|
805
|
+
},
|
806
|
+
changeStates() {
|
807
|
+
if (this.checkedAll) {//实现反选/
|
808
|
+
this.checkrows = [];
|
809
|
+
for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
|
810
|
+
this.$set('$refs.paged.model.rows[' + i + '].checked', false)
|
811
|
+
}
|
812
|
+
} else {//实现全选
|
813
|
+
for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
|
814
|
+
this.$set('$refs.paged.model.rows[' + i + '].checked', true)
|
815
|
+
}
|
816
|
+
let _this = this
|
817
|
+
let condition = this.$refs.paged.$refs.criteria.condition
|
818
|
+
let url = this.model.url
|
819
|
+
this.$resetpost(`${url}?pageSize=9999999`, {
|
820
|
+
data: {
|
821
|
+
condition: condition,
|
822
|
+
groupitem: '',
|
823
|
+
orderitem: 'f_residential_area',
|
824
|
+
f_usertype: this.model.f_usertype,
|
825
|
+
f_filialeids: this.model.f_filialeids,
|
826
|
+
month: this.model.month,
|
827
|
+
safeCycle: this.model.safeCycle,
|
828
|
+
f_checktime_start: this.model.f_checktime_start,
|
829
|
+
f_checktime_end: this.model.f_checktime_end,
|
830
|
+
SafeCheckSX: this.model.SafeCheckSX,
|
831
|
+
f_last_check_state: this.model.f_last_check_state
|
832
|
+
},
|
833
|
+
}, {resolveMsg: null, rejectMsg: null}, -1).then(
|
834
|
+
(respanse) => {
|
835
|
+
if (respanse.data.length >= 5000) {
|
836
|
+
this.$showMessage("数据量太大,请重新选择")
|
837
|
+
} else {
|
838
|
+
_this.checkrows = []
|
839
|
+
for (let j = 0; j < respanse.data.length; j++) {
|
840
|
+
_this.checkrows.push(respanse.data[j])
|
841
|
+
}
|
842
|
+
console.log(_this.checkrows);
|
843
|
+
}
|
844
|
+
})
|
845
|
+
}
|
846
|
+
},
|
847
|
+
addChecked(item) {
|
848
|
+
console.log(item);
|
849
|
+
if (!item.checked) {
|
850
|
+
this.checkrows.push(item);
|
851
|
+
console.log(this.checkrows);
|
852
|
+
} else {
|
853
|
+
for (let i = 0; i < this.checkrows.length; i++) {
|
854
|
+
if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
|
855
|
+
this.checkrows.splice(i, 1)
|
856
|
+
}
|
857
|
+
}
|
858
|
+
}
|
859
|
+
},
|
860
|
+
ToshowModal() {
|
861
|
+
this.creatPlanWay = 'single'
|
862
|
+
if (this.checkrows.length > 0) {
|
863
|
+
this.showModal = true
|
864
|
+
} else {
|
865
|
+
this.$showMessage("请选择需要安检的用户!")
|
866
|
+
}
|
867
|
+
},
|
868
|
+
FiltrationPlan() {
|
869
|
+
if (this.model.rows.length == 0) {
|
870
|
+
this.$showMessage("暂无可生成的计划!")
|
871
|
+
return
|
872
|
+
}
|
873
|
+
this.creatPlanWay = 'filtration'
|
874
|
+
this.showModal = true
|
875
|
+
},
|
876
|
+
AllPlan() {
|
877
|
+
if (this.model.rows.length == 0) {
|
878
|
+
this.$showMessage("暂无可生成的计划!")
|
879
|
+
return
|
880
|
+
}
|
881
|
+
this.creatPlanWay = 'all'
|
882
|
+
this.showModal = true
|
883
|
+
},
|
884
|
+
cancel() {
|
885
|
+
this.showModal = false
|
886
|
+
},
|
887
|
+
areas() {
|
888
|
+
let rs = []
|
889
|
+
for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
890
|
+
let temp = {
|
891
|
+
label: this.$login.f.f_allArea[i].label,
|
892
|
+
value: this.$login.f.f_allArea[i].label
|
893
|
+
}
|
894
|
+
rs.push(temp)
|
895
|
+
}
|
896
|
+
return [{label: '全部', value: ''}, ...rs]
|
897
|
+
},
|
898
|
+
initAdjustables() {
|
899
|
+
console.log('初始化调压箱', this.$GetSaleParam)
|
900
|
+
let arr = []
|
901
|
+
let filter = this.$login.f.f_orgids
|
902
|
+
this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
|
903
|
+
let temp = {}
|
904
|
+
temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
|
905
|
+
temp.value = `${item.value.id}`
|
906
|
+
arr.push(temp)
|
907
|
+
})
|
908
|
+
this.adjustables = [{label: '全部', value: ''}, ...arr]
|
909
|
+
},
|
910
|
+
getAllMeterBook(val){
|
911
|
+
//console.log("999999999")
|
912
|
+
//console.log(val)
|
913
|
+
this.cbcs=[]
|
914
|
+
if (val){
|
915
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
916
|
+
items: 'f_book_name,f_book_slice_area,id',
|
917
|
+
tablename: 't_meter_book',
|
918
|
+
condition: `f_filiale_id in ${val}`,
|
919
|
+
orderitem: 'id'
|
920
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
921
|
+
res.data.forEach(ress=>{
|
922
|
+
this.cbcs.push({
|
923
|
+
id:ress.id,
|
924
|
+
f_book_name:ress.f_book_name,
|
925
|
+
f_book_slice_area:ress.f_book_slice_area
|
926
|
+
})
|
927
|
+
})
|
928
|
+
this.cbc=[]
|
929
|
+
this.cbc.push({
|
930
|
+
label:'全部',
|
931
|
+
value:''
|
932
|
+
})
|
933
|
+
this.cbcs.forEach(res=>{
|
934
|
+
this.cbc.push({
|
935
|
+
label:res.f_book_name,
|
936
|
+
value:res.id
|
937
|
+
})
|
938
|
+
})
|
939
|
+
})
|
940
|
+
}
|
941
|
+
},
|
942
|
+
getRes(obj) {
|
943
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
944
|
+
this.Mreadibook(this.model.f_filialeids)
|
945
|
+
this.getAllMeterBook(this.model.f_filialeids)
|
946
|
+
this.getPcd(this.model.f_filialeids)
|
947
|
+
}
|
948
|
+
},
|
949
|
+
|
950
|
+
watch: {
|
951
|
+
'model.f_usertype'(val) {
|
952
|
+
if (val == '民用') {
|
953
|
+
this.model.safeCycle = this.civil
|
954
|
+
} else if (val == '非民用') {
|
955
|
+
this.model.safeCycle = this.civilian
|
956
|
+
}
|
957
|
+
},
|
958
|
+
'model.SafeCheckXZ'(val) {
|
959
|
+
this.model.SafeCheckSC = ''
|
960
|
+
if (val == '已安检') {
|
961
|
+
this.model.SafeCheckCQ = ''
|
962
|
+
this.model.SafeCheckSX = {
|
963
|
+
f_check_end: '', // 安检时间 查询起始条件
|
964
|
+
f_check_start: ''// 安检时间 查询终止条件
|
965
|
+
}
|
966
|
+
} else {
|
967
|
+
// 当使用筛选条件时,清空不需要的条件选项
|
968
|
+
this.model.f_issue_start = ''
|
969
|
+
this.model.f_issue_end = ''
|
970
|
+
this.$refs.paged.$refs.criteria.model.f_check_start = ''
|
971
|
+
this.$refs.paged.$refs.criteria.model.f_check_end = ''
|
972
|
+
this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
|
973
|
+
this.model.month = ''
|
974
|
+
if (val == '应安检') {
|
975
|
+
this.model.SafeCheckSC = '否'
|
976
|
+
|
977
|
+
this.model.f_issue_start = Util.toStartDateString()
|
978
|
+
this.model.f_issue_end = Util.toStandardDateString()
|
979
|
+
}
|
980
|
+
// this.model.f_checktime_start = ''
|
981
|
+
// this.model.f_checktime_end = ''
|
982
|
+
}
|
983
|
+
},
|
984
|
+
'model.SafeCheckSC'(val) {
|
985
|
+
if (val == '') {
|
986
|
+
this.model.f_issue_start = ''
|
987
|
+
this.model.f_issue_end = ''
|
988
|
+
}
|
989
|
+
},
|
990
|
+
// 'checker'(val){
|
991
|
+
// console.log("checker",this.checker)
|
992
|
+
// if(val){
|
993
|
+
// this.checkboxModel.f_checker = this.checker[0].name
|
994
|
+
// this.checkboxModel.f_checker_id = this.checker[0].id
|
995
|
+
// }
|
996
|
+
// },
|
997
|
+
'model.rows'() {
|
998
|
+
// if (!this.checkedAll) {//实现反选/
|
999
|
+
// this.checkrows = [];
|
1000
|
+
for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
|
1001
|
+
var k = false
|
1002
|
+
for (let j = 0; j < this.checkrows.length; j++) {
|
1003
|
+
if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
|
1004
|
+
this.$set('$refs.paged.model.rows[' + i + '].checked', true)
|
1005
|
+
k = true
|
1006
|
+
continue
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
if (!k) {
|
1010
|
+
this.$set('$refs.paged.model.rows[' + i + '].checked', false)
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
// } else {//实现全选
|
1014
|
+
// // this.checkboxModel = {};
|
1015
|
+
// for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
|
1016
|
+
// this.$set('$refs.paged.model.rows[' + i + '].checked', true)
|
1017
|
+
// }
|
1018
|
+
// }
|
1019
|
+
}
|
1020
|
+
},
|
1021
|
+
computed: {
|
1022
|
+
selected() {
|
1023
|
+
return this.$refs.paged.$refs.grid.selected
|
1024
|
+
}
|
1025
|
+
}
|
1026
|
+
}
|
1027
|
+
</script>
|
1028
|
+
<style scoped>
|
1029
|
+
.newcolor {
|
1030
|
+
color: red;
|
1031
|
+
}
|
1032
|
+
|
1033
|
+
.table th {
|
1034
|
+
background-color: #f2f6fa;
|
1035
|
+
color: black;
|
1036
|
+
}
|
1037
|
+
</style>
|