safecheck-client 4.0.2-72 → 4.0.2-74
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 +2 -2
- package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/SafeRightTree.vue +218 -218
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/week/CheckResultSimple.vue +258 -258
- package/src/components/android/week/FirstWeekCheck.vue +303 -301
- package/src/components/android/week/StepHeaderBar.vue +477 -485
- package/src/components/android/week/WeekCheck.vue +267 -267
- package/src/components/android/week/WeekCheckPaper.vue +274 -274
- package/src/components/android/week/WeekCheckPlan.vue +145 -145
- package/src/components/android/week/WeekCheckUserInfo.vue +99 -99
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +656 -656
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/filiale/jinhong/android/AndroidDefectDeal.vue +26 -0
- package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +48 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +1 -1
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1343
- package/src/filiale/meihekou/android.js +22 -22
- package/src/main.js +33 -33
|
@@ -356,6 +356,28 @@
|
|
|
356
356
|
</button>
|
|
357
357
|
</div>
|
|
358
358
|
</div>
|
|
359
|
+
<div class="panel-body panel-self"
|
|
360
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
361
|
+
<img-self :src="deal.f_other_dealpath3" alt="整改照片" :width="140" :height="170" capture="camera"
|
|
362
|
+
type="file"></img-self>
|
|
363
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
364
|
+
<img src="../../../assets/remove.png" @click="delfile('f_other_dealpath3', deal.f_other_dealpath3)"></img>
|
|
365
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
366
|
+
@click="takePic('f_other_dealpath3','整改照片')">拍照
|
|
367
|
+
</button>
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
<div class="panel-body panel-self"
|
|
371
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
372
|
+
<img-self :src="deal.f_other_dealpath4" alt="整改照片" :width="140" :height="170" capture="camera"
|
|
373
|
+
type="file"></img-self>
|
|
374
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
375
|
+
<img src="../../../assets/remove.png" @click="delfile('f_other_dealpath4', deal.f_other_dealpath4)"></img>
|
|
376
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
377
|
+
@click="takePic('f_other_dealpath4','整改照片')">拍照
|
|
378
|
+
</button>
|
|
379
|
+
</div>
|
|
380
|
+
</div>
|
|
359
381
|
</div>
|
|
360
382
|
</div>
|
|
361
383
|
</div>
|
|
@@ -426,6 +448,8 @@ export default {
|
|
|
426
448
|
f_deal_path: '',
|
|
427
449
|
f_other_dealpath1: '',
|
|
428
450
|
f_other_dealpath2: '',
|
|
451
|
+
f_other_dealpath3: '',
|
|
452
|
+
f_other_dealpath4: '',
|
|
429
453
|
f_deal_remark: '',
|
|
430
454
|
f_dealsign_path: '', //签名
|
|
431
455
|
f_dealer: Vue.user.name,
|
|
@@ -628,6 +652,8 @@ export default {
|
|
|
628
652
|
f_deal_path: '',
|
|
629
653
|
f_other_dealpath1: '',
|
|
630
654
|
f_other_dealpath2: '',
|
|
655
|
+
f_other_dealpath3: '',
|
|
656
|
+
f_other_dealpath4: '',
|
|
631
657
|
f_deal_remark: '',
|
|
632
658
|
f_dealsign_path: '', //签名
|
|
633
659
|
f_dealer: Vue.user.name,
|
|
@@ -296,6 +296,50 @@
|
|
|
296
296
|
</button>
|
|
297
297
|
</div>
|
|
298
298
|
</div>
|
|
299
|
+
<div class="panel-body panel-self"
|
|
300
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
301
|
+
<img-self :src="deal.f_notified_path1" alt="隐患通知单" :width="140" :height="170" capture="camera"
|
|
302
|
+
type="file"></img-self>
|
|
303
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
304
|
+
<img src="../../../assets/remove.png" @click="delfile('f_notified_path1', deal.f_notified_path1)"></img>
|
|
305
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
306
|
+
@click="takePic('f_notified_path1','整改照片')">拍照
|
|
307
|
+
</button>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
<div class="panel-body panel-self"
|
|
311
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
312
|
+
<img-self :src="deal.f_notified_path2" alt="隐患通知单" :width="140" :height="170" capture="camera"
|
|
313
|
+
type="file"></img-self>
|
|
314
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
315
|
+
<img src="../../../assets/remove.png" @click="delfile('f_notified_path2', deal.f_notified_path2)"></img>
|
|
316
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
317
|
+
@click="takePic('f_notified_path2','整改照片')">拍照
|
|
318
|
+
</button>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="panel-body panel-self"
|
|
322
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
323
|
+
<img-self :src="deal.f_notified_path3" alt="隐患通知单" :width="140" :height="170" capture="camera"
|
|
324
|
+
type="file"></img-self>
|
|
325
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
326
|
+
<img src="../../../assets/remove.png" @click="delfile('f_notified_path3', deal.f_notified_path3)"></img>
|
|
327
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
328
|
+
@click="takePic('f_notified_path3','整改照片')">拍照
|
|
329
|
+
</button>
|
|
330
|
+
</div>
|
|
331
|
+
</div>
|
|
332
|
+
<div class="panel-body panel-self"
|
|
333
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
334
|
+
<img-self :src="deal.f_notified_path4" alt="隐患通知单" :width="140" :height="170" capture="camera"
|
|
335
|
+
type="file"></img-self>
|
|
336
|
+
<div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
|
|
337
|
+
<img src="../../../assets/remove.png" @click="delfile('f_notified_path4', deal.f_notified_path4)"></img>
|
|
338
|
+
<button type="button" name="button" class="btn btn-primary btn-photo"
|
|
339
|
+
@click="takePic('f_notified_path4','整改照片')">拍照
|
|
340
|
+
</button>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
299
343
|
</div>
|
|
300
344
|
</div>
|
|
301
345
|
</div>
|
|
@@ -330,6 +374,10 @@ export default {
|
|
|
330
374
|
paperid: '',
|
|
331
375
|
deviceid: '',
|
|
332
376
|
f_notified_path: '',
|
|
377
|
+
f_notified_path1: '',
|
|
378
|
+
f_notified_path2: '',
|
|
379
|
+
f_notified_pat3: '',
|
|
380
|
+
f_notified_path4: '',
|
|
333
381
|
f_dealer: Vue.user.name,
|
|
334
382
|
f_dealer_id: Vue.user.id
|
|
335
383
|
},
|
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
<style scoped>
|
|
2
|
-
.bg {
|
|
3
|
-
background-color: blue;
|
|
4
|
-
height: 1px;
|
|
5
|
-
border: 0;
|
|
6
|
-
}
|
|
7
|
-
.app-row {
|
|
8
|
-
background-color: white;
|
|
9
|
-
padding: 10px 10px 0 10px;
|
|
10
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
11
|
-
}
|
|
12
|
-
.search_input {
|
|
13
|
-
border: 0;
|
|
14
|
-
outline: none;
|
|
15
|
-
}
|
|
16
|
-
.font{
|
|
17
|
-
font: 15px PingFang-SC-Medium;
|
|
18
|
-
color: #666666;
|
|
19
|
-
}
|
|
20
|
-
.input-font{
|
|
21
|
-
font: 15px PingFang-SC-Medium;
|
|
22
|
-
color: #333333;
|
|
23
|
-
}
|
|
24
|
-
.btn-font{
|
|
25
|
-
font:600 16px PingFang-SC-Bold;
|
|
26
|
-
color: #499EDF;
|
|
27
|
-
}
|
|
28
|
-
.btn-color{
|
|
29
|
-
background-color: #FFFFFF;
|
|
30
|
-
border-radius: 10px ;
|
|
31
|
-
border: 1px solid #499EDF;
|
|
32
|
-
}
|
|
33
|
-
.app-text {
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
}
|
|
36
|
-
.panel-self{
|
|
37
|
-
border-radius: 10px;
|
|
38
|
-
border:1px solid #499EDF;
|
|
39
|
-
background-color: #F8F8F8;
|
|
40
|
-
}
|
|
41
|
-
.yybtn-color{
|
|
42
|
-
background-color:#499edf;
|
|
43
|
-
border-radius: 4px ;
|
|
44
|
-
border: 1px solid #499EDF;
|
|
45
|
-
color: #FFFFFF;
|
|
46
|
-
font: 14px PingFang-SC-Bold;
|
|
47
|
-
}
|
|
48
|
-
.qxbtn-color{
|
|
49
|
-
background-color: #FFFFFF;
|
|
50
|
-
border-radius: 4px ;
|
|
51
|
-
color: #499edf;
|
|
52
|
-
font: 14px PingFang-SC-Bold;
|
|
53
|
-
border: 1px solid #499EDF;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
|
|
57
|
-
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
|
|
58
|
-
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
|
|
59
|
-
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
|
|
60
|
-
</style>
|
|
61
|
-
<template>
|
|
62
|
-
<div style="height: auto;width: 100%">
|
|
63
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
64
|
-
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
65
|
-
<div partial>
|
|
66
|
-
<form>
|
|
67
|
-
<div class="row app-row">
|
|
68
|
-
<div class="col-xs-4">
|
|
69
|
-
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
70
|
-
<label class="font text-left">计划名称:</label>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="col-xs-8" >
|
|
73
|
-
<input class="search_input input-font" v-model=model.f_plan_name condition="f_plan_name like '%{}%'" />
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="row text-center" style="margin-top: 20px;">
|
|
77
|
-
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
|
|
78
|
-
<img style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
79
|
-
<!-- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>-->
|
|
80
|
-
</div>
|
|
81
|
-
<div style="height:30px;"></div>
|
|
82
|
-
</form>
|
|
83
|
-
</div>
|
|
84
|
-
</criteria>
|
|
85
|
-
<list :model="model" partial='list'>
|
|
86
|
-
<div partial>
|
|
87
|
-
<div class="auto app-text" style="margin-top: 5px;">
|
|
88
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
89
|
-
<div class="panel-body panel-self" @click="$parent.$parent.$parent.toPlanItem(row.f_plan_name)">
|
|
90
|
-
<div class="col-xs-12">
|
|
91
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划名称:</b></p>
|
|
92
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 74%">{{ row.f_plan_name }}</p>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="col-xs-12">
|
|
95
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划时间:</b></p>
|
|
96
|
-
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_create_time }}</p>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="col-xs-6">
|
|
99
|
-
<p class="panel-title col-xs-5 text-left font"><b>入户:</b></p>
|
|
100
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.checked }}
|
|
101
|
-
</p>
|
|
102
|
-
</div>
|
|
103
|
-
<div class="col-xs-6">
|
|
104
|
-
<p class="panel-title col-xs-5 text-left font"><b>到访不遇:</b></p>
|
|
105
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.daofang }}
|
|
106
|
-
</p>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="col-xs-6">
|
|
109
|
-
<p class="panel-title col-xs-5 text-left font"><b>拒检:</b></p>
|
|
110
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.jujian }}
|
|
111
|
-
</p>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="col-xs-6">
|
|
114
|
-
<p class="panel-title col-xs-5 text-left font"><b>未检:</b></p>
|
|
115
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.no_check }}</p>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="col-xs-6">
|
|
118
|
-
<p class="panel-title col-xs-5 text-left font"><b>总数:</b></p>
|
|
119
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ row.checked + row.no_check + row.daofang + row.jujian }}</p>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="col-xs-6">
|
|
122
|
-
<p class="panel-title col-xs-5 text-left font"><b>完成率:</b></p>
|
|
123
|
-
<p class="panel-title col-xs-7 text-left input-font">
|
|
124
|
-
{{((((row.checked+ row.daofang + row.jujian) / (row.checked + row.no_check+ row.daofang + row.jujian))) * 100).toFixed(0) + '%' }}
|
|
125
|
-
</p>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</list>
|
|
132
|
-
</criteria-paged>
|
|
133
|
-
</div>
|
|
134
|
-
</template>
|
|
135
|
-
|
|
136
|
-
<script>
|
|
137
|
-
|
|
138
|
-
import Vue from 'vue'
|
|
139
|
-
import LocalPagedList from "../../../components/android/LocalPagedList";
|
|
140
|
-
|
|
141
|
-
export default {
|
|
142
|
-
title: '安检计划列表',
|
|
143
|
-
data() {
|
|
144
|
-
return {
|
|
145
|
-
f_orgid: Vue.user.orgid,
|
|
146
|
-
model:new LocalPagedList( `androidCheckPlanList`,20, {condition:'this.condition'}),
|
|
147
|
-
criteriaShow: false
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
ready(){
|
|
151
|
-
},
|
|
152
|
-
methods: {
|
|
153
|
-
search(args) {
|
|
154
|
-
// args.condition += ` and tu.f_orgid in ${Vue.user.orgid}`
|
|
155
|
-
this.model.search(args.condition, args.model)
|
|
156
|
-
},
|
|
157
|
-
selfSearch () {
|
|
158
|
-
let condition = "1=1 "
|
|
159
|
-
if(this.$refs.paged.$refs.cri.model.f_plan_name){
|
|
160
|
-
if(this.$refs.paged.$refs.cri.model.f_plan_name.toString().trim()){
|
|
161
|
-
condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name+"%'"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
console.log('condition ===> '+ condition)
|
|
165
|
-
this.model.search(condition)
|
|
166
|
-
},
|
|
167
|
-
toPlanItem(planName) {
|
|
168
|
-
this.$dispatch('gotoson', {
|
|
169
|
-
_this: this,
|
|
170
|
-
title: '计划列表',
|
|
171
|
-
safe: false
|
|
172
|
-
})
|
|
173
|
-
this.$goto('check-plan-list-area', {planName},'self')
|
|
174
|
-
},
|
|
175
|
-
getNewOrder(){
|
|
176
|
-
HostApp.__this__ = this
|
|
177
|
-
HostApp.logicWithHint({
|
|
178
|
-
// logic别名,key必须为logic
|
|
179
|
-
'logic': 'SafeCheckServiceTimeOut',
|
|
180
|
-
// 回调执行方法名,key必须为callback
|
|
181
|
-
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
|
182
|
-
// logic执行需要的业务参数
|
|
183
|
-
'data': {params: ''},
|
|
184
|
-
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
185
|
-
// 执行回调方法传入key为backresult
|
|
186
|
-
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
187
|
-
'backresult': 1
|
|
188
|
-
})
|
|
189
|
-
},
|
|
190
|
-
getNewOrderCallBack() {
|
|
191
|
-
this.selfSearch()
|
|
192
|
-
},
|
|
193
|
-
hidden() {
|
|
194
|
-
this.criteriaShow = !this.criteriaShow
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
</script>
|
|
1
|
+
<style scoped>
|
|
2
|
+
.bg {
|
|
3
|
+
background-color: blue;
|
|
4
|
+
height: 1px;
|
|
5
|
+
border: 0;
|
|
6
|
+
}
|
|
7
|
+
.app-row {
|
|
8
|
+
background-color: white;
|
|
9
|
+
padding: 10px 10px 0 10px;
|
|
10
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
11
|
+
}
|
|
12
|
+
.search_input {
|
|
13
|
+
border: 0;
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
16
|
+
.font{
|
|
17
|
+
font: 15px PingFang-SC-Medium;
|
|
18
|
+
color: #666666;
|
|
19
|
+
}
|
|
20
|
+
.input-font{
|
|
21
|
+
font: 15px PingFang-SC-Medium;
|
|
22
|
+
color: #333333;
|
|
23
|
+
}
|
|
24
|
+
.btn-font{
|
|
25
|
+
font:600 16px PingFang-SC-Bold;
|
|
26
|
+
color: #499EDF;
|
|
27
|
+
}
|
|
28
|
+
.btn-color{
|
|
29
|
+
background-color: #FFFFFF;
|
|
30
|
+
border-radius: 10px ;
|
|
31
|
+
border: 1px solid #499EDF;
|
|
32
|
+
}
|
|
33
|
+
.app-text {
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
}
|
|
36
|
+
.panel-self{
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
border:1px solid #499EDF;
|
|
39
|
+
background-color: #F8F8F8;
|
|
40
|
+
}
|
|
41
|
+
.yybtn-color{
|
|
42
|
+
background-color:#499edf;
|
|
43
|
+
border-radius: 4px ;
|
|
44
|
+
border: 1px solid #499EDF;
|
|
45
|
+
color: #FFFFFF;
|
|
46
|
+
font: 14px PingFang-SC-Bold;
|
|
47
|
+
}
|
|
48
|
+
.qxbtn-color{
|
|
49
|
+
background-color: #FFFFFF;
|
|
50
|
+
border-radius: 4px ;
|
|
51
|
+
color: #499edf;
|
|
52
|
+
font: 14px PingFang-SC-Bold;
|
|
53
|
+
border: 1px solid #499EDF;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
|
|
57
|
+
.button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
|
|
58
|
+
.button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
|
|
59
|
+
.button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
|
|
60
|
+
</style>
|
|
61
|
+
<template>
|
|
62
|
+
<div style="height: auto;width: 100%">
|
|
63
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
64
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
65
|
+
<div partial>
|
|
66
|
+
<form>
|
|
67
|
+
<div class="row app-row">
|
|
68
|
+
<div class="col-xs-4">
|
|
69
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
|
70
|
+
<label class="font text-left">计划名称:</label>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-xs-8" >
|
|
73
|
+
<input class="search_input input-font" v-model=model.f_plan_name condition="f_plan_name like '%{}%'" />
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
77
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
|
|
78
|
+
<img style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
|
|
79
|
+
<!-- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>-->
|
|
80
|
+
</div>
|
|
81
|
+
<div style="height:30px;"></div>
|
|
82
|
+
</form>
|
|
83
|
+
</div>
|
|
84
|
+
</criteria>
|
|
85
|
+
<list :model="model" partial='list'>
|
|
86
|
+
<div partial>
|
|
87
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
|
88
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
89
|
+
<div class="panel-body panel-self" @click="$parent.$parent.$parent.toPlanItem(row.f_plan_name)">
|
|
90
|
+
<div class="col-xs-12">
|
|
91
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划名称:</b></p>
|
|
92
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 74%">{{ row.f_plan_name }}</p>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="col-xs-12">
|
|
95
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>计划时间:</b></p>
|
|
96
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_create_time }}</p>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="col-xs-6">
|
|
99
|
+
<p class="panel-title col-xs-5 text-left font"><b>入户:</b></p>
|
|
100
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.checked }}
|
|
101
|
+
</p>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-xs-6">
|
|
104
|
+
<p class="panel-title col-xs-5 text-left font"><b>到访不遇:</b></p>
|
|
105
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.daofang }}
|
|
106
|
+
</p>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-xs-6">
|
|
109
|
+
<p class="panel-title col-xs-5 text-left font"><b>拒检:</b></p>
|
|
110
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.jujian }}
|
|
111
|
+
</p>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-xs-6">
|
|
114
|
+
<p class="panel-title col-xs-5 text-left font"><b>未检:</b></p>
|
|
115
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.no_check }}</p>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-xs-6">
|
|
118
|
+
<p class="panel-title col-xs-5 text-left font"><b>总数:</b></p>
|
|
119
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.checked + row.no_check + row.daofang + row.jujian }}</p>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="col-xs-6">
|
|
122
|
+
<p class="panel-title col-xs-5 text-left font"><b>完成率:</b></p>
|
|
123
|
+
<p class="panel-title col-xs-7 text-left input-font">
|
|
124
|
+
{{((((row.checked+ row.daofang + row.jujian) / (row.checked + row.no_check+ row.daofang + row.jujian))) * 100).toFixed(0) + '%' }}
|
|
125
|
+
</p>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</list>
|
|
132
|
+
</criteria-paged>
|
|
133
|
+
</div>
|
|
134
|
+
</template>
|
|
135
|
+
|
|
136
|
+
<script>
|
|
137
|
+
|
|
138
|
+
import Vue from 'vue'
|
|
139
|
+
import LocalPagedList from "../../../components/android/LocalPagedList";
|
|
140
|
+
|
|
141
|
+
export default {
|
|
142
|
+
title: '安检计划列表',
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
f_orgid: Vue.user.orgid,
|
|
146
|
+
model:new LocalPagedList( `androidCheckPlanList`,20, {condition:'this.condition'}),
|
|
147
|
+
criteriaShow: false
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
ready(){
|
|
151
|
+
},
|
|
152
|
+
methods: {
|
|
153
|
+
search(args) {
|
|
154
|
+
// args.condition += ` and tu.f_orgid in ${Vue.user.orgid}`
|
|
155
|
+
this.model.search(args.condition, args.model)
|
|
156
|
+
},
|
|
157
|
+
selfSearch () {
|
|
158
|
+
let condition = "1=1 "
|
|
159
|
+
if(this.$refs.paged.$refs.cri.model.f_plan_name){
|
|
160
|
+
if(this.$refs.paged.$refs.cri.model.f_plan_name.toString().trim()){
|
|
161
|
+
condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name+"%'"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
console.log('condition ===> '+ condition)
|
|
165
|
+
this.model.search(condition)
|
|
166
|
+
},
|
|
167
|
+
toPlanItem(planName) {
|
|
168
|
+
this.$dispatch('gotoson', {
|
|
169
|
+
_this: this,
|
|
170
|
+
title: '计划列表',
|
|
171
|
+
safe: false
|
|
172
|
+
})
|
|
173
|
+
this.$goto('check-plan-list-area', {planName},'self')
|
|
174
|
+
},
|
|
175
|
+
getNewOrder(){
|
|
176
|
+
HostApp.__this__ = this
|
|
177
|
+
HostApp.logicWithHint({
|
|
178
|
+
// logic别名,key必须为logic
|
|
179
|
+
'logic': 'SafeCheckServiceTimeOut',
|
|
180
|
+
// 回调执行方法名,key必须为callback
|
|
181
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
|
182
|
+
// logic执行需要的业务参数
|
|
183
|
+
'data': {params: ''},
|
|
184
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
|
185
|
+
// 执行回调方法传入key为backresult
|
|
186
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
|
187
|
+
'backresult': 1
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
getNewOrderCallBack() {
|
|
191
|
+
this.selfSearch()
|
|
192
|
+
},
|
|
193
|
+
hidden() {
|
|
194
|
+
this.criteriaShow = !this.criteriaShow
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
</script>
|