safecheck-client 3.0.33-29 → 3.0.33-30

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.
@@ -1,255 +1,446 @@
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="安&nbsp;检&nbsp;员&nbsp;"
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="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
- <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
- <th>
100
- <nobr>到访不遇-1次</nobr>
101
- </th>
102
- <th>
103
- <nobr>到访不遇-2次</nobr>
104
- </th>
105
- <th>
106
- <nobr>到访不遇-3次</nobr>
107
- </th>
108
- <th>
109
- <nobr>到访不遇小计</nobr>
110
- </th>
111
- <th>
112
- <nobr>拒检户数</nobr>
113
- </th>
114
- <th>
115
- <nobr>安检率</nobr>
116
- </th>
117
- </tr>
118
- </template>
119
- <template partial='body'>
120
-
121
- <td style="text-align: center">{{ $index + 1 }}</td>
122
- <td style="text-align: center">{{ row.f_residential_area }}</td>
123
- <td style="text-align: center">{{ row.totalcount }}</td>
124
- <td style="text-align: center">{{ row.sqajcount }}</td>
125
- <td style="text-align: center">{{ row.wjcount }}</td>
126
- <td style="text-align: center">{{ row.yjcount }}</td>
127
- <td style="text-align: center">{{ row.rhcount }}</td>
128
- <td style="text-align: center">{{ row.dfbycount1 }}</td>
129
- <td style="text-align: center">{{ row.dfbycount2 }}</td>
130
- <td style="text-align: center">{{ row.dfbycount3 }}</td>
131
- <td style="text-align: center">{{ row.unique_dfby_count }}</td>
132
- <td style="text-align: center">{{ row.jjcount }}</td>
133
- <td style="text-align: center">{{ row.check_bv }}</td>
134
- </template>
135
- <template partial="foot">
136
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
137
- <td style="text-align: center">{{ model.sums.totalcount }}</td>
138
- <td style="text-align: center">{{ model.sums.sqajcount }}</td>
139
- <td style="text-align: center">{{ model.sums.wjcount }}</td>
140
-
141
- <td style="text-align: center">{{ model.sums.yjcount }}</td>
142
-
143
- <td style="text-align: center">{{ model.sums.rhcount }}</td>
144
-
145
- <td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
146
- <td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
147
- <td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
148
- <td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
149
- <td style="text-align: center">{{ model.sums.jjcount }}</td>
150
- <td style="text-align: center">
151
- {{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
152
- </td>
153
-
154
- </template>
155
- </data-grid>
156
- </criteria-paged>
157
- </div>
158
- </div>
159
- </template>
160
-
161
- <script>
162
- import {PagedList} from "vue-client";
163
-
164
- export default {
165
- name: "safeDetail",
166
- title: "安检情况明细",
167
- data() {
168
-
169
- return {
170
- model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
171
- totalcount: '',
172
- sqajcount:'',
173
- wjcount: '',
174
- yjcount: '',
175
- rhcount: '',
176
- dfbycount1: '',
177
- dfbycount2: '',
178
- dfbycount3: '',
179
- unique_dfby_count: '',
180
- jjcount: ''
181
- }),
182
- resids: {},
183
- searchData: {
184
- condition: "1=1",
185
- orgid: this.$login.f.orgid
186
- },
187
- print_model:{},
188
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
189
- excelHeaders: {
190
- 'f_residential_area': '小区名称',
191
- 'totalcount': '计划安检总户数',
192
- 'sqajcount': '申请安检数',
193
- 'wjcount': '未检户数',
194
- 'yjcount': '已检户数',
195
- 'rhcount': '入户户数',
196
- 'dfbycount1': '到访不遇-1次',
197
- 'dfbycount2': '到访不遇-2次',
198
- 'dfbycount3': '到访不遇-3次',
199
- 'unique_dfby_count': '到访不遇小计',
200
- 'jjcount': '拒检户数',
201
- 'check_bv':'安检率'
202
- },
203
- printshow: false,
204
- defaultPrint: ['f_residential_area', 'totalcount', 'sqajcount','wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv'],
205
- sumsmodel: {},
206
- }
207
- },
208
- ready() {
209
- // this.model.search('1=1')
210
- },
211
- methods: {
212
- async selfSearch(args) {
213
- await this.model.search(args.condition, args.model, args.condValue)
214
- this.searchData.condition = args.condition
215
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
216
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
217
- this.print_model.rows.push({
218
- f_residential_area:'合计',
219
- totalcount: this.sumsmodel.totalcount,
220
- sqajcount: this.sumsmodel.sqajcount,
221
- wjcount: this.sumsmodel.wjcount,
222
- yjcount: this.sumsmodel.yjcount,
223
- rhcount: this.sumsmodel.rhcount,
224
- dfbycount1: this.sumsmodel.dfbycount1,
225
- dfbycount2: this.sumsmodel.dfbycount2,
226
- dfbycount3: this.sumsmodel.dfbycount3,
227
- unique_dfby_count: this.sumsmodel.unique_dfby_count,
228
- check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`
229
- })
230
- this.print_model.totalPage = 0
231
- },
232
- getRes(obj) {
233
- //tag
234
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
235
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
236
- },
237
- // 打印
238
- stamp() {
239
- this.printshow = true
240
- },
241
- close() {
242
- this.printshow = false
243
- }
244
- },
245
- computed: {
246
- getstart() {
247
- return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
248
- },
249
- }
250
- }
251
- </script>
252
-
253
- <style scoped>
254
-
255
- </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="安&nbsp;检&nbsp;员&nbsp;"
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 partial='criteria' class="search_area" v-ref:criteria>
167
+ <div partial>
168
+ <div class="row">
169
+ <div class="form-group col-sm-4">
170
+ <label class="font_normal_body">开始时间</label>
171
+ <datepicker
172
+ placeholder='请选择'
173
+ style="width:60%"
174
+ :disabled-days-of-week="[]"
175
+ :format="'yyyy-MM-dd'"
176
+ :show-rest-button="reset"
177
+ :value.sync="$parent.$parent.modalSearchData.start_time"
178
+ v-model="$parent.$parent.modalSearchData.start_time"
179
+ >
180
+ </datepicker>
181
+ </div>
182
+ <div class="form-group col-sm-4">
183
+ <label class="font_normal_body">结束时间</label>
184
+ <datepicker
185
+ placeholder='请选择'
186
+ :disabled-days-of-week="[]"
187
+ style="width:60%"
188
+ :format="'yyyy-MM-dd'"
189
+ :show-rest-button="reset"
190
+ :value.sync="$parent.$parent.modalSearchData.end_time"
191
+ v-model="$parent.$parent.modalSearchData.end_time">
192
+ </datepicker>
193
+ </div>
194
+ <div class="col-sm-4 form-group">
195
+ <label class="font_normal_body">用户编号</label>
196
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_userinfo_code">
197
+ </div>
198
+ <div class="col-sm-4 form-group">
199
+ <label class="font_normal_body">用户名称</label>
200
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_user_name">
201
+ </div>
202
+ <div class="col-sm-4 form-group">
203
+ <label class="font_normal_body">用户地址</label>
204
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_address">
205
+ </div>
206
+ <div class="col-sm-4 form-group">
207
+ <label class="font_normal_body">用户电话</label>
208
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_user_phone">
209
+ </div>
210
+ <div class="col-sm-4 form-group">
211
+ <label class="font_normal_body">安检员</label>
212
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_checker">
213
+ </div>
214
+ <div class="col-sm-4 form-group">
215
+ <label class="font_normal_body">安检状态</label>
216
+ <v-select :value.sync="$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.modalSearchData.f_last_check_state'
217
+ :value-single="true" style="width: 60%"
218
+ class="select_list select"
219
+ :options='$parent.$parent.last_check_states' placeholder='安检状态'
220
+ close-on-select
221
+ ></v-select>
222
+ </div>
223
+ <div class="form-group col-sm-4">
224
+ <label class="font_normal_body">用户类型</label>
225
+ <v-select :value.sync="$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.modalSearchData.f_user_type'
226
+ :value-single="true" style="width: 60%"
227
+ class="select_list select"
228
+ :options='$parent.$parent.user_types' placeholder='用户类型'
229
+ close-on-select
230
+ ></v-select>
231
+ </div>
232
+ <div class="col-sm-4 form-group">
233
+ <label class="font_normal_body">到访不遇次数</label>
234
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.modalSearchData.f_check_version">
235
+ </div>
236
+ <button class="button_spacing button_search" @click="$parent.$parent.modalSearch()">查询</button>
237
+ </div>
238
+ </div>
239
+ </criteria>
240
+ <data-grid class="list_area table_sy" :model="modalModel" v-ref:modalgrid partial='list'>
241
+ <template partial='head'>
242
+ <th>
243
+ <nobr>用户编号</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>用户名称</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>小区</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>地址</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>客户电话</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>到访不遇次数</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>安检时间</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>安检员</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>用户类型</nobr>
268
+ </th>
269
+ <th v-if="$parent.$parent.$parent.$parent.type === '1'">
270
+ <nobr>安检状态</nobr>
271
+ </th>
272
+ </template>
273
+ <template partial='body'>
274
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
275
+ <td style="text-align:center">{{row.f_user_name }}</td>
276
+ <td style="text-align:center">{{row.f_residential_area}}</td>
277
+ <td style="text-align:center">{{row.f_address}}</td>
278
+ <td style="text-align:center">{{row.f_user_phone}}</td>
279
+ <td style="text-align:center">{{row.f_check_version}}</td>
280
+ <td style="text-align:center">{{row.f_last_check_date}}</td>
281
+ <td style="text-align:center">{{row.f_checker}}</td>
282
+ <td style="text-align:center">{{row.f_user_type}}</td>
283
+ <td style="text-align:center" v-if="$parent.$parent.$parent.$parent.type === '1'">{{row.f_last_check_state}}</td>
284
+ </template>
285
+ </data-grid>
286
+ </article>
287
+ <footer slot="modal-footer" class="modal-footer">
288
+ <button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
289
+ </footer>
290
+ </modal>
291
+ </div>
292
+ </template>
293
+
294
+ <script>
295
+ import {PagedList} from "vue-client";
296
+
297
+ export default {
298
+ name: "safeDetail",
299
+ title: "安检情况明细",
300
+ data() {
301
+
302
+ return {
303
+ model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
304
+ totalcount: '',
305
+ sqajcount:'',
306
+ ruhucount:'',
307
+ wjcount: '',
308
+ yjcount: '',
309
+ rhcount: '',
310
+ dfbycount1: '',
311
+ dfbycount2: '',
312
+ dfbycount3: '',
313
+ unique_dfby_count: '',
314
+ jjcount: ''
315
+ }),
316
+ resids: {},
317
+ modalModel: new PagedList('rs/sql/singleTable_OrderBy', 99999, {
318
+ items: '"tcpi.*,tcp.f_checker"',
319
+ tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
320
+ orderitem: '"1"'
321
+ }),
322
+ modalSearchData:{},
323
+ searchData: {
324
+ condition: "1=1",
325
+ orgid: this.$login.f.orgid
326
+ },
327
+ modal_show:false,
328
+ print_model:{},
329
+ last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
330
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
331
+ excelHeaders: {
332
+ 'f_residential_area': '小区名称',
333
+ 'totalcount': '计划安检总户数',
334
+ 'wjcount': '未检户数',
335
+ 'yjcount': '已检户数',
336
+ 'rhcount': '入户户数',
337
+ 'dfbycount1': '到访不遇-1次',
338
+ 'dfbycount2': '到访不遇-2次',
339
+ 'dfbycount3': '到访不遇-3次',
340
+ 'unique_dfby_count': '到访不遇小计',
341
+ 'jjcount': '拒检户数',
342
+ 'check_bv':'安检率',
343
+ 'sqajcount': '申请安检户数',
344
+ 'ruhucount': '总入户数',
345
+ },
346
+ modalRow:{},
347
+ type:'1',
348
+ printshow: false,
349
+ defaultPrint: ['f_residential_area', 'totalcount','wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv', 'sqajcount', 'ruhucount'],
350
+ sumsmodel: {},
351
+ }
352
+ },
353
+ ready() {
354
+ // this.model.search('1=1')
355
+ },
356
+ methods: {
357
+ async modalShow (row,type) {
358
+ this.type = type
359
+ this.modalRow = row
360
+ this.modal_show = true
361
+ this.modalSearchData = {}
362
+ await this.modalSearch(row)
363
+ },
364
+ modalSearch () {
365
+ let modalCondition = this.$refs.paged.model.condition
366
+ if (this.modalSearchData.f_last_check_state){
367
+ modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
368
+ }
369
+ if (this.modalSearchData.f_user_name){
370
+ modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
371
+ }
372
+ if (this.modalSearchData.f_user_type){
373
+ modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
374
+ }
375
+ if (this.modalSearchData.start_time){
376
+ modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
377
+ }
378
+ if (this.modalSearchData.end_time){
379
+ modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
380
+ }
381
+ if (this.modalSearchData.f_userinfo_code){
382
+ modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
383
+ }
384
+ if (this.modalSearchData.f_address){
385
+ modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
386
+ }
387
+ if (this.modalSearchData.f_user_phone){
388
+ modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
389
+ }
390
+ if (this.modalSearchData.f_checker){
391
+ modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
392
+ }
393
+ if (this.modalSearchData.f_check_version){
394
+ modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
395
+ }
396
+ modalCondition += ` and tcpi.f_residential_area = '${this.modalRow.f_residential_area}'`
397
+ if (this.type == '0') {
398
+ modalCondition += ` and tcp.f_safecheck_type = '临时安检'`
399
+ }
400
+ this.modalModel.search(modalCondition, this.modalModel)
401
+ },
402
+ async selfSearch(args) {
403
+ await this.model.search(args.condition, args.model, args.condValue)
404
+ this.searchData.condition = args.condition
405
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
406
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
407
+ this.print_model.rows.push({
408
+ f_residential_area:'合计',
409
+ totalcount: this.sumsmodel.totalcount,
410
+ wjcount: this.sumsmodel.wjcount,
411
+ yjcount: this.sumsmodel.yjcount,
412
+ rhcount: this.sumsmodel.rhcount,
413
+ dfbycount1: this.sumsmodel.dfbycount1,
414
+ dfbycount2: this.sumsmodel.dfbycount2,
415
+ dfbycount3: this.sumsmodel.dfbycount3,
416
+ unique_dfby_count: this.sumsmodel.unique_dfby_count,
417
+ check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`,
418
+ sqajcount: this.sumsmodel.sqajcount,
419
+ ruhucount: this.sumsmodel.ruhucount
420
+ })
421
+ this.print_model.totalPage = 0
422
+ },
423
+ getRes(obj) {
424
+ //tag
425
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
426
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
427
+ },
428
+ // 打印
429
+ stamp() {
430
+ this.printshow = true
431
+ },
432
+ close() {
433
+ this.printshow = false
434
+ }
435
+ },
436
+ computed: {
437
+ getstart() {
438
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
439
+ },
440
+ }
441
+ }
442
+ </script>
443
+
444
+ <style scoped>
445
+
446
+ </style>