safecheck-client 3.0.39-14 → 3.0.39-15
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 +1 -1
- package/src/App.vue +31 -26
- package/src/components/pc/RoleSelector.vue +172 -172
- package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +248 -248
- package/src/components/rongcheng/AddPlanItem.vue +344 -344
- package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
- package/src/components/rongcheng/PaperDefectMain.vue +828 -828
- package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
- package/src/filiale/dexin/pc/PaperList.vue +840 -840
- package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1553
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1336 -1270
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +2918 -2918
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -800
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
- package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -226
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1091 -1091
- package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +664 -664
- package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +247 -247
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1094 -1094
- package/src/filiale/tongchuan/pc/PaperList.vue +718 -718
- package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -269
- package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +336 -336
- package/src/filiale/tongchuan/pc.js +37 -37
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
- package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
- package/src/filiale/yangchunboneng/android.js +21 -21
- package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +677 -677
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
- package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
- package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
- package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
- package/src/filiale/yangchunboneng/pc.js +29 -29
- package/src/main.js +33 -33
- package/src/rongcheng.js +319 -319
- package/yarn-error.log +0 -140
|
@@ -1,247 +1,247 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<section>
|
|
4
|
-
<div class="basic-main row" style="height: 100%">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 30%;">
|
|
10
|
-
<role-selector-safe
|
|
11
|
-
role-name="安检员"
|
|
12
|
-
role-lable="安 检 员 "
|
|
13
|
-
@re-res="$parent.$parent.getRes"
|
|
14
|
-
:value.sync="model.f_checker_id"
|
|
15
|
-
v-model="model.f_checker_id"
|
|
16
|
-
condition="f_checker_name = '{}'">
|
|
17
|
-
</role-selector-safe>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
20
|
-
<label for="startDate" class="font_normal_body">起始时间</label>
|
|
21
|
-
<datepicker
|
|
22
|
-
class="select_list select"
|
|
23
|
-
:value.sync="model.startDate"
|
|
24
|
-
id="startDate"
|
|
25
|
-
placeholder='开始时间' style="width: 60%"
|
|
26
|
-
:disabled-days-of-week="[]"
|
|
27
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
28
|
-
:show-rest-button="reset"
|
|
29
|
-
v-model="model.startDate"
|
|
30
|
-
condition="f_upload_date > ='{} '">
|
|
31
|
-
</datepicker>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
34
|
-
<label for="endDate" class="font_normal_body">结束时间</label>
|
|
35
|
-
<datepicker
|
|
36
|
-
class="select_list select"
|
|
37
|
-
:value.sync="model.endDate"
|
|
38
|
-
id="endDate"
|
|
39
|
-
placeholder='结束日期' style="width: 60%"
|
|
40
|
-
:disabled-days-of-week="[]"
|
|
41
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
42
|
-
:show-rest-button="reset"
|
|
43
|
-
v-model="model.endDate"
|
|
44
|
-
condition="f_upload_date <='{} '">
|
|
45
|
-
</datepicker>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
48
|
-
<label class="font_normal_body">网 格 员</label>
|
|
49
|
-
<v-select class="select_list select"
|
|
50
|
-
placeholder='请选择' style="width: 60%"
|
|
51
|
-
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
52
|
-
:options='$parent.$parent.users'
|
|
53
|
-
filer-key="name"
|
|
54
|
-
close-on-select clear-button
|
|
55
|
-
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
56
|
-
:value-single="true">
|
|
57
|
-
</v-select>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
|
|
60
|
-
<report-print class="button_export button_spacing" style="width:28%" id='tongchuan'></report-print>
|
|
61
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
|
62
|
-
:field="$parent.$parent.excelHeaders"
|
|
63
|
-
sqlurl="rs/logic/SafeExportExcel"
|
|
64
|
-
sql-name="SafecheckSummary"
|
|
65
|
-
:template-name="$parent.$parent.excelTitle" :choose-col="true">
|
|
66
|
-
</export-excel-safe>
|
|
67
|
-
<button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</criteria>
|
|
72
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
|
|
73
|
-
<template partial='head'>
|
|
74
|
-
<tr>
|
|
75
|
-
<th>
|
|
76
|
-
<nobr>序号</nobr>
|
|
77
|
-
</th>
|
|
78
|
-
<th>
|
|
79
|
-
<nobr>安检月份</nobr>
|
|
80
|
-
</th>
|
|
81
|
-
<th>
|
|
82
|
-
<nobr>安检员</nobr>
|
|
83
|
-
</th>
|
|
84
|
-
<th>
|
|
85
|
-
<nobr>已检</nobr>
|
|
86
|
-
</th>
|
|
87
|
-
<th>
|
|
88
|
-
<nobr>入户</nobr>
|
|
89
|
-
</th>
|
|
90
|
-
<th>
|
|
91
|
-
<nobr>到访不遇</nobr>
|
|
92
|
-
</th>
|
|
93
|
-
<th>
|
|
94
|
-
<nobr>拒检</nobr>
|
|
95
|
-
</th>
|
|
96
|
-
<th>
|
|
97
|
-
<nobr>隐患数</nobr>
|
|
98
|
-
</th>
|
|
99
|
-
</tr>
|
|
100
|
-
</template>
|
|
101
|
-
<template partial='body'>
|
|
102
|
-
<tr>
|
|
103
|
-
<td style="text-align:center">{{$index + 1}}</td>
|
|
104
|
-
<td style="text-align:center">
|
|
105
|
-
<nobr>{{ row.yuefeng }}</nobr>
|
|
106
|
-
</td>
|
|
107
|
-
<td style="text-align:center">
|
|
108
|
-
<nobr>{{ row.f_checker_name }}</nobr>
|
|
109
|
-
</td>
|
|
110
|
-
<td style="text-align:center">
|
|
111
|
-
<nobr>{{ row.yijian }}</nobr>
|
|
112
|
-
</td>
|
|
113
|
-
<td style="text-align:center">
|
|
114
|
-
<nobr>{{ row.ruhu }}</nobr>
|
|
115
|
-
</td>
|
|
116
|
-
<td style="text-align:center">
|
|
117
|
-
<nobr>{{ row.daofang }}</nobr>
|
|
118
|
-
</td>
|
|
119
|
-
<td style="text-align:center">
|
|
120
|
-
<nobr>{{ row.jujian }}</nobr>
|
|
121
|
-
</td>
|
|
122
|
-
<td style="text-align:center">
|
|
123
|
-
<nobr>{{ row.yinhuan }}</nobr>
|
|
124
|
-
</td>
|
|
125
|
-
</tr>
|
|
126
|
-
</template>
|
|
127
|
-
<template partial="foot">
|
|
128
|
-
<td style="text-align: center"><span><b>合计:</b></span></td>
|
|
129
|
-
<td style="text-align: center"><span><b> </b></span></td>
|
|
130
|
-
<td style="text-align: center"><span><b> </b></span></td>
|
|
131
|
-
<td style="text-align: center">{{model.sums.yijian}}</td>
|
|
132
|
-
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
|
133
|
-
<td style="text-align: center">{{model.sums.daofang}}</td>
|
|
134
|
-
<td style="text-align: center">{{model.sums.jujian}}</td>
|
|
135
|
-
<td style="text-align: center">{{model.sums.yinhuan}}</td>
|
|
136
|
-
</template>
|
|
137
|
-
</data-grid>
|
|
138
|
-
</criteria-paged>
|
|
139
|
-
</div>
|
|
140
|
-
</section>
|
|
141
|
-
</div>
|
|
142
|
-
</template>
|
|
143
|
-
<script>
|
|
144
|
-
import {PagedList, HttpResetClass} from 'vue-client'
|
|
145
|
-
import * as Util from '../../Util'
|
|
146
|
-
|
|
147
|
-
export default {
|
|
148
|
-
title: '无计划安检汇总',
|
|
149
|
-
data () {
|
|
150
|
-
let model = new PagedList('rs/sql/SafecheckSummary', 20, {
|
|
151
|
-
f_filiale_id: 'this.f_filiale_id'
|
|
152
|
-
},{yijian:'',ruhu:'',daofang:'',jujian:'',yinhuan:''})
|
|
153
|
-
model.f_filiale_id = `('${this.$login.f.orgid}')`
|
|
154
|
-
return {
|
|
155
|
-
f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
|
|
156
|
-
model: model,
|
|
157
|
-
source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
|
|
158
|
-
userid: this.$login.f.id,
|
|
159
|
-
orgname: '',
|
|
160
|
-
users:[{label: '全部', value: ''}],
|
|
161
|
-
// checker:{},
|
|
162
|
-
searchData: {
|
|
163
|
-
condition: '',
|
|
164
|
-
f_filiale_id: ''
|
|
165
|
-
},
|
|
166
|
-
excelHeaders: {
|
|
167
|
-
'yuefeng': '安检月份',
|
|
168
|
-
'f_checker_name': '安检员',
|
|
169
|
-
'yijian': '已检',
|
|
170
|
-
'ruhu': '入户',
|
|
171
|
-
'daofang': '到访不遇',
|
|
172
|
-
'jujian': '拒检',
|
|
173
|
-
'yinhuan': '隐患数'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
methods: {
|
|
178
|
-
getRes (obj) {
|
|
179
|
-
this.f_filiale_id = this.$login.convertToIn(obj.resids)
|
|
180
|
-
this.orgname = obj.res[0]
|
|
181
|
-
this.$set('orgname', obj.res[0])
|
|
182
|
-
console.log(
|
|
183
|
-
`%c 无计划安检汇总公司名 %c 呼叫模块 %c`,
|
|
184
|
-
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
|
|
185
|
-
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
|
|
186
|
-
'background:transparent',
|
|
187
|
-
this.orgname
|
|
188
|
-
)
|
|
189
|
-
},
|
|
190
|
-
selfSearch (args) {
|
|
191
|
-
if (!this.f_filiale_id) {
|
|
192
|
-
return this.$showMessage("请选择公司进行查询!!!")
|
|
193
|
-
}
|
|
194
|
-
this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
|
|
195
|
-
this.searchData.f_filiale_id = this.f_filiale_id //导出
|
|
196
|
-
this.searchData.condition=args.condition //导出
|
|
197
|
-
this.model.search(args.condition, args.model)
|
|
198
|
-
},
|
|
199
|
-
initBookChecker(){
|
|
200
|
-
new HttpResetClass().load('POST', '/rs/search', {
|
|
201
|
-
data: {
|
|
202
|
-
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($网格员$) != -1)`,
|
|
203
|
-
userid: this.$login.f.id
|
|
204
|
-
}
|
|
205
|
-
}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
206
|
-
let data = res.data
|
|
207
|
-
const addedNames = new Set()
|
|
208
|
-
this.users = []
|
|
209
|
-
data.forEach(user => {
|
|
210
|
-
if (user.state === '在职') {
|
|
211
|
-
if (!addedNames.has(user.name)) {
|
|
212
|
-
this.users.push({ label: user.name, value: user.name })
|
|
213
|
-
addedNames.add(user.name)
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
})
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
computed: {
|
|
221
|
-
excelTitle() {
|
|
222
|
-
return `${this.orgname }无计划安检汇总`
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
watch: {
|
|
226
|
-
},
|
|
227
|
-
ready () {
|
|
228
|
-
this.orgname = this.$login.f.orgs
|
|
229
|
-
//tag)
|
|
230
|
-
//tag
|
|
231
|
-
this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
|
|
232
|
-
this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
|
|
233
|
-
this.initBookChecker()
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
</script>
|
|
239
|
-
|
|
240
|
-
<style lang="less" >
|
|
241
|
-
.tableinfo {
|
|
242
|
-
text-align: center;
|
|
243
|
-
background-color: #00A3F0;
|
|
244
|
-
color: #0c2e4d;
|
|
245
|
-
font-size: 26px;
|
|
246
|
-
}
|
|
247
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<section>
|
|
4
|
+
<div class="basic-main row" style="height: 100%">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 30%;">
|
|
10
|
+
<role-selector-safe
|
|
11
|
+
role-name="安检员"
|
|
12
|
+
role-lable="安 检 员 "
|
|
13
|
+
@re-res="$parent.$parent.getRes"
|
|
14
|
+
:value.sync="model.f_checker_id"
|
|
15
|
+
v-model="model.f_checker_id"
|
|
16
|
+
condition="f_checker_name = '{}'">
|
|
17
|
+
</role-selector-safe>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
20
|
+
<label for="startDate" class="font_normal_body">起始时间</label>
|
|
21
|
+
<datepicker
|
|
22
|
+
class="select_list select"
|
|
23
|
+
:value.sync="model.startDate"
|
|
24
|
+
id="startDate"
|
|
25
|
+
placeholder='开始时间' style="width: 60%"
|
|
26
|
+
:disabled-days-of-week="[]"
|
|
27
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
28
|
+
:show-rest-button="reset"
|
|
29
|
+
v-model="model.startDate"
|
|
30
|
+
condition="f_upload_date > ='{} '">
|
|
31
|
+
</datepicker>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
34
|
+
<label for="endDate" class="font_normal_body">结束时间</label>
|
|
35
|
+
<datepicker
|
|
36
|
+
class="select_list select"
|
|
37
|
+
:value.sync="model.endDate"
|
|
38
|
+
id="endDate"
|
|
39
|
+
placeholder='结束日期' style="width: 60%"
|
|
40
|
+
:disabled-days-of-week="[]"
|
|
41
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
42
|
+
:show-rest-button="reset"
|
|
43
|
+
v-model="model.endDate"
|
|
44
|
+
condition="f_upload_date <='{} '">
|
|
45
|
+
</datepicker>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;">
|
|
48
|
+
<label class="font_normal_body">网 格 员</label>
|
|
49
|
+
<v-select class="select_list select"
|
|
50
|
+
placeholder='请选择' style="width: 60%"
|
|
51
|
+
:value.sync="model.f_book_checker" v-model="model.f_book_checker"
|
|
52
|
+
:options='$parent.$parent.users'
|
|
53
|
+
filer-key="name"
|
|
54
|
+
close-on-select clear-button
|
|
55
|
+
condition="f_book_checker like '%{}%' and f_checker_name = '{}'"
|
|
56
|
+
:value-single="true">
|
|
57
|
+
</v-select>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
|
|
60
|
+
<report-print class="button_export button_spacing" style="width:28%" id='tongchuan'></report-print>
|
|
61
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
|
62
|
+
:field="$parent.$parent.excelHeaders"
|
|
63
|
+
sqlurl="rs/logic/SafeExportExcel"
|
|
64
|
+
sql-name="SafecheckSummary"
|
|
65
|
+
:template-name="$parent.$parent.excelTitle" :choose-col="true">
|
|
66
|
+
</export-excel-safe>
|
|
67
|
+
<button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</criteria>
|
|
72
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
|
|
73
|
+
<template partial='head'>
|
|
74
|
+
<tr>
|
|
75
|
+
<th>
|
|
76
|
+
<nobr>序号</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>安检月份</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>安检员</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>已检</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>入户</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>到访不遇</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>拒检</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
<th>
|
|
97
|
+
<nobr>隐患数</nobr>
|
|
98
|
+
</th>
|
|
99
|
+
</tr>
|
|
100
|
+
</template>
|
|
101
|
+
<template partial='body'>
|
|
102
|
+
<tr>
|
|
103
|
+
<td style="text-align:center">{{$index + 1}}</td>
|
|
104
|
+
<td style="text-align:center">
|
|
105
|
+
<nobr>{{ row.yuefeng }}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align:center">
|
|
108
|
+
<nobr>{{ row.f_checker_name }}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align:center">
|
|
111
|
+
<nobr>{{ row.yijian }}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align:center">
|
|
114
|
+
<nobr>{{ row.ruhu }}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
<td style="text-align:center">
|
|
117
|
+
<nobr>{{ row.daofang }}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
<td style="text-align:center">
|
|
120
|
+
<nobr>{{ row.jujian }}</nobr>
|
|
121
|
+
</td>
|
|
122
|
+
<td style="text-align:center">
|
|
123
|
+
<nobr>{{ row.yinhuan }}</nobr>
|
|
124
|
+
</td>
|
|
125
|
+
</tr>
|
|
126
|
+
</template>
|
|
127
|
+
<template partial="foot">
|
|
128
|
+
<td style="text-align: center"><span><b>合计:</b></span></td>
|
|
129
|
+
<td style="text-align: center"><span><b> </b></span></td>
|
|
130
|
+
<td style="text-align: center"><span><b> </b></span></td>
|
|
131
|
+
<td style="text-align: center">{{model.sums.yijian}}</td>
|
|
132
|
+
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
|
133
|
+
<td style="text-align: center">{{model.sums.daofang}}</td>
|
|
134
|
+
<td style="text-align: center">{{model.sums.jujian}}</td>
|
|
135
|
+
<td style="text-align: center">{{model.sums.yinhuan}}</td>
|
|
136
|
+
</template>
|
|
137
|
+
</data-grid>
|
|
138
|
+
</criteria-paged>
|
|
139
|
+
</div>
|
|
140
|
+
</section>
|
|
141
|
+
</div>
|
|
142
|
+
</template>
|
|
143
|
+
<script>
|
|
144
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
145
|
+
import * as Util from '../../Util'
|
|
146
|
+
|
|
147
|
+
export default {
|
|
148
|
+
title: '无计划安检汇总',
|
|
149
|
+
data () {
|
|
150
|
+
let model = new PagedList('rs/sql/SafecheckSummary', 20, {
|
|
151
|
+
f_filiale_id: 'this.f_filiale_id'
|
|
152
|
+
},{yijian:'',ruhu:'',daofang:'',jujian:'',yinhuan:''})
|
|
153
|
+
model.f_filiale_id = `('${this.$login.f.orgid}')`
|
|
154
|
+
return {
|
|
155
|
+
f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
|
|
156
|
+
model: model,
|
|
157
|
+
source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
|
|
158
|
+
userid: this.$login.f.id,
|
|
159
|
+
orgname: '',
|
|
160
|
+
users:[{label: '全部', value: ''}],
|
|
161
|
+
// checker:{},
|
|
162
|
+
searchData: {
|
|
163
|
+
condition: '',
|
|
164
|
+
f_filiale_id: ''
|
|
165
|
+
},
|
|
166
|
+
excelHeaders: {
|
|
167
|
+
'yuefeng': '安检月份',
|
|
168
|
+
'f_checker_name': '安检员',
|
|
169
|
+
'yijian': '已检',
|
|
170
|
+
'ruhu': '入户',
|
|
171
|
+
'daofang': '到访不遇',
|
|
172
|
+
'jujian': '拒检',
|
|
173
|
+
'yinhuan': '隐患数'
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
methods: {
|
|
178
|
+
getRes (obj) {
|
|
179
|
+
this.f_filiale_id = this.$login.convertToIn(obj.resids)
|
|
180
|
+
this.orgname = obj.res[0]
|
|
181
|
+
this.$set('orgname', obj.res[0])
|
|
182
|
+
console.log(
|
|
183
|
+
`%c 无计划安检汇总公司名 %c 呼叫模块 %c`,
|
|
184
|
+
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
|
|
185
|
+
'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff',
|
|
186
|
+
'background:transparent',
|
|
187
|
+
this.orgname
|
|
188
|
+
)
|
|
189
|
+
},
|
|
190
|
+
selfSearch (args) {
|
|
191
|
+
if (!this.f_filiale_id) {
|
|
192
|
+
return this.$showMessage("请选择公司进行查询!!!")
|
|
193
|
+
}
|
|
194
|
+
this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
|
|
195
|
+
this.searchData.f_filiale_id = this.f_filiale_id //导出
|
|
196
|
+
this.searchData.condition=args.condition //导出
|
|
197
|
+
this.model.search(args.condition, args.model)
|
|
198
|
+
},
|
|
199
|
+
initBookChecker(){
|
|
200
|
+
new HttpResetClass().load('POST', '/rs/search', {
|
|
201
|
+
data: {
|
|
202
|
+
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($网格员$) != -1)`,
|
|
203
|
+
userid: this.$login.f.id
|
|
204
|
+
}
|
|
205
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
206
|
+
let data = res.data
|
|
207
|
+
const addedNames = new Set()
|
|
208
|
+
this.users = []
|
|
209
|
+
data.forEach(user => {
|
|
210
|
+
if (user.state === '在职') {
|
|
211
|
+
if (!addedNames.has(user.name)) {
|
|
212
|
+
this.users.push({ label: user.name, value: user.name })
|
|
213
|
+
addedNames.add(user.name)
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
computed: {
|
|
221
|
+
excelTitle() {
|
|
222
|
+
return `${this.orgname }无计划安检汇总`
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
watch: {
|
|
226
|
+
},
|
|
227
|
+
ready () {
|
|
228
|
+
this.orgname = this.$login.f.orgs
|
|
229
|
+
//tag)
|
|
230
|
+
//tag
|
|
231
|
+
this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
|
|
232
|
+
this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
|
|
233
|
+
this.initBookChecker()
|
|
234
|
+
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
}
|
|
238
|
+
</script>
|
|
239
|
+
|
|
240
|
+
<style lang="less" >
|
|
241
|
+
.tableinfo {
|
|
242
|
+
text-align: center;
|
|
243
|
+
background-color: #00A3F0;
|
|
244
|
+
color: #0c2e4d;
|
|
245
|
+
font-size: 26px;
|
|
246
|
+
}
|
|
247
|
+
</style>
|