safecheck-client 3.0.33-75 → 3.0.33-77
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/filiale/yangchunboneng/pc/CheckBookUser.vue +225 -198
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +18 -13
- package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
- package/src/filiale/yongzhou/pc/safeDetail.vue +14 -9
- package/src/filiale/yongzhou/pc/safeStatistics.vue +175 -175
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +135 -135
- package/src/main.js +1 -1
@@ -6,9 +6,9 @@
|
|
6
6
|
<div partial>
|
7
7
|
<div class="row">
|
8
8
|
<div class="form-group col-sm-4">
|
9
|
-
<label class="font_normal_body"
|
9
|
+
<label class="font_normal_body">计划开始:</label>
|
10
10
|
<datepicker
|
11
|
-
placeholder='
|
11
|
+
placeholder='计划开始'
|
12
12
|
style="width:60%"
|
13
13
|
:disabled-days-of-week="[]"
|
14
14
|
:format="'yyyy-MM-dd'"
|
@@ -19,9 +19,9 @@
|
|
19
19
|
</datepicker>
|
20
20
|
</div>
|
21
21
|
<div class="form-group col-sm-4">
|
22
|
-
<label class="font_normal_body"
|
22
|
+
<label class="font_normal_body">计划结束:</label>
|
23
23
|
<datepicker
|
24
|
-
placeholder='
|
24
|
+
placeholder='计划结束'
|
25
25
|
:disabled-days-of-week="[]"
|
26
26
|
style="width:60%"
|
27
27
|
:format="'yyyy-MM-dd'"
|
@@ -209,7 +209,7 @@
|
|
209
209
|
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
|
210
210
|
</div>
|
211
211
|
<div class="col-sm-4 form-group">
|
212
|
-
<label class="font_normal_body"
|
212
|
+
<label class="font_normal_body">安 检 员</label>
|
213
213
|
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
|
214
214
|
</div>
|
215
215
|
<div class="col-sm-4 form-group">
|
@@ -231,7 +231,7 @@
|
|
231
231
|
></v-select>
|
232
232
|
</div>
|
233
233
|
<div class="col-sm-4 form-group">
|
234
|
-
<label class="font_normal_body"
|
234
|
+
<label class="font_normal_body">到访次数</label>
|
235
235
|
<input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
|
236
236
|
</div>
|
237
237
|
<div style="float: right">
|
@@ -271,6 +271,9 @@
|
|
271
271
|
<th>
|
272
272
|
<nobr>安检员</nobr>
|
273
273
|
</th>
|
274
|
+
<th>
|
275
|
+
<nobr>计划名称</nobr>
|
276
|
+
</th>
|
274
277
|
<th>
|
275
278
|
<nobr>用户类型</nobr>
|
276
279
|
</th>
|
@@ -287,6 +290,7 @@
|
|
287
290
|
<td style="text-align:center">{{row.f_check_version}}</td>
|
288
291
|
<td style="text-align:center">{{row.f_last_check_date}}</td>
|
289
292
|
<td style="text-align:center">{{row.f_checker}}</td>
|
293
|
+
<td style="text-align:center">{{row.f_plan_name}}</td>
|
290
294
|
<td style="text-align:center">{{row.f_user_type}}</td>
|
291
295
|
<td style="text-align:center">{{row.f_last_check_state}}</td>
|
292
296
|
</template>
|
@@ -324,7 +328,7 @@ export default {
|
|
324
328
|
}),
|
325
329
|
resids: {},
|
326
330
|
modalModel: new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
|
327
|
-
items: '"tcpi.*,tcp.f_checker"',
|
331
|
+
items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
|
328
332
|
tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
|
329
333
|
orderitem: '"1"'
|
330
334
|
}),
|
@@ -335,7 +339,7 @@ export default {
|
|
335
339
|
}),
|
336
340
|
modalSearchData:{},
|
337
341
|
modalSearchExcelData:{
|
338
|
-
items: "tcpi.*,tcp.f_checker",
|
342
|
+
items: "tcpi.*,tcp.f_checker,tcp.f_plan_name",
|
339
343
|
tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
|
340
344
|
orderitem: "f_userinfo_code"
|
341
345
|
},
|
@@ -348,6 +352,7 @@ export default {
|
|
348
352
|
'f_check_version': '到访不遇次数',
|
349
353
|
'f_last_check_date': '安检时间',
|
350
354
|
'f_checker': '安检员',
|
355
|
+
'f_plan_name':"计划名称",
|
351
356
|
'f_user_type': '用户类型',
|
352
357
|
'f_last_check_state': '安检状态'
|
353
358
|
|
@@ -395,7 +400,7 @@ export default {
|
|
395
400
|
},
|
396
401
|
modalSearch () {
|
397
402
|
this.modalModel = new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
|
398
|
-
items: '"tcpi.*,tcp.f_checker"',
|
403
|
+
items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
|
399
404
|
tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
|
400
405
|
orderitem: '"1"'
|
401
406
|
})
|
@@ -1,175 +1,175 @@
|
|
1
|
-
<template>
|
2
|
-
<div id='app' class="basic-main" style="height: 100%">
|
3
|
-
<criteria-paged :model="model" :pager='false'>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' class="search_area">
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-sm-4 form-group">
|
8
|
-
<role-selector-safe
|
9
|
-
role-name="安检员"
|
10
|
-
role-lable="安 检 员"
|
11
|
-
@re-res="$parent.$parent.getRes"
|
12
|
-
:value.sync="model.f_checker_id"
|
13
|
-
v-model="model.f_checker_id"
|
14
|
-
condition="tcp.f_checker = '{}'">
|
15
|
-
</role-selector-safe>
|
16
|
-
</div>
|
17
|
-
<div class="form-group col-sm-4">
|
18
|
-
<label class="font_normal_body">用户类型</label>
|
19
|
-
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
20
|
-
:value-single="true" style="width: 60%"
|
21
|
-
class="select_list select"
|
22
|
-
:options='$parent.$parent.user_types' placeholder='用户类型'
|
23
|
-
close-on-select
|
24
|
-
condition="tcpi.f_user_type = '{}'"></v-select>
|
25
|
-
</div>
|
26
|
-
<div class="form-group col-sm-4" >
|
27
|
-
<label class="font_normal_body">小  区</label>
|
28
|
-
<input type="text" class="input_search" v-model="model.f_residential_area"
|
29
|
-
style="width: 60%" placeholder="小区" condition="tcpi.f_residential_area like '%{}%'">
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<div class="row">
|
33
|
-
<div class="col-sm-4 form-group">
|
34
|
-
<label for="startDate" class="font_normal_body"
|
35
|
-
<datepicker id="startDate" placeholder="
|
36
|
-
v-model="model.startDate"
|
37
|
-
:value.sync="model.startDate"
|
38
|
-
style="width: 60%;"
|
39
|
-
:disabled-days-of-Week="[]"
|
40
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
41
|
-
condition="tcp.f_create_time >= '{}'"
|
42
|
-
:show-reset-button="reset">
|
43
|
-
</datepicker>
|
44
|
-
</div>
|
45
|
-
<div class="col-sm-4 form-group">
|
46
|
-
<label for="endDate" class="font_normal_body"
|
47
|
-
<datepicker id="endDate" placeholder="
|
48
|
-
v-model="model.endDate"
|
49
|
-
:value.sync="model.endDate"
|
50
|
-
:disabled-days-of-Week="[]"
|
51
|
-
style="width: 60%;"
|
52
|
-
condition="tcp.f_create_time <= '{}'"
|
53
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
54
|
-
:show-reset-button="reset">
|
55
|
-
</datepicker>
|
56
|
-
</div>
|
57
|
-
<div class="col-sm-4 form-group" style="margin-top: 8px">
|
58
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
59
|
-
<report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
60
|
-
<report-excel id='checkerPrint'></report-excel>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
<div class="row">
|
64
|
-
<div class="col-sm-4 form-group">
|
65
|
-
<label for="startDate" class="font_normal_body"
|
66
|
-
<datepicker id="startDate" placeholder="
|
67
|
-
v-model="model.checkstart"
|
68
|
-
:value.sync="model.checkstart"
|
69
|
-
style="width: 60%;"
|
70
|
-
:disabled-days-of-Week="[]"
|
71
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
72
|
-
condition="tcpi.f_last_check_date >= '{}'"
|
73
|
-
:show-reset-button="reset">
|
74
|
-
</datepicker>
|
75
|
-
</div>
|
76
|
-
<div class="col-sm-4 form-group">
|
77
|
-
<label for="endDate" class="font_normal_body"
|
78
|
-
<datepicker id="endDate" placeholder="
|
79
|
-
v-model="model.checkend"
|
80
|
-
:value.sync="model.checkend"
|
81
|
-
:disabled-days-of-Week="[]"
|
82
|
-
style="width: 60%;"
|
83
|
-
condition="tcpi.f_last_check_date <= '{}'"
|
84
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
85
|
-
:show-reset-button="reset">
|
86
|
-
</datepicker>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
</criteria>
|
91
|
-
<div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
|
92
|
-
<table class='tableprint' style="margin: 0px auto">
|
93
|
-
<thead>
|
94
|
-
<tr>
|
95
|
-
<th colspan='9' style="font-weight: normal; text-align: left;">
|
96
|
-
<h3 style="text-align: center">安检员明细报表</h3>
|
97
|
-
</th>
|
98
|
-
</tr>
|
99
|
-
<tr>
|
100
|
-
<th colspan='9' style="font-weight: normal; text-align: center;">
|
101
|
-
|
102
|
-
|
103
|
-
</th>
|
104
|
-
</tr>
|
105
|
-
</thead>
|
106
|
-
<tr>
|
107
|
-
<th colspan='9' style="font-weight: normal;">
|
108
|
-
{{{ model.data.substring(26,model.data.length-8) }}}
|
109
|
-
</th>
|
110
|
-
</tr>
|
111
|
-
<tr style="height: 100px"></tr>
|
112
|
-
</table>
|
113
|
-
</div>
|
114
|
-
</criteria-paged>
|
115
|
-
</div>
|
116
|
-
|
117
|
-
</template>
|
118
|
-
|
119
|
-
<script>
|
120
|
-
import {DataModel, HttpResetClass} from 'vue-client'
|
121
|
-
|
122
|
-
export default {
|
123
|
-
title: '安检员明细报表',
|
124
|
-
data () {
|
125
|
-
let model = new DataModel('rs/report/checkerReport', {})
|
126
|
-
// model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
127
|
-
return {
|
128
|
-
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
129
|
-
userid: this.$login.f.id,
|
130
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
131
|
-
model: model
|
132
|
-
}
|
133
|
-
},
|
134
|
-
methods: {
|
135
|
-
getRes (obj) {
|
136
|
-
this.model.f_filialeid = this.$login.convertToIn(obj.resids)
|
137
|
-
},
|
138
|
-
selfSearch (args) {
|
139
|
-
let condition = {
|
140
|
-
condition1 : args.condition,
|
141
|
-
condition2 : `1=1 and f_entry_status = '入户'`
|
142
|
-
}
|
143
|
-
if (args.model.f_checker_id){
|
144
|
-
condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
|
145
|
-
}
|
146
|
-
if (args.model.f_user_type){
|
147
|
-
condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
|
148
|
-
}
|
149
|
-
if (args.model.f_residential_area){
|
150
|
-
condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
|
151
|
-
}
|
152
|
-
if (args.model.checkstart){
|
153
|
-
condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
|
154
|
-
}
|
155
|
-
if (args.model.checkend){
|
156
|
-
condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
|
157
|
-
}
|
158
|
-
this.model.search(condition, args.model)
|
159
|
-
}
|
160
|
-
},
|
161
|
-
ready () {
|
162
|
-
},
|
163
|
-
computed: {
|
164
|
-
selected () {
|
165
|
-
return this.$refs.grid.selected
|
166
|
-
}
|
167
|
-
// outlets () {
|
168
|
-
// return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
|
169
|
-
// },
|
170
|
-
// operator () {
|
171
|
-
// return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
|
172
|
-
// }
|
173
|
-
}
|
174
|
-
}
|
175
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div id='app' class="basic-main" style="height: 100%">
|
3
|
+
<criteria-paged :model="model" :pager='false'>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' class="search_area">
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-4 form-group">
|
8
|
+
<role-selector-safe
|
9
|
+
role-name="安检员"
|
10
|
+
role-lable="安 检 员"
|
11
|
+
@re-res="$parent.$parent.getRes"
|
12
|
+
:value.sync="model.f_checker_id"
|
13
|
+
v-model="model.f_checker_id"
|
14
|
+
condition="tcp.f_checker = '{}'">
|
15
|
+
</role-selector-safe>
|
16
|
+
</div>
|
17
|
+
<div class="form-group col-sm-4">
|
18
|
+
<label class="font_normal_body">用户类型</label>
|
19
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
20
|
+
:value-single="true" style="width: 60%"
|
21
|
+
class="select_list select"
|
22
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
23
|
+
close-on-select
|
24
|
+
condition="tcpi.f_user_type = '{}'"></v-select>
|
25
|
+
</div>
|
26
|
+
<div class="form-group col-sm-4" >
|
27
|
+
<label class="font_normal_body">小  区</label>
|
28
|
+
<input type="text" class="input_search" v-model="model.f_residential_area"
|
29
|
+
style="width: 60%" placeholder="小区" condition="tcpi.f_residential_area like '%{}%'">
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="row">
|
33
|
+
<div class="col-sm-4 form-group">
|
34
|
+
<label for="startDate" class="font_normal_body">计划开始:</label>
|
35
|
+
<datepicker id="startDate" placeholder="计划开始"
|
36
|
+
v-model="model.startDate"
|
37
|
+
:value.sync="model.startDate"
|
38
|
+
style="width: 60%;"
|
39
|
+
:disabled-days-of-Week="[]"
|
40
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
41
|
+
condition="tcp.f_create_time >= '{}'"
|
42
|
+
:show-reset-button="reset">
|
43
|
+
</datepicker>
|
44
|
+
</div>
|
45
|
+
<div class="col-sm-4 form-group">
|
46
|
+
<label for="endDate" class="font_normal_body">计划结束:</label>
|
47
|
+
<datepicker id="endDate" placeholder="计划结束"
|
48
|
+
v-model="model.endDate"
|
49
|
+
:value.sync="model.endDate"
|
50
|
+
:disabled-days-of-Week="[]"
|
51
|
+
style="width: 60%;"
|
52
|
+
condition="tcp.f_create_time <= '{}'"
|
53
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
54
|
+
:show-reset-button="reset">
|
55
|
+
</datepicker>
|
56
|
+
</div>
|
57
|
+
<div class="col-sm-4 form-group" style="margin-top: 8px">
|
58
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
59
|
+
<report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
60
|
+
<report-excel id='checkerPrint'></report-excel>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<div class="row">
|
64
|
+
<div class="col-sm-4 form-group">
|
65
|
+
<label for="startDate" class="font_normal_body">安检开始:</label>
|
66
|
+
<datepicker id="startDate" placeholder="安检开始"
|
67
|
+
v-model="model.checkstart"
|
68
|
+
:value.sync="model.checkstart"
|
69
|
+
style="width: 60%;"
|
70
|
+
:disabled-days-of-Week="[]"
|
71
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
72
|
+
condition="tcpi.f_last_check_date >= '{}'"
|
73
|
+
:show-reset-button="reset">
|
74
|
+
</datepicker>
|
75
|
+
</div>
|
76
|
+
<div class="col-sm-4 form-group">
|
77
|
+
<label for="endDate" class="font_normal_body">安检结束:</label>
|
78
|
+
<datepicker id="endDate" placeholder="安检结束"
|
79
|
+
v-model="model.checkend"
|
80
|
+
:value.sync="model.checkend"
|
81
|
+
:disabled-days-of-Week="[]"
|
82
|
+
style="width: 60%;"
|
83
|
+
condition="tcpi.f_last_check_date <= '{}'"
|
84
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
85
|
+
:show-reset-button="reset">
|
86
|
+
</datepicker>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</criteria>
|
91
|
+
<div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
|
92
|
+
<table class='tableprint' style="margin: 0px auto">
|
93
|
+
<thead>
|
94
|
+
<tr>
|
95
|
+
<th colspan='9' style="font-weight: normal; text-align: left;">
|
96
|
+
<h3 style="text-align: center">安检员明细报表</h3>
|
97
|
+
</th>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<th colspan='9' style="font-weight: normal; text-align: center;">
|
101
|
+
计划开始日期:{{model.model.startDate}}
|
102
|
+
计划结束日期:{{ model.model.endDate }}
|
103
|
+
</th>
|
104
|
+
</tr>
|
105
|
+
</thead>
|
106
|
+
<tr>
|
107
|
+
<th colspan='9' style="font-weight: normal;">
|
108
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
109
|
+
</th>
|
110
|
+
</tr>
|
111
|
+
<tr style="height: 100px"></tr>
|
112
|
+
</table>
|
113
|
+
</div>
|
114
|
+
</criteria-paged>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</template>
|
118
|
+
|
119
|
+
<script>
|
120
|
+
import {DataModel, HttpResetClass} from 'vue-client'
|
121
|
+
|
122
|
+
export default {
|
123
|
+
title: '安检员明细报表',
|
124
|
+
data () {
|
125
|
+
let model = new DataModel('rs/report/checkerReport', {})
|
126
|
+
// model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
127
|
+
return {
|
128
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
129
|
+
userid: this.$login.f.id,
|
130
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
131
|
+
model: model
|
132
|
+
}
|
133
|
+
},
|
134
|
+
methods: {
|
135
|
+
getRes (obj) {
|
136
|
+
this.model.f_filialeid = this.$login.convertToIn(obj.resids)
|
137
|
+
},
|
138
|
+
selfSearch (args) {
|
139
|
+
let condition = {
|
140
|
+
condition1 : args.condition,
|
141
|
+
condition2 : `1=1 and f_entry_status = '入户'`
|
142
|
+
}
|
143
|
+
if (args.model.f_checker_id){
|
144
|
+
condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
|
145
|
+
}
|
146
|
+
if (args.model.f_user_type){
|
147
|
+
condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
|
148
|
+
}
|
149
|
+
if (args.model.f_residential_area){
|
150
|
+
condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
|
151
|
+
}
|
152
|
+
if (args.model.checkstart){
|
153
|
+
condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
|
154
|
+
}
|
155
|
+
if (args.model.checkend){
|
156
|
+
condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
|
157
|
+
}
|
158
|
+
this.model.search(condition, args.model)
|
159
|
+
}
|
160
|
+
},
|
161
|
+
ready () {
|
162
|
+
},
|
163
|
+
computed: {
|
164
|
+
selected () {
|
165
|
+
return this.$refs.grid.selected
|
166
|
+
}
|
167
|
+
// outlets () {
|
168
|
+
// return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
|
169
|
+
// },
|
170
|
+
// operator () {
|
171
|
+
// return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
|
172
|
+
// }
|
173
|
+
}
|
174
|
+
}
|
175
|
+
</script>
|