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,580 +1,655 @@
|
|
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-if="!$parent.$parent.$parent.showItem">
|
7
|
-
<div :class="$parent.$parent.style">
|
8
|
-
<label class="font_normal_body">安检计划</label>
|
9
|
-
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
10
|
-
@click="$parent.$parent.showChooser"
|
11
|
-
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
12
|
-
</div>
|
13
|
-
<div :class="$parent.$parent.style" v-show="false">
|
14
|
-
<label class="font_normal_body">存在隐患</label>
|
15
|
-
<v-select style="width:60% "
|
16
|
-
class="select select_list"
|
17
|
-
:value.sync="model.f_has_defect"
|
18
|
-
v-model="model.f_has_defect"
|
19
|
-
:options='$parent.$parent.hasDefectOptions'
|
20
|
-
:placeholder='model.f_has_defect'
|
21
|
-
condition="f_has_defect = '{}'"
|
22
|
-
close-on-select>
|
23
|
-
</v-select>
|
24
|
-
</div>
|
25
|
-
<div :class="$parent.$parent.style">
|
26
|
-
<label class="font_normal_body">用户编号</label>
|
27
|
-
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
28
|
-
condition="f_userinfo_code = '{}'"
|
29
|
-
style="width: 60%" placeholder="用户编号">
|
30
|
-
</div>
|
31
|
-
<div :class="$parent.$parent.style">
|
32
|
-
<label class="font_normal_body">结果查询</label>
|
33
|
-
<v-select
|
34
|
-
placeholder='处理结果查询'
|
35
|
-
:value-single="true"
|
36
|
-
class="select select_list" style="width: 60%"
|
37
|
-
v-model='model.f_repaired'
|
38
|
-
:value.sync="model.f_repaired"
|
39
|
-
:options='$parent.$parent.repaired'
|
40
|
-
condition="f_repaired = '{}'"
|
41
|
-
close-on-select clear-button> </v-select>
|
42
|
-
</div>
|
43
|
-
<div class=" col-sm-4 form-group button-range" >
|
44
|
-
<div class="span" style="float: right;margin-top: 8px">
|
45
|
-
<div style="float: right" class="button_spacing"
|
46
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
47
|
-
@click="$parent.$parent.hiddenr()"></div>
|
48
|
-
<div style="float: right" class="button_spacing"
|
49
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
50
|
-
@click="$parent.$parent.hidden()"></div>
|
51
|
-
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
52
|
-
<div style="float: right">
|
53
|
-
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
54
|
-
:field="$parent.$parent.getfield"
|
55
|
-
progress="safeGetExportProgress"
|
56
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
62
|
-
<div :class="$parent.$parent.style">
|
63
|
-
<label class="font_normal_body">片  区</label>
|
64
|
-
<v-select class="select_list select"
|
65
|
-
placeholder='片区/管理站' style="width: 60%"
|
66
|
-
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
67
|
-
:options='$parent.$parent.sliceArea'
|
68
|
-
filer-key="name"
|
69
|
-
close-on-select clear-button
|
70
|
-
condition="f_slice_area='{}'"
|
71
|
-
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
72
|
-
:value-single="true">
|
73
|
-
</v-select>
|
74
|
-
</div>
|
75
|
-
<div :class="$parent.$parent.style2" style="margin: 0">
|
76
|
-
<role-selector-safe
|
77
|
-
role-name="安检员"
|
78
|
-
role-lable="安 检 员 "
|
79
|
-
@re-res="$parent.$parent.getRes"
|
80
|
-
:value.sync="model.f_checker_id"
|
81
|
-
v-model="model.f_checker_id"
|
82
|
-
condition="f_checker_name = '{}'">
|
83
|
-
</role-selector-safe>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div :class="$parent.$parent.style">
|
87
|
-
<label class="font_normal_body">抄 表 册</label>
|
88
|
-
<v-select class="select_list select"
|
89
|
-
placeholder='抄表册' style="width: 60%"
|
90
|
-
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
91
|
-
:options='$parent.$parent.cbc'
|
92
|
-
filer-key="name"
|
93
|
-
close-on-select clear-button
|
94
|
-
condition="f_meter_book_num={}"
|
95
|
-
:value-single="true">
|
96
|
-
</v-select>
|
97
|
-
</div>
|
98
|
-
<div :class="$parent.$parent.style">
|
99
|
-
<label class="font_normal_body">起始时间</label>
|
100
|
-
<datepicker
|
101
|
-
placeholder='起始时间' style="width:60%"
|
102
|
-
:disabled-days-of-week="[]"
|
103
|
-
:format="'yyyy-MM-dd'"
|
104
|
-
:show-rest-button="reset"
|
105
|
-
:value.sync="model.f_start_time"
|
106
|
-
v-model="model.f_start_time"
|
107
|
-
condition="f_offsite_time >= '{} 00:00:00'">
|
108
|
-
</datepicker>
|
109
|
-
</div>
|
110
|
-
<div :class="$parent.$parent.style">
|
111
|
-
<label class="font_normal_body">结束时间</label>
|
112
|
-
<datepicker
|
113
|
-
placeholder='结束时间' style="width:60%"
|
114
|
-
:disabled-days-of-week="[]"
|
115
|
-
:format="'yyyy-MM-dd'"
|
116
|
-
:show-rest-button="reset"
|
117
|
-
:value.sync="model.f_end_time"
|
118
|
-
v-model="model.f_end_time"
|
119
|
-
condition="f_offsite_time <= '{} 23:59:59'">
|
120
|
-
</datepicker>
|
121
|
-
</div>
|
122
|
-
<div :class="$parent.$parent.style">
|
123
|
-
<label class="font_normal_body">隐 患 项</label>
|
124
|
-
<v-select style="width:60% "
|
125
|
-
class="select select_list"
|
126
|
-
:value.sync="$parent.$parent.defectLeave"
|
127
|
-
v-model="$parent.$parent.defectLeave"
|
128
|
-
:options='$parent.$parent.defectLeaveList'
|
129
|
-
placeholder='隐患项'
|
130
|
-
value-single
|
131
|
-
close-on-select>
|
132
|
-
</v-select>
|
133
|
-
</div>
|
134
|
-
<div :class="$parent.$parent.style">
|
135
|
-
<label class="font_normal_body">隐患内容</label>
|
136
|
-
<v-select style="width:60% "
|
137
|
-
class="select select_list"
|
138
|
-
:value.sync="$parent.$parent.defectType"
|
139
|
-
v-model="$parent.$parent.defectType"
|
140
|
-
:options='$parent.$parent.getdefectType'
|
141
|
-
placeholder='隐患内容'
|
142
|
-
:multiple="true">
|
143
|
-
</v-select>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
<
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
:
|
251
|
-
:
|
252
|
-
|
253
|
-
v-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
:
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
<
|
271
|
-
|
272
|
-
|
273
|
-
:
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
</v-select>
|
280
|
-
</div>
|
281
|
-
<div :class="$parent.$parent.style">
|
282
|
-
<label class="font_normal_body"
|
283
|
-
<v-select
|
284
|
-
|
285
|
-
:value.sync="
|
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
|
-
|
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
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
this.
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
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
|
-
|
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-if="!$parent.$parent.$parent.showItem">
|
7
|
+
<div :class="$parent.$parent.style">
|
8
|
+
<label class="font_normal_body">安检计划</label>
|
9
|
+
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
10
|
+
@click="$parent.$parent.showChooser"
|
11
|
+
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
12
|
+
</div>
|
13
|
+
<div :class="$parent.$parent.style" v-show="false">
|
14
|
+
<label class="font_normal_body">存在隐患</label>
|
15
|
+
<v-select style="width:60% "
|
16
|
+
class="select select_list"
|
17
|
+
:value.sync="model.f_has_defect"
|
18
|
+
v-model="model.f_has_defect"
|
19
|
+
:options='$parent.$parent.hasDefectOptions'
|
20
|
+
:placeholder='model.f_has_defect'
|
21
|
+
condition="f_has_defect = '{}'"
|
22
|
+
close-on-select>
|
23
|
+
</v-select>
|
24
|
+
</div>
|
25
|
+
<div :class="$parent.$parent.style">
|
26
|
+
<label class="font_normal_body">用户编号</label>
|
27
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
28
|
+
condition="f_userinfo_code = '{}'"
|
29
|
+
style="width: 60%" placeholder="用户编号">
|
30
|
+
</div>
|
31
|
+
<div :class="$parent.$parent.style">
|
32
|
+
<label class="font_normal_body">结果查询</label>
|
33
|
+
<v-select
|
34
|
+
placeholder='处理结果查询'
|
35
|
+
:value-single="true"
|
36
|
+
class="select select_list" style="width: 60%"
|
37
|
+
v-model='model.f_repaired'
|
38
|
+
:value.sync="model.f_repaired"
|
39
|
+
:options='$parent.$parent.repaired'
|
40
|
+
condition="f_repaired = '{}'"
|
41
|
+
close-on-select clear-button> </v-select>
|
42
|
+
</div>
|
43
|
+
<div class=" col-sm-4 form-group button-range" >
|
44
|
+
<div class="span" style="float: right;margin-top: 8px">
|
45
|
+
<div style="float: right" class="button_spacing"
|
46
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
47
|
+
@click="$parent.$parent.hiddenr()"></div>
|
48
|
+
<div style="float: right" class="button_spacing"
|
49
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
50
|
+
@click="$parent.$parent.hidden()"></div>
|
51
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
52
|
+
<div style="float: right">
|
53
|
+
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
|
54
|
+
:field="$parent.$parent.getfield"
|
55
|
+
progress="safeGetExportProgress"
|
56
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检隐患明细' :choose-col="true"></export-excel-safe>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
|
62
|
+
<div :class="$parent.$parent.style">
|
63
|
+
<label class="font_normal_body">片  区</label>
|
64
|
+
<v-select class="select_list select"
|
65
|
+
placeholder='片区/管理站' style="width: 60%"
|
66
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
67
|
+
:options='$parent.$parent.sliceArea'
|
68
|
+
filer-key="name"
|
69
|
+
close-on-select clear-button
|
70
|
+
condition="f_slice_area='{}'"
|
71
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
72
|
+
:value-single="true">
|
73
|
+
</v-select>
|
74
|
+
</div>
|
75
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
76
|
+
<role-selector-safe
|
77
|
+
role-name="安检员"
|
78
|
+
role-lable="安 检 员 "
|
79
|
+
@re-res="$parent.$parent.getRes"
|
80
|
+
:value.sync="model.f_checker_id"
|
81
|
+
v-model="model.f_checker_id"
|
82
|
+
condition="f_checker_name = '{}'">
|
83
|
+
</role-selector-safe>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div :class="$parent.$parent.style">
|
87
|
+
<label class="font_normal_body">抄 表 册</label>
|
88
|
+
<v-select class="select_list select"
|
89
|
+
placeholder='抄表册' style="width: 60%"
|
90
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
91
|
+
:options='$parent.$parent.cbc'
|
92
|
+
filer-key="name"
|
93
|
+
close-on-select clear-button
|
94
|
+
condition="f_meter_book_num={}"
|
95
|
+
:value-single="true">
|
96
|
+
</v-select>
|
97
|
+
</div>
|
98
|
+
<div :class="$parent.$parent.style">
|
99
|
+
<label class="font_normal_body">起始时间</label>
|
100
|
+
<datepicker
|
101
|
+
placeholder='起始时间' style="width:60%"
|
102
|
+
:disabled-days-of-week="[]"
|
103
|
+
:format="'yyyy-MM-dd'"
|
104
|
+
:show-rest-button="reset"
|
105
|
+
:value.sync="model.f_start_time"
|
106
|
+
v-model="model.f_start_time"
|
107
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
108
|
+
</datepicker>
|
109
|
+
</div>
|
110
|
+
<div :class="$parent.$parent.style">
|
111
|
+
<label class="font_normal_body">结束时间</label>
|
112
|
+
<datepicker
|
113
|
+
placeholder='结束时间' style="width:60%"
|
114
|
+
:disabled-days-of-week="[]"
|
115
|
+
:format="'yyyy-MM-dd'"
|
116
|
+
:show-rest-button="reset"
|
117
|
+
:value.sync="model.f_end_time"
|
118
|
+
v-model="model.f_end_time"
|
119
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
120
|
+
</datepicker>
|
121
|
+
</div>
|
122
|
+
<div :class="$parent.$parent.style">
|
123
|
+
<label class="font_normal_body">隐 患 项</label>
|
124
|
+
<v-select style="width:60% "
|
125
|
+
class="select select_list"
|
126
|
+
:value.sync="$parent.$parent.defectLeave"
|
127
|
+
v-model="$parent.$parent.defectLeave"
|
128
|
+
:options='$parent.$parent.defectLeaveList'
|
129
|
+
placeholder='隐患项'
|
130
|
+
value-single
|
131
|
+
close-on-select>
|
132
|
+
</v-select>
|
133
|
+
</div>
|
134
|
+
<div :class="$parent.$parent.style">
|
135
|
+
<label class="font_normal_body">隐患内容</label>
|
136
|
+
<v-select style="width:60% "
|
137
|
+
class="select select_list"
|
138
|
+
:value.sync="$parent.$parent.defectType"
|
139
|
+
v-model="$parent.$parent.defectType"
|
140
|
+
:options='$parent.$parent.getdefectType'
|
141
|
+
placeholder='隐患内容'
|
142
|
+
:multiple="true">
|
143
|
+
</v-select>
|
144
|
+
</div>
|
145
|
+
<div :class="$parent.$parent.style">
|
146
|
+
<label class="font_normal_body">用户类型</label>
|
147
|
+
<v-select id="f_usertype"
|
148
|
+
placeholder='用户类型'
|
149
|
+
class="select select_list"
|
150
|
+
:value.sync="model.f_usertype"
|
151
|
+
:value-single="true"
|
152
|
+
:options='$parent.$parent.usertypes'
|
153
|
+
v-model="model.f_usertype"
|
154
|
+
condition="f_user_type='{}'"
|
155
|
+
close-on-select clear-button>
|
156
|
+
</v-select>
|
157
|
+
</div>
|
158
|
+
<div :class="$parent.$parent.style">
|
159
|
+
<label class="font_normal_body">气表类型</label>
|
160
|
+
<v-select class="select_list select"
|
161
|
+
placeholder='气表类型' style="width: 60%"
|
162
|
+
:value.sync="model.meter_classify" v-model="model.meter_classify"
|
163
|
+
:options='$parent.$parent.meter_classifys'
|
164
|
+
filer-key="name"
|
165
|
+
close-on-select clear-button
|
166
|
+
condition="F_METER_CLASSIFY='{}'"
|
167
|
+
:value-single="true">
|
168
|
+
</v-select>
|
169
|
+
</div>
|
170
|
+
<div :class="$parent.$parent.style">
|
171
|
+
<label class="font_normal_body">安装位置</label>
|
172
|
+
<v-select class="select_list select"
|
173
|
+
placeholder='安装位置' style="width: 60%"
|
174
|
+
:value.sync="model.f_position" v-model="model.f_position"
|
175
|
+
:options='$parent.$parent.positions'
|
176
|
+
filer-key="name"
|
177
|
+
close-on-select clear-button
|
178
|
+
condition="f_position='{}'"
|
179
|
+
:value-single="true">
|
180
|
+
</v-select>
|
181
|
+
</div>
|
182
|
+
<div :class="$parent.$parent.style">
|
183
|
+
<label class="font_normal_body">房屋类型</label>
|
184
|
+
<v-select class="select_list select"
|
185
|
+
placeholder='请选择' style="width: 60%"
|
186
|
+
:value.sync="model.f_house_type" v-model="model.f_house_type"
|
187
|
+
:options='$parent.$parent.housetype'
|
188
|
+
filer-key="name"
|
189
|
+
close-on-select clear-button
|
190
|
+
condition="f_house_type='{}'"
|
191
|
+
:value-single="true">
|
192
|
+
</v-select>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
<div class="row" v-if="$parent.$parent.$parent.showItem">
|
196
|
+
<div :class="$parent.$parent.style">
|
197
|
+
<label class="font_normal_body">安检计划</label>
|
198
|
+
<input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
|
199
|
+
@click="$parent.$parent.showChooser"
|
200
|
+
style="width: 60%" placeholder="安检计划" readonly="readonly">
|
201
|
+
</div>
|
202
|
+
<div :class="$parent.$parent.style" v-show="false">
|
203
|
+
<label class="font_normal_body">存在隐患</label>
|
204
|
+
<v-select style="width:60% "
|
205
|
+
class="select select_list"
|
206
|
+
:value.sync="model.f_has_defect"
|
207
|
+
v-model="model.f_has_defect"
|
208
|
+
:options='$parent.$parent.hasDefectOptions'
|
209
|
+
:placeholder='model.f_has_defect'
|
210
|
+
condition="f_has_defect = '{}'"
|
211
|
+
close-on-select>
|
212
|
+
</v-select>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div class=" col-sm-4 form-group button-range">
|
216
|
+
<div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
|
217
|
+
<div style="float: right" class="button_spacing"
|
218
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
219
|
+
@click="$parent.$parent.hiddenr()"></div>
|
220
|
+
<div style="float: right" class="button_spacing"
|
221
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
222
|
+
@click="$parent.$parent.hidden()"></div>
|
223
|
+
<button style="float: right" class="button_search button_spacing" @click="search">查询</button>
|
224
|
+
<div style="float: right">
|
225
|
+
<export-excel-safe :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
|
226
|
+
:field="$parent.$parent.getfield"
|
227
|
+
progress="safeGetExportProgress"
|
228
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefect" template-name='安检计划明细' :choose-col="true"></export-excel-safe>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</div>
|
236
|
+
<div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
|
237
|
+
<div :class="$parent.$parent.style">
|
238
|
+
<label class="font_normal_body">用户编号</label>
|
239
|
+
<input type="text" class="input_search" v-model="model.f_userinfo_code"
|
240
|
+
condition="f_userinfo_code = '{}'"
|
241
|
+
style="width: 60%" placeholder="用户编号">
|
242
|
+
</div>
|
243
|
+
<div :class="$parent.$parent.style">
|
244
|
+
<label class="font_normal_body">结果查询</label>
|
245
|
+
<v-select
|
246
|
+
placeholder='处理结果查询'
|
247
|
+
:value-single="true"
|
248
|
+
class="select select_list" style="width: 60%"
|
249
|
+
v-model='model.f_repaired'
|
250
|
+
:value.sync="model.f_repaired"
|
251
|
+
:options='$parent.$parent.repaired'
|
252
|
+
condition="f_repaired = '{}'"
|
253
|
+
close-on-select clear-button> </v-select>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div :class="$parent.$parent.style2" style="margin: 0">
|
257
|
+
<role-selector-safe
|
258
|
+
role-name="安检员"
|
259
|
+
role-lable="安 检 员 "
|
260
|
+
@re-res="$parent.$parent.getRes"
|
261
|
+
:value.sync="model.f_checker_id"
|
262
|
+
v-model="model.f_checker_id"
|
263
|
+
condition="f_checker_name = '{}'">
|
264
|
+
</role-selector-safe>
|
265
|
+
</div>
|
266
|
+
</div>
|
267
|
+
<div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
|
268
|
+
<div :class="$parent.$parent.style">
|
269
|
+
<label class="font_normal_body">片  区</label>
|
270
|
+
<v-select class="select_list select"
|
271
|
+
placeholder='片区/管理站' style="width: 60%"
|
272
|
+
:value.sync="model.f_slice_area" v-model="model.f_slice_area"
|
273
|
+
:options='$parent.$parent.sliceArea'
|
274
|
+
filer-key="name"
|
275
|
+
close-on-select clear-button
|
276
|
+
condition="f_slice_area='{}'"
|
277
|
+
@change="$parent.$parent.getmeterbook(model.f_slice_area)"
|
278
|
+
:value-single="true">
|
279
|
+
</v-select>
|
280
|
+
</div>
|
281
|
+
<div :class="$parent.$parent.style">
|
282
|
+
<label class="font_normal_body">抄 表 册</label>
|
283
|
+
<v-select class="select_list select"
|
284
|
+
placeholder='抄表册' style="width: 60%"
|
285
|
+
:value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
|
286
|
+
:options='$parent.$parent.cbc'
|
287
|
+
filer-key="name"
|
288
|
+
close-on-select clear-button
|
289
|
+
condition="f_meter_book_num={}"
|
290
|
+
:value-single="true">
|
291
|
+
</v-select>
|
292
|
+
</div>
|
293
|
+
<div :class="$parent.$parent.style">
|
294
|
+
<label class="font_normal_body">起始时间</label>
|
295
|
+
<datepicker
|
296
|
+
placeholder='起始时间' style="width:60%"
|
297
|
+
:disabled-days-of-week="[]"
|
298
|
+
:format="'yyyy-MM-dd'"
|
299
|
+
:show-rest-button="reset"
|
300
|
+
:value.sync="model.f_start_time"
|
301
|
+
v-model="model.f_start_time"
|
302
|
+
condition="f_offsite_time >= '{} 00:00:00'">
|
303
|
+
</datepicker>
|
304
|
+
</div>
|
305
|
+
<div :class="$parent.$parent.style">
|
306
|
+
<label class="font_normal_body">结束时间</label>
|
307
|
+
<datepicker
|
308
|
+
placeholder='结束时间' style="width:60%"
|
309
|
+
:disabled-days-of-week="[]"
|
310
|
+
:format="'yyyy-MM-dd'"
|
311
|
+
:show-rest-button="reset"
|
312
|
+
:value.sync="model.f_end_time"
|
313
|
+
v-model="model.f_end_time"
|
314
|
+
condition="f_offsite_time <= '{} 23:59:59'">
|
315
|
+
</datepicker>
|
316
|
+
</div>
|
317
|
+
<div :class="$parent.$parent.style">
|
318
|
+
<label class="font_normal_body">隐 患 项</label>
|
319
|
+
<v-select style="width:60% "
|
320
|
+
class="select select_list"
|
321
|
+
:value.sync="$parent.$parent.defectLeave"
|
322
|
+
v-model="$parent.$parent.defectLeave"
|
323
|
+
:options='$parent.$parent.defectLeaveList'
|
324
|
+
placeholder='隐患项'
|
325
|
+
value-single
|
326
|
+
close-on-select>
|
327
|
+
</v-select>
|
328
|
+
</div>
|
329
|
+
<div :class="$parent.$parent.style">
|
330
|
+
<label class="font_normal_body">隐患内容</label>
|
331
|
+
<v-select style="width:60% "
|
332
|
+
class="select select_list"
|
333
|
+
:value.sync="$parent.$parent.defectType"
|
334
|
+
v-model="$parent.$parent.defectType"
|
335
|
+
:options='$parent.$parent.getdefectType'
|
336
|
+
placeholder='隐患内容'
|
337
|
+
:multiple="true">
|
338
|
+
</v-select>
|
339
|
+
</div>
|
340
|
+
|
341
|
+
</div>
|
342
|
+
</div>
|
343
|
+
</criteria>
|
344
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
345
|
+
<template partial='head'>
|
346
|
+
<tr>
|
347
|
+
<th><nobr>入户状态</nobr></th>
|
348
|
+
<th><nobr>用户编号</nobr></th>
|
349
|
+
<th><nobr>用户名</nobr></th>
|
350
|
+
<th><nobr>用户电话</nobr></th>
|
351
|
+
<th><nobr>用户小区</nobr></th>
|
352
|
+
<th><nobr>用户地址</nobr></th>
|
353
|
+
<th><nobr>安检时间</nobr></th>
|
354
|
+
<th><nobr>安检员</nobr></th>
|
355
|
+
<th><nobr>计划名</nobr></th>
|
356
|
+
<!--<th><nobr>是否有隐患</nobr></th>-->
|
357
|
+
<th><nobr>隐患总数</nobr></th>
|
358
|
+
<th><nobr>已处理数</nobr></th>
|
359
|
+
<th><nobr>未处理数</nobr></th>
|
360
|
+
<!-- <th><nobr>整改数</nobr></th>-->
|
361
|
+
|
362
|
+
</tr>
|
363
|
+
</template>
|
364
|
+
<template partial='body'>
|
365
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
|
366
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
|
367
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
|
368
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
|
369
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
|
370
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
|
371
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
|
372
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
|
373
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
|
374
|
+
<!--<td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>-->
|
375
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
|
376
|
+
<td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
|
377
|
+
<td style="text-align: center;white-space:nowrap;">{{row.remainder}}</td>
|
378
|
+
<!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
|
379
|
+
|
380
|
+
</template>
|
381
|
+
</data-grid>
|
382
|
+
</criteria-paged>
|
383
|
+
|
384
|
+
<modal :show.sync="showModal" v-ref:modal>
|
385
|
+
<div slot="modal-header" class="modal-header">
|
386
|
+
<h4 class="modal-title">
|
387
|
+
选择计划
|
388
|
+
</h4>
|
389
|
+
</div>
|
390
|
+
<div slot="modal-body" class="modal-body">
|
391
|
+
<plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
|
392
|
+
</div>
|
393
|
+
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
394
|
+
<button class="button_search" @click="ok">确认</button>
|
395
|
+
<button class="button_search" @click="cancel">取消</button>
|
396
|
+
</div>
|
397
|
+
</modal>
|
398
|
+
</div>
|
399
|
+
</template>
|
400
|
+
<script>
|
401
|
+
import {PagedList} from 'vue-client'
|
402
|
+
import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
|
403
|
+
import co from 'co'
|
404
|
+
|
405
|
+
let select = function* (self) {
|
406
|
+
let http = new HttpResetClass()
|
407
|
+
let getGasman = yield http.load('POST', '/rs/search', {
|
408
|
+
source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
|
409
|
+
userid: self.$login.f.id
|
410
|
+
}, {resolveMsg: null, rejectMsg: null})
|
411
|
+
console.log('获取安检员', getGasman)
|
412
|
+
self.checkersid.push({label: '全部', value: ''})
|
413
|
+
getGasman.data.forEach((checker) => {
|
414
|
+
self.checkersid.push({label: checker.name, value: checker.name})
|
415
|
+
})
|
416
|
+
}
|
417
|
+
export default {
|
418
|
+
title: '隐患查询',
|
419
|
+
data() {
|
420
|
+
let model = new PagedList('rs/sql/GetCheckPaperByDefect', 20, {
|
421
|
+
f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
|
422
|
+
})
|
423
|
+
model.f_filialeids = '(' + this.$login.f.orgid + ')'
|
424
|
+
model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
|
425
|
+
return {
|
426
|
+
housetype: [],//房屋类型
|
427
|
+
positions: [],//安装位置
|
428
|
+
meter_classifys:[],//气表类型
|
429
|
+
usertypes: this.usertypes(),//用户类型
|
430
|
+
repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
|
431
|
+
hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
|
432
|
+
f: this.$login.f,
|
433
|
+
model: model,
|
434
|
+
criteriaShow: false,
|
435
|
+
showModal: false,
|
436
|
+
f_check_plan: {f_plan_name: '', id: ''},
|
437
|
+
sumsmodel: {},
|
438
|
+
all: false,
|
439
|
+
fields: {},
|
440
|
+
modelval: [],
|
441
|
+
checkersid: [],
|
442
|
+
sliceArea: [],
|
443
|
+
cbc:[],
|
444
|
+
cbcs:[],
|
445
|
+
thead: '',
|
446
|
+
defectLeave:'',
|
447
|
+
defectType:'',
|
448
|
+
defectLeaveList:[],
|
449
|
+
headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','隐患总数','已处理数','未处理数','隐患数','隐患情况'],
|
450
|
+
bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_defect_count','f_repair_count','remainder','f_defect_count','f_defect_content']
|
451
|
+
}
|
452
|
+
},
|
453
|
+
props:{
|
454
|
+
|
455
|
+
style: {
|
456
|
+
type: String,
|
457
|
+
default: 'col-sm-2 form-group'
|
458
|
+
},
|
459
|
+
style2: {
|
460
|
+
type: String,
|
461
|
+
default: 'col-sm-4 form-group'
|
462
|
+
}
|
463
|
+
|
464
|
+
},
|
465
|
+
|
466
|
+
methods: {
|
467
|
+
setConList(){
|
468
|
+
|
469
|
+
this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
|
470
|
+
label: '全部',
|
471
|
+
value: ''
|
472
|
+
}, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
473
|
+
|
474
|
+
this.positions=this.$appdata.getParam('安装位置') ? [{
|
475
|
+
label: '全部',
|
476
|
+
value: ''
|
477
|
+
}, ...this.$appdata.getParam('安装位置')] : [{label: '全部', value: ''}]
|
478
|
+
this.housetype=this.$appdata.getParam('房屋类型') ? [{
|
479
|
+
label: '全部',
|
480
|
+
value: ''
|
481
|
+
}, ...this.$appdata.getParam('房屋类型')] : [{label: '全部', value: ''}]
|
482
|
+
},
|
483
|
+
usertypes () {
|
484
|
+
return this.$appdata.getParam('用户类型') ? [{
|
485
|
+
label: '全部',
|
486
|
+
value: ''
|
487
|
+
}, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
|
488
|
+
},
|
489
|
+
getmeterbook(val){
|
490
|
+
this.cbc=[]
|
491
|
+
this.cbc.push({
|
492
|
+
label:'全部',
|
493
|
+
value:''
|
494
|
+
})
|
495
|
+
if (val==''){
|
496
|
+
|
497
|
+
this.cbcs.forEach(res=>{
|
498
|
+
this.cbc.push({
|
499
|
+
label:res.f_book_name,
|
500
|
+
value:res.id
|
501
|
+
})
|
502
|
+
})
|
503
|
+
}else{
|
504
|
+
this.cbcs.forEach(res=>{
|
505
|
+
if (res.f_book_slice_area==val){
|
506
|
+
this.cbc.push({
|
507
|
+
label:res.f_book_name,
|
508
|
+
value:res.id
|
509
|
+
})
|
510
|
+
}
|
511
|
+
})
|
512
|
+
}
|
513
|
+
},
|
514
|
+
|
515
|
+
Mreadibook(val){
|
516
|
+
console.log("999999999")
|
517
|
+
console.log(val)
|
518
|
+
this.sliceArea=[]
|
519
|
+
if (val){
|
520
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
521
|
+
items: 'name',
|
522
|
+
tablename: 't_zone',
|
523
|
+
condition: `parentid in ${val}`,
|
524
|
+
orderitem: 'id'
|
525
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
526
|
+
this.sliceArea.push({
|
527
|
+
label:'全部',
|
528
|
+
value:''
|
529
|
+
})
|
530
|
+
res.data.forEach(ress=>{
|
531
|
+
this.sliceArea.push({
|
532
|
+
label:ress.name,
|
533
|
+
value:ress.name
|
534
|
+
})
|
535
|
+
})
|
536
|
+
|
537
|
+
})
|
538
|
+
}
|
539
|
+
},
|
540
|
+
getAllMeterBook(val){
|
541
|
+
console.log("999999999")
|
542
|
+
console.log(val)
|
543
|
+
this.cbcs=[]
|
544
|
+
if (val){
|
545
|
+
new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
|
546
|
+
items: 'f_book_name,f_book_slice_area,id',
|
547
|
+
tablename: 't_meter_book',
|
548
|
+
condition: `f_filiale_id in ${val}`,
|
549
|
+
orderitem: 'id'
|
550
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
551
|
+
res.data.forEach(ress=>{
|
552
|
+
this.cbcs.push({
|
553
|
+
id:ress.id,
|
554
|
+
f_book_name:ress.f_book_name,
|
555
|
+
f_book_slice_area:ress.f_book_slice_area
|
556
|
+
})
|
557
|
+
})
|
558
|
+
this.cbc=[]
|
559
|
+
this.cbc.push({
|
560
|
+
label:'全部',
|
561
|
+
value:''
|
562
|
+
})
|
563
|
+
this.cbcs.forEach(res=>{
|
564
|
+
this.cbc.push({
|
565
|
+
label:res.f_book_name,
|
566
|
+
value:res.id
|
567
|
+
})
|
568
|
+
})
|
569
|
+
})
|
570
|
+
}
|
571
|
+
},
|
572
|
+
hiddenr() {
|
573
|
+
this.$parent.showItem = !this.$parent.showItem
|
574
|
+
},
|
575
|
+
hidden() {
|
576
|
+
this.criteriaShow = !this.criteriaShow
|
577
|
+
},
|
578
|
+
search(args) {
|
579
|
+
if(this.defectLeave && (this.defectType.length==0 || !this.defectType.length)){
|
580
|
+
this.$showMessage("选择隐患项后,必须选择隐患内容!")
|
581
|
+
return
|
582
|
+
}
|
583
|
+
if(this.defectType.length>0){
|
584
|
+
args.condition += ` and (`
|
585
|
+
for(let sqlstr=0;sqlstr<this.defectType.length;sqlstr++){
|
586
|
+
console.log(sqlstr)
|
587
|
+
console.log(this.defectType[sqlstr])
|
588
|
+
args.condition += ` f_defect_content like '%${this.defectType[sqlstr]}%'`
|
589
|
+
if(sqlstr<this.defectType.length-1){
|
590
|
+
args.condition +=' or'
|
591
|
+
}
|
592
|
+
}
|
593
|
+
args.condition += ` )`
|
594
|
+
}
|
595
|
+
if (this.f_check_plan.f_plan_name) {
|
596
|
+
args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
|
597
|
+
}
|
598
|
+
this.model.search(args.condition, args.model)
|
599
|
+
},
|
600
|
+
getRes(obj) {
|
601
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
602
|
+
this.Mreadibook(this.model.f_filialeids)
|
603
|
+
this.getAllMeterBook(this.model.f_filialeids)
|
604
|
+
},
|
605
|
+
showChooser() {
|
606
|
+
this.showModal = true
|
607
|
+
},
|
608
|
+
ok() {
|
609
|
+
this.showModal = false
|
610
|
+
if (this.$refs.modal.$children[0].selectedRow.id) {
|
611
|
+
this.f_check_plan = this.$refs.modal.$children[0].selectedRow
|
612
|
+
}
|
613
|
+
},
|
614
|
+
cancel() {
|
615
|
+
this.showModal = false
|
616
|
+
this.f_check_plan = {f_plan_name: '', id: ''}
|
617
|
+
}
|
618
|
+
},
|
619
|
+
ready() {
|
620
|
+
this.setConList()
|
621
|
+
this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
|
622
|
+
this.defectLeaveList=[{label:'全部',value:''}, ...this.$appdata.getParam('安检隐患项')]
|
623
|
+
let gen = select(this)
|
624
|
+
// this.Mreadibook(`('${this.$login.f.orgid}')`)
|
625
|
+
co(gen)
|
626
|
+
},
|
627
|
+
computed: {
|
628
|
+
getdefectType(){
|
629
|
+
this.defectType=[]
|
630
|
+
return [... this.$appdata.getParam(`安检项-${this.defectLeave}`)]
|
631
|
+
},
|
632
|
+
selected() {
|
633
|
+
return this.$refs.paged.$refs.grid.selected
|
634
|
+
},
|
635
|
+
getfield(){
|
636
|
+
console.log("---------------------------------------------导出方法")
|
637
|
+
let data = {}
|
638
|
+
this.bodyData.forEach((value, index)=>{
|
639
|
+
data[this.bodyData[index]] = this.headData[index]
|
640
|
+
})
|
641
|
+
//合计字段打印
|
642
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
643
|
+
if(this.sumsmodel){
|
644
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
645
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
646
|
+
})
|
647
|
+
}else{
|
648
|
+
this.tfoot += '暂无'
|
649
|
+
}
|
650
|
+
this.tfoot += '</th></tr>'
|
651
|
+
return data
|
652
|
+
}
|
653
|
+
}
|
654
|
+
}
|
655
|
+
</script>
|