safecheck-client 3.0.30-6 → 3.0.30-60
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/examples/SafePlan-liaoyuan/App.vue +3 -1
- package/package.json +4 -3
- package/src/components/Util.js +15 -0
- package/src/components/android/AddPlanItem.vue +5 -2
- package/src/components/android/AreaPlan.vue +571 -571
- package/src/components/android/CurrentCreate.vue +3 -2
- package/src/components/android/CurrentCreate_new.vue +563 -559
- package/src/components/android/PhoneotherInfo.vue +132 -132
- package/src/components/android/UploadPage.vue +13 -123
- package/src/components/paper/PlanChooser.vue +8 -6
- package/src/components/pc/Edit.vue +126 -0
- package/src/components/pc/LodopFuncs.js +159 -0
- package/src/components/pc/NewCheckpaper.vue +9 -5
- package/src/components/pc/PaperEdit.vue +151 -0
- package/src/components/pc/PrintData.vue +243 -0
- package/src/components/pc/PrintTable.vue +241 -0
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -278
- package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
- package/src/components/report/NoCheckplanSafecheck.vue +0 -2
- package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2850 -2850
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +806 -806
- package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
- package/src/filiale/fugou/android.js +10 -0
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1294
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
- package/src/filiale/hanzhong/android.js +16 -16
- package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
- package/src/filiale/hanzhong/pc.js +4 -1
- package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
- package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
- package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
- package/src/filiale/jingyang/pc/PaperList.vue +1 -2
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
- package/src/filiale/kelai/android.js +1 -0
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1095 -1089
- package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
- package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
- package/src/filiale/wensu/android.js +1 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +6 -4
- package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
- package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
- package/src/filiale/wensu/pc/checkUserList.vue +50 -0
- package/src/filiale/wensu/pc.js +2 -1
- package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
- package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
- package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
- package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
- package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
- package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
- package/src/filiale/yongzhou/pc/communityDetail.vue +33 -10
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +27 -13
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +27 -13
- package/src/filiale/yongzhou/pc/safeDetail.vue +41 -13
- package/src/filiale/yongzhou/pc/safeStatistics.vue +13 -3
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +72 -13
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +47 -11
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +13 -3
- package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
- package/src/filiale/yongzhou/pc.js +16 -12
- package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
- package/src/safecheck-android.js +290 -290
- package/src/safecheck.js +12 -0
@@ -52,13 +52,12 @@
|
|
52
52
|
:field="$parent.$parent.excelHeaders"
|
53
53
|
progress="safeGetExportProgress"
|
54
54
|
sqlurl="rs/logic/SafeExportExcel" sql-name="communityTypeDetailM"
|
55
|
-
template-name='
|
55
|
+
template-name='居民隐患类型明细' :choose-col="true"></export-excel-safe>
|
56
56
|
</div>
|
57
|
-
<print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.
|
58
|
-
:
|
59
|
-
:
|
60
|
-
|
61
|
-
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
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>
|
62
61
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
63
62
|
</div>
|
64
63
|
</div>
|
@@ -105,7 +104,7 @@
|
|
105
104
|
<td style="text-align: center">{{ row.yhhs }}</td>
|
106
105
|
<td style="text-align: center">{{ row.yclyh }}</td>
|
107
106
|
<td style="text-align: center">{{ row.clzyh }}</td>
|
108
|
-
<td style="text-align: center">{{ row.
|
107
|
+
<td style="text-align: center">{{ row.wcl }}</td>
|
109
108
|
</template>
|
110
109
|
<template partial="foot">
|
111
110
|
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
@@ -115,7 +114,7 @@
|
|
115
114
|
<td style="text-align: center">{{ model.sums.rqjcount }}</td>
|
116
115
|
<td style="text-align: center">{{ model.sums.yclyh }}</td>
|
117
116
|
<td style="text-align: center">{{ model.sums.clzyh }}</td>
|
118
|
-
<td style="text-align: center">{{ model.sums.
|
117
|
+
<td style="text-align: center">{{ model.sums.wcl }}</td>
|
119
118
|
</template>
|
120
119
|
</data-grid>
|
121
120
|
</criteria-paged>
|
@@ -128,7 +127,7 @@ import {PagedList} from "vue-client";
|
|
128
127
|
|
129
128
|
export default {
|
130
129
|
name: "communityTypeDetailM",
|
131
|
-
title: "
|
130
|
+
title: "居民隐患类型明细",
|
132
131
|
data() {
|
133
132
|
return {
|
134
133
|
model: new PagedList("/rs/sql/communityTypeDetailM", 999, {orgid: this.$login.f.orgid}, {
|
@@ -137,9 +136,11 @@ export default {
|
|
137
136
|
clzyh: '',
|
138
137
|
rqjcount: '',
|
139
138
|
ljcount: '',
|
139
|
+
wcl:'',
|
140
140
|
jgcount: ''
|
141
141
|
}),
|
142
142
|
resids: {},
|
143
|
+
print_model:{},
|
143
144
|
searchData: {
|
144
145
|
condition: "1=1",
|
145
146
|
orgid: this.$login.f.orgid
|
@@ -152,20 +153,33 @@ export default {
|
|
152
153
|
'yhhs': '存在隐患户数',
|
153
154
|
'yclyh': '已处理户数',
|
154
155
|
'clzyh': '处理中户数',
|
156
|
+
'wcl' : '未处理户数'
|
155
157
|
},
|
156
158
|
printshow: false,
|
157
|
-
defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh'],
|
159
|
+
defaultPrint: ['f_residential_area', 'ljcount','jgcount','rqjcount','yhhs', 'yclyh', 'clzyh','wcl'],
|
158
160
|
sumsmodel: {},
|
159
161
|
}
|
160
162
|
},
|
161
163
|
ready() {
|
162
|
-
this.model.search('1=1')
|
164
|
+
// this.model.search('1=1')
|
163
165
|
},
|
164
166
|
methods: {
|
165
|
-
selfSearch(args) {
|
166
|
-
this.model.search(args.condition, args.model, args.condValue)
|
167
|
+
async selfSearch(args) {
|
168
|
+
await this.model.search(args.condition, args.model, args.condValue)
|
167
169
|
this.searchData.condition = args.condition
|
170
|
+
this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
|
168
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
|
169
183
|
},
|
170
184
|
getRes(obj) {
|
171
185
|
//tag
|
@@ -15,7 +15,7 @@
|
|
15
15
|
:show-rest-button="reset"
|
16
16
|
:value.sync="model.start_time"
|
17
17
|
v-model="model.start_time"
|
18
|
-
condition="tcp.
|
18
|
+
condition="tcp.f_create_time >= '{} 00:00:00'">
|
19
19
|
</datepicker>
|
20
20
|
</div>
|
21
21
|
<div class="form-group col-sm-4">
|
@@ -28,13 +28,22 @@
|
|
28
28
|
:show-rest-button="reset"
|
29
29
|
:value.sync="model.end_time"
|
30
30
|
v-model="model.end_time"
|
31
|
-
condition="tcp.
|
31
|
+
condition="tcp.f_create_time <= '{} 23:59:59'">
|
32
32
|
</datepicker>
|
33
33
|
</div>
|
34
34
|
<div class="col-sm-4 form-group">
|
35
35
|
<label class="font_normal_body">小区名称:</label>
|
36
36
|
<input style="width: 60%" class="input_search" v-model="model.f_residential_area"
|
37
|
-
placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
|
37
|
+
placeholder="请输入小区(可模糊查询)" condition="tcpi.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="tcpi.f_user_type = '{}'"></v-select>
|
38
47
|
</div>
|
39
48
|
<div class="col-sm-4 form-group" style="margin: 0">
|
40
49
|
<role-selector-safe
|
@@ -54,11 +63,11 @@
|
|
54
63
|
sqlurl="rs/logic/SafeExportExcel" sql-name="safeDetail" template-name='安检情况明细'
|
55
64
|
:choose-col="true"></export-excel-safe>
|
56
65
|
</div>
|
57
|
-
<print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.
|
66
|
+
<print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
|
58
67
|
:field="$parent.$parent.excelHeaders"
|
59
68
|
:defaultfield="$parent.$parent.defaultPrint"
|
60
69
|
titletable="安检情况明细" :starthead="$parent.$parent.getstart"
|
61
|
-
|
70
|
+
></print-data-safe>
|
62
71
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
63
72
|
</div>
|
64
73
|
</div>
|
@@ -110,14 +119,14 @@
|
|
110
119
|
<td style="text-align: center">{{ row.f_residential_area }}</td>
|
111
120
|
<td style="text-align: center">{{ row.totalcount }}</td>
|
112
121
|
<td style="text-align: center">{{ row.wjcount }}</td>
|
113
|
-
<td style="text-align: center">{{ row.
|
122
|
+
<td style="text-align: center">{{ row.yjcount }}</td>
|
114
123
|
<td style="text-align: center">{{ row.rhcount }}</td>
|
115
124
|
<td style="text-align: center">{{ row.dfbycount1 }}</td>
|
116
125
|
<td style="text-align: center">{{ row.dfbycount2 }}</td>
|
117
126
|
<td style="text-align: center">{{ row.dfbycount3 }}</td>
|
118
127
|
<td style="text-align: center">{{ row.unique_dfby_count }}</td>
|
119
128
|
<td style="text-align: center">{{ row.jjcount }}</td>
|
120
|
-
<td style="text-align: center">{{
|
129
|
+
<td style="text-align: center">{{ row.check_bv }}</td>
|
121
130
|
</template>
|
122
131
|
<template partial="foot">
|
123
132
|
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
@@ -125,7 +134,7 @@
|
|
125
134
|
|
126
135
|
<td style="text-align: center">{{ model.sums.wjcount }}</td>
|
127
136
|
|
128
|
-
<td style="text-align: center">{{ model.sums.
|
137
|
+
<td style="text-align: center">{{ model.sums.yjcount }}</td>
|
129
138
|
|
130
139
|
<td style="text-align: center">{{ model.sums.rhcount }}</td>
|
131
140
|
|
@@ -135,7 +144,7 @@
|
|
135
144
|
<td style="text-align: center">{{ model.sums.unique_dfby_count }}</td>
|
136
145
|
<td style="text-align: center">{{ model.sums.jjcount }}</td>
|
137
146
|
<td style="text-align: center">
|
138
|
-
{{ ((model.sums.
|
147
|
+
{{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
|
139
148
|
</td>
|
140
149
|
|
141
150
|
</template>
|
@@ -157,6 +166,7 @@ export default {
|
|
157
166
|
model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
|
158
167
|
totalcount: '',
|
159
168
|
wjcount: '',
|
169
|
+
yjcount: '',
|
160
170
|
rhcount: '',
|
161
171
|
dfbycount1: '',
|
162
172
|
dfbycount2: '',
|
@@ -169,30 +179,48 @@ export default {
|
|
169
179
|
condition: "1=1",
|
170
180
|
orgid: this.$login.f.orgid
|
171
181
|
},
|
182
|
+
print_model:{},
|
183
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
172
184
|
excelHeaders: {
|
173
185
|
'f_residential_area': '小区名称',
|
174
186
|
'totalcount': '计划安检总户数',
|
175
187
|
'wjcount': '未检户数',
|
188
|
+
'yjcount': '已检户数',
|
176
189
|
'rhcount': '入户户数',
|
177
190
|
'dfbycount1': '到访不遇-1次',
|
178
191
|
'dfbycount2': '到访不遇-2次',
|
179
192
|
'dfbycount3': '到访不遇-3次',
|
180
193
|
'unique_dfby_count': '到访不遇小计',
|
181
194
|
'jjcount': '拒检户数',
|
195
|
+
'check_bv':'安检率'
|
182
196
|
},
|
183
197
|
printshow: false,
|
184
|
-
defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount'],
|
198
|
+
defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv'],
|
185
199
|
sumsmodel: {},
|
186
200
|
}
|
187
201
|
},
|
188
202
|
ready() {
|
189
|
-
this.model.search('1=1')
|
203
|
+
// this.model.search('1=1')
|
190
204
|
},
|
191
205
|
methods: {
|
192
|
-
selfSearch(args) {
|
193
|
-
this.model.search(args.condition, args.model, args.condValue)
|
206
|
+
async selfSearch(args) {
|
207
|
+
await this.model.search(args.condition, args.model, args.condValue)
|
194
208
|
this.searchData.condition = args.condition
|
195
209
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
210
|
+
this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
|
211
|
+
this.print_model.rows.push({
|
212
|
+
f_residential_area:'合计',
|
213
|
+
totalcount: this.sumsmodel.totalcount,
|
214
|
+
wjcount: this.sumsmodel.wjcount,
|
215
|
+
yjcount: this.sumsmodel.yjcount,
|
216
|
+
rhcount: this.sumsmodel.rhcount,
|
217
|
+
dfbycount1: this.sumsmodel.dfbycount1,
|
218
|
+
dfbycount2: this.sumsmodel.dfbycount2,
|
219
|
+
dfbycount3: this.sumsmodel.dfbycount3,
|
220
|
+
unique_dfby_count: this.sumsmodel.unique_dfby_count,
|
221
|
+
check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`
|
222
|
+
})
|
223
|
+
this.print_model.totalPage = 0
|
196
224
|
},
|
197
225
|
getRes(obj) {
|
198
226
|
//tag
|
@@ -38,6 +38,15 @@
|
|
38
38
|
:show-reset-button="reset">
|
39
39
|
</datepicker>
|
40
40
|
</div>
|
41
|
+
<div class="form-group col-sm-2">
|
42
|
+
<label class="font_normal_body">用户类型</label>
|
43
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
44
|
+
:value-single="true" style="width: 60%"
|
45
|
+
class="select_list select"
|
46
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
47
|
+
close-on-select
|
48
|
+
condition="tcpi.f_user_type = '{}'"></v-select>
|
49
|
+
</div>
|
41
50
|
<div class="form-group col-sm-2" >
|
42
51
|
<label class="font_normal_body">小  区</label>
|
43
52
|
<input type="text" class="input_search" v-model="model.f_residential_area"
|
@@ -45,13 +54,13 @@
|
|
45
54
|
</div>
|
46
55
|
<div class="col-sm-4 form-group" style="margin-top: 8px">
|
47
56
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
48
|
-
<report-print
|
49
|
-
<report-excel
|
57
|
+
<report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
58
|
+
<report-excel id='checkerPrint'></report-excel>
|
50
59
|
</div>
|
51
60
|
</div>
|
52
61
|
</div>
|
53
62
|
</criteria>
|
54
|
-
<div partial='list' id='
|
63
|
+
<div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
|
55
64
|
<table class='tableprint' style="margin: 0px auto">
|
56
65
|
<thead>
|
57
66
|
<tr>
|
@@ -87,6 +96,7 @@
|
|
87
96
|
let model = new DataModel('rs/report/checkerReport', {})
|
88
97
|
// model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
89
98
|
return {
|
99
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
90
100
|
userid: this.$login.f.id,
|
91
101
|
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
92
102
|
model: model
|
@@ -16,7 +16,7 @@
|
|
16
16
|
:show-rest-button="reset"
|
17
17
|
:value.sync="model.start_time"
|
18
18
|
v-model="model.start_time"
|
19
|
-
condition="
|
19
|
+
condition="tcpi.f_last_check_date >= '{}-01 00:00:00'">
|
20
20
|
</datepicker>
|
21
21
|
</div>
|
22
22
|
<div class="form-group col-sm-4">
|
@@ -30,13 +30,22 @@
|
|
30
30
|
:show-rest-button="reset"
|
31
31
|
:value.sync="model.end_time"
|
32
32
|
v-model="model.end_time"
|
33
|
-
condition="
|
33
|
+
condition="tcpi.f_last_check_date <= '{}-31 23:59:59'">
|
34
34
|
</datepicker>
|
35
35
|
</div>
|
36
36
|
<div class="col-sm-4 form-group">
|
37
37
|
<label class="font_normal_body">小区名称:</label>
|
38
38
|
<input style="width: 60%" class="input_search" v-model="model.f_residential_area"
|
39
|
-
placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
|
39
|
+
placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
|
40
|
+
</div>
|
41
|
+
<div class="form-group col-sm-4">
|
42
|
+
<label class="font_normal_body">用户类型</label>
|
43
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
44
|
+
:value-single="true" style="width: 60%"
|
45
|
+
class="select_list select"
|
46
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
47
|
+
close-on-select
|
48
|
+
condition="tcpi.f_user_type = '{}'"></v-select>
|
40
49
|
</div>
|
41
50
|
<div class="col-sm-4 form-group" style="margin: 0">
|
42
51
|
<role-selector-safe
|
@@ -46,7 +55,7 @@
|
|
46
55
|
@re-res="$parent.$parent.getRes"
|
47
56
|
:value.sync="model.f_checker_id"
|
48
57
|
v-model="model.f_checker_id"
|
49
|
-
condition="tcp.
|
58
|
+
condition="tcp.f_checker = '{}'">
|
50
59
|
</role-selector-safe>
|
51
60
|
</div>
|
52
61
|
<div style="float: right">
|
@@ -56,11 +65,11 @@
|
|
56
65
|
sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsDay" template-name='安检报表日'
|
57
66
|
:choose-col="true"></export-excel-safe>
|
58
67
|
</div>
|
59
|
-
<print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.
|
68
|
+
<print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
|
60
69
|
:field="$parent.$parent.excelHeaders"
|
61
70
|
:defaultfield="$parent.$parent.defaultPrint"
|
62
71
|
titletable="安检报表日" :starthead="$parent.$parent.getstart"
|
63
|
-
|
72
|
+
></print-data-safe>
|
64
73
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
65
74
|
</div>
|
66
75
|
</div>
|
@@ -167,6 +176,9 @@
|
|
167
176
|
<th>
|
168
177
|
<nobr>31日</nobr>
|
169
178
|
</th>
|
179
|
+
<th>
|
180
|
+
<nobr>小计</nobr>
|
181
|
+
</th>
|
170
182
|
</tr>
|
171
183
|
</template>
|
172
184
|
<template partial='body'>
|
@@ -204,7 +216,7 @@
|
|
204
216
|
<td style="text-align: center">{{ row.day29 }}</td>
|
205
217
|
<td style="text-align: center">{{ row.day30 }}</td>
|
206
218
|
<td style="text-align: center">{{ row.day31 }}</td>
|
207
|
-
|
219
|
+
<td style="text-align: center">{{ row.countarea }}</td>
|
208
220
|
</template>
|
209
221
|
<template partial="foot">
|
210
222
|
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
@@ -239,6 +251,7 @@
|
|
239
251
|
<td style="text-align: center">{{ model.sums.day29 }}</td>
|
240
252
|
<td style="text-align: center">{{ model.sums.day30 }}</td>
|
241
253
|
<td style="text-align: center">{{ model.sums.day31 }}</td>
|
254
|
+
<td style="text-align: center">{{ model.sums.countarea }}</td>
|
242
255
|
</template>
|
243
256
|
</data-grid>
|
244
257
|
</criteria-paged>
|
@@ -285,13 +298,15 @@ export default {
|
|
285
298
|
day28: '',
|
286
299
|
day29: '',
|
287
300
|
day30: '',
|
288
|
-
day31: ''
|
301
|
+
day31: '',
|
302
|
+
countarea:''
|
289
303
|
}),
|
290
304
|
resids: {},
|
291
305
|
searchData: {
|
292
306
|
condition: "1=1",
|
293
307
|
orgid: this.$login.f.orgid
|
294
308
|
},
|
309
|
+
print_model:{},
|
295
310
|
excelHeaders: {
|
296
311
|
'f_residential_area': '小区名称',
|
297
312
|
'day1': '1日',
|
@@ -324,8 +339,10 @@ export default {
|
|
324
339
|
'day28': '28日',
|
325
340
|
'day29': '29日',
|
326
341
|
'day30': '30日',
|
327
|
-
'day31': '31日'
|
342
|
+
'day31': '31日',
|
343
|
+
'countarea':'小计'
|
328
344
|
},
|
345
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
329
346
|
printshow: false,
|
330
347
|
defaultPrint: ['f_residential_area', 'day1',
|
331
348
|
'day2',
|
@@ -357,18 +374,60 @@ export default {
|
|
357
374
|
'day28',
|
358
375
|
'day29',
|
359
376
|
'day30',
|
360
|
-
'day31'],
|
377
|
+
'day31','countarea'],
|
361
378
|
sumsmodel: {},
|
362
379
|
}
|
363
380
|
},
|
364
381
|
ready() {
|
365
|
-
|
382
|
+
let a = new Date()
|
383
|
+
let year = a.getFullYear()
|
384
|
+
let month = '0'+(a.getMonth()+1)
|
385
|
+
this.$refs.paged.$refs.criteria.model.start_time = year + '-'+ (month.substring(month.length-2))
|
386
|
+
this.$refs.paged.$refs.criteria.model.end_time = year + '-'+ (month.substring(month.length-2))
|
366
387
|
},
|
367
388
|
methods: {
|
368
|
-
selfSearch(args) {
|
369
|
-
this.model.search(args.condition, args.model, args.condValue)
|
389
|
+
async selfSearch(args) {
|
390
|
+
await this.model.search(args.condition, args.model, args.condValue)
|
370
391
|
this.searchData.condition = args.condition
|
371
392
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
393
|
+
this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
|
394
|
+
this.print_model.rows.push({
|
395
|
+
'f_residential_area': '合计',
|
396
|
+
'day1': this.sumsmodel.day1,
|
397
|
+
'day2': this.sumsmodel.day2,
|
398
|
+
'day3': this.sumsmodel.day3,
|
399
|
+
'day4': this.sumsmodel.day4,
|
400
|
+
'day5': this.sumsmodel.day5,
|
401
|
+
'day6': this.sumsmodel.day6,
|
402
|
+
'day7': this.sumsmodel.day7,
|
403
|
+
'day8': this.sumsmodel.day8,
|
404
|
+
'day9': this.sumsmodel.day9,
|
405
|
+
'day10': this.sumsmodel.day10,
|
406
|
+
'day11': this.sumsmodel.day11,
|
407
|
+
'day12': this.sumsmodel.day12,
|
408
|
+
'day13': this.sumsmodel.day13,
|
409
|
+
'day14': this.sumsmodel.day14,
|
410
|
+
'day15': this.sumsmodel.day15,
|
411
|
+
'day16': this.sumsmodel.day16,
|
412
|
+
'day17': this.sumsmodel.day17,
|
413
|
+
'day18': this.sumsmodel.day18,
|
414
|
+
'day19': this.sumsmodel.day19,
|
415
|
+
'day20': this.sumsmodel.day20,
|
416
|
+
'day21': this.sumsmodel.day21,
|
417
|
+
'day22': this.sumsmodel.day22,
|
418
|
+
'day23': this.sumsmodel.day23,
|
419
|
+
'day24': this.sumsmodel.day24,
|
420
|
+
'day25': this.sumsmodel.day25,
|
421
|
+
'day26': this.sumsmodel.day26,
|
422
|
+
'day27': this.sumsmodel.day27,
|
423
|
+
'day28': this.sumsmodel.day28,
|
424
|
+
'day29': this.sumsmodel.day29,
|
425
|
+
'day30': this.sumsmodel.day30,
|
426
|
+
'day31': this.sumsmodel.day31,
|
427
|
+
'countarea':this.sumsmodel.countarea
|
428
|
+
|
429
|
+
})
|
430
|
+
this.print_model.totalPage = 0
|
372
431
|
},
|
373
432
|
getRes(obj) {
|
374
433
|
//tag
|
@@ -16,7 +16,7 @@
|
|
16
16
|
:show-rest-button="reset"
|
17
17
|
:value.sync="model.start_time"
|
18
18
|
v-model="model.start_time"
|
19
|
-
condition="
|
19
|
+
condition="tcpi.f_last_check_date >= '{}-01-01 00:00:00'">
|
20
20
|
</datepicker>
|
21
21
|
</div>
|
22
22
|
<div class="form-group col-sm-4">
|
@@ -30,13 +30,22 @@
|
|
30
30
|
:show-rest-button="reset"
|
31
31
|
:value.sync="model.end_time"
|
32
32
|
v-model="model.end_time"
|
33
|
-
condition="
|
33
|
+
condition="tcpi.f_last_check_date <= '{}-12-31 23:59:59'">
|
34
34
|
</datepicker>
|
35
35
|
</div>
|
36
36
|
<div class="col-sm-4 form-group">
|
37
37
|
<label class="font_normal_body">小区名称:</label>
|
38
|
-
<input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
|
38
|
+
<input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
|
39
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>
|
40
49
|
<div class="col-sm-4 form-group" style="margin: 0">
|
41
50
|
<role-selector-safe
|
42
51
|
role-name="安检员"
|
@@ -45,7 +54,7 @@
|
|
45
54
|
@re-res="$parent.$parent.getRes"
|
46
55
|
:value.sync="model.f_checker_id"
|
47
56
|
v-model="model.f_checker_id"
|
48
|
-
condition="tcp.
|
57
|
+
condition="tcp.f_checker = '{}'">
|
49
58
|
</role-selector-safe>
|
50
59
|
</div>
|
51
60
|
<div style="float: right">
|
@@ -54,11 +63,11 @@
|
|
54
63
|
progress="safeGetExportProgress"
|
55
64
|
sqlurl="rs/logic/SafeExportExcel" sql-name="safeStatisticsMonth" template-name='安检报表月' :choose-col="true"></export-excel-safe>
|
56
65
|
</div>
|
57
|
-
<print-data :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.
|
66
|
+
<print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
|
58
67
|
:field="$parent.$parent.excelHeaders"
|
59
68
|
:defaultfield="$parent.$parent.defaultPrint"
|
60
69
|
titletable="安检报表月" :starthead="$parent.$parent.getstart"
|
61
|
-
|
70
|
+
></print-data-safe>
|
62
71
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
63
72
|
</div>
|
64
73
|
</div>
|
@@ -108,6 +117,9 @@
|
|
108
117
|
<th>
|
109
118
|
<nobr>12月</nobr>
|
110
119
|
</th>
|
120
|
+
<th>
|
121
|
+
<nobr>小计</nobr>
|
122
|
+
</th>
|
111
123
|
</tr>
|
112
124
|
</template>
|
113
125
|
<template partial='body'>
|
@@ -126,6 +138,7 @@
|
|
126
138
|
<td style="text-align: center">{{ row.month10 }}</td>
|
127
139
|
<td style="text-align: center">{{ row.month11 }}</td>
|
128
140
|
<td style="text-align: center">{{ row.month12 }}</td>
|
141
|
+
<td style="text-align: center">{{ row.countarea }}</td>
|
129
142
|
</template>
|
130
143
|
<template partial="foot">
|
131
144
|
<td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
|
@@ -141,6 +154,7 @@
|
|
141
154
|
<td style="text-align: center">{{ model.sums.month10 }}</td>
|
142
155
|
<td style="text-align: center">{{ model.sums.month11 }}</td>
|
143
156
|
<td style="text-align: center">{{ model.sums.month12 }}</td>
|
157
|
+
<td style="text-align: center">{{ model.sums.countarea }}</td>
|
144
158
|
</template>
|
145
159
|
</data-grid>
|
146
160
|
</criteria-paged>
|
@@ -169,13 +183,16 @@ export default {
|
|
169
183
|
month9: '',
|
170
184
|
month10: '',
|
171
185
|
month11: '',
|
172
|
-
month12: ''
|
186
|
+
month12: '',
|
187
|
+
countarea: ''
|
173
188
|
}),
|
174
189
|
resids:{},
|
175
190
|
searchData:{
|
176
191
|
condition: "1=1",
|
177
192
|
orgid: this.$login.f.orgid
|
178
193
|
},
|
194
|
+
print_model:{},
|
195
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
179
196
|
excelHeaders:{
|
180
197
|
'f_residential_area': '小区名称',
|
181
198
|
'month1': '1月',
|
@@ -190,20 +207,39 @@ export default {
|
|
190
207
|
'month10': '10月',
|
191
208
|
'month11': '11月',
|
192
209
|
'month12': '12月',
|
210
|
+
'countarea':'小计'
|
193
211
|
},
|
194
212
|
printshow: false,
|
195
|
-
defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12',],
|
213
|
+
defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
|
196
214
|
sumsmodel: {},
|
197
215
|
}
|
198
216
|
},
|
199
217
|
ready() {
|
200
|
-
this.model.search('1=1')
|
218
|
+
// this.model.search('1=1')
|
201
219
|
},
|
202
220
|
methods: {
|
203
|
-
selfSearch(args) {
|
204
|
-
this.model.search(args.condition, args.model, args.condValue)
|
221
|
+
async selfSearch(args) {
|
222
|
+
await this.model.search(args.condition, args.model, args.condValue)
|
205
223
|
this.searchData.condition = args.condition
|
206
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
|
207
243
|
},
|
208
244
|
getRes(obj) {
|
209
245
|
//tag
|
@@ -35,15 +35,24 @@
|
|
35
35
|
<input type="text" class="input_search" v-model="model.f_residential_area"
|
36
36
|
style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
|
37
37
|
</div>
|
38
|
+
<div class="form-group col-sm-2">
|
39
|
+
<label class="font_normal_body">用户类型</label>
|
40
|
+
<v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
|
41
|
+
:value-single="true" style="width: 60%"
|
42
|
+
class="select_list select"
|
43
|
+
:options='$parent.$parent.user_types' placeholder='用户类型'
|
44
|
+
close-on-select
|
45
|
+
condition="tcpi.f_user_type = '{}'"></v-select>
|
46
|
+
</div>
|
38
47
|
<div class="col-sm-4 form-group" style="margin-top: 8px">
|
39
48
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
40
|
-
<report-print
|
41
|
-
<report-excel
|
49
|
+
<report-print id='yearPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
50
|
+
<report-excel id='yearPrint'></report-excel>
|
42
51
|
</div>
|
43
52
|
</div>
|
44
53
|
</div>
|
45
54
|
</criteria>
|
46
|
-
<div partial='list' id='
|
55
|
+
<div partial='list' id='yearPrint' class="list_area" style="overflow-y: scroll">
|
47
56
|
<table class='tableprint' style="margin: 0px auto">
|
48
57
|
<thead>
|
49
58
|
<tr>
|
@@ -79,6 +88,7 @@
|
|
79
88
|
let model = new DataModel('rs/report/safeStatisticsYear', {})
|
80
89
|
// model.f_filialeid = '(' + this.$login.f.orgid + ')'
|
81
90
|
return {
|
91
|
+
user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
82
92
|
userid: this.$login.f.id,
|
83
93
|
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
84
94
|
model: model
|