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