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.
@@ -1,271 +1,271 @@
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="安&nbsp;检&nbsp;员&nbsp;"
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="form-group col-sm-3 form-input-group" style="width: 20%;">
20
- <label class="font_normal_body">用户类型</label>
21
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
22
- :value-single="true" style="width: 60%"
23
- class="select_list select"
24
- :options='$parent.$parent.user_types' placeholder='用户类型'
25
- close-on-select
26
- condition="f_check_type = '{}'"></v-select>
27
- </div>
28
- <div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
29
- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
30
- :field="$parent.$parent.excelHeaders"
31
- :defaultfield="$parent.$parent.defaultPrint"
32
- :titletable="'安检员考核'" :starthead="$parent.$parent.getstart"
33
- ></print-data-safe>
34
- <export-excel-safe :data="$parent.$parent.searchData"
35
- :field="$parent.$parent.excelHeaders"
36
- sqlurl="rs/logic/SafeExportExcel"
37
- sql-name="SafecheckSummary"
38
- :template-name="$parent.$parent.excelTitle">
39
- </export-excel-safe>
40
-
41
- <button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
42
- </div>
43
- </div>
44
- <div class="row">
45
- <div class="form-group col-sm-4">
46
- <label class="font_normal_body">计划创建开始日期:</label>
47
- <datepicker
48
- placeholder='计划创建开始日期'
49
- style="width:60%"
50
- :disabled-days-of-week="[]"
51
- :format="'yyyy-MM-dd'"
52
- :show-rest-button="reset"
53
- :value.sync="model.start_time"
54
- v-model="model.start_time"
55
- condition="tcp.f_create_time >= '{} 00:00:00'">
56
- </datepicker>
57
- </div>
58
- <div class="form-group col-sm-4">
59
- <label class="font_normal_body">计划创建结束日期:</label>
60
- <datepicker
61
- placeholder='计划创建结束日期'
62
- :disabled-days-of-week="[]"
63
- style="width:60%"
64
- :format="'yyyy-MM-dd'"
65
- :show-rest-button="reset"
66
- :value.sync="model.end_time"
67
- v-model="model.end_time"
68
- condition="tcp.f_create_time <= '{} 23:59:59'">
69
- </datepicker>
70
- </div>
71
- </div>
72
- <div class="row">
73
- <div class="col-sm-4 form-group">
74
- <label for="startDate" class="font_normal_body">安检日期开始:</label>
75
- <datepicker id="startDate" placeholder="安检日期开始"
76
- v-model="model.checkstart"
77
- :value.sync="model.checkstart"
78
- style="width: 60%;"
79
- :disabled-days-of-Week="[]"
80
- :format="'yyyy-MM-dd 00:00:00'"
81
- condition="tcpi.f_last_check_date >= '{}'"
82
- :show-reset-button="reset">
83
- </datepicker>
84
- </div>
85
- <div class="col-sm-4 form-group">
86
- <label for="endDate" class="font_normal_body">安检日期结束:</label>
87
- <datepicker id="endDate" placeholder="安检日期结束"
88
- v-model="model.checkend"
89
- :value.sync="model.checkend"
90
- :disabled-days-of-Week="[]"
91
- style="width: 60%;"
92
- condition="tcpi.f_last_check_date <= '{}'"
93
- :format="'yyyy-MM-dd 23:59:59'"
94
- :show-reset-button="reset">
95
- </datepicker>
96
- </div>
97
- </div>
98
- </div>
99
- </criteria>
100
- <data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
101
- <template partial='head'>
102
- <tr>
103
- <th>
104
- <nobr>序号</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
- <th>
122
- <nobr>三次到访不遇户数</nobr>
123
- </th>
124
- <th>
125
- <nobr>拒检户数</nobr>
126
- </th>
127
- <th>
128
- <nobr>安检率</nobr>
129
- </th>
130
- <th>
131
- <nobr>申请安检户数</nobr>
132
- </th>
133
- <th>
134
- <nobr>总入户数</nobr>
135
- </th>
136
- </tr>
137
- </template>
138
- <template partial='body'>
139
-
140
- <td style="text-align: center">{{ $index + 1 }}</td>
141
- <td style="text-align: center">{{ row.checker }}</td>
142
- <td style="text-align: center">{{ row.data1 }}</td>
143
- <td style="text-align: center">{{ row.data2 }}</td>
144
- <td style="text-align: center">{{ row.data3 }}</td>
145
- <td style="text-align: center">{{ row.data4 }}</td>
146
- <td style="text-align: center">{{ row.data5 }}</td>
147
- <td style="text-align: center">{{ row.data6 }}</td>
148
- <td style="text-align: center">{{ row.data7 }}</td>
149
- <td style="text-align: center">{{ row.data8 }}</td>
150
- <td style="text-align: center">{{ row.data9 }}</td>
151
- </template>
152
- <template partial="foot">
153
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
154
- <td style="text-align: center">{{ model.sums.data1 }}</td>
155
- <td style="text-align: center">{{ model.sums.data2 }}</td>
156
- <td style="text-align: center">{{ model.sums.data3 }}</td>
157
- <td style="text-align: center">{{ model.sums.data4 }}</td>
158
- <td style="text-align: center">{{ model.sums.data5 }}</td>
159
- <td style="text-align: center">{{ model.sums.data6 }}</td>
160
- <td style="text-align: center">{{ (model.sums.data3/model.sums.data1 * 100.0).toFixed(2)}}%</td>
161
- <td style="text-align: center">{{ model.sums.data8 }}</td>
162
- <td style="text-align: center">{{ model.sums.data9 }}</td>
163
- </template>
164
- </data-grid>
165
- </criteria-paged>
166
- </div>
167
- </section>
168
- </div>
169
- </template>
170
- <script>
171
- import {PagedList, HttpResetClass} from 'vue-client'
172
- import * as Util from '../../Util'
173
-
174
- export default {
175
- title: '安检员考核',
176
- data () {
177
- let model = new PagedList('rs/sql/SafecheckSummary', 20, {
178
- f_filiale_id: 'this.f_filiale_id'
179
- },{data1:'',data2:'',data3:'',data4:'',data5:'',data6:'',data8:'',data9:''})
180
- model.f_filiale_id = `('${this.$login.f.orgid}')`
181
- return {
182
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
183
- f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
184
- model: model,
185
- source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
186
- userid: this.$login.f.id,
187
- orgname: '',
188
- // checker:{},
189
- searchData: {
190
- condition: '',
191
- f_filiale_id: ''
192
- },
193
- print_model:{},
194
- excelHeaders: {
195
- 'checker': '安检员',
196
- 'data1': '计划安检总户数',
197
- 'data2': '未检户数',
198
- 'data3': '已检户数',
199
- 'data4': '入户户数',
200
- 'data5': '三次到访不遇户数',
201
- 'data6': '拒检户数',
202
- 'data7': '安检率',
203
- 'data8': '申请安检户数',
204
- 'data9': '总入户数'
205
- },
206
- defaultPrint: ['checker','data1','data2','data3','data4','data5','data6','data7','data8','data9'],
207
-
208
- }
209
- },
210
- methods: {
211
- getRes (obj) {
212
- this.f_filiale_id = this.$login.convertToIn(obj.resids)
213
- this.orgname = obj.res[0]
214
- this.$set('orgname', obj.res[0])
215
- },
216
- async selfSearch (args) {
217
- if (!this.f_filiale_id) {
218
- return this.$showMessage("请选择公司进行查询!!!")
219
- }
220
- this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
221
- this.searchData.f_filiale_id = this.f_filiale_id //导出
222
- this.searchData.condition=args.condition //导出
223
- await this.model.search(args.condition, args.model)
224
- this.searchData.condition = args.condition
225
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
226
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
227
- this.print_model.rows.push({
228
- checker: '合计',
229
- data1: this.sumsmodel.data1,
230
- data2: this.sumsmodel.data2,
231
- data3: this.sumsmodel.data3,
232
- data4: this.sumsmodel.data4,
233
- data5: this.sumsmodel.data5,
234
- data6: this.sumsmodel.data6,
235
- data7: `${(this.sumsmodel.data3/this.sumsmodel.data1*100.0).toFixed(2)}%`,
236
- data8: this.sumsmodel.data8,
237
- data9: this.sumsmodel.data9
238
- })
239
- this.print_model.totalPage = 0
240
- }
241
- },
242
- computed: {
243
- excelTitle() {
244
- return `${this.orgname }安检员考核`
245
- },
246
- getstart() {
247
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
248
- },
249
- },
250
- watch: {
251
- },
252
- ready () {
253
- this.orgname = this.$login.f.orgs
254
- //tag)
255
- //tag
256
- this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
257
- this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
258
-
259
- }
260
-
261
- }
262
- </script>
263
-
264
- <style lang="less" >
265
- .tableinfo {
266
- text-align: center;
267
- background-color: #00A3F0;
268
- color: #0c2e4d;
269
- font-size: 26px;
270
- }
271
- </style>
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="安&nbsp;检&nbsp;员&nbsp;"
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="form-group col-sm-3 form-input-group" style="width: 20%;">
20
+ <label class="font_normal_body">用户类型</label>
21
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
22
+ :value-single="true" style="width: 60%"
23
+ class="select_list select"
24
+ :options='$parent.$parent.user_types' placeholder='用户类型'
25
+ close-on-select
26
+ condition="f_check_type = '{}'"></v-select>
27
+ </div>
28
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
29
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
30
+ :field="$parent.$parent.excelHeaders"
31
+ :defaultfield="$parent.$parent.defaultPrint"
32
+ :titletable="'安检员考核'" :starthead="$parent.$parent.getstart"
33
+ ></print-data-safe>
34
+ <export-excel-safe :data="$parent.$parent.searchData"
35
+ :field="$parent.$parent.excelHeaders"
36
+ sqlurl="rs/logic/SafeExportExcel"
37
+ sql-name="SafecheckSummary"
38
+ :template-name="$parent.$parent.excelTitle">
39
+ </export-excel-safe>
40
+
41
+ <button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
42
+ </div>
43
+ </div>
44
+ <div class="row">
45
+ <div class="form-group col-sm-4">
46
+ <label class="font_normal_body">计划创建开始日期:</label>
47
+ <datepicker
48
+ placeholder='计划创建开始日期'
49
+ style="width:60%"
50
+ :disabled-days-of-week="[]"
51
+ :format="'yyyy-MM-dd'"
52
+ :show-rest-button="reset"
53
+ :value.sync="model.start_time"
54
+ v-model="model.start_time"
55
+ condition="tcp.f_create_time >= '{} 00:00:00'">
56
+ </datepicker>
57
+ </div>
58
+ <div class="form-group col-sm-4">
59
+ <label class="font_normal_body">计划创建结束日期:</label>
60
+ <datepicker
61
+ placeholder='计划创建结束日期'
62
+ :disabled-days-of-week="[]"
63
+ style="width:60%"
64
+ :format="'yyyy-MM-dd'"
65
+ :show-rest-button="reset"
66
+ :value.sync="model.end_time"
67
+ v-model="model.end_time"
68
+ condition="tcp.f_create_time <= '{} 23:59:59'">
69
+ </datepicker>
70
+ </div>
71
+ </div>
72
+ <div class="row">
73
+ <div class="col-sm-4 form-group">
74
+ <label for="startDate" class="font_normal_body">安检日期开始:</label>
75
+ <datepicker id="startDate" placeholder="安检日期开始"
76
+ v-model="model.checkstart"
77
+ :value.sync="model.checkstart"
78
+ style="width: 60%;"
79
+ :disabled-days-of-Week="[]"
80
+ :format="'yyyy-MM-dd 00:00:00'"
81
+ condition="tcpi.f_last_check_date >= '{}'"
82
+ :show-reset-button="reset">
83
+ </datepicker>
84
+ </div>
85
+ <div class="col-sm-4 form-group">
86
+ <label for="endDate" class="font_normal_body">安检日期结束:</label>
87
+ <datepicker id="endDate" placeholder="安检日期结束"
88
+ v-model="model.checkend"
89
+ :value.sync="model.checkend"
90
+ :disabled-days-of-Week="[]"
91
+ style="width: 60%;"
92
+ condition="tcpi.f_last_check_date <= '{}'"
93
+ :format="'yyyy-MM-dd 23:59:59'"
94
+ :show-reset-button="reset">
95
+ </datepicker>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </criteria>
100
+ <data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
101
+ <template partial='head'>
102
+ <tr>
103
+ <th>
104
+ <nobr>序号</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
+ <th>
122
+ <nobr>三次到访不遇户数</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>拒检户数</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>安检率</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>申请安检户数</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>总入户数</nobr>
135
+ </th>
136
+ </tr>
137
+ </template>
138
+ <template partial='body'>
139
+
140
+ <td style="text-align: center">{{ $index + 1 }}</td>
141
+ <td style="text-align: center">{{ row.checker }}</td>
142
+ <td style="text-align: center">{{ row.data1 }}</td>
143
+ <td style="text-align: center">{{ row.data2 }}</td>
144
+ <td style="text-align: center">{{ row.data3 }}</td>
145
+ <td style="text-align: center">{{ row.data4 }}</td>
146
+ <td style="text-align: center">{{ row.data5 }}</td>
147
+ <td style="text-align: center">{{ row.data6 }}</td>
148
+ <td style="text-align: center">{{ row.data7 }}</td>
149
+ <td style="text-align: center">{{ row.data8 }}</td>
150
+ <td style="text-align: center">{{ row.data9 }}</td>
151
+ </template>
152
+ <template partial="foot">
153
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
154
+ <td style="text-align: center">{{ model.sums.data1 }}</td>
155
+ <td style="text-align: center">{{ model.sums.data2 }}</td>
156
+ <td style="text-align: center">{{ model.sums.data3 }}</td>
157
+ <td style="text-align: center">{{ model.sums.data4 }}</td>
158
+ <td style="text-align: center">{{ model.sums.data5 }}</td>
159
+ <td style="text-align: center">{{ model.sums.data6 }}</td>
160
+ <td style="text-align: center">{{ (model.sums.data3/model.sums.data1 * 100.0).toFixed(2)}}%</td>
161
+ <td style="text-align: center">{{ model.sums.data8 }}</td>
162
+ <td style="text-align: center">{{ model.sums.data9 }}</td>
163
+ </template>
164
+ </data-grid>
165
+ </criteria-paged>
166
+ </div>
167
+ </section>
168
+ </div>
169
+ </template>
170
+ <script>
171
+ import {PagedList, HttpResetClass} from 'vue-client'
172
+ import * as Util from '../../Util'
173
+
174
+ export default {
175
+ title: '安检员考核',
176
+ data () {
177
+ let model = new PagedList('rs/sql/SafecheckSummary', 20, {
178
+ f_filiale_id: 'this.f_filiale_id'
179
+ },{data1:'',data2:'',data3:'',data4:'',data5:'',data6:'',data8:'',data9:''})
180
+ model.f_filiale_id = `('${this.$login.f.orgid}')`
181
+ return {
182
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
183
+ f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
184
+ model: model,
185
+ source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
186
+ userid: this.$login.f.id,
187
+ orgname: '',
188
+ // checker:{},
189
+ searchData: {
190
+ condition: '',
191
+ f_filiale_id: ''
192
+ },
193
+ print_model:{},
194
+ excelHeaders: {
195
+ 'checker': '安检员',
196
+ 'data1': '计划安检总户数',
197
+ 'data2': '未检户数',
198
+ 'data3': '已检户数',
199
+ 'data4': '入户户数',
200
+ 'data5': '三次到访不遇户数',
201
+ 'data6': '拒检户数',
202
+ 'data7': '安检率',
203
+ 'data8': '申请安检户数',
204
+ 'data9': '总入户数'
205
+ },
206
+ defaultPrint: ['checker','data1','data2','data3','data4','data5','data6','data7','data8','data9'],
207
+
208
+ }
209
+ },
210
+ methods: {
211
+ getRes (obj) {
212
+ this.f_filiale_id = this.$login.convertToIn(obj.resids)
213
+ this.orgname = obj.res[0]
214
+ this.$set('orgname', obj.res[0])
215
+ },
216
+ async selfSearch (args) {
217
+ if (!this.f_filiale_id) {
218
+ return this.$showMessage("请选择公司进行查询!!!")
219
+ }
220
+ this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
221
+ this.searchData.f_filiale_id = this.f_filiale_id //导出
222
+ this.searchData.condition=args.condition //导出
223
+ await this.model.search(args.condition, args.model)
224
+ this.searchData.condition = args.condition
225
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
226
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
227
+ this.print_model.rows.push({
228
+ checker: '合计',
229
+ data1: this.sumsmodel.data1,
230
+ data2: this.sumsmodel.data2,
231
+ data3: this.sumsmodel.data3,
232
+ data4: this.sumsmodel.data4,
233
+ data5: this.sumsmodel.data5,
234
+ data6: this.sumsmodel.data6,
235
+ data7: `${(this.sumsmodel.data3/this.sumsmodel.data1*100.0).toFixed(2)}%`,
236
+ data8: this.sumsmodel.data8,
237
+ data9: this.sumsmodel.data9
238
+ })
239
+ this.print_model.totalPage = 0
240
+ }
241
+ },
242
+ computed: {
243
+ excelTitle() {
244
+ return `${this.orgname }安检员考核`
245
+ },
246
+ getstart() {
247
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
248
+ },
249
+ },
250
+ watch: {
251
+ },
252
+ ready () {
253
+ this.orgname = this.$login.f.orgs
254
+ //tag)
255
+ //tag
256
+ this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
257
+ this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
258
+
259
+ }
260
+
261
+ }
262
+ </script>
263
+
264
+ <style lang="less" >
265
+ .tableinfo {
266
+ text-align: center;
267
+ background-color: #00A3F0;
268
+ color: #0c2e4d;
269
+ font-size: 26px;
270
+ }
271
+ </style>