safecheck-client 3.0.34-20 → 3.0.34-21

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.
Files changed (34) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +31 -31
  3. package/src/components/android/AndroidDefectDeal.vue +634 -634
  4. package/src/components/android/ImgSelfAndroid.vue +181 -181
  5. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
  6. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -2798
  7. package/src/filiale/baiyin/android.js +11 -11
  8. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  9. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  10. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  11. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
  12. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  13. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  14. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
  15. package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
  16. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
  17. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
  18. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  19. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
  20. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -2811
  21. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  22. package/src/filiale/jiaxian/android.js +13 -13
  23. package/src/filiale/jiaxian/pc.js +12 -12
  24. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -468
  25. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  26. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  27. package/src/filiale/weinan/android/SafecheckDevices.vue +1307 -1307
  28. package/src/filiale/weinan/android/SafecheckOrderV.vue +3345 -3345
  29. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  30. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  31. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  32. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2845
  33. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  34. package/src/main.js +1 -1
@@ -1,1096 +1,1096 @@
1
- <template>
2
- <div class="flex">
3
- <work-busy :is-busy="isbusy"></work-busy>
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
- <div :class="$parent.$parent.style">
9
- <label class="font_normal_body">安检计划</label>
10
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
- @click="$parent.$parent.showChooser"
12
- style="width: 60%" placeholder="安检计划" readonly="readonly">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">用户编号</label>
16
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
- condition="f_userinfo_code = '{}'"
18
- style="width: 60%" placeholder="用户编号">
19
- </div>
20
- <div :class="$parent.$parent.style">
21
- <label class="font_normal_body">结果查询</label>
22
- <v-select
23
- placeholder='维修结果查询'
24
- :value-single="true"
25
- class="select select_list" style="width: 60%"
26
- v-model='model.f_is_repair'
27
- :value.sync="model.f_is_repair"
28
- :options='$parent.$parent.repaired'
29
- condition="f_is_repair = '{}'"
30
- close-on-select clear-button> </v-select>
31
- </div>
32
- <div :class="$parent.$parent.style">
33
- <label class="font_normal_body">小区名称</label>
34
- <input type="text" class="input_search" v-model="model.f_residential_area"
35
- condition="f_residential_area = '{}'"
36
- style="width: 60%" placeholder="小区名称">
37
- </div>
38
- <div class=" col-sm-4 form-group button-range" >
39
- <div class="span" style="float: right;margin-top: 8px">
40
- <div style="float: right" class="button_spacing"
41
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
42
- @click="$parent.$parent.hiddenr()"></div>
43
- <div style="float: right" class="button_spacing"
44
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
- @click="$parent.$parent.hidden()"></div>
46
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
47
- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>
48
- <div style="float: right">
49
- <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
50
- :field="$parent.$parent.getfield"
51
- progress="safeGetExportProgress"
52
- sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检隐患明细' :choose-col="true"></export-excel>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
58
- <!-- <div :class="$parent.$parent.style">-->
59
- <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
60
- <!-- <v-select class="select_list select"-->
61
- <!-- placeholder='片区/管理站' style="width: 60%"-->
62
- <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
63
- <!-- :options='$parent.$parent.sliceArea'-->
64
- <!-- filer-key="name"-->
65
- <!-- close-on-select clear-button-->
66
- <!-- condition="f_slice_area='{}'"-->
67
- <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
68
- <!-- :value-single="true">-->
69
- <!-- </v-select>-->
70
- <!-- </div>-->
71
- <div :class="$parent.$parent.style2" style="margin: 0">
72
- <role-selector-safe-dep
73
- role-name="安检员"
74
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
75
- :resobjprop.sync="$parent.$parent.resids"
76
- @re-res="$parent.$parent.getRes"
77
- @alluser="$parent.$parent.getchecker"
78
- :value.sync="model.f_checker_id"
79
- v-model="model.f_checker_id"
80
- condition="f_checker_name = '{}'">
81
- </role-selector-safe-dep>
82
- </div>
83
-
84
- <!-- <div :class="$parent.$parent.style">-->
85
- <!-- <label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
86
- <!-- <v-select class="select_list select"-->
87
- <!-- placeholder='抄表册' style="width: 60%"-->
88
- <!-- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"-->
89
- <!-- :options='$parent.$parent.cbc'-->
90
- <!-- filer-key="name"-->
91
- <!-- close-on-select clear-button-->
92
- <!-- condition="f_meter_book_num={}"-->
93
- <!-- :value-single="true">-->
94
- <!-- </v-select>-->
95
- <!-- </div>-->
96
- <div :class="$parent.$parent.style">
97
- <label class="font_normal_body">起始时间</label>
98
- <datepicker
99
- placeholder='起始时间' style="width:60%"
100
- :disabled-days-of-week="[]"
101
- :format="'yyyy-MM-dd'"
102
- :show-rest-button="reset"
103
- :value.sync="model.f_start_time"
104
- v-model="model.f_start_time"
105
- condition="f_offsite_time >= '{} 00:00:00'">
106
- </datepicker>
107
- </div>
108
- <div :class="$parent.$parent.style">
109
- <label class="font_normal_body">结束时间</label>
110
- <datepicker
111
- placeholder='结束时间' style="width:60%"
112
- :disabled-days-of-week="[]"
113
- :format="'yyyy-MM-dd'"
114
- :show-rest-button="reset"
115
- :value.sync="model.f_end_time"
116
- v-model="model.f_end_time"
117
- condition="f_offsite_time <= '{} 23:59:59'">
118
- </datepicker>
119
- </div>
120
-
121
-
122
- </div>
123
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
124
-
125
- <div :class="$parent.$parent.style">
126
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
127
- <input type="text" class="input_search" v-model="model.f_repairman"
128
- condition="f_repairman = '{}'"
129
- style="width: 60%" placeholder="维修员">
130
- </div>
131
- <div :class="$parent.$parent.style">
132
- <label class="font_normal_body">处理查询</label>
133
- <v-select
134
- placeholder='处理结果查询'
135
- :value-single="true"
136
- class="select select_list" style="width: 60%"
137
- v-model='model.f_is_deal'
138
- :value.sync="model.f_is_deal"
139
- :options='$parent.$parent.deals'
140
- condition="f_is_deal = '{}'"
141
- close-on-select clear-button> </v-select>
142
- </div>
143
- <div :class="$parent.$parent.style">
144
- <label class="font_normal_body">是否维修</label>
145
- <v-select
146
- placeholder='是否维修'
147
- :value-single="true"
148
- class="select select_list" style="width: 60%"
149
- v-model='model.f_repaired'
150
- :value.sync="model.f_repaired"
151
- :options='$parent.$parent.repairedOptions'
152
- condition="f_repaired = '{}'"
153
- close-on-select clear-button> </v-select>
154
- </div>
155
-
156
- <div :class="$parent.$parent.style">
157
- <label class="font_normal_body">隐患级别</label>
158
- <v-select style="width:60% "
159
- class="select select_list"
160
- :value.sync="$parent.$parent.defectLeave"
161
- v-model="$parent.$parent.defectLeave"
162
- :options='$parent.$parent.defectLeaveList'
163
- placeholder='隐患级别'
164
- close-on-select clear-button>
165
- </v-select>
166
- </div>
167
- <div :class="$parent.$parent.style">
168
- <label class="font_normal_body">隐患类型</label>
169
- <v-select style="width:60% "
170
- class="select select_list"
171
- :value.sync="$parent.$parent.defectType"
172
- v-model="$parent.$parent.defectType"
173
- :options='$parent.$parent.getdefectType'
174
- placeholder='隐患类型'
175
- :multiple="true">
176
- </v-select>
177
- </div>
178
- <div :class="$parent.$parent.style">
179
- <label class="font_normal_body">是否限购</label>
180
- <v-select style="width:60% "
181
- class="select select_list"
182
- :options='$parent.$parent.isOrNo'
183
- v-model='model.f_is_black'
184
- :value.sync="model.f_is_black"
185
- placeholder='是否限购'
186
- condition="f_is_black = '{}'"
187
- :multiple="false">
188
- </v-select>
189
- </div>
190
- </div>
191
- <div class="row" v-show="$parent.$parent.$parent.showItem">
192
- <div :class="$parent.$parent.style">
193
- <label class="font_normal_body">安检计划</label>
194
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
195
- @click="$parent.$parent.showChooser"
196
- style="width: 60%" placeholder="安检计划" readonly="readonly">
197
- </div>
198
-
199
- <div class=" col-sm-4 form-group button-range">
200
- <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
201
- <div style="float: right" class="button_spacing"
202
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
203
- @click="$parent.$parent.hiddenr()"></div>
204
- <div style="float: right" class="button_spacing"
205
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
206
- @click="$parent.$parent.hidden()"></div>
207
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
208
- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>
209
- <div style="float: right">
210
- <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
211
- :field="$parent.$parent.getfield"
212
- progress="safeGetExportProgress"
213
- sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检计划明细' :choose-col="true"></export-excel>
214
- </div>
215
- </div>
216
- </div>
217
-
218
-
219
-
220
- </div>
221
- <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
222
- <div :class="$parent.$parent.style">
223
- <label class="font_normal_body">用户编号</label>
224
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
225
- condition="f_userinfo_code = '{}'"
226
- style="width: 60%" placeholder="用户编号">
227
- </div>
228
- <div :class="$parent.$parent.style">
229
- <label class="font_normal_body">结果查询</label>
230
- <v-select
231
- placeholder='处理结果查询'
232
- :value-single="true"
233
- class="select select_list" style="width: 60%"
234
- v-model='model.f_repaired'
235
- :value.sync="model.f_repaired"
236
- :options='$parent.$parent.repaired'
237
- condition="f_repaired = '{}'"
238
- close-on-select clear-button> </v-select>
239
- </div>
240
- <div :class="$parent.$parent.style">
241
- <label class="font_normal_body">小区名称</label>
242
- <input type="text" class="input_search" v-model="model.f_residential_area"
243
- condition="f_residential_area = '{}'"
244
- style="width: 60%" placeholder="小区名称">
245
- </div>
246
-
247
- <div :class="$parent.$parent.style2" style="margin: 0">
248
- <role-selector-safe-dep
249
- role-name="安检员"
250
- :resobjprop.sync="$parent.$parent.resids"
251
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
252
- @re-res="$parent.$parent.getRes"
253
- @alluser="$parent.$parent.getchecker"
254
- :value.sync="model.f_checker_id"
255
- v-model="model.f_checker_id"
256
- condition="f_checker_name = '{}'">
257
- </role-selector-safe-dep>
258
- </div>
259
- <div :class="$parent.$parent.style">
260
- <label class="font_normal_body">起始时间</label>
261
- <datepicker
262
- placeholder='起始时间' style="width:60%"
263
- :disabled-days-of-week="[]"
264
- :format="'yyyy-MM-dd'"
265
- :show-rest-button="reset"
266
- :value.sync="model.f_start_time"
267
- v-model="model.f_start_time"
268
- condition="f_offsite_time >= '{} 00:00:00'">
269
- </datepicker>
270
- </div>
271
- <div :class="$parent.$parent.style">
272
- <label class="font_normal_body">结束时间</label>
273
- <datepicker
274
- placeholder='结束时间' style="width:60%"
275
- :disabled-days-of-week="[]"
276
- :format="'yyyy-MM-dd'"
277
- :show-rest-button="reset"
278
- :value.sync="model.f_end_time"
279
- v-model="model.f_end_time"
280
- condition="f_offsite_time <= '{} 23:59:59'">
281
- </datepicker>
282
- </div>
283
- </div>
284
- <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
285
- <!-- <div :class="$parent.$parent.style">-->
286
- <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
287
- <!-- <v-select class="select_list select"-->
288
- <!-- placeholder='片区/管理站' style="width: 60%"-->
289
- <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
290
- <!-- :options='$parent.$parent.sliceArea'-->
291
- <!-- filer-key="name"-->
292
- <!-- close-on-select clear-button-->
293
- <!-- condition="f_slice_area='{}'"-->
294
- <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
295
- <!-- :value-single="true">-->
296
- <!-- </v-select>-->
297
- <!-- </div>-->
298
- <!-- <div :class="$parent.$parent.style">-->
299
- <!-- <label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
300
- <!-- <v-select class="select_list select"-->
301
- <!-- placeholder='抄表册' style="width: 60%"-->
302
- <!-- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"-->
303
- <!-- :options='$parent.$parent.cbc'-->
304
- <!-- filer-key="name"-->
305
- <!-- close-on-select clear-button-->
306
- <!-- condition="f_meter_book_num={}"-->
307
- <!-- :value-single="true">-->
308
- <!-- </v-select>-->
309
- <!-- </div>-->
310
- <div :class="$parent.$parent.style">
311
- <label class="font_normal_body">是否维修</label>
312
- <v-select
313
- placeholder='是否维修'
314
- :value-single="true"
315
- class="select select_list" style="width: 60%"
316
- v-model='model.f_repaired'
317
- :value.sync="model.f_repaired"
318
- :options='$parent.$parent.repairedOptions'
319
- condition="f_repaired = '{}'"
320
- close-on-select clear-button> </v-select>
321
- </div>
322
-
323
- <div :class="$parent.$parent.style">
324
- <label class="font_normal_body">隐患级别</label>
325
- <v-select style="width:60% "
326
- class="select select_list"
327
- :value.sync="$parent.$parent.defectLeave"
328
- v-model="$parent.$parent.defectLeave"
329
- :options='$parent.$parent.defectLeaveList'
330
- placeholder='隐患级别'
331
- close-on-select clear-button>
332
- </v-select>
333
- </div>
334
- <div :class="$parent.$parent.style">
335
- <label class="font_normal_body">隐患类型</label>
336
- <v-select style="width:60% "
337
- class="select select_list"
338
- :value.sync="$parent.$parent.defectType"
339
- v-model="$parent.$parent.defectType"
340
- :options='$parent.$parent.getdefectType'
341
- placeholder='隐患类型'
342
- :multiple="true">
343
- </v-select>
344
- </div>
345
- <div :class="$parent.$parent.style">
346
- <label class="font_normal_body">是否限购</label>
347
- <v-select style="width:60% "
348
- class="select select_list"
349
- :options='$parent.$parent.isOrNo'
350
- v-model='model.f_is_black'
351
- :value.sync="model.f_is_black"
352
- placeholder='是否限购'
353
- condition="f_is_black = '{}'"
354
- :multiple="false">
355
- </v-select>
356
- </div>
357
- <div :class="$parent.$parent.style">
358
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
359
- <input type="text" class="input_search" v-model="model.f_repairman"
360
- condition="f_repairman = '{}'"
361
- style="width: 60%" placeholder="维修员">
362
- </div>
363
- <div :class="$parent.$parent.style">
364
- <label class="font_normal_body">处理查询</label>
365
- <v-select
366
- placeholder='处理结果查询'
367
- :value-single="true"
368
- class="select select_list" style="width: 60%"
369
- v-model='model.f_is_deal'
370
- :value.sync="model.f_is_deal"
371
- :options='$parent.$parent.deals'
372
- condition="f_is_deal = '{}'"
373
- close-on-select clear-button> </v-select>
374
- </div>
375
- </div>
376
- </div>
377
- </criteria>
378
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
379
- <template partial='head'>
380
- <tr>
381
- <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
382
- <th><nobr>入户状态</nobr></th>
383
- <th><nobr>用户编号</nobr></th>
384
- <th><nobr>用户名</nobr></th>
385
- <th><nobr>用户电话</nobr></th>
386
- <th><nobr>用户小区</nobr></th>
387
- <th><nobr>用户地址</nobr></th>
388
- <th><nobr>安检时间</nobr></th>
389
- <th><nobr>安检员</nobr></th>
390
- <th><nobr>计划名</nobr></th>
391
- <th><nobr>隐患数</nobr></th>
392
- <th><nobr>处理数</nobr></th>
393
- <th><nobr>完成数</nobr></th>
394
- <th><nobr>处理情况</nobr></th>
395
- <th><nobr>完成情况</nobr></th>
396
- <th><nobr>维修情况</nobr></th>
397
- <th><nobr>维修员</nobr></th>
398
- <th><nobr>限购状态</nobr></th>
399
- <th><nobr>隐患明细</nobr></th>
400
- </tr>
401
- </template>
402
- <template partial='body'>
403
- <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
404
- <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
405
- <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
406
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
407
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
408
- <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
409
- <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
410
- <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
411
- <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
412
- <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
413
- <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
414
- <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>
415
- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
416
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>
417
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
418
- <td style="text-align: center;white-space:nowrap;">{{row.f_repaired}}</td>
419
- <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
420
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_black}}</td>
421
- <td style="text-align: center;white-space:nowrap;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</td>
422
- </template>
423
- </data-grid>
424
- </criteria-paged>
425
-
426
- <modal :show.sync="showModal" v-ref:modal>
427
- <div slot="modal-header" class="modal-header">
428
- <h4 class="modal-title">
429
- 选择计划
430
- </h4>
431
- </div>
432
- <div slot="modal-body" class="modal-body">
433
- <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
434
- </div>
435
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
436
- <button class="button_search" @click="ok">确认</button>
437
- <button class="button_search" @click="cancel">取消</button>
438
- </div>
439
- </modal>
440
- <modal :show.sync="showModal2" :backdrop="false">
441
- <div slot="modal-header" class="modal-header">
442
- <h4 class="modal-title">
443
- 转维修
444
- </h4>
445
- </div>
446
- <div slot="modal-body" class="modal-body">
447
- <div v-if="true">
448
- <div class="row" style="margin-top: 10px">
449
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
450
- <div class="col-xs-8 col-md-8">
451
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
452
- :options='dispatchTypeOptions' placeholder='派发类型'
453
- close-on-select>
454
- </v-select>
455
- </div>
456
- </div>
457
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
458
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
459
- <div class="col-xs-8 col-md-8">
460
- <v-select
461
- :value.sync="selectData.f_repairman"
462
- :value-single="true"
463
- :options='repairers'
464
- placeholder='请选择维修员'
465
- close-on-select></v-select>
466
- </div>
467
- </div>
468
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
469
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
470
- <div class="col-xs-8 col-md-8">
471
- <right-tree
472
- islist
473
- :userid="userid"
474
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
475
- @re-res="getSiteRes"></right-tree>
476
- </div>
477
- </div>
478
- <div class="row" style="margin-top: 10px">
479
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
480
- <div class="col-xs-8 col-md-8">
481
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
482
- class="select select_list"
483
- :value-single="true"
484
- :options='repairTypeOptions'
485
- close-on-select>
486
- </v-select>
487
- </div>
488
- </div>
489
- <div class="row" style="margin-top: 10px">
490
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
491
- <div class="col-xs-8 col-md-8">
492
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
493
- </div>
494
- </div>
495
- </div>
496
- </div>
497
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
498
- <button class="button_search" @click="rectification">转维修</button>
499
- <button class="button_search" @click="cancel1">取消</button>
500
- </div>
501
- </modal>
502
- <modal :show.sync="showModal3">
503
- <div slot="modal-header" class="modal-header">
504
- <h4 class="modal-title">
505
- 转维修进度{{ progressbarWidth }}%
506
- </h4>
507
- </div>
508
- <div slot="modal-body" class="modal-body">
509
- <div class="progress">
510
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
511
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
512
- <!-- <span class="sr-only">40% 完成</span>-->
513
- </div>
514
- </div>
515
- </div>
516
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
517
- </modal>
518
- </div>
519
- </template>
520
- <script>
521
- import {PagedList} from 'vue-client'
522
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
523
- import co from 'co'
524
- import Vue from 'vue'
525
- import * as Util from "../../../components/Util";
526
-
527
- let select = function* (self) {
528
- let http = new HttpResetClass()
529
- let getGasman = yield http.load('POST', '/rs/search', {
530
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
531
- userid: self.$login.f.id
532
- }, {resolveMsg: null, rejectMsg: null})
533
- //tag
534
- self.checkersid.push({label: '全部', value: ''})
535
- getGasman.data.forEach((checker) => {
536
- self.checkersid.push({label: checker.name, value: checker.name})
537
- })
538
- }
539
- export default {
540
- title: '隐患查询',
541
- data() {
542
- let model = new PagedList('rs/sql/GetCheckPaperByDefectNew', 20, {
543
- f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
544
- })
545
- model.f_filialeids = '(' + this.$login.f.orgid + ')'
546
- model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
547
- return {
548
- checker_name:'',
549
- defectType:[],
550
- defectLeave:'',
551
- is_black:'',
552
- defectLeaveList:[{label:'全部',value:''},{label:'重大',value:'重大'},{label:'一般',value:'一般'}],
553
- isOrNo:[{label:'全部',value:''},{label:'是',value:'是'},{label:'否',value:'否'}],
554
- repaired:[{label: '全部', value: ''},{label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
555
- deals:[{label: '全部', value: ''},{label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'}],
556
- f: this.$login.f,
557
- model: model,
558
- criteriaShow: false,
559
- checkAll:false,
560
- timercount:0,
561
- showModal2:false,
562
- repairTypeOptions:this.$appdata.getParam('报修类型'),
563
- dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
564
- checkes:[],
565
- showModal: false,
566
- f_check_plan: {f_plan_name: '', id: ''},
567
- sumsmodel: {},
568
- resids:{},
569
- all: false,
570
- fields: {},
571
-
572
- selectData:{
573
- dispatchType:'',
574
- f_repairman:'',
575
- f_remarks:'',
576
- f_repairtype:''
577
- },
578
- progressbarWidth:'0',
579
- modelval: [],
580
- isbusy:false,
581
- checkersid: [],
582
- showModal3:false,
583
- toRepairCount:0,
584
- sliceArea: [],
585
- callSends:[],
586
- cbc:[],
587
- repairedOptions:[{label: '全部', value: ''},{label: '已修', value: '已修'}, {label: '未修', value: '未修'},{label: '已转维修', value: '已转维修'}],
588
- repairers:[],
589
- cbcs:[],
590
- thead: '',
591
- headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','隐患数','隐患明细'],
592
- bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_defect_count','defecttext'],
593
- }
594
- },
595
- props:{
596
- style: {
597
- type: String,
598
- default: 'col-sm-2 form-group'
599
- },
600
- style2: {
601
- type: String,
602
- default: 'col-sm-4 form-group'
603
- }
604
-
605
- },
606
-
607
- methods: {
608
- getchecker(val){
609
- this.$refs.paged.$refs.criteria.model.f_checker_id = ''
610
- if(val && val.length > 0){
611
- this.checker_name = ''
612
- val.forEach(user => {
613
- this.checker_name += `'${user.name}',`
614
- })
615
- this.checker_name = this.checker_name.slice(0,this.checker_name.length-1)
616
- }else{
617
- this.checker_name = ''
618
- }
619
- },
620
- trouble(val) {
621
- const defect_content = JSON.parse(val)
622
- let result = ''
623
- if (defect_content.data) {
624
- const jsonData = defect_content.data
625
- for (const itemdata of jsonData) {
626
- const keys = Object.keys(itemdata)
627
- for (const itm of keys) {
628
- const value = itemdata[itm]
629
- result += itm + ':' + value
630
- }
631
- }
632
- }
633
- return result
634
- },
635
- getEmp() {
636
- let val = {source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${this.$login.f.id}`}
637
- let http = new HttpResetClass()
638
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
639
- let str=''
640
- res.data.forEach((item,idx,arr) => {
641
- //tag
642
- if(idx+1==arr.length){
643
- str += item.id
644
- }else{
645
- str += item.id+','
646
- }
647
-
648
- })
649
- let http1 = new HttpResetClass()
650
- http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
651
- data: {
652
- items: 'id,f_user_telephone',
653
- tablename: 't_user',
654
- condition: `id in (${str})`,
655
- orderitem: 'id'
656
- }
657
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
658
-
659
- res.data.forEach((user)=>{
660
- try {
661
- ress.data.forEach((tel,tidx,arr)=>{
662
- //tag
663
- if(user.id==tel.id){
664
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
665
- ress.data.splice(tidx,1)
666
- //tag
667
- throw new Error("跳出循环");
668
- }
669
- })
670
- }catch (e) {
671
- //tag
672
- }
673
- })
674
- })
675
-
676
- })
677
- },
678
- toRepair(){
679
- //tag
680
- this.showModal2=true
681
- },
682
- async rectification(){
683
- this.isbusy =true
684
- // if (this.checkAll){
685
- let data={
686
- f_filialeids: this.model.params.f_filialeids,
687
- f_defect_content: this.model.params.f_defect_content,
688
- condition:this.model.params.condition
689
- }
690
- let res1= await new HttpResetClass().load('post','rs/sql/GetCheckPaperByDefectNew',{data: data })
691
- for (let i = 0; i < res1.data.length; i++) {
692
- let data1={
693
- f_paper_id: res1.data[i].id,
694
- condition:`f_repaire_type != '无隐患'`
695
- }
696
- let res2 = await new HttpResetClass().load('POST' , 'rs/sql/GetDefectByPaperIdNew' , {data: data1 } )
697
- //tag
698
- const uploadData = {
699
- model: {
700
- serviceacitivity: [{
701
- f_service_acitivity_type: '派单'
702
- }],
703
- f_repairitems: {},
704
- failure: '',
705
- f_source: '安检',
706
- f_service_id: '',
707
- f_contact_phone: '',
708
- f_meetunit: '',
709
- f_phone: '',
710
- f_user_name: '',
711
- f_address: '',
712
- f_repair_date: '',
713
- f_reciever: '',
714
- f_remarks: '',
715
- f_user_type: '',
716
- f_area: '',
717
- f_unit_name: '',
718
- f_street: '',
719
- f_residential_area: '',
720
- f_building: '',
721
- f_unit: '',
722
- f_floor: '',
723
- f_room: '',
724
- aState: '',
725
- f_repairtype: '',
726
- f_userinfo_id: '',
727
- f_userinfo_code: '',
728
- f_orgstr: '',
729
- f_outlets: '',
730
- f_attendant: this.$login.f.name
731
- },
732
- loginUser: {
733
- name: this.$login.f.name,
734
- ename: this.$login.f.ename
735
- },
736
- user: {
737
- f_userinfo_id: ''
738
- },
739
- callObj: null
740
- }
741
-
742
- uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
743
- // uploadData.model.f_meetunit = self.$login.f.orgpathnames
744
- // uploadData.model.f_orgstr = self.$login.f.orgpathstr
745
- // uploadData.model.f_outlets = self.$login.f.f_parentname
746
- uploadData.model.f_meetunit = this.$login.f.deps
747
- uploadData.model.f_orgid = this.$login.f.orgid
748
- uploadData.model.f_filiale = this.$login.f.org
749
- uploadData.model.f_outlets = this.$login.f.deps
750
- uploadData.model.f_filiale_id = this.$login.f.orgid
751
- uploadData.toRepair = '一级派单'
752
- let res3 = await new HttpResetClass().load('post','/rs/sql/GetUserForRepaireNew', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
753
- uploadData.model = Object.assign(uploadData.model, res3.data[0])
754
- uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
755
- uploadData.model.f_repair_date = Util.getNowDate()
756
- uploadData.model.f_repairtype = res3.data[0].f_repairtype
757
- uploadData.model.f_remarks = res3.data[0].f_remarks
758
- let failure = []
759
- res2.data.forEach(row => {
760
- if (row.f_repaire_type == '隐患未处理') {
761
- failure.push({
762
- f_failure_type: row.f_item_name,
763
- failurecase: row.f_item_value.split(',')
764
- })
765
- }
766
- })
767
- uploadData.model.failure = failure
768
- // 拼接repairitems
769
- let rows = JSON.parse(JSON.stringify(res2.data))
770
- let repairitems = {
771
- data: []
772
- }
773
- let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
774
- // 取隐患未处理的
775
- rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
776
- //tag)
777
- // 开始拼接
778
- rows.forEach(row => {
779
- let existIndex = -1
780
- // 判断该设备是否已经存在
781
- for (let i = 0; i < repairitems.data.length; i++) {
782
- if (repairitems.data[i].f_type == row.f_device_type) {
783
- existIndex = i
784
- break
785
- }
786
- }
787
- if (existIndex == -1) {
788
- // 不存在则新建
789
- let newItem = {
790
- f_type: row.f_device_type,
791
- details: [{
792
- f_defect_id: row.id,
793
- f_project: `${row.f_item_name}:${row.f_item_value}`,
794
- type: 'selector',
795
- options: safecheckOptions
796
- }]
797
- }
798
- repairitems.data.push(newItem)
799
- } else {
800
- // 存在则追加
801
- repairitems.data[existIndex].details.push({
802
- f_defect_id: row.id,
803
- f_project: `${row.f_item_name}:${row.f_item_value}`,
804
- type: 'selector',
805
- options: safecheckOptions
806
- })
807
- }
808
- })
809
- uploadData.model.f_repairitems = repairitems
810
- uploadData.rows=rows
811
- //tag)
812
- //tag
813
- if (uploadData.model.f_repairitems.data.length>0){
814
- this.callSends.push(uploadData)
815
- }else{
816
- //tag
817
- }
818
- }
819
- //tag)
820
- let timer = setInterval(async ()=>{
821
- this.showModal3=true
822
- this.isbusy=false
823
- if (this.timercount<this.callSends.length){
824
- //tag)
825
- let rows=this.callSends[this.timercount].rows
826
- //tag)
827
- let result = await this.$resetpost('/rs/logic/callerSend', this.callSends[this.timercount])
828
- //tag)
829
- if (result.data.f_service_id) {
830
- const data = {
831
- f_paper_id: rows[0].f_paper_id,
832
- f_service_id: result.data.f_service_id,
833
- itemsId: this.$login.convertToIn(rows.map(row => row.id))
834
- }
835
- //tag
836
- let updateRes = await this.$resetpost('/rs/logic/updateDefectStateNew', data)
837
- }
838
- this.toRepairCount++
839
- //tag
840
- this.timercount++
841
- }else{
842
- clearInterval(timer)
843
- //tag
844
- this.callSends=[]
845
- this.timercount=0
846
- this.showModal3=false
847
- this.cancel1()
848
- this.$showMessage('本次转维修成功'+this.toRepairCount+'单')
849
- this.toRepairCount=0
850
- }
851
- }, 3000)
852
- },
853
- cancel1(){
854
- this.showModal2=false
855
- this.selectData={
856
- dispatchType:'',
857
- f_repairman:'',
858
- f_remarks:'',
859
- f_repairtype:''
860
- }
861
- },
862
- sleep(d){
863
- //tag)
864
- var t = Date.now()
865
- while(Date.now - t <= d){
866
-
867
- }
868
- //tag)
869
- },
870
- isChecked(v) {
871
- // 如果全选,不在的按选中算,否则,在的按选中算
872
- if (this.checkAll) {
873
- return this.checkes.indexOf(v) == -1
874
- } else {
875
- return this.checkes.indexOf(v) != -1
876
- }
877
- },
878
- setCheckAll() {
879
- this.checkAll=this.checkAll?false:true;
880
- // 全选改变后,清空选中数据
881
- this.checkes = []
882
- },
883
- setCheckes(id) {
884
- let index=this.checkes.indexOf(id)
885
- if(index<0){
886
- this.checkes.push(id)
887
- }else{
888
- this.checkes.splice(index,1)
889
- }
890
- },
891
-
892
- getmeterbook(val){
893
- this.cbc=[]
894
- this.cbc.push({
895
- label:'全部',
896
- value:''
897
- })
898
- if (val==''){
899
-
900
- this.cbcs.forEach(res=>{
901
- this.cbc.push({
902
- label:res.f_book_name,
903
- value:res.id
904
- })
905
- })
906
- }else{
907
- this.cbcs.forEach(res=>{
908
- if (res.f_book_slice_area==val){
909
- this.cbc.push({
910
- label:res.f_book_name,
911
- value:res.id
912
- })
913
- }
914
- })
915
- }
916
- },
917
-
918
- Mreadibook(val){
919
- //tag
920
- //tag
921
- this.sliceArea=[]
922
- if (val){
923
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
924
- items: 'name',
925
- tablename: 't_zone',
926
- condition: `parentid in ${val}`,
927
- orderitem: 'id'
928
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
929
- this.sliceArea.push({
930
- label:'全部',
931
- value:''
932
- })
933
- res.data.forEach(ress=>{
934
- this.sliceArea.push({
935
- label:ress.name,
936
- value:ress.name
937
- })
938
- })
939
-
940
- })
941
- }
942
- },
943
- getAllMeterBook(val){
944
- //tag
945
- //tag
946
- this.cbcs=[]
947
- if (val){
948
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
949
- items: 'f_book_name,f_book_slice_area,id',
950
- tablename: 't_meter_book',
951
- condition: `f_filiale_id in ${val}`,
952
- orderitem: 'id'
953
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
954
- res.data.forEach(ress=>{
955
- this.cbcs.push({
956
- id:ress.id,
957
- f_book_name:ress.f_book_name,
958
- f_book_slice_area:ress.f_book_slice_area
959
- })
960
- })
961
- this.cbc=[]
962
- this.cbc.push({
963
- label:'全部',
964
- value:''
965
- })
966
- this.cbcs.forEach(res=>{
967
- this.cbc.push({
968
- label:res.f_book_name,
969
- value:res.id
970
- })
971
- })
972
- })
973
- }
974
- },
975
- hiddenr() {
976
- this.$parent.showItem = !this.$parent.showItem
977
- },
978
- hidden() {
979
- this.criteriaShow = !this.criteriaShow
980
- },
981
- search(args) {
982
- //tag
983
- if (this.f_check_plan.f_plan_name) {
984
- args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
985
- }
986
- if(this.checker_name){
987
- args.condition += ` and f_checker_name in (${this.checker_name}) `
988
- }
989
- args.condition += ` and f_has_defect = '有隐患'`
990
- this.checkes = []
991
- this.checkAll=false
992
- // this.model.search(args.condition, args.model)
993
- if(this.defectLeave){
994
- if(this.defectLeave=='一级隐患'){
995
- args.condition += ` and f_fist_count > 0`
996
- }
997
- if(this.defectLeave=='二级隐患'){
998
- args.condition += ` and f_second_count > 0`
999
- }
1000
- if(this.defectLeave=='三级隐患'){
1001
- args.condition += ` and f_third_count > 0`
1002
- }
1003
- if(this.defectLeave=='一般'){
1004
- args.condition += ` and f_yiban_count > 0`
1005
- }
1006
- if(this.defectLeave=='重大'){
1007
- args.condition += ` and f_zhongda_count > 0`
1008
- }
1009
- }
1010
- if(this.defectType.length>0){
1011
- args.condition += ` and (`
1012
- for(let sqlstr=0;sqlstr<this.defectType.length;sqlstr++){
1013
- //tag
1014
- //tag
1015
- args.condition += ` f_defect_content like '%${this.defectType[sqlstr]}%'`
1016
- if(sqlstr<this.defectType.length-1){
1017
- args.condition +=' or'
1018
- }
1019
- }
1020
- args.condition += ` )`
1021
- }
1022
- if (this.is_black){
1023
-
1024
- }
1025
- this.model.search(args.condition, args.model)
1026
- console.log('zzz',args.condition)
1027
- },
1028
- getRes(obj) {
1029
- //tag
1030
- this.resids = {res:obj.res[0], resids:obj.resids[0]}
1031
- // this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1032
- // this.Mreadibook(this.model.f_filialeids)
1033
- // this.getAllMeterBook(this.model.f_filialeids)
1034
- },
1035
- showChooser() {
1036
- this.showModal = true
1037
- },
1038
- ok() {
1039
- this.showModal = false
1040
- if (this.$refs.modal.$children[0].selectedRow.id) {
1041
- this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1042
- }
1043
- },
1044
- cancel() {
1045
- this.showModal = false
1046
- this.f_check_plan = {f_plan_name: '', id: ''}
1047
- }
1048
- },
1049
- ready() {
1050
- this.getEmp()
1051
- let gen = select(this)
1052
- // this.Mreadibook(`('${this.$login.f.orgid}')`)
1053
- co(gen)
1054
- console.log('000000000000000000')
1055
- },
1056
- watch:{
1057
- 'timercount'(){
1058
- if (this.timercount===0){
1059
- this.progressbarWidth = '0'
1060
- }else {
1061
- //tag
1062
- //tag
1063
- this.progressbarWidth=parseInt(this.timercount*100/(this.callSends.length+1))
1064
- }
1065
-
1066
- }
1067
- },
1068
- computed: {
1069
- selected() {
1070
- return this.$refs.paged.$refs.grid.selected
1071
- },
1072
- getdefectType(){
1073
- this.defectType=[]
1074
- return [... this.$appdata.getParam(this.defectLeave)]
1075
- },
1076
- getfield () {
1077
- //tag
1078
- let data = {}
1079
- this.bodyData.forEach((value, index) => {
1080
- data[this.bodyData[index]] = this.headData[index]
1081
- })
1082
- //合计字段打印
1083
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1084
- if (this.sumsmodel) {
1085
- Object.keys(this.sumsmodel).forEach((key) => {
1086
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1087
- })
1088
- } else {
1089
- this.tfoot += '暂无'
1090
- }
1091
- this.tfoot += '</th></tr>'
1092
- return data
1093
- }
1094
- }
1095
- }
1096
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <work-busy :is-busy="isbusy"></work-busy>
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
+ <div :class="$parent.$parent.style">
9
+ <label class="font_normal_body">安检计划</label>
10
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
+ @click="$parent.$parent.showChooser"
12
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">用户编号</label>
16
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
+ condition="f_userinfo_code = '{}'"
18
+ style="width: 60%" placeholder="用户编号">
19
+ </div>
20
+ <div :class="$parent.$parent.style">
21
+ <label class="font_normal_body">结果查询</label>
22
+ <v-select
23
+ placeholder='维修结果查询'
24
+ :value-single="true"
25
+ class="select select_list" style="width: 60%"
26
+ v-model='model.f_is_repair'
27
+ :value.sync="model.f_is_repair"
28
+ :options='$parent.$parent.repaired'
29
+ condition="f_is_repair = '{}'"
30
+ close-on-select clear-button> </v-select>
31
+ </div>
32
+ <div :class="$parent.$parent.style">
33
+ <label class="font_normal_body">小区名称</label>
34
+ <input type="text" class="input_search" v-model="model.f_residential_area"
35
+ condition="f_residential_area = '{}'"
36
+ style="width: 60%" placeholder="小区名称">
37
+ </div>
38
+ <div class=" col-sm-4 form-group button-range" >
39
+ <div class="span" style="float: right;margin-top: 8px">
40
+ <div style="float: right" class="button_spacing"
41
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
42
+ @click="$parent.$parent.hiddenr()"></div>
43
+ <div style="float: right" class="button_spacing"
44
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
+ @click="$parent.$parent.hidden()"></div>
46
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
47
+ <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>
48
+ <div style="float: right">
49
+ <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
50
+ :field="$parent.$parent.getfield"
51
+ progress="safeGetExportProgress"
52
+ sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检隐患明细' :choose-col="true"></export-excel>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
58
+ <!-- <div :class="$parent.$parent.style">-->
59
+ <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
60
+ <!-- <v-select class="select_list select"-->
61
+ <!-- placeholder='片区/管理站' style="width: 60%"-->
62
+ <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
63
+ <!-- :options='$parent.$parent.sliceArea'-->
64
+ <!-- filer-key="name"-->
65
+ <!-- close-on-select clear-button-->
66
+ <!-- condition="f_slice_area='{}'"-->
67
+ <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
68
+ <!-- :value-single="true">-->
69
+ <!-- </v-select>-->
70
+ <!-- </div>-->
71
+ <div :class="$parent.$parent.style2" style="margin: 0">
72
+ <role-selector-safe-dep
73
+ role-name="安检员"
74
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
75
+ :resobjprop.sync="$parent.$parent.resids"
76
+ @re-res="$parent.$parent.getRes"
77
+ @alluser="$parent.$parent.getchecker"
78
+ :value.sync="model.f_checker_id"
79
+ v-model="model.f_checker_id"
80
+ condition="f_checker_name = '{}'">
81
+ </role-selector-safe-dep>
82
+ </div>
83
+
84
+ <!-- <div :class="$parent.$parent.style">-->
85
+ <!-- <label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
86
+ <!-- <v-select class="select_list select"-->
87
+ <!-- placeholder='抄表册' style="width: 60%"-->
88
+ <!-- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"-->
89
+ <!-- :options='$parent.$parent.cbc'-->
90
+ <!-- filer-key="name"-->
91
+ <!-- close-on-select clear-button-->
92
+ <!-- condition="f_meter_book_num={}"-->
93
+ <!-- :value-single="true">-->
94
+ <!-- </v-select>-->
95
+ <!-- </div>-->
96
+ <div :class="$parent.$parent.style">
97
+ <label class="font_normal_body">起始时间</label>
98
+ <datepicker
99
+ placeholder='起始时间' style="width:60%"
100
+ :disabled-days-of-week="[]"
101
+ :format="'yyyy-MM-dd'"
102
+ :show-rest-button="reset"
103
+ :value.sync="model.f_start_time"
104
+ v-model="model.f_start_time"
105
+ condition="f_offsite_time >= '{} 00:00:00'">
106
+ </datepicker>
107
+ </div>
108
+ <div :class="$parent.$parent.style">
109
+ <label class="font_normal_body">结束时间</label>
110
+ <datepicker
111
+ placeholder='结束时间' style="width:60%"
112
+ :disabled-days-of-week="[]"
113
+ :format="'yyyy-MM-dd'"
114
+ :show-rest-button="reset"
115
+ :value.sync="model.f_end_time"
116
+ v-model="model.f_end_time"
117
+ condition="f_offsite_time <= '{} 23:59:59'">
118
+ </datepicker>
119
+ </div>
120
+
121
+
122
+ </div>
123
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
124
+
125
+ <div :class="$parent.$parent.style">
126
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
127
+ <input type="text" class="input_search" v-model="model.f_repairman"
128
+ condition="f_repairman = '{}'"
129
+ style="width: 60%" placeholder="维修员">
130
+ </div>
131
+ <div :class="$parent.$parent.style">
132
+ <label class="font_normal_body">处理查询</label>
133
+ <v-select
134
+ placeholder='处理结果查询'
135
+ :value-single="true"
136
+ class="select select_list" style="width: 60%"
137
+ v-model='model.f_is_deal'
138
+ :value.sync="model.f_is_deal"
139
+ :options='$parent.$parent.deals'
140
+ condition="f_is_deal = '{}'"
141
+ close-on-select clear-button> </v-select>
142
+ </div>
143
+ <div :class="$parent.$parent.style">
144
+ <label class="font_normal_body">是否维修</label>
145
+ <v-select
146
+ placeholder='是否维修'
147
+ :value-single="true"
148
+ class="select select_list" style="width: 60%"
149
+ v-model='model.f_repaired'
150
+ :value.sync="model.f_repaired"
151
+ :options='$parent.$parent.repairedOptions'
152
+ condition="f_repaired = '{}'"
153
+ close-on-select clear-button> </v-select>
154
+ </div>
155
+
156
+ <div :class="$parent.$parent.style">
157
+ <label class="font_normal_body">隐患级别</label>
158
+ <v-select style="width:60% "
159
+ class="select select_list"
160
+ :value.sync="$parent.$parent.defectLeave"
161
+ v-model="$parent.$parent.defectLeave"
162
+ :options='$parent.$parent.defectLeaveList'
163
+ placeholder='隐患级别'
164
+ close-on-select clear-button>
165
+ </v-select>
166
+ </div>
167
+ <div :class="$parent.$parent.style">
168
+ <label class="font_normal_body">隐患类型</label>
169
+ <v-select style="width:60% "
170
+ class="select select_list"
171
+ :value.sync="$parent.$parent.defectType"
172
+ v-model="$parent.$parent.defectType"
173
+ :options='$parent.$parent.getdefectType'
174
+ placeholder='隐患类型'
175
+ :multiple="true">
176
+ </v-select>
177
+ </div>
178
+ <div :class="$parent.$parent.style">
179
+ <label class="font_normal_body">是否限购</label>
180
+ <v-select style="width:60% "
181
+ class="select select_list"
182
+ :options='$parent.$parent.isOrNo'
183
+ v-model='model.f_is_black'
184
+ :value.sync="model.f_is_black"
185
+ placeholder='是否限购'
186
+ condition="f_is_black = '{}'"
187
+ :multiple="false">
188
+ </v-select>
189
+ </div>
190
+ </div>
191
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
192
+ <div :class="$parent.$parent.style">
193
+ <label class="font_normal_body">安检计划</label>
194
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
195
+ @click="$parent.$parent.showChooser"
196
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
197
+ </div>
198
+
199
+ <div class=" col-sm-4 form-group button-range">
200
+ <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
201
+ <div style="float: right" class="button_spacing"
202
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
203
+ @click="$parent.$parent.hiddenr()"></div>
204
+ <div style="float: right" class="button_spacing"
205
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
206
+ @click="$parent.$parent.hidden()"></div>
207
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
208
+ <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>
209
+ <div style="float: right">
210
+ <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
211
+ :field="$parent.$parent.getfield"
212
+ progress="safeGetExportProgress"
213
+ sqlurl="rs/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检计划明细' :choose-col="true"></export-excel>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+
219
+
220
+ </div>
221
+ <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
222
+ <div :class="$parent.$parent.style">
223
+ <label class="font_normal_body">用户编号</label>
224
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
225
+ condition="f_userinfo_code = '{}'"
226
+ style="width: 60%" placeholder="用户编号">
227
+ </div>
228
+ <div :class="$parent.$parent.style">
229
+ <label class="font_normal_body">结果查询</label>
230
+ <v-select
231
+ placeholder='处理结果查询'
232
+ :value-single="true"
233
+ class="select select_list" style="width: 60%"
234
+ v-model='model.f_repaired'
235
+ :value.sync="model.f_repaired"
236
+ :options='$parent.$parent.repaired'
237
+ condition="f_repaired = '{}'"
238
+ close-on-select clear-button> </v-select>
239
+ </div>
240
+ <div :class="$parent.$parent.style">
241
+ <label class="font_normal_body">小区名称</label>
242
+ <input type="text" class="input_search" v-model="model.f_residential_area"
243
+ condition="f_residential_area = '{}'"
244
+ style="width: 60%" placeholder="小区名称">
245
+ </div>
246
+
247
+ <div :class="$parent.$parent.style2" style="margin: 0">
248
+ <role-selector-safe-dep
249
+ role-name="安检员"
250
+ :resobjprop.sync="$parent.$parent.resids"
251
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
252
+ @re-res="$parent.$parent.getRes"
253
+ @alluser="$parent.$parent.getchecker"
254
+ :value.sync="model.f_checker_id"
255
+ v-model="model.f_checker_id"
256
+ condition="f_checker_name = '{}'">
257
+ </role-selector-safe-dep>
258
+ </div>
259
+ <div :class="$parent.$parent.style">
260
+ <label class="font_normal_body">起始时间</label>
261
+ <datepicker
262
+ placeholder='起始时间' style="width:60%"
263
+ :disabled-days-of-week="[]"
264
+ :format="'yyyy-MM-dd'"
265
+ :show-rest-button="reset"
266
+ :value.sync="model.f_start_time"
267
+ v-model="model.f_start_time"
268
+ condition="f_offsite_time >= '{} 00:00:00'">
269
+ </datepicker>
270
+ </div>
271
+ <div :class="$parent.$parent.style">
272
+ <label class="font_normal_body">结束时间</label>
273
+ <datepicker
274
+ placeholder='结束时间' style="width:60%"
275
+ :disabled-days-of-week="[]"
276
+ :format="'yyyy-MM-dd'"
277
+ :show-rest-button="reset"
278
+ :value.sync="model.f_end_time"
279
+ v-model="model.f_end_time"
280
+ condition="f_offsite_time <= '{} 23:59:59'">
281
+ </datepicker>
282
+ </div>
283
+ </div>
284
+ <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
285
+ <!-- <div :class="$parent.$parent.style">-->
286
+ <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
287
+ <!-- <v-select class="select_list select"-->
288
+ <!-- placeholder='片区/管理站' style="width: 60%"-->
289
+ <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
290
+ <!-- :options='$parent.$parent.sliceArea'-->
291
+ <!-- filer-key="name"-->
292
+ <!-- close-on-select clear-button-->
293
+ <!-- condition="f_slice_area='{}'"-->
294
+ <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
295
+ <!-- :value-single="true">-->
296
+ <!-- </v-select>-->
297
+ <!-- </div>-->
298
+ <!-- <div :class="$parent.$parent.style">-->
299
+ <!-- <label class="font_normal_body">抄&ensp;表&ensp;册</label>-->
300
+ <!-- <v-select class="select_list select"-->
301
+ <!-- placeholder='抄表册' style="width: 60%"-->
302
+ <!-- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"-->
303
+ <!-- :options='$parent.$parent.cbc'-->
304
+ <!-- filer-key="name"-->
305
+ <!-- close-on-select clear-button-->
306
+ <!-- condition="f_meter_book_num={}"-->
307
+ <!-- :value-single="true">-->
308
+ <!-- </v-select>-->
309
+ <!-- </div>-->
310
+ <div :class="$parent.$parent.style">
311
+ <label class="font_normal_body">是否维修</label>
312
+ <v-select
313
+ placeholder='是否维修'
314
+ :value-single="true"
315
+ class="select select_list" style="width: 60%"
316
+ v-model='model.f_repaired'
317
+ :value.sync="model.f_repaired"
318
+ :options='$parent.$parent.repairedOptions'
319
+ condition="f_repaired = '{}'"
320
+ close-on-select clear-button> </v-select>
321
+ </div>
322
+
323
+ <div :class="$parent.$parent.style">
324
+ <label class="font_normal_body">隐患级别</label>
325
+ <v-select style="width:60% "
326
+ class="select select_list"
327
+ :value.sync="$parent.$parent.defectLeave"
328
+ v-model="$parent.$parent.defectLeave"
329
+ :options='$parent.$parent.defectLeaveList'
330
+ placeholder='隐患级别'
331
+ close-on-select clear-button>
332
+ </v-select>
333
+ </div>
334
+ <div :class="$parent.$parent.style">
335
+ <label class="font_normal_body">隐患类型</label>
336
+ <v-select style="width:60% "
337
+ class="select select_list"
338
+ :value.sync="$parent.$parent.defectType"
339
+ v-model="$parent.$parent.defectType"
340
+ :options='$parent.$parent.getdefectType'
341
+ placeholder='隐患类型'
342
+ :multiple="true">
343
+ </v-select>
344
+ </div>
345
+ <div :class="$parent.$parent.style">
346
+ <label class="font_normal_body">是否限购</label>
347
+ <v-select style="width:60% "
348
+ class="select select_list"
349
+ :options='$parent.$parent.isOrNo'
350
+ v-model='model.f_is_black'
351
+ :value.sync="model.f_is_black"
352
+ placeholder='是否限购'
353
+ condition="f_is_black = '{}'"
354
+ :multiple="false">
355
+ </v-select>
356
+ </div>
357
+ <div :class="$parent.$parent.style">
358
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
359
+ <input type="text" class="input_search" v-model="model.f_repairman"
360
+ condition="f_repairman = '{}'"
361
+ style="width: 60%" placeholder="维修员">
362
+ </div>
363
+ <div :class="$parent.$parent.style">
364
+ <label class="font_normal_body">处理查询</label>
365
+ <v-select
366
+ placeholder='处理结果查询'
367
+ :value-single="true"
368
+ class="select select_list" style="width: 60%"
369
+ v-model='model.f_is_deal'
370
+ :value.sync="model.f_is_deal"
371
+ :options='$parent.$parent.deals'
372
+ condition="f_is_deal = '{}'"
373
+ close-on-select clear-button> </v-select>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </criteria>
378
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
379
+ <template partial='head'>
380
+ <tr>
381
+ <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
382
+ <th><nobr>入户状态</nobr></th>
383
+ <th><nobr>用户编号</nobr></th>
384
+ <th><nobr>用户名</nobr></th>
385
+ <th><nobr>用户电话</nobr></th>
386
+ <th><nobr>用户小区</nobr></th>
387
+ <th><nobr>用户地址</nobr></th>
388
+ <th><nobr>安检时间</nobr></th>
389
+ <th><nobr>安检员</nobr></th>
390
+ <th><nobr>计划名</nobr></th>
391
+ <th><nobr>隐患数</nobr></th>
392
+ <th><nobr>处理数</nobr></th>
393
+ <th><nobr>完成数</nobr></th>
394
+ <th><nobr>处理情况</nobr></th>
395
+ <th><nobr>完成情况</nobr></th>
396
+ <th><nobr>维修情况</nobr></th>
397
+ <th><nobr>维修员</nobr></th>
398
+ <th><nobr>限购状态</nobr></th>
399
+ <th><nobr>隐患明细</nobr></th>
400
+ </tr>
401
+ </template>
402
+ <template partial='body'>
403
+ <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
404
+ <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
405
+ <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
406
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
407
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
408
+ <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
409
+ <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
410
+ <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
411
+ <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
412
+ <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
413
+ <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
414
+ <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>
415
+ <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
416
+ <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>
417
+ <td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
418
+ <td style="text-align: center;white-space:nowrap;">{{row.f_repaired}}</td>
419
+ <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
420
+ <td style="text-align: center;white-space:nowrap;">{{row.f_is_black}}</td>
421
+ <td style="text-align: center;white-space:nowrap;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</td>
422
+ </template>
423
+ </data-grid>
424
+ </criteria-paged>
425
+
426
+ <modal :show.sync="showModal" v-ref:modal>
427
+ <div slot="modal-header" class="modal-header">
428
+ <h4 class="modal-title">
429
+ 选择计划
430
+ </h4>
431
+ </div>
432
+ <div slot="modal-body" class="modal-body">
433
+ <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
434
+ </div>
435
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
436
+ <button class="button_search" @click="ok">确认</button>
437
+ <button class="button_search" @click="cancel">取消</button>
438
+ </div>
439
+ </modal>
440
+ <modal :show.sync="showModal2" :backdrop="false">
441
+ <div slot="modal-header" class="modal-header">
442
+ <h4 class="modal-title">
443
+ 转维修
444
+ </h4>
445
+ </div>
446
+ <div slot="modal-body" class="modal-body">
447
+ <div v-if="true">
448
+ <div class="row" style="margin-top: 10px">
449
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
450
+ <div class="col-xs-8 col-md-8">
451
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
452
+ :options='dispatchTypeOptions' placeholder='派发类型'
453
+ close-on-select>
454
+ </v-select>
455
+ </div>
456
+ </div>
457
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
458
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
459
+ <div class="col-xs-8 col-md-8">
460
+ <v-select
461
+ :value.sync="selectData.f_repairman"
462
+ :value-single="true"
463
+ :options='repairers'
464
+ placeholder='请选择维修员'
465
+ close-on-select></v-select>
466
+ </div>
467
+ </div>
468
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
469
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
470
+ <div class="col-xs-8 col-md-8">
471
+ <right-tree
472
+ islist
473
+ :userid="userid"
474
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
475
+ @re-res="getSiteRes"></right-tree>
476
+ </div>
477
+ </div>
478
+ <div class="row" style="margin-top: 10px">
479
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
480
+ <div class="col-xs-8 col-md-8">
481
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
482
+ class="select select_list"
483
+ :value-single="true"
484
+ :options='repairTypeOptions'
485
+ close-on-select>
486
+ </v-select>
487
+ </div>
488
+ </div>
489
+ <div class="row" style="margin-top: 10px">
490
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
491
+ <div class="col-xs-8 col-md-8">
492
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
493
+ </div>
494
+ </div>
495
+ </div>
496
+ </div>
497
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
498
+ <button class="button_search" @click="rectification">转维修</button>
499
+ <button class="button_search" @click="cancel1">取消</button>
500
+ </div>
501
+ </modal>
502
+ <modal :show.sync="showModal3">
503
+ <div slot="modal-header" class="modal-header">
504
+ <h4 class="modal-title">
505
+ 转维修进度{{ progressbarWidth }}%
506
+ </h4>
507
+ </div>
508
+ <div slot="modal-body" class="modal-body">
509
+ <div class="progress">
510
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
511
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
512
+ <!-- <span class="sr-only">40% 完成</span>-->
513
+ </div>
514
+ </div>
515
+ </div>
516
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
517
+ </modal>
518
+ </div>
519
+ </template>
520
+ <script>
521
+ import {PagedList} from 'vue-client'
522
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
523
+ import co from 'co'
524
+ import Vue from 'vue'
525
+ import * as Util from "../../../components/Util";
526
+
527
+ let select = function* (self) {
528
+ let http = new HttpResetClass()
529
+ let getGasman = yield http.load('POST', '/rs/search', {
530
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
531
+ userid: self.$login.f.id
532
+ }, {resolveMsg: null, rejectMsg: null})
533
+ //tag
534
+ self.checkersid.push({label: '全部', value: ''})
535
+ getGasman.data.forEach((checker) => {
536
+ self.checkersid.push({label: checker.name, value: checker.name})
537
+ })
538
+ }
539
+ export default {
540
+ title: '隐患查询',
541
+ data() {
542
+ let model = new PagedList('rs/sql/GetCheckPaperByDefectNew', 20, {
543
+ f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
544
+ })
545
+ model.f_filialeids = '(' + this.$login.f.orgid + ')'
546
+ model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
547
+ return {
548
+ checker_name:'',
549
+ defectType:[],
550
+ defectLeave:'',
551
+ is_black:'',
552
+ defectLeaveList:[{label:'全部',value:''},{label:'重大',value:'重大'},{label:'一般',value:'一般'}],
553
+ isOrNo:[{label:'全部',value:''},{label:'是',value:'是'},{label:'否',value:'否'}],
554
+ repaired:[{label: '全部', value: ''},{label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
555
+ deals:[{label: '全部', value: ''},{label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'}],
556
+ f: this.$login.f,
557
+ model: model,
558
+ criteriaShow: false,
559
+ checkAll:false,
560
+ timercount:0,
561
+ showModal2:false,
562
+ repairTypeOptions:this.$appdata.getParam('报修类型'),
563
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
564
+ checkes:[],
565
+ showModal: false,
566
+ f_check_plan: {f_plan_name: '', id: ''},
567
+ sumsmodel: {},
568
+ resids:{},
569
+ all: false,
570
+ fields: {},
571
+
572
+ selectData:{
573
+ dispatchType:'',
574
+ f_repairman:'',
575
+ f_remarks:'',
576
+ f_repairtype:''
577
+ },
578
+ progressbarWidth:'0',
579
+ modelval: [],
580
+ isbusy:false,
581
+ checkersid: [],
582
+ showModal3:false,
583
+ toRepairCount:0,
584
+ sliceArea: [],
585
+ callSends:[],
586
+ cbc:[],
587
+ repairedOptions:[{label: '全部', value: ''},{label: '已修', value: '已修'}, {label: '未修', value: '未修'},{label: '已转维修', value: '已转维修'}],
588
+ repairers:[],
589
+ cbcs:[],
590
+ thead: '',
591
+ headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','隐患数','隐患明细'],
592
+ bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_defect_count','defecttext'],
593
+ }
594
+ },
595
+ props:{
596
+ style: {
597
+ type: String,
598
+ default: 'col-sm-2 form-group'
599
+ },
600
+ style2: {
601
+ type: String,
602
+ default: 'col-sm-4 form-group'
603
+ }
604
+
605
+ },
606
+
607
+ methods: {
608
+ getchecker(val){
609
+ this.$refs.paged.$refs.criteria.model.f_checker_id = ''
610
+ if(val && val.length > 0){
611
+ this.checker_name = ''
612
+ val.forEach(user => {
613
+ this.checker_name += `'${user.name}',`
614
+ })
615
+ this.checker_name = this.checker_name.slice(0,this.checker_name.length-1)
616
+ }else{
617
+ this.checker_name = ''
618
+ }
619
+ },
620
+ trouble(val) {
621
+ const defect_content = JSON.parse(val)
622
+ let result = ''
623
+ if (defect_content.data) {
624
+ const jsonData = defect_content.data
625
+ for (const itemdata of jsonData) {
626
+ const keys = Object.keys(itemdata)
627
+ for (const itm of keys) {
628
+ const value = itemdata[itm]
629
+ result += itm + ':' + value
630
+ }
631
+ }
632
+ }
633
+ return result
634
+ },
635
+ getEmp() {
636
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${this.$login.f.id}`}
637
+ let http = new HttpResetClass()
638
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
639
+ let str=''
640
+ res.data.forEach((item,idx,arr) => {
641
+ //tag
642
+ if(idx+1==arr.length){
643
+ str += item.id
644
+ }else{
645
+ str += item.id+','
646
+ }
647
+
648
+ })
649
+ let http1 = new HttpResetClass()
650
+ http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
651
+ data: {
652
+ items: 'id,f_user_telephone',
653
+ tablename: 't_user',
654
+ condition: `id in (${str})`,
655
+ orderitem: 'id'
656
+ }
657
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
658
+
659
+ res.data.forEach((user)=>{
660
+ try {
661
+ ress.data.forEach((tel,tidx,arr)=>{
662
+ //tag
663
+ if(user.id==tel.id){
664
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
665
+ ress.data.splice(tidx,1)
666
+ //tag
667
+ throw new Error("跳出循环");
668
+ }
669
+ })
670
+ }catch (e) {
671
+ //tag
672
+ }
673
+ })
674
+ })
675
+
676
+ })
677
+ },
678
+ toRepair(){
679
+ //tag
680
+ this.showModal2=true
681
+ },
682
+ async rectification(){
683
+ this.isbusy =true
684
+ // if (this.checkAll){
685
+ let data={
686
+ f_filialeids: this.model.params.f_filialeids,
687
+ f_defect_content: this.model.params.f_defect_content,
688
+ condition:this.model.params.condition
689
+ }
690
+ let res1= await new HttpResetClass().load('post','rs/sql/GetCheckPaperByDefectNew',{data: data })
691
+ for (let i = 0; i < res1.data.length; i++) {
692
+ let data1={
693
+ f_paper_id: res1.data[i].id,
694
+ condition:`f_repaire_type != '无隐患'`
695
+ }
696
+ let res2 = await new HttpResetClass().load('POST' , 'rs/sql/GetDefectByPaperIdNew' , {data: data1 } )
697
+ //tag
698
+ const uploadData = {
699
+ model: {
700
+ serviceacitivity: [{
701
+ f_service_acitivity_type: '派单'
702
+ }],
703
+ f_repairitems: {},
704
+ failure: '',
705
+ f_source: '安检',
706
+ f_service_id: '',
707
+ f_contact_phone: '',
708
+ f_meetunit: '',
709
+ f_phone: '',
710
+ f_user_name: '',
711
+ f_address: '',
712
+ f_repair_date: '',
713
+ f_reciever: '',
714
+ f_remarks: '',
715
+ f_user_type: '',
716
+ f_area: '',
717
+ f_unit_name: '',
718
+ f_street: '',
719
+ f_residential_area: '',
720
+ f_building: '',
721
+ f_unit: '',
722
+ f_floor: '',
723
+ f_room: '',
724
+ aState: '',
725
+ f_repairtype: '',
726
+ f_userinfo_id: '',
727
+ f_userinfo_code: '',
728
+ f_orgstr: '',
729
+ f_outlets: '',
730
+ f_attendant: this.$login.f.name
731
+ },
732
+ loginUser: {
733
+ name: this.$login.f.name,
734
+ ename: this.$login.f.ename
735
+ },
736
+ user: {
737
+ f_userinfo_id: ''
738
+ },
739
+ callObj: null
740
+ }
741
+
742
+ uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
743
+ // uploadData.model.f_meetunit = self.$login.f.orgpathnames
744
+ // uploadData.model.f_orgstr = self.$login.f.orgpathstr
745
+ // uploadData.model.f_outlets = self.$login.f.f_parentname
746
+ uploadData.model.f_meetunit = this.$login.f.deps
747
+ uploadData.model.f_orgid = this.$login.f.orgid
748
+ uploadData.model.f_filiale = this.$login.f.org
749
+ uploadData.model.f_outlets = this.$login.f.deps
750
+ uploadData.model.f_filiale_id = this.$login.f.orgid
751
+ uploadData.toRepair = '一级派单'
752
+ let res3 = await new HttpResetClass().load('post','/rs/sql/GetUserForRepaireNew', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
753
+ uploadData.model = Object.assign(uploadData.model, res3.data[0])
754
+ uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
755
+ uploadData.model.f_repair_date = Util.getNowDate()
756
+ uploadData.model.f_repairtype = res3.data[0].f_repairtype
757
+ uploadData.model.f_remarks = res3.data[0].f_remarks
758
+ let failure = []
759
+ res2.data.forEach(row => {
760
+ if (row.f_repaire_type == '隐患未处理') {
761
+ failure.push({
762
+ f_failure_type: row.f_item_name,
763
+ failurecase: row.f_item_value.split(',')
764
+ })
765
+ }
766
+ })
767
+ uploadData.model.failure = failure
768
+ // 拼接repairitems
769
+ let rows = JSON.parse(JSON.stringify(res2.data))
770
+ let repairitems = {
771
+ data: []
772
+ }
773
+ let safecheckOptions = [{"data": "已处理"}, {"data": "未处理"}]
774
+ // 取隐患未处理的
775
+ rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
776
+ //tag)
777
+ // 开始拼接
778
+ rows.forEach(row => {
779
+ let existIndex = -1
780
+ // 判断该设备是否已经存在
781
+ for (let i = 0; i < repairitems.data.length; i++) {
782
+ if (repairitems.data[i].f_type == row.f_device_type) {
783
+ existIndex = i
784
+ break
785
+ }
786
+ }
787
+ if (existIndex == -1) {
788
+ // 不存在则新建
789
+ let newItem = {
790
+ f_type: row.f_device_type,
791
+ details: [{
792
+ f_defect_id: row.id,
793
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
794
+ type: 'selector',
795
+ options: safecheckOptions
796
+ }]
797
+ }
798
+ repairitems.data.push(newItem)
799
+ } else {
800
+ // 存在则追加
801
+ repairitems.data[existIndex].details.push({
802
+ f_defect_id: row.id,
803
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
804
+ type: 'selector',
805
+ options: safecheckOptions
806
+ })
807
+ }
808
+ })
809
+ uploadData.model.f_repairitems = repairitems
810
+ uploadData.rows=rows
811
+ //tag)
812
+ //tag
813
+ if (uploadData.model.f_repairitems.data.length>0){
814
+ this.callSends.push(uploadData)
815
+ }else{
816
+ //tag
817
+ }
818
+ }
819
+ //tag)
820
+ let timer = setInterval(async ()=>{
821
+ this.showModal3=true
822
+ this.isbusy=false
823
+ if (this.timercount<this.callSends.length){
824
+ //tag)
825
+ let rows=this.callSends[this.timercount].rows
826
+ //tag)
827
+ let result = await this.$resetpost('/rs/logic/callerSend', this.callSends[this.timercount])
828
+ //tag)
829
+ if (result.data.f_service_id) {
830
+ const data = {
831
+ f_paper_id: rows[0].f_paper_id,
832
+ f_service_id: result.data.f_service_id,
833
+ itemsId: this.$login.convertToIn(rows.map(row => row.id))
834
+ }
835
+ //tag
836
+ let updateRes = await this.$resetpost('/rs/logic/updateDefectStateNew', data)
837
+ }
838
+ this.toRepairCount++
839
+ //tag
840
+ this.timercount++
841
+ }else{
842
+ clearInterval(timer)
843
+ //tag
844
+ this.callSends=[]
845
+ this.timercount=0
846
+ this.showModal3=false
847
+ this.cancel1()
848
+ this.$showMessage('本次转维修成功'+this.toRepairCount+'单')
849
+ this.toRepairCount=0
850
+ }
851
+ }, 3000)
852
+ },
853
+ cancel1(){
854
+ this.showModal2=false
855
+ this.selectData={
856
+ dispatchType:'',
857
+ f_repairman:'',
858
+ f_remarks:'',
859
+ f_repairtype:''
860
+ }
861
+ },
862
+ sleep(d){
863
+ //tag)
864
+ var t = Date.now()
865
+ while(Date.now - t <= d){
866
+
867
+ }
868
+ //tag)
869
+ },
870
+ isChecked(v) {
871
+ // 如果全选,不在的按选中算,否则,在的按选中算
872
+ if (this.checkAll) {
873
+ return this.checkes.indexOf(v) == -1
874
+ } else {
875
+ return this.checkes.indexOf(v) != -1
876
+ }
877
+ },
878
+ setCheckAll() {
879
+ this.checkAll=this.checkAll?false:true;
880
+ // 全选改变后,清空选中数据
881
+ this.checkes = []
882
+ },
883
+ setCheckes(id) {
884
+ let index=this.checkes.indexOf(id)
885
+ if(index<0){
886
+ this.checkes.push(id)
887
+ }else{
888
+ this.checkes.splice(index,1)
889
+ }
890
+ },
891
+
892
+ getmeterbook(val){
893
+ this.cbc=[]
894
+ this.cbc.push({
895
+ label:'全部',
896
+ value:''
897
+ })
898
+ if (val==''){
899
+
900
+ this.cbcs.forEach(res=>{
901
+ this.cbc.push({
902
+ label:res.f_book_name,
903
+ value:res.id
904
+ })
905
+ })
906
+ }else{
907
+ this.cbcs.forEach(res=>{
908
+ if (res.f_book_slice_area==val){
909
+ this.cbc.push({
910
+ label:res.f_book_name,
911
+ value:res.id
912
+ })
913
+ }
914
+ })
915
+ }
916
+ },
917
+
918
+ Mreadibook(val){
919
+ //tag
920
+ //tag
921
+ this.sliceArea=[]
922
+ if (val){
923
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
924
+ items: 'name',
925
+ tablename: 't_zone',
926
+ condition: `parentid in ${val}`,
927
+ orderitem: 'id'
928
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
929
+ this.sliceArea.push({
930
+ label:'全部',
931
+ value:''
932
+ })
933
+ res.data.forEach(ress=>{
934
+ this.sliceArea.push({
935
+ label:ress.name,
936
+ value:ress.name
937
+ })
938
+ })
939
+
940
+ })
941
+ }
942
+ },
943
+ getAllMeterBook(val){
944
+ //tag
945
+ //tag
946
+ this.cbcs=[]
947
+ if (val){
948
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
949
+ items: 'f_book_name,f_book_slice_area,id',
950
+ tablename: 't_meter_book',
951
+ condition: `f_filiale_id in ${val}`,
952
+ orderitem: 'id'
953
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
954
+ res.data.forEach(ress=>{
955
+ this.cbcs.push({
956
+ id:ress.id,
957
+ f_book_name:ress.f_book_name,
958
+ f_book_slice_area:ress.f_book_slice_area
959
+ })
960
+ })
961
+ this.cbc=[]
962
+ this.cbc.push({
963
+ label:'全部',
964
+ value:''
965
+ })
966
+ this.cbcs.forEach(res=>{
967
+ this.cbc.push({
968
+ label:res.f_book_name,
969
+ value:res.id
970
+ })
971
+ })
972
+ })
973
+ }
974
+ },
975
+ hiddenr() {
976
+ this.$parent.showItem = !this.$parent.showItem
977
+ },
978
+ hidden() {
979
+ this.criteriaShow = !this.criteriaShow
980
+ },
981
+ search(args) {
982
+ //tag
983
+ if (this.f_check_plan.f_plan_name) {
984
+ args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
985
+ }
986
+ if(this.checker_name){
987
+ args.condition += ` and f_checker_name in (${this.checker_name}) `
988
+ }
989
+ args.condition += ` and f_has_defect = '有隐患'`
990
+ this.checkes = []
991
+ this.checkAll=false
992
+ // this.model.search(args.condition, args.model)
993
+ if(this.defectLeave){
994
+ if(this.defectLeave=='一级隐患'){
995
+ args.condition += ` and f_fist_count > 0`
996
+ }
997
+ if(this.defectLeave=='二级隐患'){
998
+ args.condition += ` and f_second_count > 0`
999
+ }
1000
+ if(this.defectLeave=='三级隐患'){
1001
+ args.condition += ` and f_third_count > 0`
1002
+ }
1003
+ if(this.defectLeave=='一般'){
1004
+ args.condition += ` and f_yiban_count > 0`
1005
+ }
1006
+ if(this.defectLeave=='重大'){
1007
+ args.condition += ` and f_zhongda_count > 0`
1008
+ }
1009
+ }
1010
+ if(this.defectType.length>0){
1011
+ args.condition += ` and (`
1012
+ for(let sqlstr=0;sqlstr<this.defectType.length;sqlstr++){
1013
+ //tag
1014
+ //tag
1015
+ args.condition += ` f_defect_content like '%${this.defectType[sqlstr]}%'`
1016
+ if(sqlstr<this.defectType.length-1){
1017
+ args.condition +=' or'
1018
+ }
1019
+ }
1020
+ args.condition += ` )`
1021
+ }
1022
+ if (this.is_black){
1023
+
1024
+ }
1025
+ this.model.search(args.condition, args.model)
1026
+ console.log('zzz',args.condition)
1027
+ },
1028
+ getRes(obj) {
1029
+ //tag
1030
+ this.resids = {res:obj.res[0], resids:obj.resids[0]}
1031
+ // this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1032
+ // this.Mreadibook(this.model.f_filialeids)
1033
+ // this.getAllMeterBook(this.model.f_filialeids)
1034
+ },
1035
+ showChooser() {
1036
+ this.showModal = true
1037
+ },
1038
+ ok() {
1039
+ this.showModal = false
1040
+ if (this.$refs.modal.$children[0].selectedRow.id) {
1041
+ this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1042
+ }
1043
+ },
1044
+ cancel() {
1045
+ this.showModal = false
1046
+ this.f_check_plan = {f_plan_name: '', id: ''}
1047
+ }
1048
+ },
1049
+ ready() {
1050
+ this.getEmp()
1051
+ let gen = select(this)
1052
+ // this.Mreadibook(`('${this.$login.f.orgid}')`)
1053
+ co(gen)
1054
+ console.log('000000000000000000')
1055
+ },
1056
+ watch:{
1057
+ 'timercount'(){
1058
+ if (this.timercount===0){
1059
+ this.progressbarWidth = '0'
1060
+ }else {
1061
+ //tag
1062
+ //tag
1063
+ this.progressbarWidth=parseInt(this.timercount*100/(this.callSends.length+1))
1064
+ }
1065
+
1066
+ }
1067
+ },
1068
+ computed: {
1069
+ selected() {
1070
+ return this.$refs.paged.$refs.grid.selected
1071
+ },
1072
+ getdefectType(){
1073
+ this.defectType=[]
1074
+ return [... this.$appdata.getParam(this.defectLeave)]
1075
+ },
1076
+ getfield () {
1077
+ //tag
1078
+ let data = {}
1079
+ this.bodyData.forEach((value, index) => {
1080
+ data[this.bodyData[index]] = this.headData[index]
1081
+ })
1082
+ //合计字段打印
1083
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1084
+ if (this.sumsmodel) {
1085
+ Object.keys(this.sumsmodel).forEach((key) => {
1086
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1087
+ })
1088
+ } else {
1089
+ this.tfoot += '暂无'
1090
+ }
1091
+ this.tfoot += '</th></tr>'
1092
+ return data
1093
+ }
1094
+ }
1095
+ }
1096
+ </script>