safecheck-client 3.0.30-55 → 3.0.30-56

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "3.0.30-55",
4
+ "version": "3.0.30-56",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -1,207 +1,207 @@
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="communityTypeDetailG"
55
- template-name='工商隐患类型明细' :choose-col="true"></export-excel-safe>
56
- </div>
57
- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
- :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
- titletable="小区隐患明细" :starthead="$parent.$parent.getstart"
60
- ></print-data-safe>
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
- <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.ljcount }}</td>
102
- <td style="text-align: center">{{ row.jgcount }}</td>
103
- <td style="text-align: center">{{ row.rqjcount }}</td>
104
- <td style="text-align: center">{{ row.yhhs }}</td>
105
- <td style="text-align: center">{{ row.yclyh }}</td>
106
- <td style="text-align: center">{{ row.clzyh }}</td>
107
- <td style="text-align: center">{{ row.wcl }}</td>
108
- </template>
109
- <template partial="foot">
110
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
111
- <td style="text-align: center">{{ model.sums.yhhs }}</td>
112
- <td style="text-align: center">{{ model.sums.ljcount }}</td>
113
- <td style="text-align: center">{{ model.sums.jgcount }}</td>
114
- <td style="text-align: center">{{ model.sums.rqjcount }}</td>
115
- <td style="text-align: center">{{ model.sums.yclyh }}</td>
116
- <td style="text-align: center">{{ model.sums.clzyh }}</td>
117
- <td style="text-align: center">{{ model.sums.wcl }}</td>
118
- </template>
119
- </data-grid>
120
- </criteria-paged>
121
- </div>
122
- </div>
123
- </template>
124
-
125
- <script>
126
- import {PagedList} from "vue-client";
127
-
128
- export default {
129
- name: "communityTypeDetailG",
130
- title: "工商隐患类型明细",
131
- data() {
132
- return {
133
- model: new PagedList("/rs/sql/communityTypeDetailG", 999, {orgid: this.$login.f.orgid}, {
134
- yhhs: '',
135
- yclyh: '',
136
- clzyh: '',
137
- rqjcount: '',
138
- ljcount: '',
139
- wcl:'',
140
- jgcount: ''
141
- }),
142
- resids: {},
143
- print_model:{},
144
- searchData: {
145
- condition: "1=1",
146
- orgid: this.$login.f.orgid
147
- },
148
- excelHeaders: {
149
- 'f_residential_area': '小区名称',
150
- 'ljcount': '隐患类型-漏气',
151
- 'jgcount': '隐患类型-胶管',
152
- 'rqjcount': '隐患类型-燃气具老化',
153
- 'yhhs': '存在隐患户数',
154
- 'yclyh': '已处理户数',
155
- 'clzyh': '处理中户数',
156
- 'wcl' : '未处理户数'
157
- },
158
- printshow: false,
159
- defaultPrint:['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
160
- sumsmodel: {},
161
- }
162
- },
163
- ready() {
164
- // this.model.search('1=1')
165
- },
166
- methods: {
167
- async selfSearch(args) {
168
- await this.model.search(args.condition, args.model, args.condValue)
169
- this.searchData.condition = args.condition
170
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
171
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
- this.print_model.rows.push({
173
- f_residential_area: '合计',
174
- ljcount : this.sumsmodel.ljcount,
175
- jgcount : this.sumsmodel.jgcount,
176
- rqjcount : this.sumsmodel.rqjcount,
177
- yhhs: this.sumsmodel.yhhs,
178
- yclyh: this.sumsmodel.yclyh,
179
- clzyh: this.sumsmodel.clzyh,
180
- wcl: this.sumsmodel.wcl,
181
- })
182
- this.print_model.totalPage = 0
183
- },
184
- getRes(obj) {
185
- //tag
186
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
187
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
188
- },
189
- // 打印
190
- stamp() {
191
- this.printshow = true
192
- },
193
- close() {
194
- this.printshow = false
195
- }
196
- },
197
- computed: {
198
- getstart() {
199
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
200
- },
201
- }
202
- }
203
- </script>
204
-
205
- <style scoped>
206
-
207
- </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="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="communityTypeDetailG"
55
+ template-name='工商隐患类型明细' :choose-col="true"></export-excel-safe>
56
+ </div>
57
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
+ :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
+ titletable="工商隐患类型明细" :starthead="$parent.$parent.getstart"
60
+ ></print-data-safe>
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
+ <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.ljcount }}</td>
102
+ <td style="text-align: center">{{ row.jgcount }}</td>
103
+ <td style="text-align: center">{{ row.rqjcount }}</td>
104
+ <td style="text-align: center">{{ row.yhhs }}</td>
105
+ <td style="text-align: center">{{ row.yclyh }}</td>
106
+ <td style="text-align: center">{{ row.clzyh }}</td>
107
+ <td style="text-align: center">{{ row.wcl }}</td>
108
+ </template>
109
+ <template partial="foot">
110
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
111
+ <td style="text-align: center">{{ model.sums.yhhs }}</td>
112
+ <td style="text-align: center">{{ model.sums.ljcount }}</td>
113
+ <td style="text-align: center">{{ model.sums.jgcount }}</td>
114
+ <td style="text-align: center">{{ model.sums.rqjcount }}</td>
115
+ <td style="text-align: center">{{ model.sums.yclyh }}</td>
116
+ <td style="text-align: center">{{ model.sums.clzyh }}</td>
117
+ <td style="text-align: center">{{ model.sums.wcl }}</td>
118
+ </template>
119
+ </data-grid>
120
+ </criteria-paged>
121
+ </div>
122
+ </div>
123
+ </template>
124
+
125
+ <script>
126
+ import {PagedList} from "vue-client";
127
+
128
+ export default {
129
+ name: "communityTypeDetailG",
130
+ title: "工商隐患类型明细",
131
+ data() {
132
+ return {
133
+ model: new PagedList("/rs/sql/communityTypeDetailG", 999, {orgid: this.$login.f.orgid}, {
134
+ yhhs: '',
135
+ yclyh: '',
136
+ clzyh: '',
137
+ rqjcount: '',
138
+ ljcount: '',
139
+ wcl:'',
140
+ jgcount: ''
141
+ }),
142
+ resids: {},
143
+ print_model:{},
144
+ searchData: {
145
+ condition: "1=1",
146
+ orgid: this.$login.f.orgid
147
+ },
148
+ excelHeaders: {
149
+ 'f_residential_area': '小区名称',
150
+ 'ljcount': '隐患类型-漏气',
151
+ 'jgcount': '隐患类型-胶管',
152
+ 'rqjcount': '隐患类型-燃气具老化',
153
+ 'yhhs': '存在隐患户数',
154
+ 'yclyh': '已处理户数',
155
+ 'clzyh': '处理中户数',
156
+ 'wcl' : '未处理户数'
157
+ },
158
+ printshow: false,
159
+ defaultPrint:['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
160
+ sumsmodel: {},
161
+ }
162
+ },
163
+ ready() {
164
+ // this.model.search('1=1')
165
+ },
166
+ methods: {
167
+ async selfSearch(args) {
168
+ await this.model.search(args.condition, args.model, args.condValue)
169
+ this.searchData.condition = args.condition
170
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
171
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
+ this.print_model.rows.push({
173
+ f_residential_area: '合计',
174
+ ljcount : this.sumsmodel.ljcount,
175
+ jgcount : this.sumsmodel.jgcount,
176
+ rqjcount : this.sumsmodel.rqjcount,
177
+ yhhs: this.sumsmodel.yhhs,
178
+ yclyh: this.sumsmodel.yclyh,
179
+ clzyh: this.sumsmodel.clzyh,
180
+ wcl: this.sumsmodel.wcl,
181
+ })
182
+ this.print_model.totalPage = 0
183
+ },
184
+ getRes(obj) {
185
+ //tag
186
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
187
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
188
+ },
189
+ // 打印
190
+ stamp() {
191
+ this.printshow = true
192
+ },
193
+ close() {
194
+ this.printshow = false
195
+ }
196
+ },
197
+ computed: {
198
+ getstart() {
199
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
200
+ },
201
+ }
202
+ }
203
+ </script>
204
+
205
+ <style scoped>
206
+
207
+ </style>
@@ -1,207 +1,207 @@
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="communityTypeDetailM"
55
- template-name='居民隐患类型明细' :choose-col="true"></export-excel-safe>
56
- </div>
57
- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
- :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
- titletable="小区隐患明细" :starthead="$parent.$parent.getstart"
60
- ></print-data-safe>
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
- <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.ljcount }}</td>
102
- <td style="text-align: center">{{ row.jgcount }}</td>
103
- <td style="text-align: center">{{ row.rqjcount }}</td>
104
- <td style="text-align: center">{{ row.yhhs }}</td>
105
- <td style="text-align: center">{{ row.yclyh }}</td>
106
- <td style="text-align: center">{{ row.clzyh }}</td>
107
- <td style="text-align: center">{{ row.wcl }}</td>
108
- </template>
109
- <template partial="foot">
110
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
111
- <td style="text-align: center">{{ model.sums.yhhs }}</td>
112
- <td style="text-align: center">{{ model.sums.ljcount }}</td>
113
- <td style="text-align: center">{{ model.sums.jgcount }}</td>
114
- <td style="text-align: center">{{ model.sums.rqjcount }}</td>
115
- <td style="text-align: center">{{ model.sums.yclyh }}</td>
116
- <td style="text-align: center">{{ model.sums.clzyh }}</td>
117
- <td style="text-align: center">{{ model.sums.wcl }}</td>
118
- </template>
119
- </data-grid>
120
- </criteria-paged>
121
- </div>
122
- </div>
123
- </template>
124
-
125
- <script>
126
- import {PagedList} from "vue-client";
127
-
128
- export default {
129
- name: "communityTypeDetailM",
130
- title: "居民隐患类型明细",
131
- data() {
132
- return {
133
- model: new PagedList("/rs/sql/communityTypeDetailM", 999, {orgid: this.$login.f.orgid}, {
134
- yhhs: '',
135
- yclyh: '',
136
- clzyh: '',
137
- rqjcount: '',
138
- ljcount: '',
139
- wcl:'',
140
- jgcount: ''
141
- }),
142
- resids: {},
143
- print_model:{},
144
- searchData: {
145
- condition: "1=1",
146
- orgid: this.$login.f.orgid
147
- },
148
- excelHeaders: {
149
- 'f_residential_area': '小区名称',
150
- 'ljcount': '隐患类型-漏气',
151
- 'jgcount': '隐患类型-胶管',
152
- 'rqjcount': '隐患类型-燃气具老化',
153
- 'yhhs': '存在隐患户数',
154
- 'yclyh': '已处理户数',
155
- 'clzyh': '处理中户数',
156
- 'wcl' : '未处理户数'
157
- },
158
- printshow: false,
159
- defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
160
- sumsmodel: {},
161
- }
162
- },
163
- ready() {
164
- // this.model.search('1=1')
165
- },
166
- methods: {
167
- async selfSearch(args) {
168
- await this.model.search(args.condition, args.model, args.condValue)
169
- this.searchData.condition = args.condition
170
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
171
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
- this.print_model.rows.push({
173
- f_residential_area: '合计',
174
- ljcount : this.sumsmodel.ljcount,
175
- jgcount : this.sumsmodel.jgcount,
176
- rqjcount : this.sumsmodel.rqjcount,
177
- yhhs: this.sumsmodel.yhhs,
178
- yclyh: this.sumsmodel.yclyh,
179
- clzyh: this.sumsmodel.clzyh,
180
- wcl: this.sumsmodel.wcl,
181
- })
182
- this.print_model.totalPage = 0
183
- },
184
- getRes(obj) {
185
- //tag
186
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
187
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
188
- },
189
- // 打印
190
- stamp() {
191
- this.printshow = true
192
- },
193
- close() {
194
- this.printshow = false
195
- }
196
- },
197
- computed: {
198
- getstart() {
199
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
200
- },
201
- }
202
- }
203
- </script>
204
-
205
- <style scoped>
206
-
207
- </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="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="communityTypeDetailM"
55
+ template-name='居民隐患类型明细' :choose-col="true"></export-excel-safe>
56
+ </div>
57
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model" :field="$parent.$parent.excelHeaders"
58
+ :defaultfield="$parent.$parent.defaultPrint" :chooserow="true"
59
+ titletable="居民隐患类型明细" :starthead="$parent.$parent.getstart"
60
+ ></print-data-safe>
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
+ <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.ljcount }}</td>
102
+ <td style="text-align: center">{{ row.jgcount }}</td>
103
+ <td style="text-align: center">{{ row.rqjcount }}</td>
104
+ <td style="text-align: center">{{ row.yhhs }}</td>
105
+ <td style="text-align: center">{{ row.yclyh }}</td>
106
+ <td style="text-align: center">{{ row.clzyh }}</td>
107
+ <td style="text-align: center">{{ row.wcl }}</td>
108
+ </template>
109
+ <template partial="foot">
110
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
111
+ <td style="text-align: center">{{ model.sums.yhhs }}</td>
112
+ <td style="text-align: center">{{ model.sums.ljcount }}</td>
113
+ <td style="text-align: center">{{ model.sums.jgcount }}</td>
114
+ <td style="text-align: center">{{ model.sums.rqjcount }}</td>
115
+ <td style="text-align: center">{{ model.sums.yclyh }}</td>
116
+ <td style="text-align: center">{{ model.sums.clzyh }}</td>
117
+ <td style="text-align: center">{{ model.sums.wcl }}</td>
118
+ </template>
119
+ </data-grid>
120
+ </criteria-paged>
121
+ </div>
122
+ </div>
123
+ </template>
124
+
125
+ <script>
126
+ import {PagedList} from "vue-client";
127
+
128
+ export default {
129
+ name: "communityTypeDetailM",
130
+ title: "居民隐患类型明细",
131
+ data() {
132
+ return {
133
+ model: new PagedList("/rs/sql/communityTypeDetailM", 999, {orgid: this.$login.f.orgid}, {
134
+ yhhs: '',
135
+ yclyh: '',
136
+ clzyh: '',
137
+ rqjcount: '',
138
+ ljcount: '',
139
+ wcl:'',
140
+ jgcount: ''
141
+ }),
142
+ resids: {},
143
+ print_model:{},
144
+ searchData: {
145
+ condition: "1=1",
146
+ orgid: this.$login.f.orgid
147
+ },
148
+ excelHeaders: {
149
+ 'f_residential_area': '小区名称',
150
+ 'ljcount': '隐患类型-漏气',
151
+ 'jgcount': '隐患类型-胶管',
152
+ 'rqjcount': '隐患类型-燃气具老化',
153
+ 'yhhs': '存在隐患户数',
154
+ 'yclyh': '已处理户数',
155
+ 'clzyh': '处理中户数',
156
+ 'wcl' : '未处理户数'
157
+ },
158
+ printshow: false,
159
+ defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
160
+ sumsmodel: {},
161
+ }
162
+ },
163
+ ready() {
164
+ // this.model.search('1=1')
165
+ },
166
+ methods: {
167
+ async selfSearch(args) {
168
+ await this.model.search(args.condition, args.model, args.condValue)
169
+ this.searchData.condition = args.condition
170
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
171
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
172
+ this.print_model.rows.push({
173
+ f_residential_area: '合计',
174
+ ljcount : this.sumsmodel.ljcount,
175
+ jgcount : this.sumsmodel.jgcount,
176
+ rqjcount : this.sumsmodel.rqjcount,
177
+ yhhs: this.sumsmodel.yhhs,
178
+ yclyh: this.sumsmodel.yclyh,
179
+ clzyh: this.sumsmodel.clzyh,
180
+ wcl: this.sumsmodel.wcl,
181
+ })
182
+ this.print_model.totalPage = 0
183
+ },
184
+ getRes(obj) {
185
+ //tag
186
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
187
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
188
+ },
189
+ // 打印
190
+ stamp() {
191
+ this.printshow = true
192
+ },
193
+ close() {
194
+ this.printshow = false
195
+ }
196
+ },
197
+ computed: {
198
+ getstart() {
199
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
200
+ },
201
+ }
202
+ }
203
+ </script>
204
+
205
+ <style scoped>
206
+
207
+ </style>