safecheck-client 3.0.30-29 → 3.0.30-33
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 +133 -133
- package/src/App.vue +2 -2
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +230 -0
- package/src/filiale/yongzhou/pc/communityDetail.vue +183 -173
- package/src/filiale/yongzhou/pc/safeDetail.vue +232 -222
- package/src/filiale/yongzhou/pc/safeStatistics.vue +124 -114
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +416 -402
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +248 -238
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +110 -100
- package/src/filiale/yongzhou/pc/safeTable.vue +136 -128
- package/src/filiale/yongzhou/pc.js +24 -23
- package/src/main.js +33 -33
@@ -0,0 +1,230 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="flex">
|
3
|
+
<section>
|
4
|
+
<div class="basic-main row" style="height: 100%">
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 30%;">
|
10
|
+
<role-selector-safe
|
11
|
+
role-name="安检员"
|
12
|
+
role-lable="安 检 员 "
|
13
|
+
@re-res="$parent.$parent.getRes"
|
14
|
+
:value.sync="model.f_checker_id"
|
15
|
+
v-model="model.f_checker_id"
|
16
|
+
condition="f_checker_name = '{}'">
|
17
|
+
</role-selector-safe>
|
18
|
+
</div>
|
19
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
20
|
+
<label for="startDate" class="font_normal_body">起始时间</label>
|
21
|
+
<datepicker
|
22
|
+
class="select_list select"
|
23
|
+
:value.sync="model.startDate"
|
24
|
+
id="startDate"
|
25
|
+
placeholder='开始时间' style="width: 60%"
|
26
|
+
:disabled-days-of-week="[]"
|
27
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
28
|
+
:show-rest-button="reset"
|
29
|
+
v-model="model.startDate"
|
30
|
+
condition="f_upload_date > ='{} '">
|
31
|
+
</datepicker>
|
32
|
+
</div>
|
33
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
34
|
+
<label for="endDate" class="font_normal_body">结束时间</label>
|
35
|
+
<datepicker
|
36
|
+
class="select_list select"
|
37
|
+
:value.sync="model.endDate"
|
38
|
+
id="endDate"
|
39
|
+
placeholder='结束日期' style="width: 60%"
|
40
|
+
:disabled-days-of-week="[]"
|
41
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
42
|
+
:show-rest-button="reset"
|
43
|
+
v-model="model.endDate"
|
44
|
+
condition="f_upload_date <='{} '">
|
45
|
+
</datepicker>
|
46
|
+
</div>
|
47
|
+
<div class="form-group col-sm-3 form-input-group" style="width: 20%;">
|
48
|
+
<label class="font_normal_body">用户类型</label>
|
49
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
50
|
+
:value-single="true" style="width: 60%"
|
51
|
+
class="select_list select"
|
52
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
53
|
+
close-on-select
|
54
|
+
condition="f_check_type = '{}'"></v-select>
|
55
|
+
</div>
|
56
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
|
57
|
+
<!-- <report-print class="button_export button_spacing" style="width:28%" id='tongchuan'></report-print>-->
|
58
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
59
|
+
:field="$parent.$parent.excelHeaders"
|
60
|
+
sqlurl="rs/logic/SafeExportExcel"
|
61
|
+
sql-name="SafecheckSummary"
|
62
|
+
:template-name="$parent.$parent.excelTitle">
|
63
|
+
</export-excel-safe>
|
64
|
+
<button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</criteria>
|
69
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
|
70
|
+
<template partial='head'>
|
71
|
+
<tr>
|
72
|
+
<!-- <th>-->
|
73
|
+
<!-- <nobr>序号</nobr>-->
|
74
|
+
<!-- </th>-->
|
75
|
+
<!-- <th>-->
|
76
|
+
<!-- <nobr>安检月份</nobr>-->
|
77
|
+
<!-- </th>-->
|
78
|
+
<th>
|
79
|
+
<nobr>安检员</nobr>
|
80
|
+
</th>
|
81
|
+
<th>
|
82
|
+
<nobr>已检</nobr>
|
83
|
+
</th>
|
84
|
+
<th>
|
85
|
+
<nobr>入户</nobr>
|
86
|
+
</th>
|
87
|
+
<th>
|
88
|
+
<nobr>到访不遇</nobr>
|
89
|
+
</th>
|
90
|
+
<th>
|
91
|
+
<nobr>拒检</nobr>
|
92
|
+
</th>
|
93
|
+
<!-- <th>-->
|
94
|
+
<!-- <nobr>隐患数</nobr>-->
|
95
|
+
<!-- </th>-->
|
96
|
+
<th>
|
97
|
+
<nobr>入户率</nobr>
|
98
|
+
</th>
|
99
|
+
</tr>
|
100
|
+
</template>
|
101
|
+
<template partial='body'>
|
102
|
+
<tr>
|
103
|
+
<!-- <td style="text-align:center">{{$index + 1}}</td>-->
|
104
|
+
<!-- <td style="text-align:center">-->
|
105
|
+
<!-- <nobr>{{ row.yuefeng }}</nobr>-->
|
106
|
+
<!-- </td>-->
|
107
|
+
<td style="text-align:center">
|
108
|
+
<nobr>{{ row.f_checker_name }}</nobr>
|
109
|
+
</td>
|
110
|
+
<td style="text-align:center">
|
111
|
+
<nobr>{{ row.yijian }}</nobr>
|
112
|
+
</td>
|
113
|
+
<td style="text-align:center">
|
114
|
+
<nobr>{{ row.ruhu }}</nobr>
|
115
|
+
</td>
|
116
|
+
<td style="text-align:center">
|
117
|
+
<nobr>{{ row.daofang }}</nobr>
|
118
|
+
</td>
|
119
|
+
<td style="text-align:center">
|
120
|
+
<nobr>{{ row.jujian }}</nobr>
|
121
|
+
</td>
|
122
|
+
<!-- <td style="text-align:center">-->
|
123
|
+
<!-- <nobr>{{ row.yinhuan }}</nobr>-->
|
124
|
+
<!-- </td>-->
|
125
|
+
<td style="text-align:center">
|
126
|
+
<nobr>{{ row.ruhu_bv }}</nobr>
|
127
|
+
</td>
|
128
|
+
</tr>
|
129
|
+
</template>
|
130
|
+
<template partial="foot">
|
131
|
+
<td style="text-align: center"><span><b>合计:</b></span></td>
|
132
|
+
<!-- <td style="text-align: center"><span><b> </b></span></td>-->
|
133
|
+
<!-- <td style="text-align: center"><span><b> </b></span></td>-->
|
134
|
+
<td style="text-align: center">{{model.sums.yijian}}</td>
|
135
|
+
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
136
|
+
<td style="text-align: center">{{model.sums.daofang}}</td>
|
137
|
+
<td style="text-align: center">{{model.sums.jujian}}</td>
|
138
|
+
<!-- <td style="text-align: center">{{model.sums.yinhuan}}</td>-->
|
139
|
+
<td style="text-align: center">{{ (model.sums.ruhu && model.sums.yijian) ? (model.sums.ruhu / model.sums.yijian * 100.0).toFixed(2) : 0.00}}%</td>
|
140
|
+
</template>
|
141
|
+
</data-grid>
|
142
|
+
</criteria-paged>
|
143
|
+
</div>
|
144
|
+
</section>
|
145
|
+
</div>
|
146
|
+
</template>
|
147
|
+
<script>
|
148
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
149
|
+
import * as Util from '../../Util'
|
150
|
+
|
151
|
+
export default {
|
152
|
+
title: '无计划安检汇总',
|
153
|
+
data () {
|
154
|
+
let model = new PagedList('rs/sql/SafecheckSummary', 20, {
|
155
|
+
f_filiale_id: 'this.f_filiale_id'
|
156
|
+
},{yijian:'',ruhu:'',daofang:'',jujian:'',yinhuan:''})
|
157
|
+
model.f_filiale_id = `('${this.$login.f.orgid}')`
|
158
|
+
return {
|
159
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
160
|
+
f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
|
161
|
+
model: model,
|
162
|
+
source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
|
163
|
+
userid: this.$login.f.id,
|
164
|
+
orgname: '',
|
165
|
+
// checker:{},
|
166
|
+
searchData: {
|
167
|
+
condition: '',
|
168
|
+
f_filiale_id: ''
|
169
|
+
},
|
170
|
+
excelHeaders: {
|
171
|
+
'yuefeng': '安检月份',
|
172
|
+
'f_checker_name': '安检员',
|
173
|
+
'yijian': '已检',
|
174
|
+
'ruhu': '入户',
|
175
|
+
'daofang': '到访不遇',
|
176
|
+
'jujian': '拒检',
|
177
|
+
'ruhu_bv': '入户率'
|
178
|
+
}
|
179
|
+
}
|
180
|
+
},
|
181
|
+
methods: {
|
182
|
+
getRes (obj) {
|
183
|
+
this.f_filiale_id = this.$login.convertToIn(obj.resids)
|
184
|
+
this.orgname = obj.res[0]
|
185
|
+
this.$set('orgname', obj.res[0])
|
186
|
+
console.log(
|
187
|
+
`%c 无计划安检汇总公司名 %c 呼叫模块 %c`,
|
188
|
+
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
|
189
|
+
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
|
190
|
+
'background:transparent',
|
191
|
+
this.orgname
|
192
|
+
)
|
193
|
+
},
|
194
|
+
selfSearch (args) {
|
195
|
+
if (!this.f_filiale_id) {
|
196
|
+
return this.$showMessage("请选择公司进行查询!!!")
|
197
|
+
}
|
198
|
+
this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
|
199
|
+
this.searchData.f_filiale_id = this.f_filiale_id //导出
|
200
|
+
this.searchData.condition=args.condition //导出
|
201
|
+
this.model.search(args.condition, args.model)
|
202
|
+
}
|
203
|
+
},
|
204
|
+
computed: {
|
205
|
+
excelTitle() {
|
206
|
+
return `${this.orgname }无计划安检汇总`
|
207
|
+
},
|
208
|
+
},
|
209
|
+
watch: {
|
210
|
+
},
|
211
|
+
ready () {
|
212
|
+
this.orgname = this.$login.f.orgs
|
213
|
+
//tag)
|
214
|
+
//tag
|
215
|
+
this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
|
216
|
+
this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
|
217
|
+
|
218
|
+
}
|
219
|
+
|
220
|
+
}
|
221
|
+
</script>
|
222
|
+
|
223
|
+
<style lang="less" >
|
224
|
+
.tableinfo {
|
225
|
+
text-align: center;
|
226
|
+
background-color: #00A3F0;
|
227
|
+
color: #0c2e4d;
|
228
|
+
font-size: 26px;
|
229
|
+
}
|
230
|
+
</style>
|
@@ -1,173 +1,183 @@
|
|
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_upload_date >= '{} 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_upload_date <= '{} 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="f_residential_area like '%{}%'">
|
38
|
-
</div>
|
39
|
-
<div class="col-sm-4
|
40
|
-
<
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<th>
|
78
|
-
<nobr
|
79
|
-
</th>
|
80
|
-
<th>
|
81
|
-
<nobr
|
82
|
-
</th>
|
83
|
-
<th>
|
84
|
-
<nobr
|
85
|
-
</th>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
</template>
|
97
|
-
<template partial=
|
98
|
-
|
99
|
-
<td style="text-align: center">{{
|
100
|
-
<td style="text-align: center">{{
|
101
|
-
<td style="text-align: center">{{
|
102
|
-
<td style="text-align: center">{{
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
</
|
109
|
-
|
110
|
-
<
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
}
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
this.
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
}
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
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_upload_date >= '{} 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_upload_date <= '{} 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="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="tcp.f_check_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_name = '{}'">
|
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="communityDetail" template-name='小区隐患明细'
|
64
|
+
:choose-col="true"></export-excel-safe>
|
65
|
+
</div>
|
66
|
+
<print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model" :field="$parent.$parent.excelHeaders"
|
67
|
+
:defaultfield="$parent.$parent.defaultPrint"
|
68
|
+
titletable="小区隐患明细" :starthead="$parent.$parent.getstart"
|
69
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
70
|
+
<button class="button_spacing button_search" @click="search()">查询</button>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
</criteria>
|
74
|
+
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
75
|
+
<template partial='head'>
|
76
|
+
<tr>
|
77
|
+
<th>
|
78
|
+
<nobr>序号</nobr>
|
79
|
+
</th>
|
80
|
+
<th>
|
81
|
+
<nobr>小区名称</nobr>
|
82
|
+
</th>
|
83
|
+
<th>
|
84
|
+
<nobr>存在隐患户数</nobr>
|
85
|
+
</th>
|
86
|
+
<th>
|
87
|
+
<nobr>已处理户数</nobr>
|
88
|
+
</th>
|
89
|
+
<th>
|
90
|
+
<nobr>处理中户数</nobr>
|
91
|
+
</th>
|
92
|
+
<th>
|
93
|
+
<nobr>未处理户数</nobr>
|
94
|
+
</th>
|
95
|
+
</tr>
|
96
|
+
</template>
|
97
|
+
<template partial='body'>
|
98
|
+
|
99
|
+
<td style="text-align: center">{{ $index + 1 }}</td>
|
100
|
+
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
101
|
+
<td style="text-align: center">{{ row.yhhs }}</td>
|
102
|
+
<td style="text-align: center">{{ row.yclyh }}</td>
|
103
|
+
<td style="text-align: center">{{ row.clzyh }}</td>
|
104
|
+
<td style="text-align: center">{{ row.wcl }}</td>
|
105
|
+
</template>
|
106
|
+
<template partial="foot">
|
107
|
+
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
108
|
+
<td style="text-align: center">{{ model.sums.yhhs }}</td>
|
109
|
+
<td style="text-align: center">{{ model.sums.yclyh }}</td>
|
110
|
+
<td style="text-align: center">{{ model.sums.clzyh }}</td>
|
111
|
+
<td style="text-align: center">{{ model.sums.wcl }}</td>
|
112
|
+
</template>
|
113
|
+
</data-grid>
|
114
|
+
</criteria-paged>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
</template>
|
118
|
+
|
119
|
+
<script>
|
120
|
+
import {PagedList} from "vue-client";
|
121
|
+
|
122
|
+
export default {
|
123
|
+
name: "communityDetail",
|
124
|
+
title: "小区隐患明细",
|
125
|
+
data() {
|
126
|
+
return {
|
127
|
+
model: new PagedList("/rs/sql/communityDetail", 999, {orgid: this.$login.f.orgid}, {
|
128
|
+
yhhs: '',
|
129
|
+
yclyh: '',
|
130
|
+
clzyh: '',
|
131
|
+
wcl:''
|
132
|
+
}),
|
133
|
+
resids: {},
|
134
|
+
searchData: {
|
135
|
+
condition: "1=1",
|
136
|
+
orgid: this.$login.f.orgid
|
137
|
+
},
|
138
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
139
|
+
excelHeaders: {
|
140
|
+
'f_residential_area': '小区名称',
|
141
|
+
'yhhs': '存在隐患户数',
|
142
|
+
'wcl': '未处理户数',
|
143
|
+
'yclyh': '已处理户数',
|
144
|
+
'clzyh': '处理中户数',
|
145
|
+
},
|
146
|
+
printshow: false,
|
147
|
+
defaultPrint: ['f_residential_area','yhhs','yclyh','clzyh','wcl'],
|
148
|
+
sumsmodel: {},
|
149
|
+
};
|
150
|
+
},
|
151
|
+
ready() {
|
152
|
+
this.model.search('1=1')
|
153
|
+
},
|
154
|
+
methods: {
|
155
|
+
selfSearch(args) {
|
156
|
+
this.model.search(args.condition, args.model, args.condValue)
|
157
|
+
this.searchData.condition = args.condition
|
158
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
159
|
+
},
|
160
|
+
getRes(obj) {
|
161
|
+
//tag
|
162
|
+
this.resids = {res: obj.res[0], resids: obj.resids[0]}
|
163
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
164
|
+
},
|
165
|
+
// 打印
|
166
|
+
stamp() {
|
167
|
+
this.printshow = true
|
168
|
+
},
|
169
|
+
close() {
|
170
|
+
this.printshow = false
|
171
|
+
}
|
172
|
+
},
|
173
|
+
computed:{
|
174
|
+
getstart(){
|
175
|
+
return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
|
176
|
+
},
|
177
|
+
}
|
178
|
+
}
|
179
|
+
</script>
|
180
|
+
|
181
|
+
<style scoped>
|
182
|
+
|
183
|
+
</style>
|