safecheck-client 3.0.30-7 → 3.0.30-8
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/components/android/AreaPlan.vue +571 -571
- package/src/components/android/CurrentCreate.vue +1049 -1049
- package/src/components/android/PhoneotherInfo.vue +132 -132
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +278 -278
- package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
- 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/hanzhong/android/PaperFeedback.vue +1477 -1477
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +967 -948
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
- package/src/filiale/hanzhong/android.js +16 -16
- package/src/filiale/jingyang/pc/PaperList.vue +793 -794
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1090 -1090
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1150 -1150
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1077 -1077
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +849 -849
- package/src/filiale/yangchunboneng/pc/PaperList.vue +727 -727
- package/src/main.js +33 -33
- package/src/safecheck-android.js +290 -290
@@ -1,278 +1,278 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' class="search_area" @condition-changed='$parent.search' v-ref:cri>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div :class="{'form-group col-sm-6':$parent.$parent.$parent.showItem,'form-group col-sm-4':!$parent.$parent.$parent.showItem}" style="margin: 0">
|
8
|
-
<role-selector-safe
|
9
|
-
role-name="安检员"
|
10
|
-
role-lable="安 检 员"
|
11
|
-
@re-res="$parent.$parent.getRes"
|
12
|
-
:value.sync="model.f_checker_id"
|
13
|
-
v-model="model.f_checker_id"
|
14
|
-
condition="tcp.f_checker = '{}'">
|
15
|
-
</role-selector-safe>
|
16
|
-
</div>
|
17
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
18
|
-
<label class="font_normal_body">计划起始</label>
|
19
|
-
<datepicker
|
20
|
-
:value.sync="$parent.$parent.f_check_start"
|
21
|
-
placeholder='起始月份' style="width:60%"
|
22
|
-
:disabled-days-of-week="[]"
|
23
|
-
:format="'yyyy-MM'"
|
24
|
-
:select-month="true"
|
25
|
-
:show-rest-button="reset">
|
26
|
-
</datepicker>
|
27
|
-
</div>
|
28
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
29
|
-
<label class="font_normal_body">计划截止</label>
|
30
|
-
<datepicker
|
31
|
-
:value.sync="$parent.$parent.f_check_end"
|
32
|
-
placeholder='结束月份' style="width:60%"
|
33
|
-
:disabled-days-of-week="[]"
|
34
|
-
:format="'yyyy-MM'"
|
35
|
-
:select-month="true"
|
36
|
-
:show-rest-button="reset">
|
37
|
-
</datepicker>
|
38
|
-
</div>
|
39
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
|
40
|
-
<label class="font_normal_body">安检状态</label>
|
41
|
-
<v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
|
42
|
-
style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
|
43
|
-
</v-select>
|
44
|
-
</div>-->
|
45
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
46
|
-
<label class="font_normal_body">安检起始</label>
|
47
|
-
<datepicker
|
48
|
-
:value.sync="$parent.$parent.f_start_time"
|
49
|
-
placeholder='安检起始' style="width:60%"
|
50
|
-
:show-rest-button="reset">
|
51
|
-
</datepicker>
|
52
|
-
</div>
|
53
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
54
|
-
<label class="font_normal_body">安检截止</label>
|
55
|
-
<datepicker
|
56
|
-
:value.sync="$parent.$parent.f_end_time"
|
57
|
-
placeholder='安检截止' style="width:60%"
|
58
|
-
:show-rest-button="reset">
|
59
|
-
</datepicker>
|
60
|
-
</div>
|
61
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
62
|
-
<!--<label class="font_normal_body">安检起始</label>-->
|
63
|
-
<!--<datepicker-->
|
64
|
-
<!--:value.sync="$parent.$parent.f_start_time"-->
|
65
|
-
<!--placeholder='起始时间' style="width:60%"-->
|
66
|
-
<!--:disabled-days-of-week="[]"-->
|
67
|
-
<!--:format="'yyyy-MM-dd'"-->
|
68
|
-
<!--:show-rest-button="reset">-->
|
69
|
-
<!--</datepicker>-->
|
70
|
-
<!--</div>-->
|
71
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
72
|
-
<!--<label class="font_normal_body">安检结束</label>-->
|
73
|
-
<!--<datepicker-->
|
74
|
-
<!--:value.sync="$parent.$parent.f_end_time"-->
|
75
|
-
<!--placeholder='结束时间' style="width:60%"-->
|
76
|
-
<!--:disabled-days-of-week="[]"-->
|
77
|
-
<!--:format="'yyyy-MM-dd'"-->
|
78
|
-
<!--:show-rest-button="reset">-->
|
79
|
-
<!--</datepicker>-->
|
80
|
-
<!--</div>-->
|
81
|
-
<div style="width: auto;margin-top:8px;float: right" :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
82
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
83
|
-
:field="$parent.$parent.excelHeaders"
|
84
|
-
progress="safeGetExportProgress"
|
85
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
|
86
|
-
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
87
|
-
<!--<div class="button_spacing"-->
|
88
|
-
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
89
|
-
<!--@click="$parent.$parent.hidden()">-->
|
90
|
-
<!--</div>-->
|
91
|
-
<div class="button_spacing"
|
92
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
93
|
-
@click="$parent.$parent.hiddenr()"></div>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
</criteria>
|
98
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
99
|
-
<template partial='head'>
|
100
|
-
<tr>
|
101
|
-
<th>安检员</th>
|
102
|
-
<th>计划总数</th>
|
103
|
-
<th>无计划总数</th>
|
104
|
-
<th>计划中未入户</th>
|
105
|
-
<th>计划中已入户</th>
|
106
|
-
<th>入户</th>
|
107
|
-
<th>到访不遇</th>
|
108
|
-
<th>拒检</th>
|
109
|
-
</tr>
|
110
|
-
</template>
|
111
|
-
<template partial='body'>
|
112
|
-
<td style="text-align: center">{{row.f_checker}}</td>
|
113
|
-
<td style="text-align: center">{{row.plannum}}</td>
|
114
|
-
<td style="text-align: center">{{row.no_plan_num}}</td>
|
115
|
-
<td style="text-align: center">{{row.wrj}}</td>
|
116
|
-
<td style="text-align: center">{{row.yrj}}</td>
|
117
|
-
<td style="text-align: center">{{row.ruhu}}</td>
|
118
|
-
<td style="text-align: center">{{row.daofang}}</td>
|
119
|
-
<td style="text-align: center">{{row.jujian}}</td>
|
120
|
-
|
121
|
-
</template>
|
122
|
-
<template partial="foot">
|
123
|
-
<td style="text-align: center"><span><b>合计:</b></span></td>
|
124
|
-
<td style="text-align: center">{{model.sums.plannum}}</td>
|
125
|
-
<td style="text-align: center">{{model.sums.no_plan_num}}</td>
|
126
|
-
<td style="text-align: center">{{model.sums.wrj}}</td>
|
127
|
-
<td style="text-align: center">{{model.sums.yrj}}</td>
|
128
|
-
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
129
|
-
<td style="text-align: center">{{model.sums.daofang}}</td>
|
130
|
-
<td style="text-align: center">{{model.sums.jujian}}</td>
|
131
|
-
</template>
|
132
|
-
</data-grid>
|
133
|
-
</criteria-paged>
|
134
|
-
</div>
|
135
|
-
</template>
|
136
|
-
<script>
|
137
|
-
import {PagedList} from 'vue-client'
|
138
|
-
|
139
|
-
|
140
|
-
export default {
|
141
|
-
title: '安检计划查询',
|
142
|
-
data() {
|
143
|
-
let options = []
|
144
|
-
let year = (new Date()).getFullYear()
|
145
|
-
for (let i = year - 8; i <= year + 1; i++)
|
146
|
-
options.push({label: i + '', value: i + ''})
|
147
|
-
let model = new PagedList('rs/sql/planCountAndNoPLan', 20, {
|
148
|
-
f_filialeids: 'this.f_filialeids',
|
149
|
-
f_start_time: 'this.f_start_time',
|
150
|
-
condition1:'this.condition1',
|
151
|
-
condition2:'this.condition2',
|
152
|
-
f_end_time: 'this.f_end_time'
|
153
|
-
}, {plannum: '', yrj: '', wrj: '',ruhu: '', jujian: '', daofang: '',no_plan_num:''})
|
154
|
-
model.f_filialeids = '('+this.$login.f.orgid+')'
|
155
|
-
return {
|
156
|
-
excelHeaders:{
|
157
|
-
'f_checker': '安检员',
|
158
|
-
'plannum': '计划总数',
|
159
|
-
'no_plan_num': '无计划总数',
|
160
|
-
'yrj': '计划中已入户',
|
161
|
-
'wrj': '计划中未入户',
|
162
|
-
'ruhu': '入户',
|
163
|
-
'jujian': '拒检',
|
164
|
-
'daofang': '到访不遇'
|
165
|
-
},
|
166
|
-
searchData:{
|
167
|
-
condition:"1=1",
|
168
|
-
f_plan_year:year[0],
|
169
|
-
f_checker:'',
|
170
|
-
f_filialeids:'('+this.$login.f.orgid+')',
|
171
|
-
f_start_time:'',
|
172
|
-
f_end_time:''
|
173
|
-
},
|
174
|
-
checker: this.$login.f,
|
175
|
-
checkers: [],
|
176
|
-
checkersname: [],
|
177
|
-
checkStates: this.$appdata.getParam('安检状态'),
|
178
|
-
f: this.$login.f,
|
179
|
-
criteriaShow: false,
|
180
|
-
model: model,
|
181
|
-
c_year_list: options,
|
182
|
-
f_check_start:'',
|
183
|
-
f_check_end: '',
|
184
|
-
f_start_time:'',
|
185
|
-
f_end_time:''
|
186
|
-
}
|
187
|
-
},
|
188
|
-
methods: {
|
189
|
-
hidden() {
|
190
|
-
this.criteriaShow = !this.criteriaShow
|
191
|
-
},
|
192
|
-
hiddenr() {
|
193
|
-
this.$parent.showItem = !this.$parent.showItem
|
194
|
-
},
|
195
|
-
search(args) {
|
196
|
-
let tempStr = args.condition
|
197
|
-
let condition1 =tempStr
|
198
|
-
let condition2 =tempStr
|
199
|
-
if (this.f_check_start) {
|
200
|
-
condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
|
201
|
-
condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
|
202
|
-
}
|
203
|
-
if (this.f_check_end) {
|
204
|
-
condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
|
205
|
-
condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
|
206
|
-
}
|
207
|
-
if(this.f_start_time){
|
208
|
-
condition2 += ` AND f_offsite_time >= ${this.f_start_time}`
|
209
|
-
}
|
210
|
-
if (this.f_end_time){
|
211
|
-
condition2 += ` AND f_offsite_time <= ${this.f_end_time}`
|
212
|
-
}
|
213
|
-
condition2 = condition2.replaceAll('tcp.f_checker','f_checker_name')
|
214
|
-
this.model.f_start_time=this.f_start_time
|
215
|
-
this.model.f_end_time=this.f_end_time
|
216
|
-
this.model.condition1=condition1
|
217
|
-
this.model.condition2=condition2
|
218
|
-
this.model.search(args.condition, args.model)
|
219
|
-
},
|
220
|
-
getRes(obj){
|
221
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
222
|
-
//tag
|
223
|
-
}
|
224
|
-
},
|
225
|
-
ready() {
|
226
|
-
this.model.id = this.$login.f.id
|
227
|
-
this.model.f_subcompany = this.$login.f.f_fengongsi
|
228
|
-
this.model.f_filialeid = this.$login.f.orgid
|
229
|
-
},
|
230
|
-
|
231
|
-
watch: {
|
232
|
-
'model.condition'(val) {
|
233
|
-
if(val){
|
234
|
-
this.searchData.condition = val
|
235
|
-
}
|
236
|
-
},
|
237
|
-
'model.f_checker'(val) {
|
238
|
-
if(val){
|
239
|
-
this.searchData.f_checker = val
|
240
|
-
}
|
241
|
-
},
|
242
|
-
'f_start_time'(val) {
|
243
|
-
if(val){
|
244
|
-
this.searchData.f_start_time = val
|
245
|
-
}
|
246
|
-
},
|
247
|
-
'f_end_time'(val) {
|
248
|
-
if(val){
|
249
|
-
this.searchData.f_end_time = val
|
250
|
-
}
|
251
|
-
},
|
252
|
-
'checker'() {
|
253
|
-
// //tag
|
254
|
-
//tag
|
255
|
-
this.model.chosenOrg = this.checker[0]
|
256
|
-
},
|
257
|
-
'model.rows.length'() {
|
258
|
-
// 如果查询无结果,将合计置为0
|
259
|
-
if(this.model.rows.length < 1 &&this. model.sums){
|
260
|
-
this.model.sums.yrj = 0
|
261
|
-
this.model.sums.no_plan_num = 0
|
262
|
-
this.model.sums.wrj = 0
|
263
|
-
this.model.sums.unchecked = 0
|
264
|
-
this.model.sums.ruhu = 0
|
265
|
-
this.model.sums.jujian = 0
|
266
|
-
this.model.sums.daofang = 0
|
267
|
-
}
|
268
|
-
}
|
269
|
-
},
|
270
|
-
computed: {
|
271
|
-
selected() {
|
272
|
-
// //tag
|
273
|
-
// this.$parent.showItem=!this.$parent.showItem
|
274
|
-
return this.$refs.paged.$refs.grid.selected
|
275
|
-
}
|
276
|
-
}
|
277
|
-
}
|
278
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' class="search_area" @condition-changed='$parent.search' v-ref:cri>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div :class="{'form-group col-sm-6':$parent.$parent.$parent.showItem,'form-group col-sm-4':!$parent.$parent.$parent.showItem}" style="margin: 0">
|
8
|
+
<role-selector-safe
|
9
|
+
role-name="安检员"
|
10
|
+
role-lable="安 检 员"
|
11
|
+
@re-res="$parent.$parent.getRes"
|
12
|
+
:value.sync="model.f_checker_id"
|
13
|
+
v-model="model.f_checker_id"
|
14
|
+
condition="tcp.f_checker = '{}'">
|
15
|
+
</role-selector-safe>
|
16
|
+
</div>
|
17
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
18
|
+
<label class="font_normal_body">计划起始</label>
|
19
|
+
<datepicker
|
20
|
+
:value.sync="$parent.$parent.f_check_start"
|
21
|
+
placeholder='起始月份' style="width:60%"
|
22
|
+
:disabled-days-of-week="[]"
|
23
|
+
:format="'yyyy-MM'"
|
24
|
+
:select-month="true"
|
25
|
+
:show-rest-button="reset">
|
26
|
+
</datepicker>
|
27
|
+
</div>
|
28
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
29
|
+
<label class="font_normal_body">计划截止</label>
|
30
|
+
<datepicker
|
31
|
+
:value.sync="$parent.$parent.f_check_end"
|
32
|
+
placeholder='结束月份' style="width:60%"
|
33
|
+
:disabled-days-of-week="[]"
|
34
|
+
:format="'yyyy-MM'"
|
35
|
+
:select-month="true"
|
36
|
+
:show-rest-button="reset">
|
37
|
+
</datepicker>
|
38
|
+
</div>
|
39
|
+
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
|
40
|
+
<label class="font_normal_body">安检状态</label>
|
41
|
+
<v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
|
42
|
+
style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
|
43
|
+
</v-select>
|
44
|
+
</div>-->
|
45
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
46
|
+
<label class="font_normal_body">安检起始</label>
|
47
|
+
<datepicker
|
48
|
+
:value.sync="$parent.$parent.f_start_time"
|
49
|
+
placeholder='安检起始' style="width:60%"
|
50
|
+
:show-rest-button="reset">
|
51
|
+
</datepicker>
|
52
|
+
</div>
|
53
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
54
|
+
<label class="font_normal_body">安检截止</label>
|
55
|
+
<datepicker
|
56
|
+
:value.sync="$parent.$parent.f_end_time"
|
57
|
+
placeholder='安检截止' style="width:60%"
|
58
|
+
:show-rest-button="reset">
|
59
|
+
</datepicker>
|
60
|
+
</div>
|
61
|
+
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
62
|
+
<!--<label class="font_normal_body">安检起始</label>-->
|
63
|
+
<!--<datepicker-->
|
64
|
+
<!--:value.sync="$parent.$parent.f_start_time"-->
|
65
|
+
<!--placeholder='起始时间' style="width:60%"-->
|
66
|
+
<!--:disabled-days-of-week="[]"-->
|
67
|
+
<!--:format="'yyyy-MM-dd'"-->
|
68
|
+
<!--:show-rest-button="reset">-->
|
69
|
+
<!--</datepicker>-->
|
70
|
+
<!--</div>-->
|
71
|
+
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
|
72
|
+
<!--<label class="font_normal_body">安检结束</label>-->
|
73
|
+
<!--<datepicker-->
|
74
|
+
<!--:value.sync="$parent.$parent.f_end_time"-->
|
75
|
+
<!--placeholder='结束时间' style="width:60%"-->
|
76
|
+
<!--:disabled-days-of-week="[]"-->
|
77
|
+
<!--:format="'yyyy-MM-dd'"-->
|
78
|
+
<!--:show-rest-button="reset">-->
|
79
|
+
<!--</datepicker>-->
|
80
|
+
<!--</div>-->
|
81
|
+
<div style="width: auto;margin-top:8px;float: right" :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
82
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
83
|
+
:field="$parent.$parent.excelHeaders"
|
84
|
+
progress="safeGetExportProgress"
|
85
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
|
86
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
87
|
+
<!--<div class="button_spacing"-->
|
88
|
+
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
89
|
+
<!--@click="$parent.$parent.hidden()">-->
|
90
|
+
<!--</div>-->
|
91
|
+
<div class="button_spacing"
|
92
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
93
|
+
@click="$parent.$parent.hiddenr()"></div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
</criteria>
|
98
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
99
|
+
<template partial='head'>
|
100
|
+
<tr>
|
101
|
+
<th>安检员</th>
|
102
|
+
<th>计划总数</th>
|
103
|
+
<th>无计划总数</th>
|
104
|
+
<th>计划中未入户</th>
|
105
|
+
<th>计划中已入户</th>
|
106
|
+
<th>入户</th>
|
107
|
+
<th>到访不遇</th>
|
108
|
+
<th>拒检</th>
|
109
|
+
</tr>
|
110
|
+
</template>
|
111
|
+
<template partial='body'>
|
112
|
+
<td style="text-align: center">{{row.f_checker}}</td>
|
113
|
+
<td style="text-align: center">{{row.plannum}}</td>
|
114
|
+
<td style="text-align: center">{{row.no_plan_num}}</td>
|
115
|
+
<td style="text-align: center">{{row.wrj}}</td>
|
116
|
+
<td style="text-align: center">{{row.yrj}}</td>
|
117
|
+
<td style="text-align: center">{{row.ruhu}}</td>
|
118
|
+
<td style="text-align: center">{{row.daofang}}</td>
|
119
|
+
<td style="text-align: center">{{row.jujian}}</td>
|
120
|
+
|
121
|
+
</template>
|
122
|
+
<template partial="foot">
|
123
|
+
<td style="text-align: center"><span><b>合计:</b></span></td>
|
124
|
+
<td style="text-align: center">{{model.sums.plannum}}</td>
|
125
|
+
<td style="text-align: center">{{model.sums.no_plan_num}}</td>
|
126
|
+
<td style="text-align: center">{{model.sums.wrj}}</td>
|
127
|
+
<td style="text-align: center">{{model.sums.yrj}}</td>
|
128
|
+
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
129
|
+
<td style="text-align: center">{{model.sums.daofang}}</td>
|
130
|
+
<td style="text-align: center">{{model.sums.jujian}}</td>
|
131
|
+
</template>
|
132
|
+
</data-grid>
|
133
|
+
</criteria-paged>
|
134
|
+
</div>
|
135
|
+
</template>
|
136
|
+
<script>
|
137
|
+
import {PagedList} from 'vue-client'
|
138
|
+
|
139
|
+
|
140
|
+
export default {
|
141
|
+
title: '安检计划查询',
|
142
|
+
data() {
|
143
|
+
let options = []
|
144
|
+
let year = (new Date()).getFullYear()
|
145
|
+
for (let i = year - 8; i <= year + 1; i++)
|
146
|
+
options.push({label: i + '', value: i + ''})
|
147
|
+
let model = new PagedList('rs/sql/planCountAndNoPLan', 20, {
|
148
|
+
f_filialeids: 'this.f_filialeids',
|
149
|
+
f_start_time: 'this.f_start_time',
|
150
|
+
condition1:'this.condition1',
|
151
|
+
condition2:'this.condition2',
|
152
|
+
f_end_time: 'this.f_end_time'
|
153
|
+
}, {plannum: '', yrj: '', wrj: '',ruhu: '', jujian: '', daofang: '',no_plan_num:''})
|
154
|
+
model.f_filialeids = '('+this.$login.f.orgid+')'
|
155
|
+
return {
|
156
|
+
excelHeaders:{
|
157
|
+
'f_checker': '安检员',
|
158
|
+
'plannum': '计划总数',
|
159
|
+
'no_plan_num': '无计划总数',
|
160
|
+
'yrj': '计划中已入户',
|
161
|
+
'wrj': '计划中未入户',
|
162
|
+
'ruhu': '入户',
|
163
|
+
'jujian': '拒检',
|
164
|
+
'daofang': '到访不遇'
|
165
|
+
},
|
166
|
+
searchData:{
|
167
|
+
condition:"1=1",
|
168
|
+
f_plan_year:year[0],
|
169
|
+
f_checker:'',
|
170
|
+
f_filialeids:'('+this.$login.f.orgid+')',
|
171
|
+
f_start_time:'',
|
172
|
+
f_end_time:''
|
173
|
+
},
|
174
|
+
checker: this.$login.f,
|
175
|
+
checkers: [],
|
176
|
+
checkersname: [],
|
177
|
+
checkStates: this.$appdata.getParam('安检状态'),
|
178
|
+
f: this.$login.f,
|
179
|
+
criteriaShow: false,
|
180
|
+
model: model,
|
181
|
+
c_year_list: options,
|
182
|
+
f_check_start:'',
|
183
|
+
f_check_end: '',
|
184
|
+
f_start_time:'',
|
185
|
+
f_end_time:''
|
186
|
+
}
|
187
|
+
},
|
188
|
+
methods: {
|
189
|
+
hidden() {
|
190
|
+
this.criteriaShow = !this.criteriaShow
|
191
|
+
},
|
192
|
+
hiddenr() {
|
193
|
+
this.$parent.showItem = !this.$parent.showItem
|
194
|
+
},
|
195
|
+
search(args) {
|
196
|
+
let tempStr = args.condition
|
197
|
+
let condition1 =tempStr
|
198
|
+
let condition2 =tempStr
|
199
|
+
if (this.f_check_start) {
|
200
|
+
condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
|
201
|
+
condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
|
202
|
+
}
|
203
|
+
if (this.f_check_end) {
|
204
|
+
condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
|
205
|
+
condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
|
206
|
+
}
|
207
|
+
if(this.f_start_time){
|
208
|
+
condition2 += ` AND f_offsite_time >= ${this.f_start_time}`
|
209
|
+
}
|
210
|
+
if (this.f_end_time){
|
211
|
+
condition2 += ` AND f_offsite_time <= ${this.f_end_time}`
|
212
|
+
}
|
213
|
+
condition2 = condition2.replaceAll('tcp.f_checker','f_checker_name')
|
214
|
+
this.model.f_start_time=this.f_start_time
|
215
|
+
this.model.f_end_time=this.f_end_time
|
216
|
+
this.model.condition1=condition1
|
217
|
+
this.model.condition2=condition2
|
218
|
+
this.model.search(args.condition, args.model)
|
219
|
+
},
|
220
|
+
getRes(obj){
|
221
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
222
|
+
//tag
|
223
|
+
}
|
224
|
+
},
|
225
|
+
ready() {
|
226
|
+
this.model.id = this.$login.f.id
|
227
|
+
this.model.f_subcompany = this.$login.f.f_fengongsi
|
228
|
+
this.model.f_filialeid = this.$login.f.orgid
|
229
|
+
},
|
230
|
+
|
231
|
+
watch: {
|
232
|
+
'model.condition'(val) {
|
233
|
+
if(val){
|
234
|
+
this.searchData.condition = val
|
235
|
+
}
|
236
|
+
},
|
237
|
+
'model.f_checker'(val) {
|
238
|
+
if(val){
|
239
|
+
this.searchData.f_checker = val
|
240
|
+
}
|
241
|
+
},
|
242
|
+
'f_start_time'(val) {
|
243
|
+
if(val){
|
244
|
+
this.searchData.f_start_time = val
|
245
|
+
}
|
246
|
+
},
|
247
|
+
'f_end_time'(val) {
|
248
|
+
if(val){
|
249
|
+
this.searchData.f_end_time = val
|
250
|
+
}
|
251
|
+
},
|
252
|
+
'checker'() {
|
253
|
+
// //tag
|
254
|
+
//tag
|
255
|
+
this.model.chosenOrg = this.checker[0]
|
256
|
+
},
|
257
|
+
'model.rows.length'() {
|
258
|
+
// 如果查询无结果,将合计置为0
|
259
|
+
if(this.model.rows.length < 1 &&this. model.sums){
|
260
|
+
this.model.sums.yrj = 0
|
261
|
+
this.model.sums.no_plan_num = 0
|
262
|
+
this.model.sums.wrj = 0
|
263
|
+
this.model.sums.unchecked = 0
|
264
|
+
this.model.sums.ruhu = 0
|
265
|
+
this.model.sums.jujian = 0
|
266
|
+
this.model.sums.daofang = 0
|
267
|
+
}
|
268
|
+
}
|
269
|
+
},
|
270
|
+
computed: {
|
271
|
+
selected() {
|
272
|
+
// //tag
|
273
|
+
// this.$parent.showItem=!this.$parent.showItem
|
274
|
+
return this.$refs.paged.$refs.grid.selected
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
</script>
|