safecheck-client 3.0.30-29 → 3.0.30-33

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