safecheck-client 3.0.39-1 → 3.0.39-2

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