safecheck-client 3.0.35-5 → 3.0.35-51
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/bootstrap/less/pager.less +76 -76
- package/src/components/NewDefectList/DefectListNew.vue +617 -617
- package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
- package/src/components/Util/SafecheckUpload.vue +4 -0
- package/src/components/android/CheckPlanDown.vue +1 -1
- package/src/components/android/CivilCurrentCreate.vue +56 -41
- package/src/components/android/NoCivilCurrentCreate.vue +10 -0
- package/src/components/android/PaperFeedback.vue +1 -1
- package/src/components/android/PhoneUpUserinfo.vue +25 -6
- package/src/components/android/PhoneotherInfo.vue +0 -14
- package/src/components/android/PhoneotherInfov3.vue +118 -0
- package/src/components/android/SafecheckDevices.vue +1298 -1298
- package/src/components/android/SafecheckOrderV.vue +2 -529
- package/src/components/pc/AddPlanItemYyChange.vue +743 -0
- package/src/components/pc/NewCheckpaper.vue +1998 -1943
- package/src/components/pc/SecurityCheckLedger.vue +133 -0
- package/src/components/pc/SecurityCheckList.vue +160 -0
- package/src/components/pc/SecurityCheckManage.vue +106 -0
- package/src/components/planmanage/PlanManage.vue +47 -2
- package/src/components/report/CheckPlanAreaList.vue +25 -5
- package/src/components/rongcheng/AddPlanItem.vue +1 -1
- package/src/components/rongcheng/AspiratedAreaPlan.vue +1 -0
- package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
- package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
- package/src/components/rongcheng/CheckSearchUser.vue +1 -1
- package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
- package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
- package/src/filiale/bayan/android/AddPlanItem.vue +450 -430
- package/src/filiale/bayan/android/CheckPlanDown.vue +249 -249
- package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
- package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
- package/src/filiale/bayan/pc/DefectPaperNew.vue +22 -1
- package/src/filiale/bayan/pc/PlanManage.vue +962 -962
- package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
- package/src/filiale/dexin/pc/DefectListNew.vue +643 -0
- package/src/filiale/dexin/pc/DefectMainNew.vue +63 -0
- package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -0
- package/src/filiale/dexin/pc.js +1 -0
- package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
- package/src/filiale/huaran/android.js +1 -0
- package/src/filiale/huaran/pc/PaperList.vue +22 -1
- package/src/filiale/huaran/pc/PlanManage.vue +66 -7
- package/src/filiale/huaran/pc/checkUserList.vue +55 -22
- package/src/filiale/huaran/pc.js +1 -0
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/qianneng/android/SwitchValve.vue +1 -0
- package/src/filiale/rizhao/pc/NewCheckpaper.vue +9 -4
- package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
- package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
- package/src/filiale/shanxian/pc/SelectCheckPlan.vue +21 -0
- package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
- package/src/filiale/siyang/android/PaperFeedback.vue +1514 -0
- package/src/filiale/siyang/android.js +1 -0
- package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
- package/src/filiale/siyang/pc/checkUserList.vue +123 -148
- package/src/filiale/tianke/pc/DefectListNew.vue +10 -3
- package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
- package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/weinan/android/PaperFeedback.vue +34 -8
- package/src/filiale/weinan/android/SafecheckOrderV.vue +2 -1
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
- package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
- package/src/filiale/weinan/pc/NewCheckpaper.vue +20 -0
- package/src/filiale/weinan/pc/checkUserList.vue +712 -712
- package/src/filiale/xilan/android/CurrentCreate.vue +1053 -1067
- package/src/filiale/xilan/android.js +0 -1
- package/src/filiale/xilan/pc/PaperList.vue +795 -0
- package/src/filiale/xilan/pc.js +13 -12
- package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
- package/src/filiale/zhongsheng/android/SafecheckDevices.vue +4 -4
- package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +33 -1
- package/src/safecheck-android.js +1 -0
- package/src/safecheck.js +12 -0
- package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -1,278 +1,278 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
-
<div partial>
|
6
|
-
<!-- <p class="text-center" style="padding: 7px;"><b>安检计划项明细</b></p>-->
|
7
|
-
<ul class="nav nav-tabs">
|
8
|
-
<li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
|
9
|
-
</ul>
|
10
|
-
<div class="row">
|
11
|
-
<div class="form-group col-sm-4" >
|
12
|
-
<label class="font_normal_body">安检状态</label>
|
13
|
-
<v-select style="width:60% "
|
14
|
-
class="select select_list"
|
15
|
-
:value.sync="$parent.$parent.f_state"
|
16
|
-
v-model="$parent.$parent.f_state"
|
17
|
-
:options='$parent.$parent.checkState'
|
18
|
-
placeholder='安检状态'
|
19
|
-
close-on-select
|
20
|
-
value-single
|
21
|
-
>
|
22
|
-
</v-select>
|
23
|
-
</div>
|
24
|
-
<div class="form-group col-sm-4" >
|
25
|
-
<v-select style="width:60% "
|
26
|
-
v-if="$parent.$parent.f_state=='未入户'"
|
27
|
-
class="select select_list"
|
28
|
-
:value.sync="$parent.$parent.f_noruhu"
|
29
|
-
v-model="$parent.$parent.f_noruhu"
|
30
|
-
:options='$parent.$parent.noChecks'
|
31
|
-
placeholder='请选择状态'
|
32
|
-
:multiple="true"
|
33
|
-
>
|
34
|
-
</v-select>
|
35
|
-
</div>
|
36
|
-
<div class="form-group col-sm-4 button-range" >
|
37
|
-
<button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
|
38
|
-
<export-excel-safe :data="$parent.$parent.exportParameter"
|
39
|
-
:field="$parent.$parent.excelHeaders"
|
40
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
|
41
|
-
template-name='安检计划明细' :choose-col="true">
|
42
|
-
</export-excel-safe>
|
43
|
-
<!--<export-excel-safe-->
|
44
|
-
<!--:data="{condition: $parent.$parent.condition}"-->
|
45
|
-
<!--:field="$parent.$parent.getfield"-->
|
46
|
-
<!--sqlurl="rs/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
|
47
|
-
<!--:choose-col="true"></export-excel-safe>-->
|
48
|
-
|
49
|
-
</div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
</criteria>
|
53
|
-
<data-grid :model="model" partial='list' class="table_sy">
|
54
|
-
|
55
|
-
<template partial='head'>
|
56
|
-
<tr>
|
57
|
-
<th><nobr>计划名称</nobr></th>
|
58
|
-
<th><nobr>用户编号</nobr></th>
|
59
|
-
<th><nobr>用户名称</nobr></th>
|
60
|
-
<th><nobr>小区名称</nobr></th>
|
61
|
-
<th><nobr>地址</nobr></th>
|
62
|
-
<th><nobr>安检状态</nobr></th>
|
63
|
-
<th><nobr>是否安检</nobr></th>
|
64
|
-
</tr>
|
65
|
-
</template>
|
66
|
-
<template partial='body'>
|
67
|
-
<td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
|
68
|
-
<td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
69
|
-
<td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
|
70
|
-
<td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
|
71
|
-
<td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
|
72
|
-
<td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
|
73
|
-
<td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
|
74
|
-
</template>
|
75
|
-
</data-grid>
|
76
|
-
</criteria-paged>
|
77
|
-
</div>
|
78
|
-
</template>
|
79
|
-
|
80
|
-
<script>
|
81
|
-
import { PagedList } from 'vue-client'
|
82
|
-
|
83
|
-
export default {
|
84
|
-
title: '安检计划项列表',
|
85
|
-
data () {
|
86
|
-
return {
|
87
|
-
model: new PagedList('rs/sql/planItem', 20),
|
88
|
-
checkState:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'未入户',value:'未入户'}],
|
89
|
-
noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'复访不遇',value:'复访不遇'}],
|
90
|
-
excelHeaders: {
|
91
|
-
//用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
|
92
|
-
'f_plan_name':'计划名称',
|
93
|
-
'f_userinfo_code': '用户编号',
|
94
|
-
'f_user_name': '用户名称',
|
95
|
-
'f_user_phone': '用户电话',
|
96
|
-
//'count_item':'安检次数',
|
97
|
-
'f_user_type': '用户类型',
|
98
|
-
'f_residential_area': '小区名称',
|
99
|
-
'f_address':'地址',
|
100
|
-
'f_state':'是否已检',
|
101
|
-
'f_last_check_date':'安检日期',
|
102
|
-
'f_last_check_state': '安检状态'
|
103
|
-
},
|
104
|
-
f_state:'',
|
105
|
-
f_noruhu:''
|
106
|
-
}
|
107
|
-
},
|
108
|
-
props: [ 'check','checkstatus','checkstart','checkend','starttime','endtime' ],
|
109
|
-
watch: {
|
110
|
-
'check' (val) {
|
111
|
-
let condition
|
112
|
-
//tag
|
113
|
-
condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
114
|
-
if(this.checkstatus){
|
115
|
-
condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
116
|
-
}
|
117
|
-
if (this.checkstart && this.checkend ) {
|
118
|
-
let year1 = this.checkstart.substr(0,4)
|
119
|
-
let year2 = this.checkend.substr(0,4)
|
120
|
-
let month1 = this.checkstart.substr(5,2)
|
121
|
-
let month2 = this.checkend.substr(5,2)
|
122
|
-
if(year1 == year2){
|
123
|
-
condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
124
|
-
}else{
|
125
|
-
condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
126
|
-
}
|
127
|
-
}
|
128
|
-
if(this.checkstart && !this.checkend){
|
129
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
130
|
-
return
|
131
|
-
}
|
132
|
-
if(!this.checkstart && this.checkend){
|
133
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
134
|
-
return
|
135
|
-
}
|
136
|
-
if(this.starttime){
|
137
|
-
condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
138
|
-
}
|
139
|
-
if(this.endtime){
|
140
|
-
condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
141
|
-
}
|
142
|
-
this.f_noruhu=[]
|
143
|
-
this.f_state=''
|
144
|
-
this.model.search(condition, {})
|
145
|
-
|
146
|
-
}
|
147
|
-
},
|
148
|
-
|
149
|
-
ready () {
|
150
|
-
//tag
|
151
|
-
if (this.check) {
|
152
|
-
let condition
|
153
|
-
//tag
|
154
|
-
condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
155
|
-
if(this.checkstatus){
|
156
|
-
condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
157
|
-
}
|
158
|
-
if (this.checkstart && this.checkend ) {
|
159
|
-
let year1 = this.checkstart.substr(0,4)
|
160
|
-
let year2 = this.checkend.substr(0,4)
|
161
|
-
let month1 = this.checkstart.substr(5,2)
|
162
|
-
let month2 = this.checkend.substr(5,2)
|
163
|
-
if(year1 == year2){
|
164
|
-
condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
165
|
-
}else{
|
166
|
-
condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
167
|
-
}
|
168
|
-
}
|
169
|
-
if(this.checkstart && !this.checkend){
|
170
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
171
|
-
return
|
172
|
-
}
|
173
|
-
if(!this.checkstart && this.checkend){
|
174
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
175
|
-
return
|
176
|
-
}
|
177
|
-
if(this.starttime){
|
178
|
-
condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
179
|
-
}
|
180
|
-
if(this.endtime){
|
181
|
-
condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
182
|
-
}
|
183
|
-
|
184
|
-
this.model.search(condition, {})
|
185
|
-
}
|
186
|
-
},
|
187
|
-
methods:{
|
188
|
-
selfSearch(args){
|
189
|
-
//
|
190
|
-
if (this.check) {
|
191
|
-
args.condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
192
|
-
if(this.checkstatus){
|
193
|
-
args.condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
194
|
-
}
|
195
|
-
if (this.checkstart && this.checkend ) {
|
196
|
-
let year1 = this.checkstart.substr(0,4)
|
197
|
-
let year2 = this.checkend.substr(0,4)
|
198
|
-
let month1 = this.checkstart.substr(5,2)
|
199
|
-
let month2 = this.checkend.substr(5,2)
|
200
|
-
if(year1 == year2){
|
201
|
-
args.condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
202
|
-
}else{
|
203
|
-
args.condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
204
|
-
}
|
205
|
-
}
|
206
|
-
if(this.checkstart && !this.checkend){
|
207
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
208
|
-
return
|
209
|
-
}
|
210
|
-
if(!this.checkstart && this.checkend){
|
211
|
-
this.$showMessage('计划起始和截至时间必须同时选择!')
|
212
|
-
return
|
213
|
-
}
|
214
|
-
if(this.starttime){
|
215
|
-
args.condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
216
|
-
}
|
217
|
-
if(this.endtime){
|
218
|
-
args.condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
219
|
-
}
|
220
|
-
//
|
221
|
-
if( this.f_state){
|
222
|
-
if(this.f_state=='入户'){
|
223
|
-
args.condition=args.condition+" and i.f_state='已检' and i.f_last_check_state='入户'"
|
224
|
-
}else if(this.f_state=='未入户'){
|
225
|
-
if(this.f_noruhu && this.f_noruhu.length==1){
|
226
|
-
if(this.f_noruhu[0]=='复访不遇'){
|
227
|
-
args.condition += "and i.f_state='已检' and i.f_last_check_state='到访不遇' and i.f_check_version > 1 "
|
228
|
-
}else{
|
229
|
-
args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and i.f_last_check_state='${this.f_noruhu[0]}'`
|
230
|
-
}
|
231
|
-
}else if(this.f_noruhu && this.f_noruhu.length==2){
|
232
|
-
if(this.f_noruhu.indexOf('未检')!=-1){
|
233
|
-
//
|
234
|
-
if(this.f_noruhu.indexOf('到访不遇')!=-1){
|
235
|
-
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='到访不遇'))"
|
236
|
-
}else if(this.f_noruhu.indexOf('复访不遇')!=-1) {
|
237
|
-
args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state = '到访不遇' AND i.f_check_version >2))"
|
238
|
-
}else{
|
239
|
-
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='拒检'))"
|
240
|
-
}
|
241
|
-
|
242
|
-
}else{
|
243
|
-
if(this.f_noruhu.indexOf('复访不遇')!=-1){
|
244
|
-
if(this.f_noruhu.indexOf('到访不遇')!=-1){
|
245
|
-
args.condition=args.condition + " and (i.f_state='已检' and (i.f_last_check_state='到访不遇'))"
|
246
|
-
}else{
|
247
|
-
args.condition=args.condition + " and i.f_state='已检' and ((i.f_last_check_state='到访不遇' and f_check_version >2) or i.f_last_check_state='拒检' )"
|
248
|
-
}
|
249
|
-
}else{
|
250
|
-
args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
|
251
|
-
}
|
252
|
-
}
|
253
|
-
}else{
|
254
|
-
if(this.f_noruhu.indexOf('未检')!=-1){
|
255
|
-
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检')))"
|
256
|
-
}
|
257
|
-
else{
|
258
|
-
args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
|
259
|
-
}
|
260
|
-
}
|
261
|
-
|
262
|
-
}
|
263
|
-
|
264
|
-
}
|
265
|
-
this.model.search(args.condition, args.model)
|
266
|
-
}
|
267
|
-
}
|
268
|
-
},
|
269
|
-
computed: {
|
270
|
-
// 导出到Excel的条件构造
|
271
|
-
exportParameter() {
|
272
|
-
return {
|
273
|
-
condition: this.$refs.paged.model.condition
|
274
|
-
}
|
275
|
-
}
|
276
|
-
},
|
277
|
-
}
|
278
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
|
+
<div partial>
|
6
|
+
<!-- <p class="text-center" style="padding: 7px;"><b>安检计划项明细</b></p>-->
|
7
|
+
<ul class="nav nav-tabs">
|
8
|
+
<li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
|
9
|
+
</ul>
|
10
|
+
<div class="row">
|
11
|
+
<div class="form-group col-sm-4" >
|
12
|
+
<label class="font_normal_body">安检状态</label>
|
13
|
+
<v-select style="width:60% "
|
14
|
+
class="select select_list"
|
15
|
+
:value.sync="$parent.$parent.f_state"
|
16
|
+
v-model="$parent.$parent.f_state"
|
17
|
+
:options='$parent.$parent.checkState'
|
18
|
+
placeholder='安检状态'
|
19
|
+
close-on-select
|
20
|
+
value-single
|
21
|
+
>
|
22
|
+
</v-select>
|
23
|
+
</div>
|
24
|
+
<div class="form-group col-sm-4" >
|
25
|
+
<v-select style="width:60% "
|
26
|
+
v-if="$parent.$parent.f_state=='未入户'"
|
27
|
+
class="select select_list"
|
28
|
+
:value.sync="$parent.$parent.f_noruhu"
|
29
|
+
v-model="$parent.$parent.f_noruhu"
|
30
|
+
:options='$parent.$parent.noChecks'
|
31
|
+
placeholder='请选择状态'
|
32
|
+
:multiple="true"
|
33
|
+
>
|
34
|
+
</v-select>
|
35
|
+
</div>
|
36
|
+
<div class="form-group col-sm-4 button-range" >
|
37
|
+
<button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
|
38
|
+
<export-excel-safe :data="$parent.$parent.exportParameter"
|
39
|
+
:field="$parent.$parent.excelHeaders"
|
40
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
|
41
|
+
template-name='安检计划明细' :choose-col="true">
|
42
|
+
</export-excel-safe>
|
43
|
+
<!--<export-excel-safe-->
|
44
|
+
<!--:data="{condition: $parent.$parent.condition}"-->
|
45
|
+
<!--:field="$parent.$parent.getfield"-->
|
46
|
+
<!--sqlurl="rs/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
|
47
|
+
<!--:choose-col="true"></export-excel-safe>-->
|
48
|
+
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</criteria>
|
53
|
+
<data-grid :model="model" partial='list' class="table_sy">
|
54
|
+
|
55
|
+
<template partial='head'>
|
56
|
+
<tr>
|
57
|
+
<th><nobr>计划名称</nobr></th>
|
58
|
+
<th><nobr>用户编号</nobr></th>
|
59
|
+
<th><nobr>用户名称</nobr></th>
|
60
|
+
<th><nobr>小区名称</nobr></th>
|
61
|
+
<th><nobr>地址</nobr></th>
|
62
|
+
<th><nobr>安检状态</nobr></th>
|
63
|
+
<th><nobr>是否安检</nobr></th>
|
64
|
+
</tr>
|
65
|
+
</template>
|
66
|
+
<template partial='body'>
|
67
|
+
<td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
|
68
|
+
<td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
69
|
+
<td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
|
70
|
+
<td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
|
71
|
+
<td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
|
72
|
+
<td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
|
73
|
+
<td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
|
74
|
+
</template>
|
75
|
+
</data-grid>
|
76
|
+
</criteria-paged>
|
77
|
+
</div>
|
78
|
+
</template>
|
79
|
+
|
80
|
+
<script>
|
81
|
+
import { PagedList } from 'vue-client'
|
82
|
+
|
83
|
+
export default {
|
84
|
+
title: '安检计划项列表',
|
85
|
+
data () {
|
86
|
+
return {
|
87
|
+
model: new PagedList('rs/sql/planItem', 20),
|
88
|
+
checkState:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'未入户',value:'未入户'}],
|
89
|
+
noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'复访不遇',value:'复访不遇'}],
|
90
|
+
excelHeaders: {
|
91
|
+
//用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
|
92
|
+
'f_plan_name':'计划名称',
|
93
|
+
'f_userinfo_code': '用户编号',
|
94
|
+
'f_user_name': '用户名称',
|
95
|
+
'f_user_phone': '用户电话',
|
96
|
+
//'count_item':'安检次数',
|
97
|
+
'f_user_type': '用户类型',
|
98
|
+
'f_residential_area': '小区名称',
|
99
|
+
'f_address':'地址',
|
100
|
+
'f_state':'是否已检',
|
101
|
+
'f_last_check_date':'安检日期',
|
102
|
+
'f_last_check_state': '安检状态'
|
103
|
+
},
|
104
|
+
f_state:'',
|
105
|
+
f_noruhu:''
|
106
|
+
}
|
107
|
+
},
|
108
|
+
props: [ 'check','checkstatus','checkstart','checkend','starttime','endtime' ],
|
109
|
+
watch: {
|
110
|
+
'check' (val) {
|
111
|
+
let condition
|
112
|
+
//tag
|
113
|
+
condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
114
|
+
if(this.checkstatus){
|
115
|
+
condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
116
|
+
}
|
117
|
+
if (this.checkstart && this.checkend ) {
|
118
|
+
let year1 = this.checkstart.substr(0,4)
|
119
|
+
let year2 = this.checkend.substr(0,4)
|
120
|
+
let month1 = this.checkstart.substr(5,2)
|
121
|
+
let month2 = this.checkend.substr(5,2)
|
122
|
+
if(year1 == year2){
|
123
|
+
condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
124
|
+
}else{
|
125
|
+
condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
126
|
+
}
|
127
|
+
}
|
128
|
+
if(this.checkstart && !this.checkend){
|
129
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
130
|
+
return
|
131
|
+
}
|
132
|
+
if(!this.checkstart && this.checkend){
|
133
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
134
|
+
return
|
135
|
+
}
|
136
|
+
if(this.starttime){
|
137
|
+
condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
138
|
+
}
|
139
|
+
if(this.endtime){
|
140
|
+
condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
141
|
+
}
|
142
|
+
this.f_noruhu=[]
|
143
|
+
this.f_state=''
|
144
|
+
this.model.search(condition, {})
|
145
|
+
|
146
|
+
}
|
147
|
+
},
|
148
|
+
|
149
|
+
ready () {
|
150
|
+
//tag
|
151
|
+
if (this.check) {
|
152
|
+
let condition
|
153
|
+
//tag
|
154
|
+
condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
155
|
+
if(this.checkstatus){
|
156
|
+
condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
157
|
+
}
|
158
|
+
if (this.checkstart && this.checkend ) {
|
159
|
+
let year1 = this.checkstart.substr(0,4)
|
160
|
+
let year2 = this.checkend.substr(0,4)
|
161
|
+
let month1 = this.checkstart.substr(5,2)
|
162
|
+
let month2 = this.checkend.substr(5,2)
|
163
|
+
if(year1 == year2){
|
164
|
+
condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
165
|
+
}else{
|
166
|
+
condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
167
|
+
}
|
168
|
+
}
|
169
|
+
if(this.checkstart && !this.checkend){
|
170
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
171
|
+
return
|
172
|
+
}
|
173
|
+
if(!this.checkstart && this.checkend){
|
174
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
175
|
+
return
|
176
|
+
}
|
177
|
+
if(this.starttime){
|
178
|
+
condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
179
|
+
}
|
180
|
+
if(this.endtime){
|
181
|
+
condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
182
|
+
}
|
183
|
+
|
184
|
+
this.model.search(condition, {})
|
185
|
+
}
|
186
|
+
},
|
187
|
+
methods:{
|
188
|
+
selfSearch(args){
|
189
|
+
//
|
190
|
+
if (this.check) {
|
191
|
+
args.condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
|
192
|
+
if(this.checkstatus){
|
193
|
+
args.condition += ` and cp.f_entry_status = '${this.checkstatus}'`
|
194
|
+
}
|
195
|
+
if (this.checkstart && this.checkend ) {
|
196
|
+
let year1 = this.checkstart.substr(0,4)
|
197
|
+
let year2 = this.checkend.substr(0,4)
|
198
|
+
let month1 = this.checkstart.substr(5,2)
|
199
|
+
let month2 = this.checkend.substr(5,2)
|
200
|
+
if(year1 == year2){
|
201
|
+
args.condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
|
202
|
+
}else{
|
203
|
+
args.condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
|
204
|
+
}
|
205
|
+
}
|
206
|
+
if(this.checkstart && !this.checkend){
|
207
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
208
|
+
return
|
209
|
+
}
|
210
|
+
if(!this.checkstart && this.checkend){
|
211
|
+
this.$showMessage('计划起始和截至时间必须同时选择!')
|
212
|
+
return
|
213
|
+
}
|
214
|
+
if(this.starttime){
|
215
|
+
args.condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
|
216
|
+
}
|
217
|
+
if(this.endtime){
|
218
|
+
args.condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
|
219
|
+
}
|
220
|
+
//
|
221
|
+
if( this.f_state){
|
222
|
+
if(this.f_state=='入户'){
|
223
|
+
args.condition=args.condition+" and i.f_state='已检' and i.f_last_check_state='入户'"
|
224
|
+
}else if(this.f_state=='未入户'){
|
225
|
+
if(this.f_noruhu && this.f_noruhu.length==1){
|
226
|
+
if(this.f_noruhu[0]=='复访不遇'){
|
227
|
+
args.condition += "and i.f_state='已检' and i.f_last_check_state='到访不遇' and i.f_check_version > 1 "
|
228
|
+
}else{
|
229
|
+
args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and i.f_last_check_state='${this.f_noruhu[0]}'`
|
230
|
+
}
|
231
|
+
}else if(this.f_noruhu && this.f_noruhu.length==2){
|
232
|
+
if(this.f_noruhu.indexOf('未检')!=-1){
|
233
|
+
//
|
234
|
+
if(this.f_noruhu.indexOf('到访不遇')!=-1){
|
235
|
+
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='到访不遇'))"
|
236
|
+
}else if(this.f_noruhu.indexOf('复访不遇')!=-1) {
|
237
|
+
args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state = '到访不遇' AND i.f_check_version >2))"
|
238
|
+
}else{
|
239
|
+
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='拒检'))"
|
240
|
+
}
|
241
|
+
|
242
|
+
}else{
|
243
|
+
if(this.f_noruhu.indexOf('复访不遇')!=-1){
|
244
|
+
if(this.f_noruhu.indexOf('到访不遇')!=-1){
|
245
|
+
args.condition=args.condition + " and (i.f_state='已检' and (i.f_last_check_state='到访不遇'))"
|
246
|
+
}else{
|
247
|
+
args.condition=args.condition + " and i.f_state='已检' and ((i.f_last_check_state='到访不遇' and f_check_version >2) or i.f_last_check_state='拒检' )"
|
248
|
+
}
|
249
|
+
}else{
|
250
|
+
args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}else{
|
254
|
+
if(this.f_noruhu.indexOf('未检')!=-1){
|
255
|
+
args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检')))"
|
256
|
+
}
|
257
|
+
else{
|
258
|
+
args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
}
|
263
|
+
|
264
|
+
}
|
265
|
+
this.model.search(args.condition, args.model)
|
266
|
+
}
|
267
|
+
}
|
268
|
+
},
|
269
|
+
computed: {
|
270
|
+
// 导出到Excel的条件构造
|
271
|
+
exportParameter() {
|
272
|
+
return {
|
273
|
+
condition: this.$refs.paged.model.condition
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
}
|
278
|
+
</script>
|
@@ -290,6 +290,26 @@ div {
|
|
290
290
|
</tr>
|
291
291
|
</tbody>
|
292
292
|
</table>
|
293
|
+
<table class="table table-striped table-bordered" v-show="item.f_select_record_path && isRecodrDownloadBtn">
|
294
|
+
<thead>
|
295
|
+
<tr>
|
296
|
+
<th style="text-align: center">录音文件</th>
|
297
|
+
</tr>
|
298
|
+
</thead>
|
299
|
+
<tbody>
|
300
|
+
<tr>
|
301
|
+
<td style="margin: auto;text-align: center">
|
302
|
+
<div class="container" style="max-width: 500px; background: #FFFFFF;margin-bottom: 20px">
|
303
|
+
<div id='item.id' ref="dp" style="height: 10vh; width:20vw ;margin-bottom:50px"></div>
|
304
|
+
</div>
|
305
|
+
<a class="button_spacing button_search-1" :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
|
306
|
+
:href="'rs/image/file/'+item.f_select_record_path" >录音下载</a>
|
307
|
+
<!-- <button class="button_spacing button_search-1" type="button" @click="getbaseYin()">播放录音</button>-->
|
308
|
+
<!-- <button class="button_spacing button_search-1" type="button" @click="stop()">停止播放</button>-->
|
309
|
+
</td>
|
310
|
+
</tr>
|
311
|
+
</tbody>
|
312
|
+
</table>
|
293
313
|
</div>
|
294
314
|
</div>
|
295
315
|
<div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
|