safecheck-client 3.0.33-66 → 3.0.33-69

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,267 +1,267 @@
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' and tcpi.f_last_check_date <= '{}-12-31 23:59:59'">
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="">-->
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 = '{}'">
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-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
67
- :field="$parent.$parent.excelHeaders"
68
- :defaultfield="$parent.$parent.defaultPrint"
69
- :titletable="'安检月报表'" :starthead="$parent.$parent.getstart"
70
- ></print-data-safe>
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
- print_model:{},
195
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
196
- excelHeaders:{
197
- 'f_residential_area': '小区名称',
198
- 'month1': '1月',
199
- 'month2': '2月',
200
- 'month3': '3月',
201
- 'month4': '4月',
202
- 'month5': '5月',
203
- 'month6': '6月',
204
- 'month7': '7月',
205
- 'month8': '8月',
206
- 'month9': '9月',
207
- 'month10': '10月',
208
- 'month11': '11月',
209
- 'month12': '12月',
210
- 'countarea':'小计'
211
- },
212
- printshow: false,
213
- defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
214
- sumsmodel: {},
215
- }
216
- },
217
- ready() {
218
- // this.model.search('1=1')
219
- },
220
- methods: {
221
- async selfSearch(args) {
222
- await this.model.search(args.condition, args.model, args.condValue)
223
- this.searchData.condition = args.condition
224
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
225
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
226
- this.print_model.rows.push({
227
- 'f_residential_area': '合计',
228
- 'month1': this.sumsmodel.month1,
229
- 'month2': this.sumsmodel.month2,
230
- 'month3': this.sumsmodel.month3,
231
- 'month4': this.sumsmodel.month4,
232
- 'month5': this.sumsmodel.month5,
233
- 'month6': this.sumsmodel.month6,
234
- 'month7': this.sumsmodel.month7,
235
- 'month8': this.sumsmodel.month8,
236
- 'month9': this.sumsmodel.month9,
237
- 'month10': this.sumsmodel.month10,
238
- 'month11': this.sumsmodel.month11,
239
- 'month12': this.sumsmodel.month12,
240
- 'countarea':this.sumsmodel.countarea
241
- })
242
- this.print_model.totalPage = 0
243
- },
244
- getRes(obj) {
245
- //tag
246
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
247
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
248
- },
249
- // 打印
250
- stamp() {
251
- this.printshow = true
252
- },
253
- close() {
254
- this.printshow = false
255
- }
256
- },
257
- computed: {
258
- getstart() {
259
- return `时间:${this.$refs.paged.$refs.criteria.model.start_time ? this.$refs.paged.$refs.criteria.model.start_time : ''}`
260
- },
261
- }
262
- }
263
- </script>
264
-
265
- <style scoped>
266
-
267
- </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' and tcpi.f_last_check_date <= '{}-12-31 23:59:59'">
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="">-->
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 = '{}'">
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-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
67
+ :field="$parent.$parent.excelHeaders"
68
+ :defaultfield="$parent.$parent.defaultPrint"
69
+ :titletable="'安检月报表'" :starthead="$parent.$parent.getstart"
70
+ ></print-data-safe>
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
+ print_model:{},
195
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
196
+ excelHeaders:{
197
+ 'f_residential_area': '小区名称',
198
+ 'month1': '1月',
199
+ 'month2': '2月',
200
+ 'month3': '3月',
201
+ 'month4': '4月',
202
+ 'month5': '5月',
203
+ 'month6': '6月',
204
+ 'month7': '7月',
205
+ 'month8': '8月',
206
+ 'month9': '9月',
207
+ 'month10': '10月',
208
+ 'month11': '11月',
209
+ 'month12': '12月',
210
+ 'countarea':'小计'
211
+ },
212
+ printshow: false,
213
+ defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
214
+ sumsmodel: {},
215
+ }
216
+ },
217
+ ready() {
218
+ // this.model.search('1=1')
219
+ },
220
+ methods: {
221
+ async selfSearch(args) {
222
+ await this.model.search(args.condition, args.model, args.condValue)
223
+ this.searchData.condition = args.condition
224
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
225
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
226
+ this.print_model.rows.push({
227
+ 'f_residential_area': '合计',
228
+ 'month1': this.sumsmodel.month1,
229
+ 'month2': this.sumsmodel.month2,
230
+ 'month3': this.sumsmodel.month3,
231
+ 'month4': this.sumsmodel.month4,
232
+ 'month5': this.sumsmodel.month5,
233
+ 'month6': this.sumsmodel.month6,
234
+ 'month7': this.sumsmodel.month7,
235
+ 'month8': this.sumsmodel.month8,
236
+ 'month9': this.sumsmodel.month9,
237
+ 'month10': this.sumsmodel.month10,
238
+ 'month11': this.sumsmodel.month11,
239
+ 'month12': this.sumsmodel.month12,
240
+ 'countarea':this.sumsmodel.countarea
241
+ })
242
+ this.print_model.totalPage = 0
243
+ },
244
+ getRes(obj) {
245
+ //tag
246
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
247
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
248
+ },
249
+ // 打印
250
+ stamp() {
251
+ this.printshow = true
252
+ },
253
+ close() {
254
+ this.printshow = false
255
+ }
256
+ },
257
+ computed: {
258
+ getstart() {
259
+ return `时间:${this.$refs.paged.$refs.criteria.model.start_time ? this.$refs.paged.$refs.criteria.model.start_time : ''}`
260
+ },
261
+ }
262
+ }
263
+ </script>
264
+
265
+ <style scoped>
266
+
267
+ </style>