safecheck-client 3.0.33-8 → 3.0.33-80
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/index.html +6 -2
- package/package.json +3 -3
- package/src/App.vue +31 -31
- package/src/components/Util/ImgSelfSafePlus.vue +12 -10
- package/src/components/android/CurrentCreate.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +3 -3
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/PlanManage.vue +3 -2
- package/src/components/planmanage/checkPlanList.vue +2 -1
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/components/report/HiddenSituation.vue +3 -3
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
- package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
- package/src/components/rongcheng/DefectPaper.vue +1 -1
- package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
- package/src/components/rongcheng/PaperListSQ.vue +32 -11
- package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
- package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
- package/src/filiale/Util.js +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
- package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -5
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
- package/src/filiale/fugou/android.js +2 -1
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +2 -0
- package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
- package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
- package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
- package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
- package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
- package/src/filiale/fugou/pc/PaperList.vue +14 -6
- package/src/filiale/fugou/pc/PlanManage.vue +62 -8
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
- package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
- package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
- package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
- package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
- package/src/filiale/jingyang/pc.js +1 -0
- package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
- package/src/filiale/rongchuang/android.js +1 -0
- package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
- package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
- package/src/filiale/rongchuang/pc.js +1 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +75 -26
- package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
- package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
- package/src/filiale/weinan/pc.js +1 -0
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
- package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1 -1
- package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -2832
- package/src/filiale/yangchunboneng/android.js +1 -0
- package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +28 -1
- package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1168 -1018
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
- package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
- package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
- package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
- package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
- package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
- package/src/filiale/yongzhou/pc.js +4 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
- package/src/main.js +2 -2
- package/src/rongcheng.js +3 -1
@@ -1,342 +1,342 @@
|
|
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
|
-
</role-selector-safe>
|
15
|
-
</div>
|
16
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
17
|
-
<label class="font_normal_body">计划起始</label>
|
18
|
-
<datepicker
|
19
|
-
:value.sync="$parent.$parent.f_check_start"
|
20
|
-
placeholder='起始月份' style="width:60%"
|
21
|
-
:disabled-days-of-week="[]"
|
22
|
-
:format="'yyyy-MM'"
|
23
|
-
:select-month="true"
|
24
|
-
:show-rest-button="reset">
|
25
|
-
</datepicker>
|
26
|
-
</div>
|
27
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
28
|
-
<label class="font_normal_body">计划截止</label>
|
29
|
-
<datepicker
|
30
|
-
:value.sync="$parent.$parent.f_check_end"
|
31
|
-
placeholder='结束月份' style="width:60%"
|
32
|
-
:disabled-days-of-week="[]"
|
33
|
-
:format="'yyyy-MM'"
|
34
|
-
:select-month="true"
|
35
|
-
:show-rest-button="reset">
|
36
|
-
</datepicker>
|
37
|
-
</div>
|
38
|
-
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
|
39
|
-
<label class="font_normal_body">安检状态</label>
|
40
|
-
<v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
|
41
|
-
style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
|
42
|
-
</v-select>
|
43
|
-
</div>-->
|
44
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
45
|
-
<label class="font_normal_body">安检起始</label>
|
46
|
-
<datepicker
|
47
|
-
:value.sync="$parent.$parent.f_start_time"
|
48
|
-
placeholder='安检起始' style="width:60%"
|
49
|
-
:show-rest-button="reset">
|
50
|
-
</datepicker>
|
51
|
-
</div>
|
52
|
-
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
53
|
-
<label class="font_normal_body">安检截止</label>
|
54
|
-
<datepicker
|
55
|
-
:value.sync="$parent.$parent.f_end_time"
|
56
|
-
placeholder='安检截止' style="width:60%"
|
57
|
-
:show-rest-button="reset">
|
58
|
-
</datepicker>
|
59
|
-
</div>
|
60
|
-
<!--<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">-->
|
61
|
-
<!--<label class="font_normal_body">安检起始</label>-->
|
62
|
-
<!--<datepicker-->
|
63
|
-
<!--:value.sync="$parent.$parent.f_start_time"-->
|
64
|
-
<!--placeholder='起始时间' style="width:60%"-->
|
65
|
-
<!--:disabled-days-of-week="[]"-->
|
66
|
-
<!--:format="'yyyy-MM-dd'"-->
|
67
|
-
<!--:show-rest-button="reset">-->
|
68
|
-
<!--</datepicker>-->
|
69
|
-
<!--</div>-->
|
70
|
-
<!--<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">-->
|
71
|
-
<!--<label class="font_normal_body">安检结束</label>-->
|
72
|
-
<!--<datepicker-->
|
73
|
-
<!--:value.sync="$parent.$parent.f_end_time"-->
|
74
|
-
<!--placeholder='结束时间' style="width:60%"-->
|
75
|
-
<!--:disabled-days-of-week="[]"-->
|
76
|
-
<!--:format="'yyyy-MM-dd'"-->
|
77
|
-
<!--:show-rest-button="reset">-->
|
78
|
-
<!--</datepicker>-->
|
79
|
-
<!--</div>-->
|
80
|
-
<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}">
|
81
|
-
<export-excel-safe :data="$parent.$parent.searchData"
|
82
|
-
:field="$parent.$parent.excelHeaders"
|
83
|
-
progress="safeGetExportProgress"
|
84
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
|
85
|
-
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
86
|
-
<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
|
87
|
-
@click="$parent.$parent.print($parent.model.rows)">
|
88
|
-
打印
|
89
|
-
</button>
|
90
|
-
<!--<div class="button_spacing"-->
|
91
|
-
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
92
|
-
<!--@click="$parent.$parent.hidden()">-->
|
93
|
-
<!--</div>-->
|
94
|
-
<div class="button_spacing"
|
95
|
-
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
96
|
-
@click="$parent.$parent.hiddenr()"></div>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
</criteria>
|
101
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
102
|
-
<template partial='head'>
|
103
|
-
<tr>
|
104
|
-
<th>安检员</th>
|
105
|
-
<th>总入户量</th>
|
106
|
-
<th>总到访不遇量</th>
|
107
|
-
<th>总拒检量</th>
|
108
|
-
<th>安检总量</th>
|
109
|
-
<th>计划总数</th>
|
110
|
-
<th>入户</th>
|
111
|
-
<th>到访不遇</th>
|
112
|
-
<th>拒检</th>
|
113
|
-
<th>无计划总数</th>
|
114
|
-
<th>无计划入户</th>
|
115
|
-
<th>无计划到访不遇</th>
|
116
|
-
<th>无计划拒检</th>
|
117
|
-
</tr>
|
118
|
-
</template>
|
119
|
-
<template partial='body'>
|
120
|
-
<td style="text-align: center">{{row.f_checker}}</td>
|
121
|
-
<td style="text-align: center">{{row.ruhu_total}}</td>
|
122
|
-
<td style="text-align: center">{{row.daofang_total}}</td>
|
123
|
-
<td style="text-align: center">{{row.jujian_total}}</td>
|
124
|
-
<td style="text-align: center">{{row.total_sum}}</td>
|
125
|
-
<td style="text-align: center">{{row.plannum}}</td>
|
126
|
-
<td style="text-align: center">{{row.ruhu}}</td>
|
127
|
-
<td style="text-align: center">{{row.daofang}}</td>
|
128
|
-
<td style="text-align: center">{{row.jujian}}</td>
|
129
|
-
<td style="text-align: center">{{row.no_plan_num}}</td>
|
130
|
-
<td style="text-align: center">{{row.noruhu}}</td>
|
131
|
-
<td style="text-align: center">{{row.nodaofang}}</td>
|
132
|
-
<td style="text-align: center">{{row.nojujian}}</td>
|
133
|
-
</template>
|
134
|
-
<template partial="foot">
|
135
|
-
<td style="text-align: center"><span><b>合计:</b></span></td>
|
136
|
-
<td style="text-align: center">{{model.sums.ruhu_total}}</td>
|
137
|
-
<td style="text-align: center">{{model.sums.daofang_total}}</td>
|
138
|
-
<td style="text-align: center">{{model.sums.jujian_total}}</td>
|
139
|
-
<td style="text-align: center">{{model.sums.total_sum}}</td>
|
140
|
-
<td style="text-align: center">{{model.sums.plannum}}</td>
|
141
|
-
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
142
|
-
<td style="text-align: center">{{model.sums.daofang}}</td>
|
143
|
-
<td style="text-align: center">{{model.sums.jujian}}</td>
|
144
|
-
<td style="text-align: center">{{model.sums.no_plan_num}}</td>
|
145
|
-
<td style="text-align: center">{{model.sums.noruhu}}</td>
|
146
|
-
<td style="text-align: center">{{model.sums.nodaofang}}</td>
|
147
|
-
<td style="text-align: center">{{model.sums.nojujian}}</td>
|
148
|
-
</template>
|
149
|
-
</data-grid>
|
150
|
-
</criteria-paged>
|
151
|
-
<modal :show.sync="showcheckmsg">
|
152
|
-
<div slot="modal-header" class="modal-header">
|
153
|
-
<span class="modal-title font">
|
154
|
-
安检员考核单打印
|
155
|
-
</span>
|
156
|
-
</div>
|
157
|
-
<div slot="modal-body" class="modal-body">
|
158
|
-
<div>
|
159
|
-
<print-material-bill v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></print-material-bill>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
<div slot="modal-footer" class="modal-footer">
|
163
|
-
<button type="button" class="btn btn-cancel" @click="cancel()">取消</button>
|
164
|
-
<print-element class="btn btn-primary" id="print1" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
|
165
|
-
|
166
|
-
</div>
|
167
|
-
</modal>
|
168
|
-
</div>
|
169
|
-
</template>
|
170
|
-
<script>
|
171
|
-
import {PagedList} from 'vue-client'
|
172
|
-
|
173
|
-
|
174
|
-
export default {
|
175
|
-
title: '安检计划查询',
|
176
|
-
data() {
|
177
|
-
let options = []
|
178
|
-
let year = (new Date()).getFullYear()
|
179
|
-
for (let i = year - 8; i <= year + 1; i++)
|
180
|
-
options.push({label: i + '', value: i + ''})
|
181
|
-
let model = new PagedList('rs/sql/planCount', 20, {
|
182
|
-
f_filialeids: 'this.f_filialeids',
|
183
|
-
f_start_time: 'this.f_start_time',
|
184
|
-
condition1:'this.condition1',
|
185
|
-
condition2:'this.condition2',
|
186
|
-
condition3:'this.condition3',
|
187
|
-
f_end_time: 'this.f_end_time'
|
188
|
-
}, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
|
189
|
-
model.f_filialeids = '('+this.$login.f.orgid+')'
|
190
|
-
return {
|
191
|
-
excelHeaders:{
|
192
|
-
'f_checker': '安检员',
|
193
|
-
'plannum': '计划总数',
|
194
|
-
// 'yrj': '计划中已入户',
|
195
|
-
// 'wrj': '计划中未入户',
|
196
|
-
'ruhu': '入户',
|
197
|
-
'jujian': '拒检',
|
198
|
-
'daofang': '到访不遇',
|
199
|
-
'no_plan_num': '无计划总数',
|
200
|
-
'noruhu': '无计划入户',
|
201
|
-
'nojujian': '无计划拒检',
|
202
|
-
'nodaofang': '无计划到访不遇'
|
203
|
-
},
|
204
|
-
searchData:{
|
205
|
-
condition:"1=1",
|
206
|
-
condition1:"1=1",
|
207
|
-
condition2:"1=1",
|
208
|
-
condition3:"and 1=1",
|
209
|
-
f_plan_year:year[0],
|
210
|
-
f_checker:'',
|
211
|
-
f_filialeids:'('+this.$login.f.orgid+')',
|
212
|
-
f_start_time:'',
|
213
|
-
f_end_time:''
|
214
|
-
},
|
215
|
-
checker: this.$login.f,
|
216
|
-
checkers: [],
|
217
|
-
checkersname: [],
|
218
|
-
checkStates: this.$appdata.getParam('安检状态'),
|
219
|
-
f: this.$login.f,
|
220
|
-
criteriaShow: false,
|
221
|
-
model: model,
|
222
|
-
c_year_list: options,
|
223
|
-
f_check_start:'',
|
224
|
-
f_check_end: '',
|
225
|
-
f_start_time:'',
|
226
|
-
f_end_time:'',
|
227
|
-
checkInfo: {},
|
228
|
-
showcheckmsg:false
|
229
|
-
}
|
230
|
-
},
|
231
|
-
methods: {
|
232
|
-
cancel(){
|
233
|
-
this.showcheckmsg = false
|
234
|
-
},
|
235
|
-
print(model) {
|
236
|
-
console.log("传给打印的数据" + JSON.stringify(model))
|
237
|
-
this.showcheckmsg = true
|
238
|
-
this.checkInfo = model
|
239
|
-
},
|
240
|
-
hidden() {
|
241
|
-
this.criteriaShow = !this.criteriaShow
|
242
|
-
},
|
243
|
-
hiddenr() {
|
244
|
-
this.$parent.showItem = !this.$parent.showItem
|
245
|
-
},
|
246
|
-
search(args) {
|
247
|
-
let tempStr = args.condition
|
248
|
-
let condition1 =tempStr
|
249
|
-
let condition2 =tempStr
|
250
|
-
let condition3 = ' and 1=1 '
|
251
|
-
if (this.f_check_start) {
|
252
|
-
condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
|
253
|
-
condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
|
254
|
-
}
|
255
|
-
if (this.f_check_end) {
|
256
|
-
condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
|
257
|
-
condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
|
258
|
-
}
|
259
|
-
if(this.f_start_time){
|
260
|
-
condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
|
261
|
-
}
|
262
|
-
if (this.f_end_time){
|
263
|
-
condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
|
264
|
-
}
|
265
|
-
if (this.$refs.paged.$refs.cri.model.f_checker_id){
|
266
|
-
condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
267
|
-
condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
268
|
-
}
|
269
|
-
this.model.f_start_time=this.f_start_time
|
270
|
-
this.model.f_end_time=this.f_end_time
|
271
|
-
this.model.condition1=condition1
|
272
|
-
this.model.condition2=condition2
|
273
|
-
this.model.condition3=condition3
|
274
|
-
|
275
|
-
this.searchData.condition1=condition1
|
276
|
-
this.searchData.condition2=condition2
|
277
|
-
this.searchData.condition3=condition3
|
278
|
-
|
279
|
-
this.model.search(args.condition, args.model)
|
280
|
-
},
|
281
|
-
getRes(obj){
|
282
|
-
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
283
|
-
//tag
|
284
|
-
}
|
285
|
-
},
|
286
|
-
ready() {
|
287
|
-
this.model.id = this.$login.f.id
|
288
|
-
this.model.f_subcompany = this.$login.f.f_fengongsi
|
289
|
-
this.model.f_filialeid = this.$login.f.orgid
|
290
|
-
},
|
291
|
-
|
292
|
-
watch: {
|
293
|
-
'model.condition'(val) {
|
294
|
-
if(val){
|
295
|
-
this.searchData.condition = val
|
296
|
-
}
|
297
|
-
},
|
298
|
-
'model.f_checker'(val) {
|
299
|
-
if(val){
|
300
|
-
this.searchData.f_checker = val
|
301
|
-
}
|
302
|
-
},
|
303
|
-
'f_start_time'(val) {
|
304
|
-
if(val){
|
305
|
-
this.searchData.f_start_time = val
|
306
|
-
}
|
307
|
-
},
|
308
|
-
'f_end_time'(val) {
|
309
|
-
if(val){
|
310
|
-
this.searchData.f_end_time = val
|
311
|
-
}
|
312
|
-
},
|
313
|
-
'checker'() {
|
314
|
-
// //tag
|
315
|
-
//tag
|
316
|
-
this.model.chosenOrg = this.checker[0]
|
317
|
-
},
|
318
|
-
'model.rows.length'() {
|
319
|
-
// 如果查询无结果,将合计置为0
|
320
|
-
if(this.model.rows.length < 1 &&this. model.sums){
|
321
|
-
this.model.sums.yrj = 0
|
322
|
-
this.model.sums.no_plan_num = 0
|
323
|
-
this.model.sums.wrj = 0
|
324
|
-
this.model.sums.ruhu = 0
|
325
|
-
this.model.sums.jujian = 0
|
326
|
-
this.model.sums.daofang = 0
|
327
|
-
this.model.sums.ruhu_total=0
|
328
|
-
this.model.sums.daofang_total=0
|
329
|
-
this.model.sums.jujian_total=0
|
330
|
-
this.model.sums.total_sum=0
|
331
|
-
}
|
332
|
-
}
|
333
|
-
},
|
334
|
-
computed: {
|
335
|
-
selected() {
|
336
|
-
// //tag
|
337
|
-
// this.$parent.showItem=!this.$parent.showItem
|
338
|
-
return this.$refs.paged.$refs.grid.selected
|
339
|
-
}
|
340
|
-
}
|
341
|
-
}
|
342
|
-
</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
|
+
</role-selector-safe>
|
15
|
+
</div>
|
16
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
17
|
+
<label class="font_normal_body">计划起始</label>
|
18
|
+
<datepicker
|
19
|
+
:value.sync="$parent.$parent.f_check_start"
|
20
|
+
placeholder='起始月份' style="width:60%"
|
21
|
+
:disabled-days-of-week="[]"
|
22
|
+
:format="'yyyy-MM'"
|
23
|
+
:select-month="true"
|
24
|
+
:show-rest-button="reset">
|
25
|
+
</datepicker>
|
26
|
+
</div>
|
27
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
28
|
+
<label class="font_normal_body">计划截止</label>
|
29
|
+
<datepicker
|
30
|
+
:value.sync="$parent.$parent.f_check_end"
|
31
|
+
placeholder='结束月份' style="width:60%"
|
32
|
+
:disabled-days-of-week="[]"
|
33
|
+
:format="'yyyy-MM'"
|
34
|
+
:select-month="true"
|
35
|
+
:show-rest-button="reset">
|
36
|
+
</datepicker>
|
37
|
+
</div>
|
38
|
+
<!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
|
39
|
+
<label class="font_normal_body">安检状态</label>
|
40
|
+
<v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
|
41
|
+
style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
|
42
|
+
</v-select>
|
43
|
+
</div>-->
|
44
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
45
|
+
<label class="font_normal_body">安检起始</label>
|
46
|
+
<datepicker
|
47
|
+
:value.sync="$parent.$parent.f_start_time"
|
48
|
+
placeholder='安检起始' style="width:60%"
|
49
|
+
:show-rest-button="reset">
|
50
|
+
</datepicker>
|
51
|
+
</div>
|
52
|
+
<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
|
53
|
+
<label class="font_normal_body">安检截止</label>
|
54
|
+
<datepicker
|
55
|
+
:value.sync="$parent.$parent.f_end_time"
|
56
|
+
placeholder='安检截止' style="width:60%"
|
57
|
+
:show-rest-button="reset">
|
58
|
+
</datepicker>
|
59
|
+
</div>
|
60
|
+
<!--<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">-->
|
61
|
+
<!--<label class="font_normal_body">安检起始</label>-->
|
62
|
+
<!--<datepicker-->
|
63
|
+
<!--:value.sync="$parent.$parent.f_start_time"-->
|
64
|
+
<!--placeholder='起始时间' style="width:60%"-->
|
65
|
+
<!--:disabled-days-of-week="[]"-->
|
66
|
+
<!--:format="'yyyy-MM-dd'"-->
|
67
|
+
<!--:show-rest-button="reset">-->
|
68
|
+
<!--</datepicker>-->
|
69
|
+
<!--</div>-->
|
70
|
+
<!--<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">-->
|
71
|
+
<!--<label class="font_normal_body">安检结束</label>-->
|
72
|
+
<!--<datepicker-->
|
73
|
+
<!--:value.sync="$parent.$parent.f_end_time"-->
|
74
|
+
<!--placeholder='结束时间' style="width:60%"-->
|
75
|
+
<!--:disabled-days-of-week="[]"-->
|
76
|
+
<!--:format="'yyyy-MM-dd'"-->
|
77
|
+
<!--:show-rest-button="reset">-->
|
78
|
+
<!--</datepicker>-->
|
79
|
+
<!--</div>-->
|
80
|
+
<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}">
|
81
|
+
<export-excel-safe :data="$parent.$parent.searchData"
|
82
|
+
:field="$parent.$parent.excelHeaders"
|
83
|
+
progress="safeGetExportProgress"
|
84
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
|
85
|
+
<button type="button" class="button_search button_spacing" @click="search()">查询</button>
|
86
|
+
<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
|
87
|
+
@click="$parent.$parent.print($parent.model.rows)">
|
88
|
+
打印
|
89
|
+
</button>
|
90
|
+
<!--<div class="button_spacing"-->
|
91
|
+
<!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
|
92
|
+
<!--@click="$parent.$parent.hidden()">-->
|
93
|
+
<!--</div>-->
|
94
|
+
<div class="button_spacing"
|
95
|
+
:class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
|
96
|
+
@click="$parent.$parent.hiddenr()"></div>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
</criteria>
|
101
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
102
|
+
<template partial='head'>
|
103
|
+
<tr>
|
104
|
+
<th>安检员</th>
|
105
|
+
<th>总入户量</th>
|
106
|
+
<th>总到访不遇量</th>
|
107
|
+
<th>总拒检量</th>
|
108
|
+
<th>安检总量</th>
|
109
|
+
<th>计划总数</th>
|
110
|
+
<th>入户</th>
|
111
|
+
<th>到访不遇</th>
|
112
|
+
<th>拒检</th>
|
113
|
+
<th>无计划总数</th>
|
114
|
+
<th>无计划入户</th>
|
115
|
+
<th>无计划到访不遇</th>
|
116
|
+
<th>无计划拒检</th>
|
117
|
+
</tr>
|
118
|
+
</template>
|
119
|
+
<template partial='body'>
|
120
|
+
<td style="text-align: center">{{row.f_checker}}</td>
|
121
|
+
<td style="text-align: center">{{row.ruhu_total}}</td>
|
122
|
+
<td style="text-align: center">{{row.daofang_total}}</td>
|
123
|
+
<td style="text-align: center">{{row.jujian_total}}</td>
|
124
|
+
<td style="text-align: center">{{row.total_sum}}</td>
|
125
|
+
<td style="text-align: center">{{row.plannum}}</td>
|
126
|
+
<td style="text-align: center">{{row.ruhu}}</td>
|
127
|
+
<td style="text-align: center">{{row.daofang}}</td>
|
128
|
+
<td style="text-align: center">{{row.jujian}}</td>
|
129
|
+
<td style="text-align: center">{{row.no_plan_num}}</td>
|
130
|
+
<td style="text-align: center">{{row.noruhu}}</td>
|
131
|
+
<td style="text-align: center">{{row.nodaofang}}</td>
|
132
|
+
<td style="text-align: center">{{row.nojujian}}</td>
|
133
|
+
</template>
|
134
|
+
<template partial="foot">
|
135
|
+
<td style="text-align: center"><span><b>合计:</b></span></td>
|
136
|
+
<td style="text-align: center">{{model.sums.ruhu_total}}</td>
|
137
|
+
<td style="text-align: center">{{model.sums.daofang_total}}</td>
|
138
|
+
<td style="text-align: center">{{model.sums.jujian_total}}</td>
|
139
|
+
<td style="text-align: center">{{model.sums.total_sum}}</td>
|
140
|
+
<td style="text-align: center">{{model.sums.plannum}}</td>
|
141
|
+
<td style="text-align: center">{{model.sums.ruhu}}</td>
|
142
|
+
<td style="text-align: center">{{model.sums.daofang}}</td>
|
143
|
+
<td style="text-align: center">{{model.sums.jujian}}</td>
|
144
|
+
<td style="text-align: center">{{model.sums.no_plan_num}}</td>
|
145
|
+
<td style="text-align: center">{{model.sums.noruhu}}</td>
|
146
|
+
<td style="text-align: center">{{model.sums.nodaofang}}</td>
|
147
|
+
<td style="text-align: center">{{model.sums.nojujian}}</td>
|
148
|
+
</template>
|
149
|
+
</data-grid>
|
150
|
+
</criteria-paged>
|
151
|
+
<modal :show.sync="showcheckmsg">
|
152
|
+
<div slot="modal-header" class="modal-header">
|
153
|
+
<span class="modal-title font">
|
154
|
+
安检员考核单打印
|
155
|
+
</span>
|
156
|
+
</div>
|
157
|
+
<div slot="modal-body" class="modal-body">
|
158
|
+
<div>
|
159
|
+
<print-material-bill v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></print-material-bill>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
<div slot="modal-footer" class="modal-footer">
|
163
|
+
<button type="button" class="btn btn-cancel" @click="cancel()">取消</button>
|
164
|
+
<print-element class="btn btn-primary" id="print1" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
|
165
|
+
|
166
|
+
</div>
|
167
|
+
</modal>
|
168
|
+
</div>
|
169
|
+
</template>
|
170
|
+
<script>
|
171
|
+
import {PagedList} from 'vue-client'
|
172
|
+
|
173
|
+
|
174
|
+
export default {
|
175
|
+
title: '安检计划查询',
|
176
|
+
data() {
|
177
|
+
let options = []
|
178
|
+
let year = (new Date()).getFullYear()
|
179
|
+
for (let i = year - 8; i <= year + 1; i++)
|
180
|
+
options.push({label: i + '', value: i + ''})
|
181
|
+
let model = new PagedList('rs/sql/planCount', 20, {
|
182
|
+
f_filialeids: 'this.f_filialeids',
|
183
|
+
f_start_time: 'this.f_start_time',
|
184
|
+
condition1:'this.condition1',
|
185
|
+
condition2:'this.condition2',
|
186
|
+
condition3:'this.condition3',
|
187
|
+
f_end_time: 'this.f_end_time'
|
188
|
+
}, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
|
189
|
+
model.f_filialeids = '('+this.$login.f.orgid+')'
|
190
|
+
return {
|
191
|
+
excelHeaders:{
|
192
|
+
'f_checker': '安检员',
|
193
|
+
'plannum': '计划总数',
|
194
|
+
// 'yrj': '计划中已入户',
|
195
|
+
// 'wrj': '计划中未入户',
|
196
|
+
'ruhu': '入户',
|
197
|
+
'jujian': '拒检',
|
198
|
+
'daofang': '到访不遇',
|
199
|
+
'no_plan_num': '无计划总数',
|
200
|
+
'noruhu': '无计划入户',
|
201
|
+
'nojujian': '无计划拒检',
|
202
|
+
'nodaofang': '无计划到访不遇'
|
203
|
+
},
|
204
|
+
searchData:{
|
205
|
+
condition:"1=1",
|
206
|
+
condition1:"1=1",
|
207
|
+
condition2:"1=1",
|
208
|
+
condition3:"and 1=1",
|
209
|
+
f_plan_year:year[0],
|
210
|
+
f_checker:'',
|
211
|
+
f_filialeids:'('+this.$login.f.orgid+')',
|
212
|
+
f_start_time:'',
|
213
|
+
f_end_time:''
|
214
|
+
},
|
215
|
+
checker: this.$login.f,
|
216
|
+
checkers: [],
|
217
|
+
checkersname: [],
|
218
|
+
checkStates: this.$appdata.getParam('安检状态'),
|
219
|
+
f: this.$login.f,
|
220
|
+
criteriaShow: false,
|
221
|
+
model: model,
|
222
|
+
c_year_list: options,
|
223
|
+
f_check_start:'',
|
224
|
+
f_check_end: '',
|
225
|
+
f_start_time:'',
|
226
|
+
f_end_time:'',
|
227
|
+
checkInfo: {},
|
228
|
+
showcheckmsg:false
|
229
|
+
}
|
230
|
+
},
|
231
|
+
methods: {
|
232
|
+
cancel(){
|
233
|
+
this.showcheckmsg = false
|
234
|
+
},
|
235
|
+
print(model) {
|
236
|
+
console.log("传给打印的数据" + JSON.stringify(model))
|
237
|
+
this.showcheckmsg = true
|
238
|
+
this.checkInfo = model
|
239
|
+
},
|
240
|
+
hidden() {
|
241
|
+
this.criteriaShow = !this.criteriaShow
|
242
|
+
},
|
243
|
+
hiddenr() {
|
244
|
+
this.$parent.showItem = !this.$parent.showItem
|
245
|
+
},
|
246
|
+
search(args) {
|
247
|
+
let tempStr = args.condition
|
248
|
+
let condition1 =tempStr
|
249
|
+
let condition2 =tempStr
|
250
|
+
let condition3 = ' and 1=1 '
|
251
|
+
if (this.f_check_start) {
|
252
|
+
condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
|
253
|
+
condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
|
254
|
+
}
|
255
|
+
if (this.f_check_end) {
|
256
|
+
condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
|
257
|
+
condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
|
258
|
+
}
|
259
|
+
if(this.f_start_time){
|
260
|
+
condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
|
261
|
+
}
|
262
|
+
if (this.f_end_time){
|
263
|
+
condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
|
264
|
+
}
|
265
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_id){
|
266
|
+
condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
267
|
+
condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
|
268
|
+
}
|
269
|
+
this.model.f_start_time=this.f_start_time
|
270
|
+
this.model.f_end_time=this.f_end_time
|
271
|
+
this.model.condition1=condition1
|
272
|
+
this.model.condition2=condition2
|
273
|
+
this.model.condition3=condition3
|
274
|
+
|
275
|
+
this.searchData.condition1=condition1
|
276
|
+
this.searchData.condition2=condition2
|
277
|
+
this.searchData.condition3=condition3
|
278
|
+
|
279
|
+
this.model.search(args.condition, args.model)
|
280
|
+
},
|
281
|
+
getRes(obj){
|
282
|
+
this.model.f_filialeids = this.$login.convertToIn(obj.resids);
|
283
|
+
//tag
|
284
|
+
}
|
285
|
+
},
|
286
|
+
ready() {
|
287
|
+
this.model.id = this.$login.f.id
|
288
|
+
this.model.f_subcompany = this.$login.f.f_fengongsi
|
289
|
+
this.model.f_filialeid = this.$login.f.orgid
|
290
|
+
},
|
291
|
+
|
292
|
+
watch: {
|
293
|
+
'model.condition'(val) {
|
294
|
+
if(val){
|
295
|
+
this.searchData.condition = val
|
296
|
+
}
|
297
|
+
},
|
298
|
+
'model.f_checker'(val) {
|
299
|
+
if(val){
|
300
|
+
this.searchData.f_checker = val
|
301
|
+
}
|
302
|
+
},
|
303
|
+
'f_start_time'(val) {
|
304
|
+
if(val){
|
305
|
+
this.searchData.f_start_time = val
|
306
|
+
}
|
307
|
+
},
|
308
|
+
'f_end_time'(val) {
|
309
|
+
if(val){
|
310
|
+
this.searchData.f_end_time = val
|
311
|
+
}
|
312
|
+
},
|
313
|
+
'checker'() {
|
314
|
+
// //tag
|
315
|
+
//tag
|
316
|
+
this.model.chosenOrg = this.checker[0]
|
317
|
+
},
|
318
|
+
'model.rows.length'() {
|
319
|
+
// 如果查询无结果,将合计置为0
|
320
|
+
if(this.model.rows.length < 1 &&this. model.sums){
|
321
|
+
this.model.sums.yrj = 0
|
322
|
+
this.model.sums.no_plan_num = 0
|
323
|
+
this.model.sums.wrj = 0
|
324
|
+
this.model.sums.ruhu = 0
|
325
|
+
this.model.sums.jujian = 0
|
326
|
+
this.model.sums.daofang = 0
|
327
|
+
this.model.sums.ruhu_total=0
|
328
|
+
this.model.sums.daofang_total=0
|
329
|
+
this.model.sums.jujian_total=0
|
330
|
+
this.model.sums.total_sum=0
|
331
|
+
}
|
332
|
+
}
|
333
|
+
},
|
334
|
+
computed: {
|
335
|
+
selected() {
|
336
|
+
// //tag
|
337
|
+
// this.$parent.showItem=!this.$parent.showItem
|
338
|
+
return this.$refs.paged.$refs.grid.selected
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
</script>
|