safecheck-client 3.0.30-44 → 3.0.30-46

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,248 +1,248 @@
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
- :select-year="true"
14
- :disabled-days-of-week="[]"
15
- :format="'yyyy'"
16
- :show-rest-button="reset"
17
- :value.sync="model.start_time"
18
- v-model="model.start_time"
19
- condition="tcpi.f_last_check_date >= '{}-01-01 00:00:00'">
20
- </datepicker>
21
- </div>
22
- <div class="form-group col-sm-4">
23
- <label class="font_normal_body">结束时间:</label>
24
- <datepicker
25
- placeholder='请选择'
26
- :select-year="true"
27
- :disabled-days-of-week="[]"
28
- style="width:60%"
29
- :format="'yyyy'"
30
- :show-rest-button="reset"
31
- :value.sync="model.end_time"
32
- v-model="model.end_time"
33
- condition="tcpi.f_last_check_date <= '{}-12-31 23:59:59'">
34
- </datepicker>
35
- </div>
36
- <div class="col-sm-4 form-group">
37
- <label class="font_normal_body">小区名称:</label>
38
- <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
39
- </div>
40
- <div class="form-group col-sm-4">
41
- <label class="font_normal_body">用户类型</label>
42
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
43
- :value-single="true" style="width: 60%"
44
- class="select_list select"
45
- :options='$parent.$parent.user_types' placeholder='用户类型'
46
- close-on-select
47
- condition="tcpi.f_user_type = '{}'"></v-select>
48
- </div>
49
- <div class="col-sm-4 form-group" style="margin: 0">
50
- <role-selector-safe
51
- role-name="安检员"
52
- :resobjprop.sync="$parent.$parent.resids"
53
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
- @re-res="$parent.$parent.getRes"
55
- :value.sync="model.f_checker_id"
56
- v-model="model.f_checker_id"
57
- condition="tcp.f_checker_name = '{}'">
58
- </role-selector-safe>
59
- </div>
60
- <div style="float: right">
61
- <export-excel-safe :data="$parent.$parent.searchData"
62
- :field="$parent.$parent.excelHeaders"
63
- progress="safeGetExportProgress"
64
- sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsMonth" template-name='安检报表月' :choose-col="true"></export-excel-safe>
65
- </div>
66
- <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
67
- :field="$parent.$parent.excelHeaders"
68
- :defaultfield="$parent.$parent.defaultPrint"
69
- titletable="安检报表月" :starthead="$parent.$parent.getstart"
70
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
71
- <button class="button_spacing button_search" @click="search()">查询</button>
72
- </div>
73
- </div>
74
- </criteria>
75
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
76
- <template partial='head'>
77
- <tr>
78
- <th>
79
- <nobr>序号</nobr>
80
- </th>
81
- <th>
82
- <nobr>小区名称</nobr>
83
- </th>
84
- <th>
85
- <nobr>1月</nobr>
86
- </th>
87
- <th>
88
- <nobr>2月</nobr>
89
- </th>
90
- <th>
91
- <nobr>3月</nobr>
92
- </th>
93
- <th>
94
- <nobr>4月</nobr>
95
- </th>
96
- <th>
97
- <nobr>5月</nobr>
98
- </th>
99
- <th>
100
- <nobr>6月</nobr>
101
- </th>
102
- <th>
103
- <nobr>7月</nobr>
104
- </th>
105
- <th>
106
- <nobr>8月</nobr>
107
- </th>
108
- <th>
109
- <nobr>9月</nobr>
110
- </th>
111
- <th>
112
- <nobr>10月</nobr>
113
- </th>
114
- <th>
115
- <nobr>11月</nobr>
116
- </th>
117
- <th>
118
- <nobr>12月</nobr>
119
- </th>
120
- <th>
121
- <nobr>小计</nobr>
122
- </th>
123
- </tr>
124
- </template>
125
- <template partial='body'>
126
-
127
- <td style="text-align: center">{{ $index + 1 }}</td>
128
- <td style="text-align: center">{{ row.f_residential_area }}</td>
129
- <td style="text-align: center">{{ row.month1 }}</td>
130
- <td style="text-align: center">{{ row.month2 }}</td>
131
- <td style="text-align: center">{{ row.month3 }}</td>
132
- <td style="text-align: center">{{ row.month4 }}</td>
133
- <td style="text-align: center">{{ row.month5 }}</td>
134
- <td style="text-align: center">{{ row.month6 }}</td>
135
- <td style="text-align: center">{{ row.month7 }}</td>
136
- <td style="text-align: center">{{ row.month8 }}</td>
137
- <td style="text-align: center">{{ row.month9 }}</td>
138
- <td style="text-align: center">{{ row.month10 }}</td>
139
- <td style="text-align: center">{{ row.month11 }}</td>
140
- <td style="text-align: center">{{ row.month12 }}</td>
141
- <td style="text-align: center">{{ row.countarea }}</td>
142
- </template>
143
- <template partial="foot">
144
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
145
- <td style="text-align: center">{{ model.sums.month1 }}</td>
146
- <td style="text-align: center">{{ model.sums.month2 }}</td>
147
- <td style="text-align: center">{{ model.sums.month3 }}</td>
148
- <td style="text-align: center">{{ model.sums.month4 }}</td>
149
- <td style="text-align: center">{{ model.sums.month5 }}</td>
150
- <td style="text-align: center">{{ model.sums.month6 }}</td>
151
- <td style="text-align: center">{{ model.sums.month7 }}</td>
152
- <td style="text-align: center">{{ model.sums.month8 }}</td>
153
- <td style="text-align: center">{{ model.sums.month9 }}</td>
154
- <td style="text-align: center">{{ model.sums.month10 }}</td>
155
- <td style="text-align: center">{{ model.sums.month11 }}</td>
156
- <td style="text-align: center">{{ model.sums.month12 }}</td>
157
- <td style="text-align: center">{{ model.sums.countarea }}</td>
158
- </template>
159
- </data-grid>
160
- </criteria-paged>
161
- </div>
162
- </div>
163
- </template>
164
-
165
- <script>
166
- import {PagedList} from "vue-client";
167
-
168
- export default {
169
- name: "safeStatisticsMonth",
170
- title: "安检报表月",
171
- data() {
172
-
173
- return {
174
- model: new PagedList("/rs/sql/safeStatisticsMonth", 999, {orgid: this.$login.f.orgid}, {
175
- month1: '',
176
- month2: '',
177
- month3: '',
178
- month4: '',
179
- month5: '',
180
- month6: '',
181
- month7: '',
182
- month8: '',
183
- month9: '',
184
- month10: '',
185
- month11: '',
186
- month12: '',
187
- countarea: ''
188
- }),
189
- resids:{},
190
- searchData:{
191
- condition: "1=1",
192
- orgid: this.$login.f.orgid
193
- },
194
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
195
- excelHeaders:{
196
- 'f_residential_area': '小区名称',
197
- 'month1': '1月',
198
- 'month2': '2月',
199
- 'month3': '3月',
200
- 'month4': '4月',
201
- 'month5': '5月',
202
- 'month6': '6月',
203
- 'month7': '7月',
204
- 'month8': '8月',
205
- 'month9': '9月',
206
- 'month10': '10月',
207
- 'month11': '11月',
208
- 'month12': '12月',
209
- 'countarea':'小计'
210
- },
211
- printshow: false,
212
- defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
213
- sumsmodel: {},
214
- }
215
- },
216
- ready() {
217
- // this.model.search('1=1')
218
- },
219
- methods: {
220
- selfSearch(args) {
221
- this.model.search(args.condition, args.model, args.condValue)
222
- this.searchData.condition = args.condition
223
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
224
- },
225
- getRes(obj) {
226
- //tag
227
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
228
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
229
- },
230
- // 打印
231
- stamp() {
232
- this.printshow = true
233
- },
234
- close() {
235
- this.printshow = false
236
- }
237
- },
238
- computed: {
239
- getstart() {
240
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
241
- },
242
- }
243
- }
244
- </script>
245
-
246
- <style scoped>
247
-
248
- </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
+ :select-year="true"
14
+ :disabled-days-of-week="[]"
15
+ :format="'yyyy'"
16
+ :show-rest-button="reset"
17
+ :value.sync="model.start_time"
18
+ v-model="model.start_time"
19
+ condition="tcpi.f_last_check_date >= '{}-01-01 00:00:00'">
20
+ </datepicker>
21
+ </div>
22
+ <div class="form-group col-sm-4">
23
+ <label class="font_normal_body">结束时间:</label>
24
+ <datepicker
25
+ placeholder='请选择'
26
+ :select-year="true"
27
+ :disabled-days-of-week="[]"
28
+ style="width:60%"
29
+ :format="'yyyy'"
30
+ :show-rest-button="reset"
31
+ :value.sync="model.end_time"
32
+ v-model="model.end_time"
33
+ condition="tcpi.f_last_check_date <= '{}-12-31 23:59:59'">
34
+ </datepicker>
35
+ </div>
36
+ <div class="col-sm-4 form-group">
37
+ <label class="font_normal_body">小区名称:</label>
38
+ <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
39
+ </div>
40
+ <div class="form-group col-sm-4">
41
+ <label class="font_normal_body">用户类型</label>
42
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
43
+ :value-single="true" style="width: 60%"
44
+ class="select_list select"
45
+ :options='$parent.$parent.user_types' placeholder='用户类型'
46
+ close-on-select
47
+ condition="tcpi.f_user_type = '{}'"></v-select>
48
+ </div>
49
+ <div class="col-sm-4 form-group" style="margin: 0">
50
+ <role-selector-safe
51
+ role-name="安检员"
52
+ :resobjprop.sync="$parent.$parent.resids"
53
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
+ @re-res="$parent.$parent.getRes"
55
+ :value.sync="model.f_checker_id"
56
+ v-model="model.f_checker_id"
57
+ condition="tcp.f_checker_name = '{}'">
58
+ </role-selector-safe>
59
+ </div>
60
+ <div style="float: right">
61
+ <export-excel-safe :data="$parent.$parent.searchData"
62
+ :field="$parent.$parent.excelHeaders"
63
+ progress="safeGetExportProgress"
64
+ sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsMonth" template-name='安检报表月' :choose-col="true"></export-excel-safe>
65
+ </div>
66
+ <print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.model"
67
+ :field="$parent.$parent.excelHeaders"
68
+ :defaultfield="$parent.$parent.defaultPrint"
69
+ titletable="安检报表月" :starthead="$parent.$parent.getstart"
70
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
71
+ <button class="button_spacing button_search" @click="search()">查询</button>
72
+ </div>
73
+ </div>
74
+ </criteria>
75
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
76
+ <template partial='head'>
77
+ <tr>
78
+ <th>
79
+ <nobr>序号</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>小区名称</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>1月</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>2月</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>3月</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>4月</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>5月</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>6月</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>7月</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>8月</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>9月</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>10月</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>11月</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>12月</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>小计</nobr>
122
+ </th>
123
+ </tr>
124
+ </template>
125
+ <template partial='body'>
126
+
127
+ <td style="text-align: center">{{ $index + 1 }}</td>
128
+ <td style="text-align: center">{{ row.f_residential_area }}</td>
129
+ <td style="text-align: center">{{ row.month1 }}</td>
130
+ <td style="text-align: center">{{ row.month2 }}</td>
131
+ <td style="text-align: center">{{ row.month3 }}</td>
132
+ <td style="text-align: center">{{ row.month4 }}</td>
133
+ <td style="text-align: center">{{ row.month5 }}</td>
134
+ <td style="text-align: center">{{ row.month6 }}</td>
135
+ <td style="text-align: center">{{ row.month7 }}</td>
136
+ <td style="text-align: center">{{ row.month8 }}</td>
137
+ <td style="text-align: center">{{ row.month9 }}</td>
138
+ <td style="text-align: center">{{ row.month10 }}</td>
139
+ <td style="text-align: center">{{ row.month11 }}</td>
140
+ <td style="text-align: center">{{ row.month12 }}</td>
141
+ <td style="text-align: center">{{ row.countarea }}</td>
142
+ </template>
143
+ <template partial="foot">
144
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
145
+ <td style="text-align: center">{{ model.sums.month1 }}</td>
146
+ <td style="text-align: center">{{ model.sums.month2 }}</td>
147
+ <td style="text-align: center">{{ model.sums.month3 }}</td>
148
+ <td style="text-align: center">{{ model.sums.month4 }}</td>
149
+ <td style="text-align: center">{{ model.sums.month5 }}</td>
150
+ <td style="text-align: center">{{ model.sums.month6 }}</td>
151
+ <td style="text-align: center">{{ model.sums.month7 }}</td>
152
+ <td style="text-align: center">{{ model.sums.month8 }}</td>
153
+ <td style="text-align: center">{{ model.sums.month9 }}</td>
154
+ <td style="text-align: center">{{ model.sums.month10 }}</td>
155
+ <td style="text-align: center">{{ model.sums.month11 }}</td>
156
+ <td style="text-align: center">{{ model.sums.month12 }}</td>
157
+ <td style="text-align: center">{{ model.sums.countarea }}</td>
158
+ </template>
159
+ </data-grid>
160
+ </criteria-paged>
161
+ </div>
162
+ </div>
163
+ </template>
164
+
165
+ <script>
166
+ import {PagedList} from "vue-client";
167
+
168
+ export default {
169
+ name: "safeStatisticsMonth",
170
+ title: "安检报表月",
171
+ data() {
172
+
173
+ return {
174
+ model: new PagedList("/rs/sql/safeStatisticsMonth", 999, {orgid: this.$login.f.orgid}, {
175
+ month1: '',
176
+ month2: '',
177
+ month3: '',
178
+ month4: '',
179
+ month5: '',
180
+ month6: '',
181
+ month7: '',
182
+ month8: '',
183
+ month9: '',
184
+ month10: '',
185
+ month11: '',
186
+ month12: '',
187
+ countarea: ''
188
+ }),
189
+ resids:{},
190
+ searchData:{
191
+ condition: "1=1",
192
+ orgid: this.$login.f.orgid
193
+ },
194
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
195
+ excelHeaders:{
196
+ 'f_residential_area': '小区名称',
197
+ 'month1': '1月',
198
+ 'month2': '2月',
199
+ 'month3': '3月',
200
+ 'month4': '4月',
201
+ 'month5': '5月',
202
+ 'month6': '6月',
203
+ 'month7': '7月',
204
+ 'month8': '8月',
205
+ 'month9': '9月',
206
+ 'month10': '10月',
207
+ 'month11': '11月',
208
+ 'month12': '12月',
209
+ 'countarea':'小计'
210
+ },
211
+ printshow: false,
212
+ defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
213
+ sumsmodel: {},
214
+ }
215
+ },
216
+ ready() {
217
+ // this.model.search('1=1')
218
+ },
219
+ methods: {
220
+ selfSearch(args) {
221
+ this.model.search(args.condition, args.model, args.condValue)
222
+ this.searchData.condition = args.condition
223
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
224
+ },
225
+ getRes(obj) {
226
+ //tag
227
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
228
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
229
+ },
230
+ // 打印
231
+ stamp() {
232
+ this.printshow = true
233
+ },
234
+ close() {
235
+ this.printshow = false
236
+ }
237
+ },
238
+ computed: {
239
+ getstart() {
240
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
241
+ },
242
+ }
243
+ }
244
+ </script>
245
+
246
+ <style scoped>
247
+
248
+ </style>
@@ -1,25 +1,25 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- "plan-manage":(resolve) => { require(['./pc/PlanManage.vue'], resolve) },
7
- "role-selector-safe":(resolve) => { require(['./pc/RoleSelector.vue'], resolve) },
8
- "check-user-list":(resolve) => { require(['./pc/checkUserList.vue'], resolve) },
9
- 'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
10
- "safe-table":(resolve) => { require(['./pc/safeTable.vue'], resolve) },
11
- "safe-detail":(resolve) => { require(['./pc/safeDetail.vue'], resolve) },
12
- "community-detail":(resolve) => { require(['./pc/communityDetail.vue'], resolve) },
13
- "community-type-detail-g":(resolve) => { require(['./pc/communityTypeDetailG.vue'], resolve) },
14
- "community-type-detail-m":(resolve) => { require(['./pc/communityTypeDetailM.vue'], resolve) },
15
- "safe-statistics":(resolve) => { require(['./pc/safeStatistics.vue'], resolve) },
16
- "safe-statistics-day":(resolve) => { require(['./pc/safeStatisticsDay.vue'], resolve) },
17
- "safe-statistics-month":(resolve) => { require(['./pc/safeStatisticsMonth.vue'], resolve) },
18
- "safe-statistics-year":(resolve) => { require(['./pc/safeStatisticsYear.vue'], resolve) },
19
- "no-checkplan-safecheck":(resolve) => { require(['./pc/NoCheckplanSafecheck.vue'], resolve) },
20
- }
21
- exports.specialComp = specialComp
22
-
23
-
24
-
25
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ "plan-manage":(resolve) => { require(['./pc/PlanManage.vue'], resolve) },
7
+ "role-selector-safe":(resolve) => { require(['./pc/RoleSelector.vue'], resolve) },
8
+ "check-user-list":(resolve) => { require(['./pc/checkUserList.vue'], resolve) },
9
+ 'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
10
+ "safe-table":(resolve) => { require(['./pc/safeTable.vue'], resolve) },
11
+ "safe-detail":(resolve) => { require(['./pc/safeDetail.vue'], resolve) },
12
+ "community-detail":(resolve) => { require(['./pc/communityDetail.vue'], resolve) },
13
+ "community-type-detail-g":(resolve) => { require(['./pc/communityTypeDetailG.vue'], resolve) },
14
+ "community-type-detail-m":(resolve) => { require(['./pc/communityTypeDetailM.vue'], resolve) },
15
+ "safe-statistics":(resolve) => { require(['./pc/safeStatistics.vue'], resolve) },
16
+ "safe-statistics-day":(resolve) => { require(['./pc/safeStatisticsDay.vue'], resolve) },
17
+ "safe-statistics-month":(resolve) => { require(['./pc/safeStatisticsMonth.vue'], resolve) },
18
+ "safe-statistics-year":(resolve) => { require(['./pc/safeStatisticsYear.vue'], resolve) },
19
+ "no-checkplan-safecheck":(resolve) => { require(['./pc/NoCheckplanSafecheck.vue'], resolve) },
20
+ }
21
+ exports.specialComp = specialComp
22
+
23
+
24
+
25
+