safecheck-client 3.0.30-7 → 3.0.30-71
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 +2 -2
- 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/SafecheckOrderV.vue +2 -2
- 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/tianke/pc/checkScreen.vue +781 -781
- package/src/filiale/tianke/pc/cq.jpg +0 -0
- package/src/filiale/tianke/pc/qy.jpg +0 -0
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1095 -1090
- 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/CheckSearchUser.vue +64 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
- 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/wuhai/android/SafecheckOrderV.vue +2069 -2041
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
- package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -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 +35 -12
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
- package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
- package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +88 -29
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +63 -27
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
- package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
- package/src/filiale/yongzhou/pc.js +17 -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="communityTypeDetailG"
|
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: "communityTypeDetailG",
|
131
|
-
title: "
|
130
|
+
title: "工商隐患类型明细",
|
132
131
|
data() {
|
133
132
|
return {
|
134
133
|
model: new PagedList("/rs/sql/communityTypeDetailG", 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
|
@@ -182,7 +196,7 @@ export default {
|
|
182
196
|
},
|
183
197
|
computed: {
|
184
198
|
getstart() {
|
185
|
-
return `开始时间:${this.$refs.paged.$refs.
|
199
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
|
186
200
|
},
|
187
201
|
}
|
188
202
|
}
|
@@ -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
|
@@ -182,7 +196,7 @@ export default {
|
|
182
196
|
},
|
183
197
|
computed: {
|
184
198
|
getstart() {
|
185
|
-
return `开始时间:${this.$refs.paged.$refs.
|
199
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
|
186
200
|
},
|
187
201
|
}
|
188
202
|
}
|
@@ -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
|
-
titletable="安检情况明细" :starthead="$parent.$parent.getstart"
|
61
|
-
|
69
|
+
:titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
|
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
|
@@ -209,7 +237,7 @@ export default {
|
|
209
237
|
},
|
210
238
|
computed: {
|
211
239
|
getstart() {
|
212
|
-
return `开始时间:${this.$refs.paged.$refs.
|
240
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.start_time} 结束时间:${this.$refs.paged.$refs.criteria.model.end_time}`
|
213
241
|
},
|
214
242
|
}
|
215
243
|
}
|
@@ -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,29 +54,29 @@
|
|
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>
|
58
|
-
<th colspan='
|
67
|
+
<th colspan='9' style="font-weight: normal; text-align: left;">
|
59
68
|
<h3 style="text-align: center">安检员明细报表</h3>
|
60
69
|
</th>
|
61
70
|
</tr>
|
62
71
|
<tr>
|
63
|
-
<th colspan='
|
72
|
+
<th colspan='9' style="font-weight: normal; text-align: center;">
|
64
73
|
开始时间:{{model.model.startDate}}
|
65
74
|
结束时间:{{ model.model.endDate }}
|
66
75
|
</th>
|
67
76
|
</tr>
|
68
77
|
</thead>
|
69
78
|
<tr>
|
70
|
-
<th colspan='
|
79
|
+
<th colspan='9' style="font-weight: normal;">
|
71
80
|
{{{ model.data.substring(26,model.data.length-8) }}}
|
72
81
|
</th>
|
73
82
|
</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
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div partial>
|
7
7
|
<div class="row">
|
8
8
|
<div class="form-group col-sm-4">
|
9
|
-
<label class="font_normal_body"
|
9
|
+
<label class="font_normal_body">时间选择:</label>
|
10
10
|
<datepicker
|
11
11
|
placeholder='请选择'
|
12
12
|
style="width:60%"
|
@@ -16,27 +16,36 @@
|
|
16
16
|
:show-rest-button="reset"
|
17
17
|
:value.sync="model.start_time"
|
18
18
|
v-model="model.start_time"
|
19
|
-
condition="
|
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-month="true"
|
27
|
-
:disabled-days-of-week="[]"
|
28
|
-
style="width:60%"
|
29
|
-
:format="'yyyy-MM'"
|
30
|
-
:show-rest-button="reset"
|
31
|
-
:value.sync="model.end_time"
|
32
|
-
v-model="model.end_time"
|
33
|
-
condition="tcp.f_upload_date <= '{}-31 23:59:59'">
|
19
|
+
condition="tcpi.f_last_check_date >= '{}-01 00:00:00' and tcpi.f_last_check_date <= '{}-31 23:59:59'">
|
34
20
|
</datepicker>
|
35
21
|
</div>
|
22
|
+
<!-- <div class="form-group col-sm-4">-->
|
23
|
+
<!-- <label class="font_normal_body">结束时间:</label>-->
|
24
|
+
<!-- <datepicker-->
|
25
|
+
<!-- placeholder='请选择'-->
|
26
|
+
<!-- :select-month="true"-->
|
27
|
+
<!-- :disabled-days-of-week="[]"-->
|
28
|
+
<!-- style="width:60%"-->
|
29
|
+
<!-- :format="'yyyy-MM'"-->
|
30
|
+
<!-- :show-rest-button="reset"-->
|
31
|
+
<!-- :value.sync="model.end_time"-->
|
32
|
+
<!-- v-model="model.end_time"-->
|
33
|
+
<!-- condition="tcpi.f_last_check_date <= '{}-31 23:59:59'">-->
|
34
|
+
<!-- </datepicker>-->
|
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
|
-
titletable="
|
63
|
-
|
71
|
+
:titletable="'安检日报表'" :starthead="$parent.$parent.getstart"
|
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
|
@@ -385,7 +444,7 @@ export default {
|
|
385
444
|
},
|
386
445
|
computed: {
|
387
446
|
getstart() {
|
388
|
-
return
|
447
|
+
return `时间:${this.$refs.paged.$refs.criteria.model.start_time ? this.$refs.paged.$refs.criteria.model.start_time : ''}`
|
389
448
|
},
|
390
449
|
}
|
391
450
|
}
|