safecheck-client 3.0.30-26 → 3.0.30-27

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,220 +1,222 @@
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 form-group" style="margin: 0">
40
- <role-selector-safe
41
- role-name="安检员"
42
- :resobjprop.sync="$parent.$parent.resids"
43
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
44
- @re-res="$parent.$parent.getRes"
45
- :value.sync="model.f_checker_id"
46
- v-model="model.f_checker_id"
47
- condition="tcp.f_checker_name = '{}'">
48
- </role-selector-safe>
49
- </div>
50
- <div style="float: right">
51
- <export-excel-safe :data="$parent.$parent.searchData"
52
- :field="$parent.$parent.excelHeaders"
53
- progress="safeGetExportProgress"
54
- sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
55
- :choose-col="true"></export-excel-safe>
56
- </div>
57
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
- :field="$parent.$parent.excelHeaders"
59
- :defaultfield="$parent.$parent.defaultPrint"
60
- titletable="安检情况明细" :starthead="$parent.$parent.getstart"
61
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
62
- <button class="button_spacing button_search" @click="search()">查询</button>
63
- </div>
64
- </div>
65
- </criteria>
66
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
- <template partial='head'>
68
- <tr>
69
- <th>
70
- <nobr>序号</nobr>
71
- </th>
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>到访不遇-1次</nobr>
89
- </th>
90
- <th>
91
- <nobr>到访不遇-2次</nobr>
92
- </th>
93
- <th>
94
- <nobr>到访不遇-3次</nobr>
95
- </th>
96
- <th>
97
- <nobr>到访不遇小计</nobr>
98
- </th>
99
- <th>
100
- <nobr>拒检户数</nobr>
101
- </th>
102
- <th>
103
- <nobr>安检率</nobr>
104
- </th>
105
- </tr>
106
- </template>
107
- <template partial='body'>
108
-
109
- <td style="text-align: center">{{ $index + 1 }}</td>
110
- <td style="text-align: center">{{ row.f_residential_area }}</td>
111
- <td style="text-align: center">{{ row.totalcount }}</td>
112
- <td style="text-align: center">{{ row.wjcount }}</td>
113
- <td style="text-align: center">{{ row.rhcount + row.dfbycount3 }}</td>
114
- <td style="text-align: center">{{ row.rhcount }}</td>
115
- <td style="text-align: center">{{ row.dfbycount1 }}</td>
116
- <td style="text-align: center">{{ row.dfbycount2 }}</td>
117
- <td style="text-align: center">{{ row.dfbycount3 }}</td>
118
- <td style="text-align: center">{{ row.unique_dfby_count }}</td>
119
- <td style="text-align: center">{{ row.jjcount }}</td>
120
- <td style="text-align: center">{{ ((row.rhcount + row.dfbycount3) / row.totalcount).toFixed(2) }}%</td>
121
- </template>
122
- <template partial="foot">
123
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
124
- <td style="text-align: center">{{ model.sums.totalcount }}</td>
125
-
126
- <td style="text-align: center">{{ model.sums.wjcount }}</td>
127
-
128
- <td style="text-align: center">{{ model.sums.rhcount + model.sums.dfbycount3 }}</td>
129
-
130
- <td style="text-align: center">{{ model.sums.rhcount }}</td>
131
-
132
- <td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
133
- <td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
134
- <td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
135
- <td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
136
- <td style="text-align: center">{{ model.sums.jjcount }}</td>
137
- <td style="text-align: center">
138
- {{ ((model.sums.rhcount + model.sums.dfbycount3) / model.sums.totalcount).toFixed(2) }}%
139
- </td>
140
-
141
- </template>
142
- </data-grid>
143
- </criteria-paged>
144
- </div>
145
- </div>
146
- </template>
147
-
148
- <script>
149
- import {PagedList} from "vue-client";
150
-
151
- export default {
152
- name: "safeDetail",
153
- title: "安检情况明细",
154
- data() {
155
-
156
- return {
157
- model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
158
- totalcount: '',
159
- wjcount: '',
160
- rhcount: '',
161
- dfbycount1: '',
162
- dfbycount2: '',
163
- dfbycount3: '',
164
- unique_dfby_count: '',
165
- jjcount: ''
166
- }),
167
- resids: {},
168
- searchData: {
169
- condition: "1=1",
170
- orgid: this.$login.f.orgid
171
- },
172
- excelHeaders: {
173
- 'f_residential_area': '小区名称',
174
- 'totalcount': '计划安检总户数',
175
- 'wjcount': '未检户数',
176
- 'rhcount': '入户户数',
177
- 'dfbycount1': '到访不遇-1次',
178
- 'dfbycount2': '到访不遇-2次',
179
- 'dfbycount3': '到访不遇-3次',
180
- 'unique_dfby_count': '到访不遇小计',
181
- 'jjcount': '拒检户数',
182
- },
183
- printshow: false,
184
- defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount'],
185
- sumsmodel: {},
186
- }
187
- },
188
- ready() {
189
- this.model.search('1=1')
190
- },
191
- methods: {
192
- selfSearch(args) {
193
- this.model.search(args.condition, args.model, args.condValue)
194
- this.searchData.condition = args.condition
195
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
196
- },
197
- getRes(obj) {
198
- //tag
199
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
200
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
201
- },
202
- // 打印
203
- stamp() {
204
- this.printshow = true
205
- },
206
- close() {
207
- this.printshow = false
208
- }
209
- },
210
- computed: {
211
- getstart() {
212
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
213
- },
214
- }
215
- }
216
- </script>
217
-
218
- <style scoped>
219
-
220
- </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_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 form-group" style="margin: 0">
40
+ <role-selector-safe
41
+ role-name="安检员"
42
+ :resobjprop.sync="$parent.$parent.resids"
43
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
44
+ @re-res="$parent.$parent.getRes"
45
+ :value.sync="model.f_checker_id"
46
+ v-model="model.f_checker_id"
47
+ condition="tcp.f_checker_name = '{}'">
48
+ </role-selector-safe>
49
+ </div>
50
+ <div style="float: right">
51
+ <export-excel-safe :data="$parent.$parent.searchData"
52
+ :field="$parent.$parent.excelHeaders"
53
+ progress="safeGetExportProgress"
54
+ sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
55
+ :choose-col="true"></export-excel-safe>
56
+ </div>
57
+ <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
58
+ :field="$parent.$parent.excelHeaders"
59
+ :defaultfield="$parent.$parent.defaultPrint"
60
+ titletable="安检情况明细" :starthead="$parent.$parent.getstart"
61
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
62
+ <button class="button_spacing button_search" @click="search()">查询</button>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
67
+ <template partial='head'>
68
+ <tr>
69
+ <th>
70
+ <nobr>序号</nobr>
71
+ </th>
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>到访不遇-1次</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>到访不遇-2次</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>到访不遇-3次</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>到访不遇小计</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>拒检户数</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>安检率</nobr>
104
+ </th>
105
+ </tr>
106
+ </template>
107
+ <template partial='body'>
108
+
109
+ <td style="text-align: center">{{ $index + 1 }}</td>
110
+ <td style="text-align: center">{{ row.f_residential_area }}</td>
111
+ <td style="text-align: center">{{ row.totalcount }}</td>
112
+ <td style="text-align: center">{{ row.wjcount }}</td>
113
+ <td style="text-align: center">{{ row.yjcount }}</td>
114
+ <td style="text-align: center">{{ row.rhcount }}</td>
115
+ <td style="text-align: center">{{ row.dfbycount1 }}</td>
116
+ <td style="text-align: center">{{ row.dfbycount2 }}</td>
117
+ <td style="text-align: center">{{ row.dfbycount3 }}</td>
118
+ <td style="text-align: center">{{ row.unique_dfby_count }}</td>
119
+ <td style="text-align: center">{{ row.jjcount }}</td>
120
+ <td style="text-align: center">{{ row.check_bv }}</td>
121
+ </template>
122
+ <template partial="foot">
123
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
124
+ <td style="text-align: center">{{ model.sums.totalcount }}</td>
125
+
126
+ <td style="text-align: center">{{ model.sums.wjcount }}</td>
127
+
128
+ <td style="text-align: center">{{ model.sums.yjcount }}</td>
129
+
130
+ <td style="text-align: center">{{ model.sums.rhcount }}</td>
131
+
132
+ <td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
133
+ <td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
134
+ <td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
135
+ <td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
136
+ <td style="text-align: center">{{ model.sums.jjcount }}</td>
137
+ <td style="text-align: center">
138
+ {{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
139
+ </td>
140
+
141
+ </template>
142
+ </data-grid>
143
+ </criteria-paged>
144
+ </div>
145
+ </div>
146
+ </template>
147
+
148
+ <script>
149
+ import {PagedList} from "vue-client";
150
+
151
+ export default {
152
+ name: "safeDetail",
153
+ title: "安检情况明细",
154
+ data() {
155
+
156
+ return {
157
+ model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
158
+ totalcount: '',
159
+ wjcount: '',
160
+ yjcount: '',
161
+ rhcount: '',
162
+ dfbycount1: '',
163
+ dfbycount2: '',
164
+ dfbycount3: '',
165
+ unique_dfby_count: '',
166
+ jjcount: ''
167
+ }),
168
+ resids: {},
169
+ searchData: {
170
+ condition: "1=1",
171
+ orgid: this.$login.f.orgid
172
+ },
173
+ excelHeaders: {
174
+ 'f_residential_area': '小区名称',
175
+ 'totalcount': '计划安检总户数',
176
+ 'wjcount': '未检户数',
177
+ 'yjcount': '已检户数',
178
+ 'rhcount': '入户户数',
179
+ 'dfbycount1': '到访不遇-1次',
180
+ 'dfbycount2': '到访不遇-2次',
181
+ 'dfbycount3': '到访不遇-3次',
182
+ 'unique_dfby_count': '到访不遇小计',
183
+ 'jjcount': '拒检户数',
184
+ },
185
+ printshow: false,
186
+ defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv'],
187
+ sumsmodel: {},
188
+ }
189
+ },
190
+ ready() {
191
+ this.model.search('1=1')
192
+ },
193
+ methods: {
194
+ selfSearch(args) {
195
+ this.model.search(args.condition, args.model, args.condValue)
196
+ this.searchData.condition = args.condition
197
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
198
+ },
199
+ getRes(obj) {
200
+ //tag
201
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
202
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
203
+ },
204
+ // 打印
205
+ stamp() {
206
+ this.printshow = true
207
+ },
208
+ close() {
209
+ this.printshow = false
210
+ }
211
+ },
212
+ computed: {
213
+ getstart() {
214
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
215
+ },
216
+ }
217
+ }
218
+ </script>
219
+
220
+ <style scoped>
221
+
222
+ </style>