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