safecheck-client 3.0.33-22 → 3.0.33-24
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 +3 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/fugou/pc/checkUserList.vue +1 -1
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/{safeCheckExamine.vue → SelectCheckPlan.vue} +117 -30
- package/src/filiale/yongzhou/pc/safeDetail.vue +5 -19
- package/src/filiale/yongzhou/pc.js +2 -0
- package/src/main.js +1 -1
- package/src/filiale/yongzhou/pc/safeCheckDetail.vue +0 -298
@@ -1,298 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' class="search_area" @condition-changed='$parent.search' v-ref:cri>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div
|
8
|
-
:class="{'form-group col-sm-6':$parent.$parent.$parent.showItem,'form-group col-sm-4':!$parent.$parent.$parent.showItem}"
|
9
|
-
style="margin: 0">
|
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
|
-
</role-selector-safe>
|
17
|
-
</div>
|
18
|
-
<div
|
19
|
-
:class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
20
|
-
<label class="font_normal_body">计划起始</label>
|
21
|
-
<datepicker
|
22
|
-
:value.sync="$parent.$parent.f_check_start"
|
23
|
-
placeholder='起始月份' style="width:60%"
|
24
|
-
:disabled-days-of-week="[]"
|
25
|
-
:format="'yyyy-MM'"
|
26
|
-
:select-month="true"
|
27
|
-
:show-rest-button="reset">
|
28
|
-
</datepicker>
|
29
|
-
</div>
|
30
|
-
<div
|
31
|
-
:class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
32
|
-
<label class="font_normal_body">计划截止</label>
|
33
|
-
<datepicker
|
34
|
-
:value.sync="$parent.$parent.f_check_end"
|
35
|
-
placeholder='结束月份' style="width:60%"
|
36
|
-
:disabled-days-of-week="[]"
|
37
|
-
:format="'yyyy-MM'"
|
38
|
-
:select-month="true"
|
39
|
-
:show-rest-button="reset">
|
40
|
-
</datepicker>
|
41
|
-
</div>
|
42
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
|
43
|
-
<label class="font_normal_body">安检状态</label>
|
44
|
-
<v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
|
45
|
-
style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
|
46
|
-
</v-select>
|
47
|
-
</div>-->
|
48
|
-
<div
|
49
|
-
:class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
50
|
-
<label class="font_normal_body">安检起始</label>
|
51
|
-
<datepicker
|
52
|
-
:value.sync="$parent.$parent.f_start_time"
|
53
|
-
placeholder='安检起始' style="width:60%"
|
54
|
-
:show-rest-button="reset">
|
55
|
-
</datepicker>
|
56
|
-
</div>
|
57
|
-
<div
|
58
|
-
:class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
59
|
-
<label class="font_normal_body">安检截止</label>
|
60
|
-
<datepicker
|
61
|
-
:value.sync="$parent.$parent.f_end_time"
|
62
|
-
placeholder='安检截止' style="width:60%"
|
63
|
-
:show-rest-button="reset">
|
64
|
-
</datepicker>
|
65
|
-
</div>
|
66
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
67
|
-
<!--<label class="font_normal_body">安检起始</label>-->
|
68
|
-
<!--<datepicker-->
|
69
|
-
<!--:value.sync="$parent.$parent.f_start_time"-->
|
70
|
-
<!--placeholder='起始时间' style="width:60%"-->
|
71
|
-
<!--:disabled-days-of-week="[]"-->
|
72
|
-
<!--:format="'yyyy-MM-dd'"-->
|
73
|
-
<!--:show-rest-button="reset">-->
|
74
|
-
<!--</datepicker>-->
|
75
|
-
<!--</div>-->
|
76
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
77
|
-
<!--<label class="font_normal_body">安检结束</label>-->
|
78
|
-
<!--<datepicker-->
|
79
|
-
<!--:value.sync="$parent.$parent.f_end_time"-->
|
80
|
-
<!--placeholder='结束时间' style="width:60%"-->
|
81
|
-
<!--:disabled-days-of-week="[]"-->
|
82
|
-
<!--:format="'yyyy-MM-dd'"-->
|
83
|
-
<!--:show-rest-button="reset">-->
|
84
|
-
<!--</datepicker>-->
|
85
|
-
<!--</div>-->
|
86
|
-
<div style="width: auto;margin-top:8px;float: right"
|
87
|
-
:class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
88
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
89
|
-
:field="$parent.$parent.excelHeaders"
|
90
|
-
progress="safeGetExportProgress"
|
91
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount"
|
92
|
-
template-name='安检计划明细'></export-excel-safe>
|
93
|
-
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
94
|
-
<!--<div class="button_spacing"-->
|
95
|
-
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
96
|
-
<!--@click="$parent.$parent.hidden()">-->
|
97
|
-
<!--</div>-->
|
98
|
-
<div class="button_spacing"
|
99
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
100
|
-
@click="$parent.$parent.hiddenr()"></div>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
</criteria>
|
105
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
106
|
-
<template partial='head'>
|
107
|
-
<tr>
|
108
|
-
<th>小区名称</th>
|
109
|
-
<th>安检员</th>
|
110
|
-
<th>计划安检总户数</th>
|
111
|
-
<th>未检户数</th>
|
112
|
-
<th>已检户数</th>
|
113
|
-
<th>入户户数</th>
|
114
|
-
<th>到访不遇户数</th>
|
115
|
-
<th>拒检户数</th>
|
116
|
-
<th>安检率</th>
|
117
|
-
<th>申请安检户数</th>
|
118
|
-
<th>总入户数</th>
|
119
|
-
</tr>
|
120
|
-
</template>
|
121
|
-
<template partial='body'>
|
122
|
-
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
123
|
-
<td style="text-align: center">{{ row.f_checker }}</td>
|
124
|
-
<td style="text-align: center">{{ row.plannum }}</td>
|
125
|
-
<td style="text-align: center">{{ row.wrj }}</td>
|
126
|
-
<td style="text-align: center">{{ row.yrj }}</td>
|
127
|
-
<td style="text-align: center">{{ row.ruhu }}</td>
|
128
|
-
<td style="text-align: center">{{ row.daofang }}</td>
|
129
|
-
<td style="text-align: center">{{ row.jujian }}</td>
|
130
|
-
<td style="text-align: center">{{ row.aj_lv }}</td>
|
131
|
-
<td style="text-align: center">{{ row.no_plan_num }}</td>
|
132
|
-
<td style="text-align: center">{{ row.total_yjnpm }}</td>
|
133
|
-
</template>
|
134
|
-
<template partial="foot">
|
135
|
-
<td style="text-align: center"><span><b>合计:</b></span></td>
|
136
|
-
<td style="text-align: center">{{ model.sums.ruhu_total }}</td>
|
137
|
-
<td style="text-align: center">{{ model.sums.plannum }}</td>
|
138
|
-
<td style="text-align: center">{{ model.sums.wrj }}</td>
|
139
|
-
<td style="text-align: center">{{ model.sums.yrj }}</td>
|
140
|
-
<td style="text-align: center">{{ model.sums.ruhu }}</td>
|
141
|
-
<td style="text-align: center">{{ model.sums.daofang }}</td>
|
142
|
-
<td style="text-align: center">{{ model.sums.jujian }}</td>
|
143
|
-
<td style="text-align: center">{{ model.sums.yrj / model.sums.total_yjnpm }}%</td>
|
144
|
-
<td style="text-align: center">{{ model.sums.no_plan_num }}</td>
|
145
|
-
<td style="text-align: center">{{ model.sums.total_yjnpm }}</td>
|
146
|
-
</template>
|
147
|
-
</data-grid>
|
148
|
-
</criteria-paged>
|
149
|
-
</div>
|
150
|
-
</template>
|
151
|
-
<script>
|
152
|
-
import {PagedList} from 'vue-client'
|
153
|
-
|
154
|
-
|
155
|
-
export default {
|
156
|
-
title: '安检计划查询',
|
157
|
-
data() {
|
158
|
-
let options = []
|
159
|
-
let year = (new Date()).getFullYear()
|
160
|
-
for (let i = year - 8; i <= year + 1; i++)
|
161
|
-
options.push({label: i + '', value: i + ''})
|
162
|
-
let model = new PagedList('rs/sql/planCount', 20, {
|
163
|
-
f_filialeid: `'${this.$login.f.orgid}'`,
|
164
|
-
}, {
|
165
|
-
plannum: '',
|
166
|
-
wrj: '',
|
167
|
-
yrj: '',
|
168
|
-
ruhu: '',
|
169
|
-
daofang: '',
|
170
|
-
jujian: '',
|
171
|
-
total_yjnpm: '',
|
172
|
-
no_plan_num: '',
|
173
|
-
total_yjnpm: ''
|
174
|
-
})
|
175
|
-
return {
|
176
|
-
excelHeaders: {
|
177
|
-
'f_residential_area': '小区名称',
|
178
|
-
'f_checker': '安检员',
|
179
|
-
'plannum': '计划安检总户数',
|
180
|
-
'wrj': '未检户数',
|
181
|
-
'yrj': '已检户数',
|
182
|
-
'ruhu': '入户户数',
|
183
|
-
'daofang': '到访不遇户数',
|
184
|
-
'jujian': '拒检户数',
|
185
|
-
'aj_lv': '安检率',
|
186
|
-
'no_plan_num': '无计划到访不遇',
|
187
|
-
'total_yjnpm': '无计划到访不遇'
|
188
|
-
},
|
189
|
-
searchData: {
|
190
|
-
f_checker: '',
|
191
|
-
f_filialeid: '(' + this.$login.f.orgid + ')',
|
192
|
-
f_start_time: '',
|
193
|
-
f_end_time: ''
|
194
|
-
},
|
195
|
-
checker: this.$login.f,
|
196
|
-
checkers: [],
|
197
|
-
checkersname: [],
|
198
|
-
checkStates: this.$appdata.getParam('安检状态'),
|
199
|
-
f: this.$login.f,
|
200
|
-
criteriaShow: false,
|
201
|
-
model: model,
|
202
|
-
f_check_start: '',
|
203
|
-
f_check_end: '',
|
204
|
-
f_start_time: '',
|
205
|
-
f_end_time: ''
|
206
|
-
}
|
207
|
-
},
|
208
|
-
methods: {
|
209
|
-
hidden() {
|
210
|
-
this.criteriaShow = !this.criteriaShow
|
211
|
-
},
|
212
|
-
hiddenr() {
|
213
|
-
this.$parent.showItem = !this.$parent.showItem
|
214
|
-
},
|
215
|
-
search(args) {
|
216
|
-
let tempStr = args.condition
|
217
|
-
if (this.f_check_start) {
|
218
|
-
condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0, 4)} `
|
219
|
-
condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5, 2)} `
|
220
|
-
}
|
221
|
-
if (this.f_check_end) {
|
222
|
-
condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0, 4)} `
|
223
|
-
condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5, 2)} `
|
224
|
-
}
|
225
|
-
if (this.f_start_time) {
|
226
|
-
condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
|
227
|
-
}
|
228
|
-
if (this.f_end_time) {
|
229
|
-
condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
|
230
|
-
}
|
231
|
-
if (this.$refs.paged.$refs.cri.model.f_checker_id) {
|
232
|
-
condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
233
|
-
condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
234
|
-
}
|
235
|
-
this.model.f_start_time = this.f_start_time
|
236
|
-
this.model.f_end_time = this.f_end_time
|
237
|
-
this.model.search(args.condition, args.model)
|
238
|
-
},
|
239
|
-
getRes(obj) {
|
240
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
241
|
-
}
|
242
|
-
},
|
243
|
-
ready() {
|
244
|
-
this.model.id = this.$login.f.id
|
245
|
-
this.model.f_filialeid = this.$login.f.orgid
|
246
|
-
},
|
247
|
-
|
248
|
-
watch: {
|
249
|
-
'model.condition'(val) {
|
250
|
-
if (val) {
|
251
|
-
this.searchData.condition = val
|
252
|
-
}
|
253
|
-
},
|
254
|
-
'model.f_checker'(val) {
|
255
|
-
if (val) {
|
256
|
-
this.searchData.f_checker = val
|
257
|
-
}
|
258
|
-
},
|
259
|
-
'f_start_time'(val) {
|
260
|
-
if (val) {
|
261
|
-
this.searchData.f_start_time = val
|
262
|
-
}
|
263
|
-
},
|
264
|
-
'f_end_time'(val) {
|
265
|
-
if (val) {
|
266
|
-
this.searchData.f_end_time = val
|
267
|
-
}
|
268
|
-
},
|
269
|
-
'checker'() {
|
270
|
-
// //tag
|
271
|
-
//tag
|
272
|
-
this.model.chosenOrg = this.checker[0]
|
273
|
-
},
|
274
|
-
'model.rows.length'() {
|
275
|
-
// 如果查询无结果,将合计置为0
|
276
|
-
if (this.model.rows.length < 1 && this.model.sums) {
|
277
|
-
this.model.sums.yrj = 0
|
278
|
-
this.model.sums.no_plan_num = 0
|
279
|
-
this.model.sums.wrj = 0
|
280
|
-
this.model.sums.ruhu = 0
|
281
|
-
this.model.sums.jujian = 0
|
282
|
-
this.model.sums.daofang = 0
|
283
|
-
this.model.sums.ruhu_total = 0
|
284
|
-
this.model.sums.daofang_total = 0
|
285
|
-
this.model.sums.jujian_total = 0
|
286
|
-
this.model.sums.total_sum = 0
|
287
|
-
}
|
288
|
-
}
|
289
|
-
},
|
290
|
-
computed: {
|
291
|
-
selected() {
|
292
|
-
// //tag
|
293
|
-
// this.$parent.showItem=!this.$parent.showItem
|
294
|
-
return this.$refs.paged.$refs.grid.selected
|
295
|
-
}
|
296
|
-
}
|
297
|
-
}
|
298
|
-
</script>
|