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,194 +1,194 @@
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-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
67
- :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
68
- :titletable="'小区隐患明细'" :starthead="$parent.$parent.getstart"
69
- ></print-data-safe>
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
- print_model:{},
139
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
140
- excelHeaders: {
141
- 'f_residential_area': '小区名称',
142
- 'yhhs': '存在隐患户数',
143
- 'wcl': '未处理户数',
144
- 'yclyh': '已处理户数',
145
- 'clzyh': '处理中户数',
146
- },
147
- printshow: false,
148
- defaultPrint: ['f_residential_area','yhhs','yclyh','clzyh','wcl'],
149
- sumsmodel: {},
150
- };
151
- },
152
- ready() {
153
- // this.model.search('1=1')
154
- },
155
- methods: {
156
- async selfSearch(args) {
157
- args.condition += ` and f_defect_content like '%有隐患%'`
158
- await this.model.search(args.condition, args.model, args.condValue)
159
- this.searchData.condition = args.condition
160
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
161
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
162
- this.print_model.rows.push({
163
- f_residential_area: '合计',
164
- yhhs: this.sumsmodel.yhhs,
165
- yclyh: this.sumsmodel.yclyh,
166
- clzyh: this.sumsmodel.clzyh,
167
- wcl: this.sumsmodel.wcl,
168
- })
169
- this.print_model.totalPage = 0
170
- },
171
- getRes(obj) {
172
- //tag
173
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
174
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
175
- },
176
- // 打印
177
- stamp() {
178
- this.printshow = true
179
- },
180
- close() {
181
- this.printshow = false
182
- }
183
- },
184
- computed:{
185
- getstart(){
186
- return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
187
- },
188
- }
189
- }
190
- </script>
191
-
192
- <style scoped>
193
-
194
- </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-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
67
+ :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
68
+ :titletable="'小区隐患明细'" :starthead="$parent.$parent.getstart"
69
+ ></print-data-safe>
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
+ print_model:{},
139
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
140
+ excelHeaders: {
141
+ 'f_residential_area': '小区名称',
142
+ 'yhhs': '存在隐患户数',
143
+ 'wcl': '未处理户数',
144
+ 'yclyh': '已处理户数',
145
+ 'clzyh': '处理中户数',
146
+ },
147
+ printshow: false,
148
+ defaultPrint: ['f_residential_area','yhhs','yclyh','clzyh','wcl'],
149
+ sumsmodel: {},
150
+ };
151
+ },
152
+ ready() {
153
+ // this.model.search('1=1')
154
+ },
155
+ methods: {
156
+ async selfSearch(args) {
157
+ args.condition += ` and f_defect_content like '%有隐患%'`
158
+ await this.model.search(args.condition, args.model, args.condValue)
159
+ this.searchData.condition = args.condition
160
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
161
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
162
+ this.print_model.rows.push({
163
+ f_residential_area: '合计',
164
+ yhhs: this.sumsmodel.yhhs,
165
+ yclyh: this.sumsmodel.yclyh,
166
+ clzyh: this.sumsmodel.clzyh,
167
+ wcl: this.sumsmodel.wcl,
168
+ })
169
+ this.print_model.totalPage = 0
170
+ },
171
+ getRes(obj) {
172
+ //tag
173
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
174
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
175
+ },
176
+ // 打印
177
+ stamp() {
178
+ this.printshow = true
179
+ },
180
+ close() {
181
+ this.printshow = false
182
+ }
183
+ },
184
+ computed:{
185
+ getstart(){
186
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
187
+ },
188
+ }
189
+ }
190
+ </script>
191
+
192
+ <style scoped>
193
+
194
+ </style>