safecheck-client 3.0.33-66 → 3.0.33-68
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/App.vue +33 -31
- package/src/components/android/SafecheckOrderV.vue +2803 -2803
- package/src/filiale/fugou/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/fugou/android.js +11 -10
- package/src/filiale/fugou/pc/DefectMainNew.vue +63 -63
- package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -1081
- package/src/filiale/fugou/pc/PaperDefectMain.vue +920 -922
- package/src/filiale/fugou/pc/PaperList.vue +903 -903
- package/src/filiale/fugou/pc/PlanManage.vue +1061 -1061
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +271 -271
- package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +137 -137
- package/src/filiale/yongzhou/pc/safeDetail.vue +474 -474
- package/src/filiale/yongzhou/pc/safeStatistics.vue +153 -153
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
- package/src/filiale/yongzhou/pc/safeTable.vue +136 -136
- package/src/filiale/yongzhou/pc.js +32 -32
- package/src/main.js +1 -2
@@ -1,474 +1,474 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row">
|
3
|
-
<div class="basic-main">
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
5
|
-
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
-
<div partial>
|
7
|
-
<div class="row">
|
8
|
-
<div class="form-group col-sm-4">
|
9
|
-
<label class="font_normal_body">计划创建开始日期:</label>
|
10
|
-
<datepicker
|
11
|
-
placeholder='计划创建开始日期'
|
12
|
-
style="width:60%"
|
13
|
-
:disabled-days-of-week="[]"
|
14
|
-
:format="'yyyy-MM-dd'"
|
15
|
-
:show-rest-button="reset"
|
16
|
-
:value.sync="model.start_time"
|
17
|
-
v-model="model.start_time"
|
18
|
-
condition="tcp.f_create_time >= '{} 00:00:00'">
|
19
|
-
</datepicker>
|
20
|
-
</div>
|
21
|
-
<div class="form-group col-sm-4">
|
22
|
-
<label class="font_normal_body">计划创建结束日期:</label>
|
23
|
-
<datepicker
|
24
|
-
placeholder='计划创建结束日期'
|
25
|
-
:disabled-days-of-week="[]"
|
26
|
-
style="width:60%"
|
27
|
-
:format="'yyyy-MM-dd'"
|
28
|
-
:show-rest-button="reset"
|
29
|
-
:value.sync="model.end_time"
|
30
|
-
v-model="model.end_time"
|
31
|
-
condition="tcp.f_create_time <= '{} 23:59:59'">
|
32
|
-
</datepicker>
|
33
|
-
</div>
|
34
|
-
<div class="col-sm-4 form-group">
|
35
|
-
<label class="font_normal_body">小区名称:</label>
|
36
|
-
<input style="width: 60%" class="input_search" v-model="model.f_residential_area"
|
37
|
-
placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
|
38
|
-
</div>
|
39
|
-
<div class="form-group col-sm-4">
|
40
|
-
<label class="font_normal_body">用户类型</label>
|
41
|
-
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
42
|
-
:value-single="true" style="width: 60%"
|
43
|
-
class="select_list select"
|
44
|
-
:options='$parent.$parent.user_types' placeholder='用户类型'
|
45
|
-
close-on-select
|
46
|
-
condition="tcpi.f_user_type = '{}'"></v-select>
|
47
|
-
</div>
|
48
|
-
<div class="col-sm-4 form-group" style="margin: 0">
|
49
|
-
<role-selector-safe
|
50
|
-
role-name="安检员"
|
51
|
-
:resobjprop.sync="$parent.$parent.resids"
|
52
|
-
role-lable="安 检 员 "
|
53
|
-
@re-res="$parent.$parent.getRes"
|
54
|
-
:value.sync="model.f_checker_id"
|
55
|
-
v-model="model.f_checker_id"
|
56
|
-
condition="tcp.f_checker = '{}'">
|
57
|
-
</role-selector-safe>
|
58
|
-
</div>
|
59
|
-
<div style="float: right">
|
60
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
61
|
-
:field="$parent.$parent.excelHeaders"
|
62
|
-
progress="safeGetExportProgress"
|
63
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
|
64
|
-
:choose-col="true"></export-excel-safe>
|
65
|
-
</div>
|
66
|
-
<print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
|
67
|
-
:field="$parent.$parent.excelHeaders"
|
68
|
-
:defaultfield="$parent.$parent.defaultPrint"
|
69
|
-
:titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
|
70
|
-
></print-data-safe>
|
71
|
-
<button class="button_spacing button_search" @click="search()">查询</button>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
</criteria>
|
75
|
-
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
76
|
-
<template partial='head'>
|
77
|
-
<tr>
|
78
|
-
<th>
|
79
|
-
<nobr>序号</nobr>
|
80
|
-
</th>
|
81
|
-
<th>
|
82
|
-
<nobr>小区名称</nobr>
|
83
|
-
</th>
|
84
|
-
<th>
|
85
|
-
<nobr>计划安检总户数</nobr>
|
86
|
-
</th>
|
87
|
-
|
88
|
-
<th>
|
89
|
-
<nobr>未检户数</nobr>
|
90
|
-
</th>
|
91
|
-
<th>
|
92
|
-
<nobr>已检户数</nobr>
|
93
|
-
</th>
|
94
|
-
<th>
|
95
|
-
<nobr>入户户数</nobr>
|
96
|
-
</th>
|
97
|
-
<th>
|
98
|
-
<nobr>到访不遇-1次</nobr>
|
99
|
-
</th>
|
100
|
-
<th>
|
101
|
-
<nobr>到访不遇-2次</nobr>
|
102
|
-
</th>
|
103
|
-
<th>
|
104
|
-
<nobr>到访不遇-3次</nobr>
|
105
|
-
</th>
|
106
|
-
<th>
|
107
|
-
<nobr>到访不遇小计</nobr>
|
108
|
-
</th>
|
109
|
-
<th>
|
110
|
-
<nobr>拒检户数</nobr>
|
111
|
-
</th>
|
112
|
-
<th>
|
113
|
-
<nobr>安检率</nobr>
|
114
|
-
</th>
|
115
|
-
<th>
|
116
|
-
<nobr>申请安检户数</nobr>
|
117
|
-
</th>
|
118
|
-
<th>
|
119
|
-
<nobr>总入户数</nobr>
|
120
|
-
</th>
|
121
|
-
</tr>
|
122
|
-
</template>
|
123
|
-
<template partial='body'>
|
124
|
-
|
125
|
-
<td style="text-align: center">{{ $index + 1 }}</td>
|
126
|
-
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
127
|
-
<td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'1')">{{ row.totalcount }}</a></td>
|
128
|
-
<td style="text-align: center">{{ row.wjcount }}</td>
|
129
|
-
<td style="text-align: center">{{ row.yjcount }}</td>
|
130
|
-
<td style="text-align: center">{{ row.rhcount }}</td>
|
131
|
-
<td style="text-align: center">{{ row.dfbycount1 }}</td>
|
132
|
-
<td style="text-align: center">{{ row.dfbycount2 }}</td>
|
133
|
-
<td style="text-align: center">{{ row.dfbycount3 }}</td>
|
134
|
-
<td style="text-align: center">{{ row.unique_dfby_count }}</td>
|
135
|
-
<td style="text-align: center">{{ row.jjcount }}</td>
|
136
|
-
<td style="text-align: center">{{ row.check_bv }}</td>
|
137
|
-
<td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'0')">{{ row.sqajcount }}</a></td>
|
138
|
-
<td style="text-align: center">{{ row.ruhucount }}</td>
|
139
|
-
|
140
|
-
</template>
|
141
|
-
<template partial="foot">
|
142
|
-
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
143
|
-
<td style="text-align: center">{{ model.sums.totalcount }}</td>
|
144
|
-
<td style="text-align: center">{{ model.sums.wjcount }}</td>
|
145
|
-
<td style="text-align: center">{{ model.sums.yjcount }}</td>
|
146
|
-
<td style="text-align: center">{{ model.sums.rhcount }}</td>
|
147
|
-
<td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
|
148
|
-
<td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
|
149
|
-
<td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
|
150
|
-
<td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
|
151
|
-
<td style="text-align: center">{{ model.sums.jjcount }}</td>
|
152
|
-
<td style="text-align: center">
|
153
|
-
{{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
|
154
|
-
</td>
|
155
|
-
<td style="text-align: center">{{ model.sums.sqajcount }}</td>
|
156
|
-
<td style="text-align: center">{{ model.sums.ruhucount }}</td>
|
157
|
-
</template>
|
158
|
-
</data-grid>
|
159
|
-
</criteria-paged>
|
160
|
-
</div>
|
161
|
-
<modal :show.sync="modal_show" backdrop="false"
|
162
|
-
class="allQuotaRecordModalShow" width="80%">
|
163
|
-
<header slot="modal-header" class="modal-header" style="text-align: center">
|
164
|
-
</header>
|
165
|
-
<article slot="modal-body" class="modal-body">
|
166
|
-
<criteria-paged :model="modalModel" v-ref:paged2>
|
167
|
-
<criteria partial='criteria' class="search_area" v-ref:criteria2>
|
168
|
-
<div partial>
|
169
|
-
<div class="row">
|
170
|
-
<div class="form-group col-sm-4">
|
171
|
-
<label class="font_normal_body">开始时间</label>
|
172
|
-
<datepicker
|
173
|
-
placeholder='请选择'
|
174
|
-
style="width:60%"
|
175
|
-
:disabled-days-of-week="[]"
|
176
|
-
:format="'yyyy-MM-dd'"
|
177
|
-
:show-rest-button="reset"
|
178
|
-
:value.sync="$parent.$parent.modalSearchData.start_time"
|
179
|
-
v-model="$parent.$parent.modalSearchData.start_time"
|
180
|
-
>
|
181
|
-
</datepicker>
|
182
|
-
</div>
|
183
|
-
<div class="form-group col-sm-4">
|
184
|
-
<label class="font_normal_body">结束时间</label>
|
185
|
-
<datepicker
|
186
|
-
placeholder='请选择'
|
187
|
-
:disabled-days-of-week="[]"
|
188
|
-
style="width:60%"
|
189
|
-
:format="'yyyy-MM-dd'"
|
190
|
-
:show-rest-button="reset"
|
191
|
-
:value.sync="$parent.$parent.$parent.modalSearchData.end_time"
|
192
|
-
v-model="$parent.$parent.$parent.modalSearchData.end_time">
|
193
|
-
</datepicker>
|
194
|
-
</div>
|
195
|
-
<div class="col-sm-4 form-group">
|
196
|
-
<label class="font_normal_body">用户编号</label>
|
197
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_userinfo_code">
|
198
|
-
</div>
|
199
|
-
<div class="col-sm-4 form-group">
|
200
|
-
<label class="font_normal_body">用户名称</label>
|
201
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_name">
|
202
|
-
</div>
|
203
|
-
<div class="col-sm-4 form-group">
|
204
|
-
<label class="font_normal_body">用户地址</label>
|
205
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_address">
|
206
|
-
</div>
|
207
|
-
<div class="col-sm-4 form-group">
|
208
|
-
<label class="font_normal_body">用户电话</label>
|
209
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
|
210
|
-
</div>
|
211
|
-
<div class="col-sm-4 form-group">
|
212
|
-
<label class="font_normal_body">安检员</label>
|
213
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
|
214
|
-
</div>
|
215
|
-
<div class="col-sm-4 form-group">
|
216
|
-
<label class="font_normal_body">安检状态</label>
|
217
|
-
<v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.$parent.modalSearchData.f_last_check_state'
|
218
|
-
:value-single="true" style="width: 60%"
|
219
|
-
class="select_list select"
|
220
|
-
:options='$parent.$parent.$parent.last_check_states' placeholder='安检状态'
|
221
|
-
close-on-select
|
222
|
-
></v-select>
|
223
|
-
</div>
|
224
|
-
<div class="form-group col-sm-4">
|
225
|
-
<label class="font_normal_body">用户类型</label>
|
226
|
-
<v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.$parent.modalSearchData.f_user_type'
|
227
|
-
:value-single="true" style="width: 60%"
|
228
|
-
class="select_list select"
|
229
|
-
:options='$parent.$parent.$parent.user_types' placeholder='用户类型'
|
230
|
-
close-on-select
|
231
|
-
></v-select>
|
232
|
-
</div>
|
233
|
-
<div class="col-sm-4 form-group">
|
234
|
-
<label class="font_normal_body">到访不遇次数</label>
|
235
|
-
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
|
236
|
-
</div>
|
237
|
-
<div style="float: right">
|
238
|
-
<button class="button_spacing button_search" @click="$parent.$parent.$parent.modalSearch()">查询</button>
|
239
|
-
<export-excel-safe :data="$parent.$parent.$parent.modalSearchExcelData"
|
240
|
-
:field="$parent.$parent.$parent.modalExcelHeaders"
|
241
|
-
progress="safeGetExportProgress"
|
242
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='安检情况明细'
|
243
|
-
:choose-col="true"></export-excel-safe>
|
244
|
-
</div>
|
245
|
-
</div>
|
246
|
-
</div>
|
247
|
-
</criteria>
|
248
|
-
<data-grid class="list_area table_sy" :model="$parent.$parent.modalModel" v-ref:modalgrid partial='list'>
|
249
|
-
<template partial='head'>
|
250
|
-
<th>
|
251
|
-
<nobr>用户编号</nobr>
|
252
|
-
</th>
|
253
|
-
<th>
|
254
|
-
<nobr>用户名称</nobr>
|
255
|
-
</th>
|
256
|
-
<th>
|
257
|
-
<nobr>小区</nobr>
|
258
|
-
</th>
|
259
|
-
<th>
|
260
|
-
<nobr>地址</nobr>
|
261
|
-
</th>
|
262
|
-
<th>
|
263
|
-
<nobr>客户电话</nobr>
|
264
|
-
</th>
|
265
|
-
<th>
|
266
|
-
<nobr>到访不遇次数</nobr>
|
267
|
-
</th>
|
268
|
-
<th>
|
269
|
-
<nobr>安检时间</nobr>
|
270
|
-
</th>
|
271
|
-
<th>
|
272
|
-
<nobr>安检员</nobr>
|
273
|
-
</th>
|
274
|
-
<th>
|
275
|
-
<nobr>用户类型</nobr>
|
276
|
-
</th>
|
277
|
-
<th v-if="$parent.$parent.$parent.$parent.$parent.type === '1'">
|
278
|
-
<nobr>安检状态</nobr>
|
279
|
-
</th>
|
280
|
-
</template>
|
281
|
-
<template partial='body'>
|
282
|
-
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
283
|
-
<td style="text-align:center">{{row.f_user_name }}</td>
|
284
|
-
<td style="text-align:center">{{row.f_residential_area}}</td>
|
285
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
286
|
-
<td style="text-align:center">{{row.f_user_phone}}</td>
|
287
|
-
<td style="text-align:center">{{row.f_check_version}}</td>
|
288
|
-
<td style="text-align:center">{{row.f_last_check_date}}</td>
|
289
|
-
<td style="text-align:center">{{row.f_checker}}</td>
|
290
|
-
<td style="text-align:center">{{row.f_user_type}}</td>
|
291
|
-
<td style="text-align:center" v-if="$parent.$parent.$parent.$parent.$parent.type === '1'">{{row.f_last_check_state}}</td>
|
292
|
-
</template>
|
293
|
-
</data-grid>
|
294
|
-
</criteria-paged>
|
295
|
-
</article>
|
296
|
-
<footer slot="modal-footer" class="modal-footer">
|
297
|
-
<button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
|
298
|
-
</footer>
|
299
|
-
</modal>
|
300
|
-
</div>
|
301
|
-
</template>
|
302
|
-
|
303
|
-
<script>
|
304
|
-
import {PagedList} from "vue-client";
|
305
|
-
|
306
|
-
export default {
|
307
|
-
name: "safeDetail",
|
308
|
-
title: "安检情况明细",
|
309
|
-
data() {
|
310
|
-
|
311
|
-
return {
|
312
|
-
model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
|
313
|
-
totalcount: '',
|
314
|
-
sqajcount:'',
|
315
|
-
ruhucount:'',
|
316
|
-
wjcount: '',
|
317
|
-
yjcount: '',
|
318
|
-
rhcount: '',
|
319
|
-
dfbycount1: '',
|
320
|
-
dfbycount2: '',
|
321
|
-
dfbycount3: '',
|
322
|
-
unique_dfby_count: '',
|
323
|
-
jjcount: ''
|
324
|
-
}),
|
325
|
-
resids: {},
|
326
|
-
modalModel: new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
|
327
|
-
items: '"tcpi.*,tcp.f_checker"',
|
328
|
-
tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
|
329
|
-
orderitem: '"1"'
|
330
|
-
}),
|
331
|
-
modalSearchData:{},
|
332
|
-
modalSearchExcelData:{
|
333
|
-
items: "tcpi.*,tcp.f_checker",
|
334
|
-
tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
|
335
|
-
orderitem: "f_userinfo_code"
|
336
|
-
},
|
337
|
-
modalExcelHeaders:{
|
338
|
-
'f_userinfo_code': '用户编号',
|
339
|
-
'f_user_name': '用户名称',
|
340
|
-
'f_residential_area': '小区',
|
341
|
-
'f_address': '地址',
|
342
|
-
'f_user_phone': '客户电话',
|
343
|
-
'f_check_version': '到访不遇次数',
|
344
|
-
'f_last_check_date': '安检时间',
|
345
|
-
'f_checker': '安检员',
|
346
|
-
'f_user_type': '用户类型',
|
347
|
-
'f_last_check_state': '安检状态'
|
348
|
-
|
349
|
-
},
|
350
|
-
searchData: {
|
351
|
-
condition: "1=1",
|
352
|
-
orgid: this.$login.f.orgid
|
353
|
-
},
|
354
|
-
modal_show:false,
|
355
|
-
print_model:{},
|
356
|
-
last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
|
357
|
-
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
358
|
-
excelHeaders: {
|
359
|
-
'f_residential_area': '小区名称',
|
360
|
-
'totalcount': '计划安检总户数',
|
361
|
-
'wjcount': '未检户数',
|
362
|
-
'yjcount': '已检户数',
|
363
|
-
'rhcount': '入户户数',
|
364
|
-
'dfbycount1': '到访不遇-1次',
|
365
|
-
'dfbycount2': '到访不遇-2次',
|
366
|
-
'dfbycount3': '到访不遇-3次',
|
367
|
-
'unique_dfby_count': '到访不遇小计',
|
368
|
-
'jjcount': '拒检户数',
|
369
|
-
'check_bv':'安检率',
|
370
|
-
'sqajcount': '申请安检户数',
|
371
|
-
'ruhucount': '总入户数',
|
372
|
-
},
|
373
|
-
modalRow:{},
|
374
|
-
type:'1',
|
375
|
-
printshow: false,
|
376
|
-
defaultPrint: ['f_residential_area', 'totalcount','wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv', 'sqajcount', 'ruhucount'],
|
377
|
-
sumsmodel: {},
|
378
|
-
}
|
379
|
-
},
|
380
|
-
ready() {
|
381
|
-
// this.model.search('1=1')
|
382
|
-
},
|
383
|
-
methods: {
|
384
|
-
async modalShow (row,type) {
|
385
|
-
this.type = type
|
386
|
-
this.modalRow = row
|
387
|
-
this.modal_show = true
|
388
|
-
this.modalSearchData = {}
|
389
|
-
await this.modalSearch(row)
|
390
|
-
},
|
391
|
-
modalSearch () {
|
392
|
-
let modalCondition = this.$refs.paged.model.condition
|
393
|
-
if (this.modalSearchData.f_last_check_state){
|
394
|
-
modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
|
395
|
-
}
|
396
|
-
if (this.modalSearchData.f_user_name){
|
397
|
-
modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
|
398
|
-
}
|
399
|
-
if (this.modalSearchData.f_user_type){
|
400
|
-
modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
|
401
|
-
}
|
402
|
-
if (this.modalSearchData.start_time){
|
403
|
-
modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
|
404
|
-
}
|
405
|
-
if (this.modalSearchData.end_time){
|
406
|
-
modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
|
407
|
-
}
|
408
|
-
if (this.modalSearchData.f_userinfo_code){
|
409
|
-
modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
|
410
|
-
}
|
411
|
-
if (this.modalSearchData.f_address){
|
412
|
-
modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
|
413
|
-
}
|
414
|
-
if (this.modalSearchData.f_user_phone){
|
415
|
-
modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
|
416
|
-
}
|
417
|
-
if (this.modalSearchData.f_checker){
|
418
|
-
modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
|
419
|
-
}
|
420
|
-
if (this.modalSearchData.f_check_version){
|
421
|
-
modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
|
422
|
-
}
|
423
|
-
modalCondition += ` and tcpi.f_residential_area = '${this.modalRow.f_residential_area}'`
|
424
|
-
if (this.type == '0') {
|
425
|
-
modalCondition += ` and tcp.f_safecheck_type = '临时安检'`
|
426
|
-
}
|
427
|
-
this.modalSearchExcelData.condition = modalCondition
|
428
|
-
this.modalModel.search(modalCondition, this.modalModel)
|
429
|
-
},
|
430
|
-
async selfSearch(args) {
|
431
|
-
await this.model.search(args.condition, args.model, args.condValue)
|
432
|
-
this.searchData.condition = args.condition
|
433
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
434
|
-
this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
|
435
|
-
this.print_model.rows.push({
|
436
|
-
f_residential_area:'合计',
|
437
|
-
totalcount: this.sumsmodel.totalcount,
|
438
|
-
wjcount: this.sumsmodel.wjcount,
|
439
|
-
yjcount: this.sumsmodel.yjcount,
|
440
|
-
rhcount: this.sumsmodel.rhcount,
|
441
|
-
dfbycount1: this.sumsmodel.dfbycount1,
|
442
|
-
dfbycount2: this.sumsmodel.dfbycount2,
|
443
|
-
dfbycount3: this.sumsmodel.dfbycount3,
|
444
|
-
unique_dfby_count: this.sumsmodel.unique_dfby_count,
|
445
|
-
check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`,
|
446
|
-
sqajcount: this.sumsmodel.sqajcount,
|
447
|
-
ruhucount: this.sumsmodel.ruhucount
|
448
|
-
})
|
449
|
-
this.print_model.totalPage = 0
|
450
|
-
},
|
451
|
-
getRes(obj) {
|
452
|
-
//tag
|
453
|
-
this.resids = {res: obj.res[0], resids: obj.resids[0]}
|
454
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
455
|
-
},
|
456
|
-
// 打印
|
457
|
-
stamp() {
|
458
|
-
this.printshow = true
|
459
|
-
},
|
460
|
-
close() {
|
461
|
-
this.printshow = false
|
462
|
-
}
|
463
|
-
},
|
464
|
-
computed: {
|
465
|
-
getstart() {
|
466
|
-
return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
|
467
|
-
},
|
468
|
-
}
|
469
|
-
}
|
470
|
-
</script>
|
471
|
-
|
472
|
-
<style scoped>
|
473
|
-
|
474
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
5
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
|
6
|
+
<div partial>
|
7
|
+
<div class="row">
|
8
|
+
<div class="form-group col-sm-4">
|
9
|
+
<label class="font_normal_body">计划创建开始日期:</label>
|
10
|
+
<datepicker
|
11
|
+
placeholder='计划创建开始日期'
|
12
|
+
style="width:60%"
|
13
|
+
:disabled-days-of-week="[]"
|
14
|
+
:format="'yyyy-MM-dd'"
|
15
|
+
:show-rest-button="reset"
|
16
|
+
:value.sync="model.start_time"
|
17
|
+
v-model="model.start_time"
|
18
|
+
condition="tcp.f_create_time >= '{} 00:00:00'">
|
19
|
+
</datepicker>
|
20
|
+
</div>
|
21
|
+
<div class="form-group col-sm-4">
|
22
|
+
<label class="font_normal_body">计划创建结束日期:</label>
|
23
|
+
<datepicker
|
24
|
+
placeholder='计划创建结束日期'
|
25
|
+
:disabled-days-of-week="[]"
|
26
|
+
style="width:60%"
|
27
|
+
:format="'yyyy-MM-dd'"
|
28
|
+
:show-rest-button="reset"
|
29
|
+
:value.sync="model.end_time"
|
30
|
+
v-model="model.end_time"
|
31
|
+
condition="tcp.f_create_time <= '{} 23:59:59'">
|
32
|
+
</datepicker>
|
33
|
+
</div>
|
34
|
+
<div class="col-sm-4 form-group">
|
35
|
+
<label class="font_normal_body">小区名称:</label>
|
36
|
+
<input style="width: 60%" class="input_search" v-model="model.f_residential_area"
|
37
|
+
placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
|
38
|
+
</div>
|
39
|
+
<div class="form-group col-sm-4">
|
40
|
+
<label class="font_normal_body">用户类型</label>
|
41
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
42
|
+
:value-single="true" style="width: 60%"
|
43
|
+
class="select_list select"
|
44
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
45
|
+
close-on-select
|
46
|
+
condition="tcpi.f_user_type = '{}'"></v-select>
|
47
|
+
</div>
|
48
|
+
<div class="col-sm-4 form-group" style="margin: 0">
|
49
|
+
<role-selector-safe
|
50
|
+
role-name="安检员"
|
51
|
+
:resobjprop.sync="$parent.$parent.resids"
|
52
|
+
role-lable="安 检 员 "
|
53
|
+
@re-res="$parent.$parent.getRes"
|
54
|
+
:value.sync="model.f_checker_id"
|
55
|
+
v-model="model.f_checker_id"
|
56
|
+
condition="tcp.f_checker = '{}'">
|
57
|
+
</role-selector-safe>
|
58
|
+
</div>
|
59
|
+
<div style="float: right">
|
60
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
61
|
+
:field="$parent.$parent.excelHeaders"
|
62
|
+
progress="safeGetExportProgress"
|
63
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
|
64
|
+
:choose-col="true"></export-excel-safe>
|
65
|
+
</div>
|
66
|
+
<print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
|
67
|
+
:field="$parent.$parent.excelHeaders"
|
68
|
+
:defaultfield="$parent.$parent.defaultPrint"
|
69
|
+
:titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
|
70
|
+
></print-data-safe>
|
71
|
+
<button class="button_spacing button_search" @click="search()">查询</button>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
</criteria>
|
75
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
76
|
+
<template partial='head'>
|
77
|
+
<tr>
|
78
|
+
<th>
|
79
|
+
<nobr>序号</nobr>
|
80
|
+
</th>
|
81
|
+
<th>
|
82
|
+
<nobr>小区名称</nobr>
|
83
|
+
</th>
|
84
|
+
<th>
|
85
|
+
<nobr>计划安检总户数</nobr>
|
86
|
+
</th>
|
87
|
+
|
88
|
+
<th>
|
89
|
+
<nobr>未检户数</nobr>
|
90
|
+
</th>
|
91
|
+
<th>
|
92
|
+
<nobr>已检户数</nobr>
|
93
|
+
</th>
|
94
|
+
<th>
|
95
|
+
<nobr>入户户数</nobr>
|
96
|
+
</th>
|
97
|
+
<th>
|
98
|
+
<nobr>到访不遇-1次</nobr>
|
99
|
+
</th>
|
100
|
+
<th>
|
101
|
+
<nobr>到访不遇-2次</nobr>
|
102
|
+
</th>
|
103
|
+
<th>
|
104
|
+
<nobr>到访不遇-3次</nobr>
|
105
|
+
</th>
|
106
|
+
<th>
|
107
|
+
<nobr>到访不遇小计</nobr>
|
108
|
+
</th>
|
109
|
+
<th>
|
110
|
+
<nobr>拒检户数</nobr>
|
111
|
+
</th>
|
112
|
+
<th>
|
113
|
+
<nobr>安检率</nobr>
|
114
|
+
</th>
|
115
|
+
<th>
|
116
|
+
<nobr>申请安检户数</nobr>
|
117
|
+
</th>
|
118
|
+
<th>
|
119
|
+
<nobr>总入户数</nobr>
|
120
|
+
</th>
|
121
|
+
</tr>
|
122
|
+
</template>
|
123
|
+
<template partial='body'>
|
124
|
+
|
125
|
+
<td style="text-align: center">{{ $index + 1 }}</td>
|
126
|
+
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
127
|
+
<td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'1')">{{ row.totalcount }}</a></td>
|
128
|
+
<td style="text-align: center">{{ row.wjcount }}</td>
|
129
|
+
<td style="text-align: center">{{ row.yjcount }}</td>
|
130
|
+
<td style="text-align: center">{{ row.rhcount }}</td>
|
131
|
+
<td style="text-align: center">{{ row.dfbycount1 }}</td>
|
132
|
+
<td style="text-align: center">{{ row.dfbycount2 }}</td>
|
133
|
+
<td style="text-align: center">{{ row.dfbycount3 }}</td>
|
134
|
+
<td style="text-align: center">{{ row.unique_dfby_count }}</td>
|
135
|
+
<td style="text-align: center">{{ row.jjcount }}</td>
|
136
|
+
<td style="text-align: center">{{ row.check_bv }}</td>
|
137
|
+
<td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'0')">{{ row.sqajcount }}</a></td>
|
138
|
+
<td style="text-align: center">{{ row.ruhucount }}</td>
|
139
|
+
|
140
|
+
</template>
|
141
|
+
<template partial="foot">
|
142
|
+
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
143
|
+
<td style="text-align: center">{{ model.sums.totalcount }}</td>
|
144
|
+
<td style="text-align: center">{{ model.sums.wjcount }}</td>
|
145
|
+
<td style="text-align: center">{{ model.sums.yjcount }}</td>
|
146
|
+
<td style="text-align: center">{{ model.sums.rhcount }}</td>
|
147
|
+
<td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
|
148
|
+
<td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
|
149
|
+
<td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
|
150
|
+
<td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
|
151
|
+
<td style="text-align: center">{{ model.sums.jjcount }}</td>
|
152
|
+
<td style="text-align: center">
|
153
|
+
{{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
|
154
|
+
</td>
|
155
|
+
<td style="text-align: center">{{ model.sums.sqajcount }}</td>
|
156
|
+
<td style="text-align: center">{{ model.sums.ruhucount }}</td>
|
157
|
+
</template>
|
158
|
+
</data-grid>
|
159
|
+
</criteria-paged>
|
160
|
+
</div>
|
161
|
+
<modal :show.sync="modal_show" backdrop="false"
|
162
|
+
class="allQuotaRecordModalShow" width="80%">
|
163
|
+
<header slot="modal-header" class="modal-header" style="text-align: center">
|
164
|
+
</header>
|
165
|
+
<article slot="modal-body" class="modal-body">
|
166
|
+
<criteria-paged :model="modalModel" v-ref:paged2>
|
167
|
+
<criteria partial='criteria' class="search_area" v-ref:criteria2>
|
168
|
+
<div partial>
|
169
|
+
<div class="row">
|
170
|
+
<div class="form-group col-sm-4">
|
171
|
+
<label class="font_normal_body">开始时间</label>
|
172
|
+
<datepicker
|
173
|
+
placeholder='请选择'
|
174
|
+
style="width:60%"
|
175
|
+
:disabled-days-of-week="[]"
|
176
|
+
:format="'yyyy-MM-dd'"
|
177
|
+
:show-rest-button="reset"
|
178
|
+
:value.sync="$parent.$parent.modalSearchData.start_time"
|
179
|
+
v-model="$parent.$parent.modalSearchData.start_time"
|
180
|
+
>
|
181
|
+
</datepicker>
|
182
|
+
</div>
|
183
|
+
<div class="form-group col-sm-4">
|
184
|
+
<label class="font_normal_body">结束时间</label>
|
185
|
+
<datepicker
|
186
|
+
placeholder='请选择'
|
187
|
+
:disabled-days-of-week="[]"
|
188
|
+
style="width:60%"
|
189
|
+
:format="'yyyy-MM-dd'"
|
190
|
+
:show-rest-button="reset"
|
191
|
+
:value.sync="$parent.$parent.$parent.modalSearchData.end_time"
|
192
|
+
v-model="$parent.$parent.$parent.modalSearchData.end_time">
|
193
|
+
</datepicker>
|
194
|
+
</div>
|
195
|
+
<div class="col-sm-4 form-group">
|
196
|
+
<label class="font_normal_body">用户编号</label>
|
197
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_userinfo_code">
|
198
|
+
</div>
|
199
|
+
<div class="col-sm-4 form-group">
|
200
|
+
<label class="font_normal_body">用户名称</label>
|
201
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_name">
|
202
|
+
</div>
|
203
|
+
<div class="col-sm-4 form-group">
|
204
|
+
<label class="font_normal_body">用户地址</label>
|
205
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_address">
|
206
|
+
</div>
|
207
|
+
<div class="col-sm-4 form-group">
|
208
|
+
<label class="font_normal_body">用户电话</label>
|
209
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
|
210
|
+
</div>
|
211
|
+
<div class="col-sm-4 form-group">
|
212
|
+
<label class="font_normal_body">安检员</label>
|
213
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
|
214
|
+
</div>
|
215
|
+
<div class="col-sm-4 form-group">
|
216
|
+
<label class="font_normal_body">安检状态</label>
|
217
|
+
<v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.$parent.modalSearchData.f_last_check_state'
|
218
|
+
:value-single="true" style="width: 60%"
|
219
|
+
class="select_list select"
|
220
|
+
:options='$parent.$parent.$parent.last_check_states' placeholder='安检状态'
|
221
|
+
close-on-select
|
222
|
+
></v-select>
|
223
|
+
</div>
|
224
|
+
<div class="form-group col-sm-4">
|
225
|
+
<label class="font_normal_body">用户类型</label>
|
226
|
+
<v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.$parent.modalSearchData.f_user_type'
|
227
|
+
:value-single="true" style="width: 60%"
|
228
|
+
class="select_list select"
|
229
|
+
:options='$parent.$parent.$parent.user_types' placeholder='用户类型'
|
230
|
+
close-on-select
|
231
|
+
></v-select>
|
232
|
+
</div>
|
233
|
+
<div class="col-sm-4 form-group">
|
234
|
+
<label class="font_normal_body">到访不遇次数</label>
|
235
|
+
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
|
236
|
+
</div>
|
237
|
+
<div style="float: right">
|
238
|
+
<button class="button_spacing button_search" @click="$parent.$parent.$parent.modalSearch()">查询</button>
|
239
|
+
<export-excel-safe :data="$parent.$parent.$parent.modalSearchExcelData"
|
240
|
+
:field="$parent.$parent.$parent.modalExcelHeaders"
|
241
|
+
progress="safeGetExportProgress"
|
242
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='安检情况明细'
|
243
|
+
:choose-col="true"></export-excel-safe>
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
</div>
|
247
|
+
</criteria>
|
248
|
+
<data-grid class="list_area table_sy" :model="$parent.$parent.modalModel" v-ref:modalgrid partial='list'>
|
249
|
+
<template partial='head'>
|
250
|
+
<th>
|
251
|
+
<nobr>用户编号</nobr>
|
252
|
+
</th>
|
253
|
+
<th>
|
254
|
+
<nobr>用户名称</nobr>
|
255
|
+
</th>
|
256
|
+
<th>
|
257
|
+
<nobr>小区</nobr>
|
258
|
+
</th>
|
259
|
+
<th>
|
260
|
+
<nobr>地址</nobr>
|
261
|
+
</th>
|
262
|
+
<th>
|
263
|
+
<nobr>客户电话</nobr>
|
264
|
+
</th>
|
265
|
+
<th>
|
266
|
+
<nobr>到访不遇次数</nobr>
|
267
|
+
</th>
|
268
|
+
<th>
|
269
|
+
<nobr>安检时间</nobr>
|
270
|
+
</th>
|
271
|
+
<th>
|
272
|
+
<nobr>安检员</nobr>
|
273
|
+
</th>
|
274
|
+
<th>
|
275
|
+
<nobr>用户类型</nobr>
|
276
|
+
</th>
|
277
|
+
<th v-if="$parent.$parent.$parent.$parent.$parent.type === '1'">
|
278
|
+
<nobr>安检状态</nobr>
|
279
|
+
</th>
|
280
|
+
</template>
|
281
|
+
<template partial='body'>
|
282
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
283
|
+
<td style="text-align:center">{{row.f_user_name }}</td>
|
284
|
+
<td style="text-align:center">{{row.f_residential_area}}</td>
|
285
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
286
|
+
<td style="text-align:center">{{row.f_user_phone}}</td>
|
287
|
+
<td style="text-align:center">{{row.f_check_version}}</td>
|
288
|
+
<td style="text-align:center">{{row.f_last_check_date}}</td>
|
289
|
+
<td style="text-align:center">{{row.f_checker}}</td>
|
290
|
+
<td style="text-align:center">{{row.f_user_type}}</td>
|
291
|
+
<td style="text-align:center" v-if="$parent.$parent.$parent.$parent.$parent.type === '1'">{{row.f_last_check_state}}</td>
|
292
|
+
</template>
|
293
|
+
</data-grid>
|
294
|
+
</criteria-paged>
|
295
|
+
</article>
|
296
|
+
<footer slot="modal-footer" class="modal-footer">
|
297
|
+
<button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
|
298
|
+
</footer>
|
299
|
+
</modal>
|
300
|
+
</div>
|
301
|
+
</template>
|
302
|
+
|
303
|
+
<script>
|
304
|
+
import {PagedList} from "vue-client";
|
305
|
+
|
306
|
+
export default {
|
307
|
+
name: "safeDetail",
|
308
|
+
title: "安检情况明细",
|
309
|
+
data() {
|
310
|
+
|
311
|
+
return {
|
312
|
+
model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
|
313
|
+
totalcount: '',
|
314
|
+
sqajcount:'',
|
315
|
+
ruhucount:'',
|
316
|
+
wjcount: '',
|
317
|
+
yjcount: '',
|
318
|
+
rhcount: '',
|
319
|
+
dfbycount1: '',
|
320
|
+
dfbycount2: '',
|
321
|
+
dfbycount3: '',
|
322
|
+
unique_dfby_count: '',
|
323
|
+
jjcount: ''
|
324
|
+
}),
|
325
|
+
resids: {},
|
326
|
+
modalModel: new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
|
327
|
+
items: '"tcpi.*,tcp.f_checker"',
|
328
|
+
tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
|
329
|
+
orderitem: '"1"'
|
330
|
+
}),
|
331
|
+
modalSearchData:{},
|
332
|
+
modalSearchExcelData:{
|
333
|
+
items: "tcpi.*,tcp.f_checker",
|
334
|
+
tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
|
335
|
+
orderitem: "f_userinfo_code"
|
336
|
+
},
|
337
|
+
modalExcelHeaders:{
|
338
|
+
'f_userinfo_code': '用户编号',
|
339
|
+
'f_user_name': '用户名称',
|
340
|
+
'f_residential_area': '小区',
|
341
|
+
'f_address': '地址',
|
342
|
+
'f_user_phone': '客户电话',
|
343
|
+
'f_check_version': '到访不遇次数',
|
344
|
+
'f_last_check_date': '安检时间',
|
345
|
+
'f_checker': '安检员',
|
346
|
+
'f_user_type': '用户类型',
|
347
|
+
'f_last_check_state': '安检状态'
|
348
|
+
|
349
|
+
},
|
350
|
+
searchData: {
|
351
|
+
condition: "1=1",
|
352
|
+
orgid: this.$login.f.orgid
|
353
|
+
},
|
354
|
+
modal_show:false,
|
355
|
+
print_model:{},
|
356
|
+
last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
|
357
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
358
|
+
excelHeaders: {
|
359
|
+
'f_residential_area': '小区名称',
|
360
|
+
'totalcount': '计划安检总户数',
|
361
|
+
'wjcount': '未检户数',
|
362
|
+
'yjcount': '已检户数',
|
363
|
+
'rhcount': '入户户数',
|
364
|
+
'dfbycount1': '到访不遇-1次',
|
365
|
+
'dfbycount2': '到访不遇-2次',
|
366
|
+
'dfbycount3': '到访不遇-3次',
|
367
|
+
'unique_dfby_count': '到访不遇小计',
|
368
|
+
'jjcount': '拒检户数',
|
369
|
+
'check_bv':'安检率',
|
370
|
+
'sqajcount': '申请安检户数',
|
371
|
+
'ruhucount': '总入户数',
|
372
|
+
},
|
373
|
+
modalRow:{},
|
374
|
+
type:'1',
|
375
|
+
printshow: false,
|
376
|
+
defaultPrint: ['f_residential_area', 'totalcount','wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv', 'sqajcount', 'ruhucount'],
|
377
|
+
sumsmodel: {},
|
378
|
+
}
|
379
|
+
},
|
380
|
+
ready() {
|
381
|
+
// this.model.search('1=1')
|
382
|
+
},
|
383
|
+
methods: {
|
384
|
+
async modalShow (row,type) {
|
385
|
+
this.type = type
|
386
|
+
this.modalRow = row
|
387
|
+
this.modal_show = true
|
388
|
+
this.modalSearchData = {}
|
389
|
+
await this.modalSearch(row)
|
390
|
+
},
|
391
|
+
modalSearch () {
|
392
|
+
let modalCondition = this.$refs.paged.model.condition
|
393
|
+
if (this.modalSearchData.f_last_check_state){
|
394
|
+
modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
|
395
|
+
}
|
396
|
+
if (this.modalSearchData.f_user_name){
|
397
|
+
modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
|
398
|
+
}
|
399
|
+
if (this.modalSearchData.f_user_type){
|
400
|
+
modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
|
401
|
+
}
|
402
|
+
if (this.modalSearchData.start_time){
|
403
|
+
modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
|
404
|
+
}
|
405
|
+
if (this.modalSearchData.end_time){
|
406
|
+
modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
|
407
|
+
}
|
408
|
+
if (this.modalSearchData.f_userinfo_code){
|
409
|
+
modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
|
410
|
+
}
|
411
|
+
if (this.modalSearchData.f_address){
|
412
|
+
modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
|
413
|
+
}
|
414
|
+
if (this.modalSearchData.f_user_phone){
|
415
|
+
modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
|
416
|
+
}
|
417
|
+
if (this.modalSearchData.f_checker){
|
418
|
+
modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
|
419
|
+
}
|
420
|
+
if (this.modalSearchData.f_check_version){
|
421
|
+
modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
|
422
|
+
}
|
423
|
+
modalCondition += ` and tcpi.f_residential_area = '${this.modalRow.f_residential_area}'`
|
424
|
+
if (this.type == '0') {
|
425
|
+
modalCondition += ` and tcp.f_safecheck_type = '临时安检'`
|
426
|
+
}
|
427
|
+
this.modalSearchExcelData.condition = modalCondition
|
428
|
+
this.modalModel.search(modalCondition, this.modalModel)
|
429
|
+
},
|
430
|
+
async selfSearch(args) {
|
431
|
+
await this.model.search(args.condition, args.model, args.condValue)
|
432
|
+
this.searchData.condition = args.condition
|
433
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
434
|
+
this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
|
435
|
+
this.print_model.rows.push({
|
436
|
+
f_residential_area:'合计',
|
437
|
+
totalcount: this.sumsmodel.totalcount,
|
438
|
+
wjcount: this.sumsmodel.wjcount,
|
439
|
+
yjcount: this.sumsmodel.yjcount,
|
440
|
+
rhcount: this.sumsmodel.rhcount,
|
441
|
+
dfbycount1: this.sumsmodel.dfbycount1,
|
442
|
+
dfbycount2: this.sumsmodel.dfbycount2,
|
443
|
+
dfbycount3: this.sumsmodel.dfbycount3,
|
444
|
+
unique_dfby_count: this.sumsmodel.unique_dfby_count,
|
445
|
+
check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`,
|
446
|
+
sqajcount: this.sumsmodel.sqajcount,
|
447
|
+
ruhucount: this.sumsmodel.ruhucount
|
448
|
+
})
|
449
|
+
this.print_model.totalPage = 0
|
450
|
+
},
|
451
|
+
getRes(obj) {
|
452
|
+
//tag
|
453
|
+
this.resids = {res: obj.res[0], resids: obj.resids[0]}
|
454
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
455
|
+
},
|
456
|
+
// 打印
|
457
|
+
stamp() {
|
458
|
+
this.printshow = true
|
459
|
+
},
|
460
|
+
close() {
|
461
|
+
this.printshow = false
|
462
|
+
}
|
463
|
+
},
|
464
|
+
computed: {
|
465
|
+
getstart() {
|
466
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
|
467
|
+
},
|
468
|
+
}
|
469
|
+
}
|
470
|
+
</script>
|
471
|
+
|
472
|
+
<style scoped>
|
473
|
+
|
474
|
+
</style>
|