safecheck-client 3.0.30-65 → 3.0.30-66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1167 +1,1191 @@
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">小&emsp;&emsp;区</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">地&emsp;&emsp;址</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
- <button type="button" class="button_search button_spacing" @click="$parent.$parent.blacklist()">拉黑</button>
38
- <div style="float: right" class="button_spacing"
39
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
40
- @click="$parent.$parent.hiddenr()"></div>
41
- <div style="float: right" class="button_spacing"
42
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
- @click="$parent.$parent.hidden()">
44
-
45
- </div>
46
- </div>
47
-
48
-
49
- </div>
50
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
51
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
52
- <label class="font_normal_body">用户类型</label>
53
- <v-select id="f_usertype"
54
- placeholder='用户类型'
55
- class="select select_list"
56
- :value.sync="model.f_usertype"
57
- :value-single="true"
58
- :options='$parent.$parent.usertypes'
59
- v-model="model.f_usertype"
60
- condition="f_user_type = '{}'"
61
- close-on-select clear-button></v-select>
62
- </div>
63
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
64
-
65
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
66
- <label class="font_normal_body" style="color: red;">安检筛选</label>
67
- <v-select
68
- placeholder='安检筛选'
69
- :value-single="true"
70
- class="select select_list"
71
- :value.sync="$parent.$parent.SafeCheckXZ"
72
- :options='$parent.$parent.SafeCheckXZs'
73
- v-model="$parent.$parent.SafeCheckXZ"
74
- close-on-select clear-button></v-select>
75
- </div>
76
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
- <label class="font_normal_body">安检起始</label>
78
- <datepicker
79
- :value.sync="model.f_check_start"
80
- placeholder='最后安检时间起始'
81
- style="width: 60%"
82
- :format="'yyyy-MM-dd 00:00:00'"
83
- :show-rest-button="reset"
84
- v-model="model.f_check_start">
85
- </datepicker>
86
- </div>
87
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
- <label class="font_normal_body">安检结束</label>
89
- <datepicker
90
- :value.sync="model.f_check_end"
91
- placeholder='最后安检时间结束'
92
- style="width: 60%"
93
- :format="'yyyy-MM-dd 23:59:59'"
94
- :show-rest-button="reset"
95
- v-model="model.f_check_end">
96
- </datepicker>
97
- </div>
98
-
99
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
100
- <label class="font_normal_body">安检状态</label>
101
- <v-select id="f_entry"
102
- placeholder='安检状态'
103
- class="select select_list"
104
- :value.sync="model.f_last_check_state"
105
- :value-single="true"
106
- :options='$parent.$parent.checkstatus'
107
- v-model="model.f_last_check_state"
108
- condition="f_last_check_state = '{}'"
109
- close-on-select clear-button></v-select>
110
- </div>-->
111
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
112
- <label class="font_normal_body">隐患情况</label>
113
- <v-select
114
- placeholder='隐患情况'
115
- class="select select_list"
116
- :value-single="true"
117
- v-model='model.f_check_result'
118
- :value.sync="model.f_check_result"
119
- :options='$parent.$parent.f_check_results'
120
- condition="f_last_check_result like '%{}%'"
121
- close-on-select clear-button></v-select>
122
- </div>
123
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
124
- </div>
125
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
126
-
127
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
128
- <role-selector-safe
129
- role-name="安检员"
130
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
131
- @re-res="$parent.$parent.getRes"
132
- :value.sync="model.f_checker_id"
133
- v-model="model.f_checker_id"
134
- :value-multiple="true"
135
- condition=" f_checker_name in {}">
136
- </role-selector-safe>
137
- </div>
138
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
139
- <label class="font_normal_body">片&emsp;&emsp;区</label>
140
- <v-select class="select_list select"
141
- placeholder='片区/管理站' style="width: 60%"
142
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
143
- :options='$parent.$parent.sliceArea'
144
- filer-key="name"
145
- close-on-select clear-button
146
- condition="f_slice_area='{}'"
147
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
148
- :value-single="true">
149
- </v-select>
150
- </div>
151
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
152
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
153
- <v-select class="select_list select"
154
- placeholder='抄表册' style="width: 60%"
155
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
156
- :options='$parent.$parent.cbc'
157
- filer-key="name"
158
- close-on-select clear-button
159
- condition="f_meter_book_num={}"
160
- :value-single="true">
161
- </v-select>
162
- </div>
163
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
164
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
165
- <v-select class="select_list select"
166
- placeholder='请选择' style="width: 60%"
167
- :value.sync="model.f_pcd" v-model="model.f_pcd"
168
- :options='$parent.$parent.pcds'
169
- filer-key="name"
170
- close-on-select clear-button
171
- condition="f_pcd='{}'"
172
- :value-single="true">
173
- </v-select>
174
- </div>
175
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
176
- <label class="font_normal_body">用户状态</label>
177
- <v-select class="select_list select"
178
- placeholder='用户状态' style="width: 60%"
179
- :value.sync="model.f_user_state" v-model="model.f_user_state"
180
- :options='$parent.$parent.userstates'
181
- close-on-select clear-button
182
- condition="f_user_state = '{}'"
183
- :value-single="true">
184
- </v-select>
185
- </div>
186
- </div>
187
-
188
- <div class="row" v-show="$parent.$parent.$parent.showItem">
189
- <div :class="$parent.$parent.style">
190
- <label class="font_normal_body">用户编号</label>
191
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
192
-
193
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
194
- </div>
195
- <div :class="$parent.$parent.style">
196
- <label class="font_normal_body">用户姓名</label>
197
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
198
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
199
- </div>
200
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
201
- <export-excel-safe :data="$parent.$parent.searchData"
202
- :field="$parent.$parent.excelHeaders"
203
- sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
204
- template-name='用户安检情况'></export-excel-safe>
205
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
206
- <button type="button" class="button_search button_spacing" @click="$parent.$parent.blacklist()">拉黑</button>
207
- <div style="float: right" class="button_spacing"
208
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
209
- @click="$parent.$parent.hiddenr()"></div>
210
- <div style="float: right" class="button_spacing"
211
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
212
- @click="$parent.$parent.hidden()">
213
-
214
- </div>
215
- </div>
216
-
217
- </div>
218
- <div class="row" v-show="$parent.$parent.$parent.showItem">
219
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
220
- <label class="font_normal_body">小&emsp;&emsp;区</label>
221
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
222
-
223
- placeholder="小区" condition="f_residential_area like '%{}%'">
224
- </div>
225
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
226
- <label class="font_normal_body">地&emsp;&emsp;址</label>
227
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
228
-
229
- placeholder="地址" condition="f_address like '%{}%'">
230
- </div>
231
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
232
- <label class="font_normal_body">用户类型</label>
233
- <v-select
234
- placeholder='用户类型'
235
- class="select select_list"
236
-
237
- :value.sync="model.f_usertype"
238
- :value-single="true"
239
- :options='$parent.$parent.usertypes'
240
- v-model="model.f_usertype"
241
- condition="f_user_type = '{}'"
242
- close-on-select clear-button></v-select>
243
- </div>
244
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
245
-
246
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
247
- <label class="font_normal_body" style="color: red;">安检筛选</label>
248
- <v-select
249
- placeholder='安检筛选'
250
- :value-single="true"
251
-
252
- class="select select_list"
253
- :value.sync="$parent.$parent.SafeCheckXZ"
254
- :options='$parent.$parent.SafeCheckXZs'
255
- v-model="$parent.$parent.SafeCheckXZ"
256
- close-on-select clear-button></v-select>
257
- </div>
258
-
259
- </div>
260
- <div class="row" v-show="$parent.$parent.$parent.showItem">
261
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
262
- <label class="font_normal_body">安检起始</label>
263
- <datepicker
264
- :value.sync="model.f_check_start"
265
- placeholder='最后安检时间起始'
266
- :disabled-days-of-week="[]"
267
- style="width: 60%"
268
- :format="'yyyy-MM-dd'"
269
- :show-rest-button="reset"
270
- v-model="model.f_check_start">
271
- </datepicker>
272
- </div>
273
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
274
- <label class="font_normal_body">安检结束</label>
275
- <datepicker
276
- :value.sync="model.f_check_end"
277
- placeholder='最后安检时间结束'
278
- style="width: 60%"
279
- :disabled-days-of-week="[]"
280
- :format="'yyyy-MM-dd'"
281
- :show-rest-button="reset"
282
- v-model="model.f_check_end">
283
- </datepicker>
284
- </div>
285
-
286
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
287
- <label class="font_normal_body">安检状态</label>
288
- <v-select
289
- placeholder='安检状态'
290
- class="select select_list"
291
-
292
- :value.sync="model.f_last_check_state"
293
- :value-single="true"
294
- :options='$parent.$parent.checkstatus'
295
- v-model="model.f_last_check_state"
296
- condition="f_last_check_state = '{}'"
297
- close-on-select clear-button></v-select>
298
- </div>-->
299
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
300
- <label class="font_normal_body">隐患情况</label>
301
- <v-select
302
- placeholder='隐患情况'
303
- class="select select_list"
304
- :value-single="true"
305
- v-model='model.f_check_result'
306
- :value.sync="model.f_check_result"
307
- :options='$parent.$parent.f_check_results'
308
- condition="f_last_check_result like '%{}%'"
309
- close-on-select clear-button></v-select>
310
- </div>
311
-
312
- </div>
313
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
314
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
315
- <label class="font_normal_body">公&emsp;&emsp;司</label>
316
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
317
- </right-tree>
318
- </div>
319
-
320
- </div>-->
321
- </div>
322
- </criteria>
323
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
324
- <template partial='head'>
325
- <tr>
326
- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>
327
- <th>
328
- <nobr>用户编号</nobr>
329
- </th>
330
- <th>
331
- <nobr>用户名称</nobr>
332
- </th>
333
- <th>
334
- <nobr>用户电话</nobr>
335
- </th>
336
- <th>
337
- <nobr>用户表号</nobr>
338
- </th>
339
- <!-- <th>-->
340
- <!-- <nobr>气表品牌</nobr>-->
341
- <!-- </th>-->
342
- <th>
343
- <nobr>用户类型</nobr>
344
- </th>
345
- <!-- <th>-->
346
- <!-- <nobr>壁挂炉</nobr>-->
347
- <!-- </th>-->
348
- <!-- <th>-->
349
- <!-- <nobr>灶具</nobr>-->
350
- <!-- </th>-->
351
- <th>
352
- <nobr>小区名称</nobr>
353
- </th>
354
- <th style="padding: 0 40px">
355
- <nobr>地址</nobr>
356
- </th>
357
- <th>
358
- <nobr>安检员</nobr>
359
- </th>
360
- <!-- <th>-->
361
- <!-- <nobr>安检员备注</nobr>-->
362
- <!-- </th>-->
363
- <th>
364
- <nobr>安检日期</nobr>
365
- </th>
366
- <th>
367
- <nobr>安检状态</nobr>
368
- </th>
369
- <th>
370
- <nobr>安检结果</nobr>
371
- </th>
372
- <th>
373
- <nobr>二维码</nobr>
374
- </th>
375
- </tr>
376
- </template>
377
- <template partial='body'>
378
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.f_userinfo_code)" @change="$parent.$parent.$parent.setCheckes(row.f_userinfo_code)"></input></td>
379
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
380
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
381
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
382
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
383
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
384
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
385
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
386
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
387
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
388
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
389
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
390
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
391
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
392
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
393
- {{row.f_last_check_result1 }}
394
- </td>
395
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
396
- <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code,row.f_address,row.f_user_type,row.f_address_detail,row.f_house_number)' >点击</button>
397
- </td>
398
- </template>
399
- </data-grid>
400
- </criteria-paged>
401
- <modal :show.sync="dialogVisible" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
402
- <div slot="modal-header" class="modal-header">
403
- <h4 class="modal-title" style="text-align: center">
404
- 二维码
405
- </h4>
406
- </div>
407
- <div slot="modal-body" class="modal-body" >
408
- <div id="aa" style="margin-left: 115px">
409
- <div id="bb">
410
- <style id="style1">
411
- #bb {
412
- width: 302px;
413
- height: 170px;
414
- }
415
- #bb .img{
416
- width: 40px;
417
- height: 40px;
418
- }
419
- #bb .td1{
420
- text-align: left;
421
- white-space: nowrap;
422
- font-size: 12px;
423
- font-weight: 900;
424
- }
425
- #bb .td2{
426
- text-align: right;
427
- font-size: 10px;
428
- font-weight: 900;
429
- }
430
- #bb .td3{
431
- text-align: center;
432
- font-weight: 900;
433
- }
434
- #bb .baseImg{
435
- width: 120px;
436
- height: 120px;
437
- float: right;
438
- overflow:hidden;
439
- }
440
- #bb .span{
441
- white-space: nowrap;
442
- }
443
- #bb .td0{
444
- text-align: left;
445
- width: 60px;
446
- }
447
- </style>
448
- <table>
449
- <tr>
450
- <td class="td0">
451
- <img class="img" src="../../../assets/wensu/1.jpg" alt="">
452
- </td>
453
- <td class="td0">
454
- <img class="img" src="../../../assets/wensu/2.jpg" alt="">
455
- </td>
456
- <td class="td3">
457
- <span class="span" style="font-size: 13px;font-weight: 900">温宿县曦隆燃气开发有限公司</span><br>
458
- <span class="span" style="font-weight: 900">天然气入户安全检查专用标签</span>
459
- </td>
460
- </tr>
461
- <tr>
462
- <td class="td1" colspan="2">用&nbsp;户&nbsp;类&nbsp;型&nbsp;:&nbsp;{{modal_user_type}}</td>
463
- <td colspan="3" rowspan="6"><img class="baseImg" :src="modal_base64_img" alt="">
464
- </tr>
465
- <tr><td class="td1" colspan="3">片区负责人&nbsp;:&nbsp;{{modal_responsible_checker}}</td></tr>
466
- <tr><td class="td1" colspan="3">联&nbsp;系&nbsp;电&nbsp;话&nbsp;:&nbsp;{{modal_responsible_phone}}</td></tr>
467
- <tr><td class="td1" style="font-size: 13px" colspan="3">燃气客服电话&nbsp;:&nbsp;0997-6150333</td></tr>
468
- <tr><td class="td1" style="font-size: 13px" colspan="3">燃气报警电话&nbsp;:&nbsp;0997-4533119</td></tr>
469
- <tr><td class="td1" colspan="3">地址&nbsp;:&nbsp;{{modal_user_address}}</td></tr>
470
- <tr><td class="td2" colspan="5">曦隆燃气&nbsp;&nbsp;&nbsp;&nbsp;情系万家</td></tr>
471
- </table>
472
- </div>
473
- </div>
474
- </div>
475
- <div slot="modal-footer" class="modal-footer">
476
- <print-element class="btn btn-success width-80" id="aa" styleid='style1' top='1' left='1' width='100%' height='100%' v-ref:printelement>打印</print-element>
477
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
478
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">取消</button>
479
- </div>
480
- </modal>
481
- <modal :show.sync="showModal2" :backdrop="false">
482
- <div slot="modal-header" class="modal-header">
483
- <h4 class="modal-title">
484
- 批量拉黑
485
- </h4>
486
- </div>
487
- <div slot="modal-body" class="modal-body">
488
- <div v-if="true">
489
- <div class="row" style="margin-top: 10px">
490
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">拉黑备注</label>
491
- <div class="col-xs-8 col-md-8">
492
- <textarea style="width: 60%; height: 100px" v-model="f_remarks"></textarea>
493
- </div>
494
- </div>
495
- </div>
496
- </div>
497
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
498
- <button class="button_search" @click="blacklist">确认</button>
499
- <button class="button_search" @click="showModal2=false">取消</button>
500
- </div>
501
- </modal>
502
- <!-- <modal :show.sync="showModal3">
503
- <div slot="modal-header" class="modal-header">
504
- <h4 class="modal-title">
505
- 转维修进度{{ progressbarWidth }}%
506
- </h4>
507
- </div>
508
- <div slot="modal-body" class="modal-body">
509
- <div class="progress">
510
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
511
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
512
- &lt;!&ndash; <span class="sr-only">40% 完成</span>&ndash;&gt;
513
- </div>
514
- </div>
515
- </div>
516
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
517
- </modal>-->
518
- </div>
519
-
520
- </template>
521
-
522
- <script>
523
- import {PagedList} from 'vue-client'
524
- import {HttpResetClass} from 'vue-client'
525
- import co from 'co'
526
- import * as Util from '../../Util'
527
- import Vue from 'vue'
528
-
529
-
530
- // let select = function * (self,userid) {
531
- // let http = new HttpResetClass()
532
- // let getGasman = yield http.load('POST','/rs/search', {
533
- // source: 'this.getChildByName($安检员$).getUsers()',
534
- // userid: userid
535
- // }, {resolveMsg: null, rejectMsg: null})
536
- // //tag
537
- // getGasman.data.forEach((checker)=>{
538
- // self.checkersid.push({label:checker.name,value:checker.id})
539
- // })
540
- // self.checkersid.push({label:'全部',value:''})
541
- // }
542
-
543
-
544
- export default {
545
- title: '用户安检情况',
546
- data() {
547
- let options = []
548
- let year = (new Date()).getFullYear()
549
- for (let i = year; i <= year + 3; i++)
550
- options.push({label: i + '', value: i + ''})
551
- let moptions = []
552
- for (let i = 1; i <= 12; i++)
553
- moptions.push({label: i + '', value: i + ''})
554
-
555
- return {
556
- dialogVisible: false,
557
- searchData: {
558
- condition: '1=1',
559
- orderitem: "f_userinfo_code",
560
- timetype: "dd",
561
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
562
- },
563
- excelHeaders: {
564
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
565
-
566
- 'f_userinfo_code': '用户编号',
567
- 'f_user_name': '用户名称',
568
- 'f_user_phone': '用户电话',
569
- 'f_meternumber': '用户表号',
570
- 'f_user_type': '用户类型',
571
- 'f_checker_name': '安检员',
572
- 'f_residential_area': '小区名称',
573
- 'f_address': '地址',
574
- 'f_last_check_date': '安检日期',
575
- 'f_last_check_state': '安检状态',
576
- 'f_last_check_result1': '安检结果'
577
- },
578
- model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
579
- orderitem: "'f_last_check_date'",
580
- timetype: "'dd'",
581
- f_defect_content: 'this.f_defect_content'
582
- }),
583
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
584
- orgstrs: [{label: '全部', value: ''}],
585
- checkersid: [],
586
- SafeCheckXZ: '',
587
- civil: '', //民用安检周期
588
- civilian: '', //非民用安检周期
589
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
590
- SafeCheckSXs: [{label: '', value: ''}, {label: '否', value: '否'}, {label: '全部', value: ''}],
591
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
592
- IsShares: [{label: '', value: ''}, {label: '否', value: '否'}],
593
- IsShare: '',
594
- checker: {},
595
- NoBuys: [{label: '', value: ''}, {label: '否', value: '否'}],
596
- criteriaShow: false,
597
- checkers: [],
598
- chosenOrg: {id: 0},
599
- showModal: false,
600
- checkedAll: false,
601
- checkrows: [],
602
- adjustables: [],
603
- f_plan_year: year + '',
604
- f_plan_month: moptions[new Date().getMonth()].value,
605
- f_effective_start_time: '', //计划有效起始时间
606
- f_effective_end_time: '', //计划有效结束时间
607
- checkboxModel: {},
608
- c_year_list: options,
609
- c_month_list: moptions,
610
- areas: this.areas(),
611
- checkstatus: this.checkstatus(),
612
- usertypes: this.usertypes(),
613
- userstates: this.userstates(),
614
- sqlname: '',
615
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
616
- creatPlanWay: '',
617
- sliceArea: [],
618
- cbcs:[],
619
- cbc:[],
620
- pcds:[],
621
- modal_user_type:'',
622
- modal_responsible_checker:'',
623
- modal_responsible_phone:'',
624
- modal_user_address:'',
625
- modal_base64_img:'',
626
- checkes: [],
627
- checkAll: false,
628
- showModal2:false,
629
- showModal3:false,
630
- f_remarks:'',
631
- progressbarWidth:'0',
632
- }
633
- },
634
- props: {
635
- style: {
636
- type: String,
637
- default: 'col-sm-2 form-group'
638
- },
639
- style2: {
640
- type: String,
641
- default: 'col-sm-4 form-group'
642
- },
643
- checkplan: { // 传入一条安检计划信息
644
- type: Object
645
- },
646
- additemshow: {
647
- type: Boolean,
648
- default: false
649
- }
650
- },
651
- ready() {
652
- // 获取分公司信息
653
- this.model.f_defect_content=this.f_defect_content
654
-
655
- //this.getfengongsi()
656
- this.model.chosenOrg = {id: 0}
657
- this.model.f_filialeids = this.$login.f.f_orgids
658
- this.model.f_filiale = this.$login.f.f_fengongsi
659
- this.model.f_OrgStr = this.$login.f.orgpathstr
660
- this.Mreadibook(`('${this.$login.f.orgid}')`)
661
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
662
- },
663
- methods: {
664
- async blacklist(){
665
- if(!this.checkAll && this.checkes.length==0){
666
- Vue.showMessage("请先勾选你要拉黑的用户!")
667
- return
668
- }
669
- this.$showMessage("确定需要将选中用户在营收系统进行拉黑吗?",['confirm', 'cancel']).then((res)=>{
670
- if (res === 'confirm'){
671
- //this.showModal3=true
672
- let successCount=0
673
- console.log('是否全选', this.checkAll)
674
- console.log('当前选中用户', this.checkes)
675
- console.log('this.model----', this.model)
676
- new HttpResetClass().load('post','rs/logic/safe_getuser_to_blactlist', {
677
- data:{
678
- condition: this.model.condition.condition1,
679
- condition2: this.model.condition.condition2,
680
- switchCheckAll: true,
681
- checkAll: this.checkAll,
682
- param: this.checkes,
683
- columnName: 'f_userinfo_code',
684
- orderitem:' f_userinfo_code',
685
- type:'update'
686
- }
687
- }).then((res)=>{
688
- this.$showMessage("操作成功!本次选中用已标记为待拉黑状态,同步营收系统会存在延迟。")
689
- }).catch((msg)=>{
690
- this.$showMessage("网络异常请稍后再试!")
691
- })
692
-
693
- }
694
- })
695
-
696
- /*new HttpResetClass().load('post','API/Secheck/SetBlackList', {
697
- data:{
698
- id:'700002373',
699
- bh:'1511080819',
700
- black:true,
701
- blackMemo:'测试拉黑!!!'
702
- }
703
- }).then(res=>{
704
- if (result.data.code==200) {
705
- successCount += result.data.successcon
706
- this.progressbarWidth=Math.ceil((i+1)*100/(this.checkes.length))
707
- }
708
- console.log('拉黑返回结果----', res)
709
- }).catch(err=>{
710
- console.log('拉黑请求失败----', err)
711
- })*/
712
- },
713
- isChecked (v) {
714
- // 如果全选,不在的按选中算,否则,在的按选中算
715
- if (this.checkAll) {
716
- return this.checkes.indexOf(v) == -1
717
- } else {
718
- return this.checkes.indexOf(v) != -1
719
- }
720
- },
721
- setCheckAll () {
722
- this.checkAll = this.checkAll ? false : true
723
- // 全选改变后,清空选中数据
724
- this.checkes = []
725
- },
726
- setCheckes (id) {
727
- let index = this.checkes.indexOf(id)
728
- if (index < 0) {
729
- this.checkes.push(id)
730
- } else {
731
- this.checkes.splice(index, 1)
732
- }
733
- },
734
- //查询二维码
735
- searchInfo(val,address,userType,checkerName,checkerPhone){
736
- this.dialogVisible = true
737
- new HttpResetClass().load('post','rs/logic/QrcodeUtil', {
738
- data: {
739
- id:val
740
- }
741
- }).then(res=>{
742
- this.modal_user_type=userType
743
- this.modal_user_address=address
744
- this.modal_responsible_checker=checkerName
745
- this.modal_responsible_phone=checkerPhone
746
- this.modal_base64_img="data:image/jpg;base64,"+res.data.result
747
- })
748
-
749
- },
750
- //获取省市区列表
751
- getPcd(val){
752
- this.pcds = [{label:'全部',value:''}]
753
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
754
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
755
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
756
- pcdlist.data.forEach((result)=>{
757
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
758
- })
759
- })
760
- },
761
- getmeterbook(val){
762
-
763
- //tag
764
- this.cbc=[]
765
- this.cbc.push({
766
- label:'全部',
767
- value:''
768
- })
769
- if (val==''){
770
-
771
- this.cbcs.forEach(res=>{
772
- this.cbc.push({
773
- label:res.f_book_name,
774
- value:res.id
775
- })
776
- })
777
- }else{
778
- this.cbcs.forEach(res=>{
779
- if (res.f_book_slice_area==val){
780
- this.cbc.push({
781
- label:res.f_book_name,
782
- value:res.id
783
- })
784
- }
785
- })
786
- }
787
- },
788
- Mreadibook(val){
789
- ////tag
790
- ////tag
791
- if (val){
792
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
793
- items: 'name',
794
- tablename: 't_zone',
795
- condition: `parentid in ${val}`,
796
- orderitem: 'id'
797
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
798
- this.sliceArea=[]
799
- this.sliceArea.push({
800
- label:'全部',
801
- value:''
802
- })
803
- res.data.forEach(ress=>{
804
- this.sliceArea.push({
805
- label:ress.name,
806
- value:ress.name
807
- })
808
- })
809
-
810
- })
811
- }
812
- },
813
- // 获取县域分公司内容
814
- getfengongsi() {
815
- let val = {
816
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
817
- userid: `${this.$login.f.id}`
818
- }
819
- let http = new HttpResetClass()
820
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
821
- res.data.forEach((item) => {
822
- this.orgstrs.push({label: item.name, value: item.id})
823
- })
824
- //tag
825
- })
826
- },
827
- // 县域分公司发生改变
828
- // orgstrchange(val){
829
- // if(val == undefined || val == ''){
830
- // return
831
- // }else {
832
- // this.checkersid = []
833
- // let gen = select(this,val)
834
- // return co(gen)
835
- // }
836
- // },
837
- getDefect(val) {
838
- if (val) {
839
- try {
840
- var defect = JSON.parse(val)
841
- return defect.result
842
- } catch (e) {
843
- //tag
844
- return '正常'
845
- }
846
- }
847
- return '正常'
848
- },
849
- checkerchange(val) {
850
- this.checkboxModel.f_checker = val.name
851
- this.checkboxModel.f_checker_id = val.id
852
- },
853
- search(args) {
854
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
855
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
856
- return
857
- }
858
- this.checkes = []
859
- /*if (this.SafeCheckXZ == '未安检') {
860
- 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)"
861
- } else {
862
- if (args.model.f_check_start) {
863
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
864
- }
865
- if (args.model.f_check_end) {
866
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
867
- }
868
- }*/
869
- //args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
870
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid}) `)
871
- con += args.model.f_check_start ? ` and f_offsite_time >= '${args.model.f_check_start}'` : ''
872
- con += args.model.f_check_end ? ` and f_offsite_time <= '${args.model.f_check_end}'` : ''
873
- if (this.SafeCheckXZ == '未入户') {
874
- con += ` and f_entry_status = '入户'`
875
- args.condition += ' and ruhuid is null'
876
- } else if (this.SafeCheckXZ == '已入户') {
877
- con += ` and f_entry_status = '入户'`
878
- args.condition += ' and ruhuid is not null'
879
- }
880
- // con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
881
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
882
- let condition = {
883
- condition1: args.condition,
884
- condition2: con
885
- }
886
- //tag
887
- this.searchData.condition = condition
888
- return this.model.search(condition, args.model)
889
- },
890
- checkstatus() {
891
- return this.$appdata.getParam('安检状态') ? [{
892
- label: '全部',
893
- value: ''
894
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
895
- },
896
- usertypes() {
897
- return this.$appdata.getParam('用户类型') ? [{
898
- label: '全部',
899
- value: ''
900
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
901
- },
902
- userstates() {
903
- return this.$appdata.getParam('用户状态') ? [{
904
- label: '全部',
905
- value: ''
906
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
907
- },
908
- hiddenr() {
909
- this.$parent.showItem = !this.$parent.showItem
910
- },
911
- hidden() {
912
- this.criteriaShow = !this.criteriaShow
913
- },
914
- confirm() {
915
- if (!this.checkboxModel.f_plan_name) {
916
- this.$showMessage('请填写安检计划名称!')
917
- return
918
- }
919
- // if(this.f_effective_start_time == ''){
920
- // this.$showMessage('请选择有效起始日期!')
921
- // return
922
- // }
923
- // if(this.f_effective_end_time == ''){
924
- // this.$showMessage('请选择有效结束日期!')
925
- // return
926
- // }
927
- if (this.IsShare == '') {
928
- if (!this.checkboxModel.f_checker_id) {
929
- this.$showMessage('请选择安检员!')
930
- return
931
- }
932
- }
933
- let gen = saveGen(this)
934
- return co(gen)
935
- },
936
- changeStates() {
937
- if (this.checkedAll) {//实现反选/
938
- this.checkrows = [];
939
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
940
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
941
- }
942
- } else {//实现全选
943
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
944
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
945
- }
946
- let _this = this
947
- let condition = this.$refs.paged.$refs.criteria.condition
948
- let url = this.model.url
949
- this.$resetpost(`${url}?pageSize=9999999`, {
950
- data: {
951
- condition: condition,
952
- groupitem: '',
953
- orderitem: 'f_residential_area',
954
- f_usertype: this.model.f_usertype,
955
- f_filialeids: this.model.f_filialeids,
956
- month: this.model.month,
957
- safeCycle: this.model.safeCycle,
958
- f_checktime_start: this.model.f_checktime_start,
959
- f_checktime_end: this.model.f_checktime_end,
960
- SafeCheckSX: this.model.SafeCheckSX,
961
- f_last_check_state: this.model.f_last_check_state
962
- },
963
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
964
- (respanse) => {
965
- if (respanse.data.length >= 5000) {
966
- this.$showMessage("数据量太大,请重新选择")
967
- } else {
968
- _this.checkrows = []
969
- for (let j = 0; j < respanse.data.length; j++) {
970
- _this.checkrows.push(respanse.data[j])
971
- }
972
- //tag;
973
- }
974
- })
975
- }
976
- },
977
- addChecked(item) {
978
- //tag;
979
- if (!item.checked) {
980
- this.checkrows.push(item);
981
- //tag;
982
- } else {
983
- for (let i = 0; i < this.checkrows.length; i++) {
984
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
985
- this.checkrows.splice(i, 1)
986
- }
987
- }
988
- }
989
- },
990
- ToshowModal() {
991
- this.creatPlanWay = 'single'
992
- if (this.checkrows.length > 0) {
993
- this.showModal = true
994
- } else {
995
- this.$showMessage("请选择需要安检的用户!")
996
- }
997
- },
998
- FiltrationPlan() {
999
- if (this.model.rows.length == 0) {
1000
- this.$showMessage("暂无可生成的计划!")
1001
- return
1002
- }
1003
- this.creatPlanWay = 'filtration'
1004
- this.showModal = true
1005
- },
1006
- AllPlan() {
1007
- if (this.model.rows.length == 0) {
1008
- this.$showMessage("暂无可生成的计划!")
1009
- return
1010
- }
1011
- this.creatPlanWay = 'all'
1012
- this.showModal = true
1013
- },
1014
- cancel() {
1015
- this.showModal = false
1016
- },
1017
- areas() {
1018
- let rs = []
1019
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1020
- let temp = {
1021
- label: this.$login.f.f_allArea[i].label,
1022
- value: this.$login.f.f_allArea[i].label
1023
- }
1024
- rs.push(temp)
1025
- }
1026
- return [{label: '全部', value: ''}, ...rs]
1027
- },
1028
- initAdjustables() {
1029
- //tag
1030
- let arr = []
1031
- let filter = this.$login.f.f_orgids
1032
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1033
- let temp = {}
1034
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1035
- temp.value = `${item.value.id}`
1036
- arr.push(temp)
1037
- })
1038
- this.adjustables = [{label: '全部', value: ''}, ...arr]
1039
- },
1040
- getAllMeterBook(val){
1041
- ////tag
1042
- ////tag
1043
- this.cbcs=[]
1044
- if (val){
1045
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
1046
- items: 'f_book_name,f_book_slice_area,id',
1047
- tablename: 't_meter_book',
1048
- condition: `f_filiale_id in ${val}`,
1049
- orderitem: 'id'
1050
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1051
- res.data.forEach(ress=>{
1052
- this.cbcs.push({
1053
- id:ress.id,
1054
- f_book_name:ress.f_book_name,
1055
- f_book_slice_area:ress.f_book_slice_area
1056
- })
1057
- })
1058
- this.cbc=[]
1059
- this.cbc.push({
1060
- label:'全部',
1061
- value:''
1062
- })
1063
- this.cbcs.forEach(res=>{
1064
- this.cbc.push({
1065
- label:res.f_book_name,
1066
- value:res.id
1067
- })
1068
- })
1069
- })
1070
- }
1071
- },
1072
- getRes(obj) {
1073
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1074
- this.Mreadibook(this.model.f_filialeids)
1075
- this.getAllMeterBook(this.model.f_filialeids)
1076
- this.getPcd(this.model.f_filialeids)
1077
- }
1078
- },
1079
-
1080
- watch: {
1081
- 'model.f_usertype'(val) {
1082
- if (val == '民用') {
1083
- this.model.safeCycle = this.civil
1084
- } else if (val == '非民用') {
1085
- this.model.safeCycle = this.civilian
1086
- }
1087
- },
1088
- 'model.SafeCheckXZ'(val) {
1089
- this.model.SafeCheckSC = ''
1090
- if (val == '已安检') {
1091
- this.model.SafeCheckCQ = ''
1092
- this.model.SafeCheckSX = {
1093
- f_check_end: '', // 安检时间 查询起始条件
1094
- f_check_start: ''// 安检时间 查询终止条件
1095
- }
1096
- } else {
1097
- // 当使用筛选条件时,清空不需要的条件选项
1098
- this.model.f_issue_start = ''
1099
- this.model.f_issue_end = ''
1100
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
1101
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
1102
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1103
- this.model.month = ''
1104
- if (val == '应安检') {
1105
- this.model.SafeCheckSC = '否'
1106
-
1107
- this.model.f_issue_start = Util.toStartDateString()
1108
- this.model.f_issue_end = Util.toStandardDateString()
1109
- }
1110
- // this.model.f_checktime_start = ''
1111
- // this.model.f_checktime_end = ''
1112
- }
1113
- },
1114
- 'model.SafeCheckSC'(val) {
1115
- if (val == '') {
1116
- this.model.f_issue_start = ''
1117
- this.model.f_issue_end = ''
1118
- }
1119
- },
1120
- // 'checker'(val){
1121
- // //tag
1122
- // if(val){
1123
- // this.checkboxModel.f_checker = this.checker[0].name
1124
- // this.checkboxModel.f_checker_id = this.checker[0].id
1125
- // }
1126
- // },
1127
- 'model.rows'() {
1128
- // if (!this.checkedAll) {//实现反选/
1129
- // this.checkrows = [];
1130
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1131
- var k = false
1132
- for (let j = 0; j < this.checkrows.length; j++) {
1133
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1134
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1135
- k = true
1136
- continue
1137
- }
1138
- }
1139
- if (!k) {
1140
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1141
- }
1142
- }
1143
- // } else {//实现全选
1144
- // // this.checkboxModel = {};
1145
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1146
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1147
- // }
1148
- // }
1149
- }
1150
- },
1151
- computed: {
1152
- selected() {
1153
- return this.$refs.paged.$refs.grid.selected
1154
- }
1155
- }
1156
- }
1157
- </script>
1158
- <style scoped>
1159
- .newcolor {
1160
- color: red;
1161
- }
1162
-
1163
- .table th {
1164
- background-color: #f2f6fa;
1165
- color: black;
1166
- }
1167
- </style>
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">小&emsp;&emsp;区</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">地&emsp;&emsp;址</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
+ <button type="button" class="button_search button_spacing" @click="$parent.$parent.blacklist()">拉黑</button>
38
+ <div style="float: right" class="button_spacing"
39
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
40
+ @click="$parent.$parent.hiddenr()"></div>
41
+ <div style="float: right" class="button_spacing"
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()">
44
+
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
51
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
52
+ <label class="font_normal_body">用户类型</label>
53
+ <v-select id="f_usertype"
54
+ placeholder='用户类型'
55
+ class="select select_list"
56
+ :value.sync="model.f_usertype"
57
+ :value-single="true"
58
+ :options='$parent.$parent.usertypes'
59
+ v-model="model.f_usertype"
60
+ condition="f_user_type = '{}'"
61
+ close-on-select clear-button></v-select>
62
+ </div>
63
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
64
+
65
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
66
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
67
+ <v-select
68
+ placeholder='安检筛选'
69
+ :value-single="true"
70
+ class="select select_list"
71
+ :value.sync="$parent.$parent.SafeCheckXZ"
72
+ :options='$parent.$parent.SafeCheckXZs'
73
+ v-model="$parent.$parent.SafeCheckXZ"
74
+ close-on-select clear-button></v-select>
75
+ </div>
76
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
+ <label class="font_normal_body">安检起始</label>
78
+ <datepicker
79
+ :value.sync="model.f_check_start"
80
+ placeholder='最后安检时间起始'
81
+ style="width: 60%"
82
+ :format="'yyyy-MM-dd 00:00:00'"
83
+ :show-rest-button="reset"
84
+ v-model="model.f_check_start">
85
+ </datepicker>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
+ <label class="font_normal_body">安检结束</label>
89
+ <datepicker
90
+ :value.sync="model.f_check_end"
91
+ placeholder='最后安检时间结束'
92
+ style="width: 60%"
93
+ :format="'yyyy-MM-dd 23:59:59'"
94
+ :show-rest-button="reset"
95
+ v-model="model.f_check_end">
96
+ </datepicker>
97
+ </div>
98
+
99
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
100
+ <label class="font_normal_body">安检状态</label>
101
+ <v-select id="f_entry"
102
+ placeholder='安检状态'
103
+ class="select select_list"
104
+ :value.sync="model.f_last_check_state"
105
+ :value-single="true"
106
+ :options='$parent.$parent.checkstatus'
107
+ v-model="model.f_last_check_state"
108
+ condition="f_last_check_state = '{}'"
109
+ close-on-select clear-button></v-select>
110
+ </div>-->
111
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
112
+ <label class="font_normal_body">隐患情况</label>
113
+ <v-select
114
+ placeholder='隐患情况'
115
+ class="select select_list"
116
+ :value-single="true"
117
+ v-model='model.f_check_result'
118
+ :value.sync="model.f_check_result"
119
+ :options='$parent.$parent.f_check_results'
120
+ condition="f_last_check_result like '%{}%'"
121
+ close-on-select clear-button></v-select>
122
+ </div>
123
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
124
+ </div>
125
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
126
+
127
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
128
+ <role-selector-safe
129
+ role-name="安检员"
130
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
131
+ @re-res="$parent.$parent.getRes"
132
+ :value.sync="model.f_checker_id"
133
+ v-model="model.f_checker_id"
134
+ :value-multiple="true"
135
+ condition=" f_checker_name in {}">
136
+ </role-selector-safe>
137
+ </div>
138
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
139
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
140
+ <v-select class="select_list select"
141
+ placeholder='片区/管理站' style="width: 60%"
142
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
143
+ :options='$parent.$parent.sliceArea'
144
+ filer-key="name"
145
+ close-on-select clear-button
146
+ condition="f_slice_area='{}'"
147
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
148
+ :value-single="true">
149
+ </v-select>
150
+ </div>
151
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
152
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
153
+ <v-select class="select_list select"
154
+ placeholder='抄表册' style="width: 60%"
155
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
156
+ :options='$parent.$parent.cbc'
157
+ filer-key="name"
158
+ close-on-select clear-button
159
+ condition="f_meter_book_num={}"
160
+ :value-single="true">
161
+ </v-select>
162
+ </div>
163
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
164
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
165
+ <v-select class="select_list select"
166
+ placeholder='请选择' style="width: 60%"
167
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
168
+ :options='$parent.$parent.pcds'
169
+ filer-key="name"
170
+ close-on-select clear-button
171
+ condition="f_pcd='{}'"
172
+ :value-single="true">
173
+ </v-select>
174
+ </div>
175
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
176
+ <label class="font_normal_body">用户状态</label>
177
+ <v-select class="select_list select"
178
+ placeholder='用户状态' style="width: 60%"
179
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
180
+ :options='$parent.$parent.userstates'
181
+ close-on-select clear-button
182
+ condition="f_user_state = '{}'"
183
+ :value-single="true">
184
+ </v-select>
185
+ </div>
186
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
187
+ <label class="font_normal_body">用户性质</label>
188
+ <v-select class="select_list select"
189
+ placeholder='用户性质' style="width: 60%"
190
+ :value.sync="model.f_user_nature" v-model="model.f_user_nature"
191
+ :options='$parent.$parent.usernatures'
192
+ close-on-select clear-button
193
+ condition="f_user_nature = '{}'"
194
+ :value-single="true">
195
+ </v-select>
196
+ </div>
197
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
198
+ <label class="font_normal_body">片区</label>
199
+ <v-select class="select_list select"
200
+ placeholder='片区' style="width: 60%"
201
+ :value.sync="model.f_user_area" v-model="model.f_user_area"
202
+ :options='$parent.$parent.userareas'
203
+ close-on-select clear-button
204
+ condition="f_user_area = '{}'"
205
+ :value-single="true">
206
+ </v-select>
207
+ </div>
208
+ </div>
209
+
210
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
211
+ <div :class="$parent.$parent.style">
212
+ <label class="font_normal_body">用户编号</label>
213
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
214
+
215
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
216
+ </div>
217
+ <div :class="$parent.$parent.style">
218
+ <label class="font_normal_body">用户姓名</label>
219
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
220
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
221
+ </div>
222
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
223
+ <export-excel-safe :data="$parent.$parent.searchData"
224
+ :field="$parent.$parent.excelHeaders"
225
+ sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
226
+ template-name='用户安检情况'></export-excel-safe>
227
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
228
+ <button type="button" class="button_search button_spacing" @click="$parent.$parent.blacklist()">拉黑</button>
229
+ <div style="float: right" class="button_spacing"
230
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
231
+ @click="$parent.$parent.hiddenr()"></div>
232
+ <div style="float: right" class="button_spacing"
233
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
234
+ @click="$parent.$parent.hidden()">
235
+
236
+ </div>
237
+ </div>
238
+
239
+ </div>
240
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
241
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
242
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
243
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
244
+
245
+ placeholder="小区" condition="f_residential_area like '%{}%'">
246
+ </div>
247
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
248
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
249
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
250
+
251
+ placeholder="地址" condition="f_address like '%{}%'">
252
+ </div>
253
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
254
+ <label class="font_normal_body">用户类型</label>
255
+ <v-select
256
+ placeholder='用户类型'
257
+ class="select select_list"
258
+
259
+ :value.sync="model.f_usertype"
260
+ :value-single="true"
261
+ :options='$parent.$parent.usertypes'
262
+ v-model="model.f_usertype"
263
+ condition="f_user_type = '{}'"
264
+ close-on-select clear-button></v-select>
265
+ </div>
266
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
267
+
268
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
269
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
270
+ <v-select
271
+ placeholder='安检筛选'
272
+ :value-single="true"
273
+
274
+ class="select select_list"
275
+ :value.sync="$parent.$parent.SafeCheckXZ"
276
+ :options='$parent.$parent.SafeCheckXZs'
277
+ v-model="$parent.$parent.SafeCheckXZ"
278
+ close-on-select clear-button></v-select>
279
+ </div>
280
+
281
+ </div>
282
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
283
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
284
+ <label class="font_normal_body">安检起始</label>
285
+ <datepicker
286
+ :value.sync="model.f_check_start"
287
+ placeholder='最后安检时间起始'
288
+ :disabled-days-of-week="[]"
289
+ style="width: 60%"
290
+ :format="'yyyy-MM-dd'"
291
+ :show-rest-button="reset"
292
+ v-model="model.f_check_start">
293
+ </datepicker>
294
+ </div>
295
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
296
+ <label class="font_normal_body">安检结束</label>
297
+ <datepicker
298
+ :value.sync="model.f_check_end"
299
+ placeholder='最后安检时间结束'
300
+ style="width: 60%"
301
+ :disabled-days-of-week="[]"
302
+ :format="'yyyy-MM-dd'"
303
+ :show-rest-button="reset"
304
+ v-model="model.f_check_end">
305
+ </datepicker>
306
+ </div>
307
+
308
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
309
+ <label class="font_normal_body">安检状态</label>
310
+ <v-select
311
+ placeholder='安检状态'
312
+ class="select select_list"
313
+
314
+ :value.sync="model.f_last_check_state"
315
+ :value-single="true"
316
+ :options='$parent.$parent.checkstatus'
317
+ v-model="model.f_last_check_state"
318
+ condition="f_last_check_state = '{}'"
319
+ close-on-select clear-button></v-select>
320
+ </div>-->
321
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
322
+ <label class="font_normal_body">隐患情况</label>
323
+ <v-select
324
+ placeholder='隐患情况'
325
+ class="select select_list"
326
+ :value-single="true"
327
+ v-model='model.f_check_result'
328
+ :value.sync="model.f_check_result"
329
+ :options='$parent.$parent.f_check_results'
330
+ condition="f_last_check_result like '%{}%'"
331
+ close-on-select clear-button></v-select>
332
+ </div>
333
+
334
+ </div>
335
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
336
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
337
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
338
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
339
+ </right-tree>
340
+ </div>
341
+
342
+ </div>-->
343
+ </div>
344
+ </criteria>
345
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
346
+ <template partial='head'>
347
+ <tr>
348
+ <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>
349
+ <th>
350
+ <nobr>用户编号</nobr>
351
+ </th>
352
+ <th>
353
+ <nobr>用户名称</nobr>
354
+ </th>
355
+ <th>
356
+ <nobr>用户电话</nobr>
357
+ </th>
358
+ <th>
359
+ <nobr>用户表号</nobr>
360
+ </th>
361
+ <!-- <th>-->
362
+ <!-- <nobr>气表品牌</nobr>-->
363
+ <!-- </th>-->
364
+ <th>
365
+ <nobr>用户类型</nobr>
366
+ </th>
367
+ <!-- <th>-->
368
+ <!-- <nobr>壁挂炉</nobr>-->
369
+ <!-- </th>-->
370
+ <!-- <th>-->
371
+ <!-- <nobr>灶具</nobr>-->
372
+ <!-- </th>-->
373
+ <th>
374
+ <nobr>小区名称</nobr>
375
+ </th>
376
+ <th style="padding: 0 40px">
377
+ <nobr>地址</nobr>
378
+ </th>
379
+ <th>
380
+ <nobr>安检员</nobr>
381
+ </th>
382
+ <!-- <th>-->
383
+ <!-- <nobr>安检员备注</nobr>-->
384
+ <!-- </th>-->
385
+ <th>
386
+ <nobr>安检日期</nobr>
387
+ </th>
388
+ <th>
389
+ <nobr>安检状态</nobr>
390
+ </th>
391
+ <th>
392
+ <nobr>安检结果</nobr>
393
+ </th>
394
+ <th>
395
+ <nobr>二维码</nobr>
396
+ </th>
397
+ </tr>
398
+ </template>
399
+ <template partial='body'>
400
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.f_userinfo_code)" @change="$parent.$parent.$parent.setCheckes(row.f_userinfo_code)"></input></td>
401
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
402
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
403
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
404
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
405
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
406
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
407
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
408
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
409
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
410
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
411
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
412
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
413
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
414
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
415
+ {{row.f_last_check_result1 }}
416
+ </td>
417
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
418
+ <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code,row.f_address,row.f_user_type,row.f_address_detail,row.f_house_number)' >点击</button>
419
+ </td>
420
+ </template>
421
+ </data-grid>
422
+ </criteria-paged>
423
+ <modal :show.sync="dialogVisible" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
424
+ <div slot="modal-header" class="modal-header">
425
+ <h4 class="modal-title" style="text-align: center">
426
+ 二维码
427
+ </h4>
428
+ </div>
429
+ <div slot="modal-body" class="modal-body" >
430
+ <div id="aa" style="margin-left: 115px">
431
+ <div id="bb">
432
+ <style id="style1">
433
+ #bb {
434
+ width: 302px;
435
+ height: 170px;
436
+ }
437
+ #bb .img{
438
+ width: 40px;
439
+ height: 40px;
440
+ }
441
+ #bb .td1{
442
+ text-align: left;
443
+ white-space: nowrap;
444
+ font-size: 12px;
445
+ font-weight: 900;
446
+ }
447
+ #bb .td2{
448
+ text-align: right;
449
+ font-size: 10px;
450
+ font-weight: 900;
451
+ }
452
+ #bb .td3{
453
+ text-align: center;
454
+ font-weight: 900;
455
+ }
456
+ #bb .baseImg{
457
+ width: 120px;
458
+ height: 120px;
459
+ float: right;
460
+ overflow:hidden;
461
+ }
462
+ #bb .span{
463
+ white-space: nowrap;
464
+ }
465
+ #bb .td0{
466
+ text-align: left;
467
+ width: 60px;
468
+ }
469
+ </style>
470
+ <table>
471
+ <tr>
472
+ <td class="td0">
473
+ <img class="img" src="../../../assets/wensu/1.jpg" alt="">
474
+ </td>
475
+ <td class="td0">
476
+ <img class="img" src="../../../assets/wensu/2.jpg" alt="">
477
+ </td>
478
+ <td class="td3">
479
+ <span class="span" style="font-size: 13px;font-weight: 900">温宿县曦隆燃气开发有限公司</span><br>
480
+ <span class="span" style="font-weight: 900">天然气入户安全检查专用标签</span>
481
+ </td>
482
+ </tr>
483
+ <tr>
484
+ <td class="td1" colspan="2">用&nbsp;户&nbsp;类&nbsp;型&nbsp;:&nbsp;{{modal_user_type}}</td>
485
+ <td colspan="3" rowspan="6"><img class="baseImg" :src="modal_base64_img" alt="">
486
+ </tr>
487
+ <tr><td class="td1" colspan="3">片区负责人&nbsp;:&nbsp;{{modal_responsible_checker}}</td></tr>
488
+ <tr><td class="td1" colspan="3">联&nbsp;系&nbsp;电&nbsp;话&nbsp;:&nbsp;{{modal_responsible_phone}}</td></tr>
489
+ <tr><td class="td1" style="font-size: 13px" colspan="3">燃气客服电话&nbsp;:&nbsp;0997-6150333</td></tr>
490
+ <tr><td class="td1" style="font-size: 13px" colspan="3">燃气报警电话&nbsp;:&nbsp;0997-4533119</td></tr>
491
+ <tr><td class="td1" colspan="3">地址&nbsp;:&nbsp;{{modal_user_address}}</td></tr>
492
+ <tr><td class="td2" colspan="5">曦隆燃气&nbsp;&nbsp;&nbsp;&nbsp;情系万家</td></tr>
493
+ </table>
494
+ </div>
495
+ </div>
496
+ </div>
497
+ <div slot="modal-footer" class="modal-footer">
498
+ <print-element class="btn btn-success width-80" id="aa" styleid='style1' top='1' left='1' width='100%' height='100%' v-ref:printelement>打印</print-element>
499
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
500
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">取消</button>
501
+ </div>
502
+ </modal>
503
+ <modal :show.sync="showModal2" :backdrop="false">
504
+ <div slot="modal-header" class="modal-header">
505
+ <h4 class="modal-title">
506
+ 批量拉黑
507
+ </h4>
508
+ </div>
509
+ <div slot="modal-body" class="modal-body">
510
+ <div v-if="true">
511
+ <div class="row" style="margin-top: 10px">
512
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">拉黑备注</label>
513
+ <div class="col-xs-8 col-md-8">
514
+ <textarea style="width: 60%; height: 100px" v-model="f_remarks"></textarea>
515
+ </div>
516
+ </div>
517
+ </div>
518
+ </div>
519
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
520
+ <button class="button_search" @click="blacklist">确认</button>
521
+ <button class="button_search" @click="showModal2=false">取消</button>
522
+ </div>
523
+ </modal>
524
+ <!-- <modal :show.sync="showModal3">
525
+ <div slot="modal-header" class="modal-header">
526
+ <h4 class="modal-title">
527
+ 转维修进度{{ progressbarWidth }}%
528
+ </h4>
529
+ </div>
530
+ <div slot="modal-body" class="modal-body">
531
+ <div class="progress">
532
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
533
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
534
+ &lt;!&ndash; <span class="sr-only">40% 完成</span>&ndash;&gt;
535
+ </div>
536
+ </div>
537
+ </div>
538
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
539
+ </modal>-->
540
+ </div>
541
+
542
+ </template>
543
+
544
+ <script>
545
+ import {PagedList} from 'vue-client'
546
+ import {HttpResetClass} from 'vue-client'
547
+ import co from 'co'
548
+ import * as Util from '../../Util'
549
+ import Vue from 'vue'
550
+
551
+
552
+ // let select = function * (self,userid) {
553
+ // let http = new HttpResetClass()
554
+ // let getGasman = yield http.load('POST','/rs/search', {
555
+ // source: 'this.getChildByName($安检员$).getUsers()',
556
+ // userid: userid
557
+ // }, {resolveMsg: null, rejectMsg: null})
558
+ // //tag
559
+ // getGasman.data.forEach((checker)=>{
560
+ // self.checkersid.push({label:checker.name,value:checker.id})
561
+ // })
562
+ // self.checkersid.push({label:'全部',value:''})
563
+ // }
564
+
565
+
566
+ export default {
567
+ title: '用户安检情况',
568
+ data() {
569
+ let options = []
570
+ let year = (new Date()).getFullYear()
571
+ for (let i = year; i <= year + 3; i++)
572
+ options.push({label: i + '', value: i + ''})
573
+ let moptions = []
574
+ for (let i = 1; i <= 12; i++)
575
+ moptions.push({label: i + '', value: i + ''})
576
+
577
+ return {
578
+ dialogVisible: false,
579
+ searchData: {
580
+ condition: '1=1',
581
+ orderitem: "f_userinfo_code",
582
+ timetype: "dd",
583
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
584
+ },
585
+ excelHeaders: {
586
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
587
+
588
+ 'f_userinfo_code': '用户编号',
589
+ 'f_user_name': '用户名称',
590
+ 'f_user_phone': '用户电话',
591
+ 'f_meternumber': '用户表号',
592
+ 'f_user_type': '用户类型',
593
+ 'f_checker_name': '安检员',
594
+ 'f_residential_area': '小区名称',
595
+ 'f_address': '地址',
596
+ 'f_last_check_date': '安检日期',
597
+ 'f_last_check_state': '安检状态',
598
+ 'f_last_check_result1': '安检结果'
599
+ },
600
+ model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
601
+ orderitem: "'f_last_check_date'",
602
+ timetype: "'dd'",
603
+ f_defect_content: 'this.f_defect_content'
604
+ }),
605
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
606
+ orgstrs: [{label: '全部', value: ''}],
607
+ checkersid: [],
608
+ usernatures:[],
609
+ userareas:[],
610
+ SafeCheckXZ: '',
611
+ civil: '', //民用安检周期
612
+ civilian: '', //非民用安检周期
613
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
614
+ SafeCheckSXs: [{label: '', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
615
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
616
+ IsShares: [{label: '', value: '是'}, {label: '否', value: '否'}],
617
+ IsShare: '否',
618
+ checker: {},
619
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
620
+ criteriaShow: false,
621
+ checkers: [],
622
+ chosenOrg: {id: 0},
623
+ showModal: false,
624
+ checkedAll: false,
625
+ checkrows: [],
626
+ adjustables: [],
627
+ f_plan_year: year + '',
628
+ f_plan_month: moptions[new Date().getMonth()].value,
629
+ f_effective_start_time: '', //计划有效起始时间
630
+ f_effective_end_time: '', //计划有效结束时间
631
+ checkboxModel: {},
632
+ c_year_list: options,
633
+ c_month_list: moptions,
634
+ areas: this.areas(),
635
+ checkstatus: this.checkstatus(),
636
+ usertypes: this.usertypes(),
637
+ userstates: this.userstates(),
638
+ sqlname: '',
639
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
640
+ creatPlanWay: '',
641
+ sliceArea: [],
642
+ cbcs:[],
643
+ cbc:[],
644
+ pcds:[],
645
+ modal_user_type:'',
646
+ modal_responsible_checker:'',
647
+ modal_responsible_phone:'',
648
+ modal_user_address:'',
649
+ modal_base64_img:'',
650
+ checkes: [],
651
+ checkAll: false,
652
+ showModal2:false,
653
+ showModal3:false,
654
+ f_remarks:'',
655
+ progressbarWidth:'0',
656
+ }
657
+ },
658
+ props: {
659
+ style: {
660
+ type: String,
661
+ default: 'col-sm-2 form-group'
662
+ },
663
+ style2: {
664
+ type: String,
665
+ default: 'col-sm-4 form-group'
666
+ },
667
+ checkplan: { // 传入一条安检计划信息
668
+ type: Object
669
+ },
670
+ additemshow: {
671
+ type: Boolean,
672
+ default: false
673
+ }
674
+ },
675
+ ready() {
676
+ // 获取分公司信息
677
+ this.model.f_defect_content=this.f_defect_content
678
+
679
+ //this.getfengongsi()
680
+ this.model.chosenOrg = {id: 0}
681
+ this.model.f_filialeids = this.$login.f.f_orgids
682
+ this.model.f_filiale = this.$login.f.f_fengongsi
683
+ this.model.f_OrgStr = this.$login.f.orgpathstr
684
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
685
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
686
+ },
687
+ methods: {
688
+ async blacklist(){
689
+ if(!this.checkAll && this.checkes.length==0){
690
+ Vue.showMessage("请先勾选你要拉黑的用户!")
691
+ return
692
+ }
693
+ this.$showMessage("确定需要将选中用户在营收系统进行拉黑吗?",['confirm', 'cancel']).then((res)=>{
694
+ if (res === 'confirm'){
695
+ //this.showModal3=true
696
+ let successCount=0
697
+ console.log('是否全选', this.checkAll)
698
+ console.log('当前选中用户', this.checkes)
699
+ console.log('this.model----', this.model)
700
+ new HttpResetClass().load('post','rs/logic/safe_getuser_to_blactlist', {
701
+ data:{
702
+ condition: this.model.condition.condition1,
703
+ condition2: this.model.condition.condition2,
704
+ switchCheckAll: true,
705
+ checkAll: this.checkAll,
706
+ param: this.checkes,
707
+ columnName: 'f_userinfo_code',
708
+ orderitem:' f_userinfo_code',
709
+ type:'update'
710
+ }
711
+ }).then((res)=>{
712
+ this.$showMessage("操作成功!本次选中用已标记为待拉黑状态,同步营收系统会存在延迟。")
713
+ }).catch((msg)=>{
714
+ this.$showMessage("网络异常请稍后再试!")
715
+ })
716
+
717
+ }
718
+ })
719
+
720
+ /*new HttpResetClass().load('post','API/Secheck/SetBlackList', {
721
+ data:{
722
+ id:'700002373',
723
+ bh:'1511080819',
724
+ black:true,
725
+ blackMemo:'测试拉黑!!!'
726
+ }
727
+ }).then(res=>{
728
+ if (result.data.code==200) {
729
+ successCount += result.data.successcon
730
+ this.progressbarWidth=Math.ceil((i+1)*100/(this.checkes.length))
731
+ }
732
+ console.log('拉黑返回结果----', res)
733
+ }).catch(err=>{
734
+ console.log('拉黑请求失败----', err)
735
+ })*/
736
+ },
737
+ isChecked (v) {
738
+ // 如果全选,不在的按选中算,否则,在的按选中算
739
+ if (this.checkAll) {
740
+ return this.checkes.indexOf(v) == -1
741
+ } else {
742
+ return this.checkes.indexOf(v) != -1
743
+ }
744
+ },
745
+ setCheckAll () {
746
+ this.checkAll = this.checkAll ? false : true
747
+ // 全选改变后,清空选中数据
748
+ this.checkes = []
749
+ },
750
+ setCheckes (id) {
751
+ let index = this.checkes.indexOf(id)
752
+ if (index < 0) {
753
+ this.checkes.push(id)
754
+ } else {
755
+ this.checkes.splice(index, 1)
756
+ }
757
+ },
758
+ //查询二维码
759
+ searchInfo(val,address,userType,checkerName,checkerPhone){
760
+ this.dialogVisible = true
761
+ new HttpResetClass().load('post','rs/logic/QrcodeUtil', {
762
+ data: {
763
+ id:val
764
+ }
765
+ }).then(res=>{
766
+ this.modal_user_type=userType
767
+ this.modal_user_address=address
768
+ this.modal_responsible_checker=checkerName
769
+ this.modal_responsible_phone=checkerPhone
770
+ this.modal_base64_img="data:image/jpg;base64,"+res.data.result
771
+ })
772
+
773
+ },
774
+ //获取省市区列表
775
+ getPcd(val){
776
+ this.pcds = [{label:'全部',value:''}]
777
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
778
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
779
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
780
+ pcdlist.data.forEach((result)=>{
781
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
782
+ })
783
+ })
784
+ },
785
+ getmeterbook(val){
786
+
787
+ //tag
788
+ this.cbc=[]
789
+ this.cbc.push({
790
+ label:'全部',
791
+ value:''
792
+ })
793
+ if (val==''){
794
+
795
+ this.cbcs.forEach(res=>{
796
+ this.cbc.push({
797
+ label:res.f_book_name,
798
+ value:res.id
799
+ })
800
+ })
801
+ }else{
802
+ this.cbcs.forEach(res=>{
803
+ if (res.f_book_slice_area==val){
804
+ this.cbc.push({
805
+ label:res.f_book_name,
806
+ value:res.id
807
+ })
808
+ }
809
+ })
810
+ }
811
+ },
812
+ Mreadibook(val){
813
+ ////tag
814
+ ////tag
815
+ if (val){
816
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
817
+ items: 'name',
818
+ tablename: 't_zone',
819
+ condition: `parentid in ${val}`,
820
+ orderitem: 'id'
821
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
822
+ this.sliceArea=[]
823
+ this.sliceArea.push({
824
+ label:'全部',
825
+ value:''
826
+ })
827
+ res.data.forEach(ress=>{
828
+ this.sliceArea.push({
829
+ label:ress.name,
830
+ value:ress.name
831
+ })
832
+ })
833
+
834
+ })
835
+ }
836
+ },
837
+ // 获取县域分公司内容
838
+ getfengongsi() {
839
+ let val = {
840
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
841
+ userid: `${this.$login.f.id}`
842
+ }
843
+ let http = new HttpResetClass()
844
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
845
+ res.data.forEach((item) => {
846
+ this.orgstrs.push({label: item.name, value: item.id})
847
+ })
848
+ //tag
849
+ })
850
+ },
851
+ // 县域分公司发生改变
852
+ // orgstrchange(val){
853
+ // if(val == undefined || val == ''){
854
+ // return
855
+ // }else {
856
+ // this.checkersid = []
857
+ // let gen = select(this,val)
858
+ // return co(gen)
859
+ // }
860
+ // },
861
+ getDefect(val) {
862
+ if (val) {
863
+ try {
864
+ var defect = JSON.parse(val)
865
+ return defect.result
866
+ } catch (e) {
867
+ //tag
868
+ return '正常'
869
+ }
870
+ }
871
+ return '正常'
872
+ },
873
+ checkerchange(val) {
874
+ this.checkboxModel.f_checker = val.name
875
+ this.checkboxModel.f_checker_id = val.id
876
+ },
877
+ search(args) {
878
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
879
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
880
+ return
881
+ }
882
+ this.checkes = []
883
+ /*if (this.SafeCheckXZ == '未安检') {
884
+ 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)"
885
+ } else {
886
+ if (args.model.f_check_start) {
887
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
888
+ }
889
+ if (args.model.f_check_end) {
890
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
891
+ }
892
+ }*/
893
+ //args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
894
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid}) `)
895
+ con += args.model.f_check_start ? ` and f_offsite_time >= '${args.model.f_check_start}'` : ''
896
+ con += args.model.f_check_end ? ` and f_offsite_time <= '${args.model.f_check_end}'` : ''
897
+ if (this.SafeCheckXZ == '未入户') {
898
+ con += ` and f_entry_status = '入户'`
899
+ args.condition += ' and ruhuid is null'
900
+ } else if (this.SafeCheckXZ == '已入户') {
901
+ con += ` and f_entry_status = '入户'`
902
+ args.condition += ' and ruhuid is not null'
903
+ }
904
+ // con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
905
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
906
+ let condition = {
907
+ condition1: args.condition,
908
+ condition2: con
909
+ }
910
+ //tag
911
+ this.searchData.condition = condition
912
+ return this.model.search(condition, args.model)
913
+ },
914
+ checkstatus() {
915
+ return this.$appdata.getParam('安检状态') ? [{
916
+ label: '全部',
917
+ value: ''
918
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
919
+ },
920
+ usertypes() {
921
+ return this.$appdata.getParam('用户类型') ? [{
922
+ label: '全部',
923
+ value: ''
924
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
925
+ },
926
+ userstates() {
927
+ return this.$appdata.getParam('用户状态') ? [{
928
+ label: '全部',
929
+ value: ''
930
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
931
+ },
932
+ hiddenr() {
933
+ this.$parent.showItem = !this.$parent.showItem
934
+ },
935
+ hidden() {
936
+ this.criteriaShow = !this.criteriaShow
937
+ },
938
+ confirm() {
939
+ if (!this.checkboxModel.f_plan_name) {
940
+ this.$showMessage('请填写安检计划名称!')
941
+ return
942
+ }
943
+ // if(this.f_effective_start_time == ''){
944
+ // this.$showMessage('请选择有效起始日期!')
945
+ // return
946
+ // }
947
+ // if(this.f_effective_end_time == ''){
948
+ // this.$showMessage('请选择有效结束日期!')
949
+ // return
950
+ // }
951
+ if (this.IsShare == '否') {
952
+ if (!this.checkboxModel.f_checker_id) {
953
+ this.$showMessage('请选择安检员!')
954
+ return
955
+ }
956
+ }
957
+ let gen = saveGen(this)
958
+ return co(gen)
959
+ },
960
+ changeStates() {
961
+ if (this.checkedAll) {//实现反选/
962
+ this.checkrows = [];
963
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
964
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
965
+ }
966
+ } else {//实现全选
967
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
968
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
969
+ }
970
+ let _this = this
971
+ let condition = this.$refs.paged.$refs.criteria.condition
972
+ let url = this.model.url
973
+ this.$resetpost(`${url}?pageSize=9999999`, {
974
+ data: {
975
+ condition: condition,
976
+ groupitem: '',
977
+ orderitem: 'f_residential_area',
978
+ f_usertype: this.model.f_usertype,
979
+ f_filialeids: this.model.f_filialeids,
980
+ month: this.model.month,
981
+ safeCycle: this.model.safeCycle,
982
+ f_checktime_start: this.model.f_checktime_start,
983
+ f_checktime_end: this.model.f_checktime_end,
984
+ SafeCheckSX: this.model.SafeCheckSX,
985
+ f_last_check_state: this.model.f_last_check_state
986
+ },
987
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
988
+ (respanse) => {
989
+ if (respanse.data.length >= 5000) {
990
+ this.$showMessage("数据量太大,请重新选择")
991
+ } else {
992
+ _this.checkrows = []
993
+ for (let j = 0; j < respanse.data.length; j++) {
994
+ _this.checkrows.push(respanse.data[j])
995
+ }
996
+ //tag;
997
+ }
998
+ })
999
+ }
1000
+ },
1001
+ addChecked(item) {
1002
+ //tag;
1003
+ if (!item.checked) {
1004
+ this.checkrows.push(item);
1005
+ //tag;
1006
+ } else {
1007
+ for (let i = 0; i < this.checkrows.length; i++) {
1008
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
1009
+ this.checkrows.splice(i, 1)
1010
+ }
1011
+ }
1012
+ }
1013
+ },
1014
+ ToshowModal() {
1015
+ this.creatPlanWay = 'single'
1016
+ if (this.checkrows.length > 0) {
1017
+ this.showModal = true
1018
+ } else {
1019
+ this.$showMessage("请选择需要安检的用户!")
1020
+ }
1021
+ },
1022
+ FiltrationPlan() {
1023
+ if (this.model.rows.length == 0) {
1024
+ this.$showMessage("暂无可生成的计划!")
1025
+ return
1026
+ }
1027
+ this.creatPlanWay = 'filtration'
1028
+ this.showModal = true
1029
+ },
1030
+ AllPlan() {
1031
+ if (this.model.rows.length == 0) {
1032
+ this.$showMessage("暂无可生成的计划!")
1033
+ return
1034
+ }
1035
+ this.creatPlanWay = 'all'
1036
+ this.showModal = true
1037
+ },
1038
+ cancel() {
1039
+ this.showModal = false
1040
+ },
1041
+ areas() {
1042
+ let rs = []
1043
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1044
+ let temp = {
1045
+ label: this.$login.f.f_allArea[i].label,
1046
+ value: this.$login.f.f_allArea[i].label
1047
+ }
1048
+ rs.push(temp)
1049
+ }
1050
+ return [{label: '全部', value: ''}, ...rs]
1051
+ },
1052
+ initAdjustables() {
1053
+ //tag
1054
+ let arr = []
1055
+ let filter = this.$login.f.f_orgids
1056
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1057
+ let temp = {}
1058
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1059
+ temp.value = `${item.value.id}`
1060
+ arr.push(temp)
1061
+ })
1062
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
1063
+ },
1064
+ getAllMeterBook(val){
1065
+ ////tag
1066
+ ////tag
1067
+ this.cbcs=[]
1068
+ if (val){
1069
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
1070
+ items: 'f_book_name,f_book_slice_area,id',
1071
+ tablename: 't_meter_book',
1072
+ condition: `f_filiale_id in ${val}`,
1073
+ orderitem: 'id'
1074
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1075
+ res.data.forEach(ress=>{
1076
+ this.cbcs.push({
1077
+ id:ress.id,
1078
+ f_book_name:ress.f_book_name,
1079
+ f_book_slice_area:ress.f_book_slice_area
1080
+ })
1081
+ })
1082
+ this.cbc=[]
1083
+ this.cbc.push({
1084
+ label:'全部',
1085
+ value:''
1086
+ })
1087
+ this.cbcs.forEach(res=>{
1088
+ this.cbc.push({
1089
+ label:res.f_book_name,
1090
+ value:res.id
1091
+ })
1092
+ })
1093
+ })
1094
+ }
1095
+ },
1096
+ getRes(obj) {
1097
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1098
+ this.Mreadibook(this.model.f_filialeids)
1099
+ this.getAllMeterBook(this.model.f_filialeids)
1100
+ this.getPcd(this.model.f_filialeids)
1101
+ }
1102
+ },
1103
+
1104
+ watch: {
1105
+ 'model.f_usertype'(val) {
1106
+ if (val == '民用') {
1107
+ this.model.safeCycle = this.civil
1108
+ } else if (val == '非民用') {
1109
+ this.model.safeCycle = this.civilian
1110
+ }
1111
+ },
1112
+ 'model.SafeCheckXZ'(val) {
1113
+ this.model.SafeCheckSC = ''
1114
+ if (val == '已安检') {
1115
+ this.model.SafeCheckCQ = ''
1116
+ this.model.SafeCheckSX = {
1117
+ f_check_end: '', // 安检时间 查询起始条件
1118
+ f_check_start: ''// 安检时间 查询终止条件
1119
+ }
1120
+ } else {
1121
+ // 当使用筛选条件时,清空不需要的条件选项
1122
+ this.model.f_issue_start = ''
1123
+ this.model.f_issue_end = ''
1124
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
1125
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
1126
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1127
+ this.model.month = ''
1128
+ if (val == '应安检') {
1129
+ this.model.SafeCheckSC = '否'
1130
+
1131
+ this.model.f_issue_start = Util.toStartDateString()
1132
+ this.model.f_issue_end = Util.toStandardDateString()
1133
+ }
1134
+ // this.model.f_checktime_start = ''
1135
+ // this.model.f_checktime_end = ''
1136
+ }
1137
+ },
1138
+ 'model.SafeCheckSC'(val) {
1139
+ if (val == '') {
1140
+ this.model.f_issue_start = ''
1141
+ this.model.f_issue_end = ''
1142
+ }
1143
+ },
1144
+ // 'checker'(val){
1145
+ // //tag
1146
+ // if(val){
1147
+ // this.checkboxModel.f_checker = this.checker[0].name
1148
+ // this.checkboxModel.f_checker_id = this.checker[0].id
1149
+ // }
1150
+ // },
1151
+ 'model.rows'() {
1152
+ // if (!this.checkedAll) {//实现反选/
1153
+ // this.checkrows = [];
1154
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1155
+ var k = false
1156
+ for (let j = 0; j < this.checkrows.length; j++) {
1157
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1158
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1159
+ k = true
1160
+ continue
1161
+ }
1162
+ }
1163
+ if (!k) {
1164
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1165
+ }
1166
+ }
1167
+ // } else {//实现全选
1168
+ // // this.checkboxModel = {};
1169
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1170
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1171
+ // }
1172
+ // }
1173
+ }
1174
+ },
1175
+ computed: {
1176
+ selected() {
1177
+ return this.$refs.paged.$refs.grid.selected
1178
+ }
1179
+ }
1180
+ }
1181
+ </script>
1182
+ <style scoped>
1183
+ .newcolor {
1184
+ color: red;
1185
+ }
1186
+
1187
+ .table th {
1188
+ background-color: #f2f6fa;
1189
+ color: black;
1190
+ }
1191
+ </style>