safecheck-client 3.0.30-69 → 3.0.30-70

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