safecheck-client 3.0.30-3 → 3.0.30-34
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/examples/SafePlan-liaoyuan/App.vue +3 -1
- package/package.json +4 -3
- package/src/components/android/AddPlanItem.vue +5 -2
- package/src/components/android/CurrentCreate.vue +3 -1
- package/src/components/android/UploadPage.vue +228 -338
- package/src/components/paper/PlanChooser.vue +2 -2
- package/src/components/pc/Edit.vue +50 -0
- package/src/components/pc/NewCheckpaper.vue +9 -5
- package/src/components/pc/PaperEdit.vue +148 -0
- package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
- package/src/components/querycheckpaper/CheckSearchUser.vue +10 -1
- package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -0
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -0
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -0
- package/src/filiale/hanzhong/android.js +5 -1
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2418
- package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
- package/src/filiale/jingyang/pc/PaperList.vue +1 -2
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
- package/src/filiale/kelai/android.js +1 -0
- package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
- package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +9 -3
- package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -0
- package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +600 -598
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
- package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
- package/src/filiale/yangchunboneng/pc/PaperList.vue +2 -2
- package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +230 -0
- package/src/filiale/yongzhou/pc/communityDetail.vue +16 -4
- package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +8 -6
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +8 -6
- package/src/filiale/yongzhou/pc/safeDetail.vue +18 -6
- package/src/filiale/yongzhou/pc/safeStatistics.vue +10 -0
- package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +26 -6
- package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +20 -3
- package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +10 -0
- package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
- package/src/filiale/yongzhou/pc.js +1 -0
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
- package/src/safecheck.js +6 -0
@@ -1,338 +1,228 @@
|
|
1
|
-
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<p class="panel-title col-xs-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
<p class="panel-title col-xs-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
if(this.
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
}
|
165
|
-
|
166
|
-
this.
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
//tag)
|
230
|
-
//tag)
|
231
|
-
if(jo.state == 'ok'){
|
232
|
-
let ret = JSON.parse(jo.result)
|
233
|
-
//tag)
|
234
|
-
if(ret.state == 0){
|
235
|
-
HostApp.alert(`${ret.successcount}条安检单上传成功,${ret.invalidcount}条安检单已作废,${ret.nocheckcount}条安检单由于网络异常上传失败!,${ret.nocheckcount}条安检单由于pc端计划被调整上传失败!,${ret.imgcount}条安检单由于图片上传失败!`)
|
236
|
-
this.refresh()
|
237
|
-
return true
|
238
|
-
}
|
239
|
-
}
|
240
|
-
|
241
|
-
},
|
242
|
-
// 查询所有未上传斌保存在手机上的数据
|
243
|
-
// download() {
|
244
|
-
// //tag
|
245
|
-
// let res = this.$androidUtil.bzLogic('getCheckPlanInfo',{condition:this.condition})
|
246
|
-
// //tag
|
247
|
-
// //tag
|
248
|
-
//
|
249
|
-
// if (res.data && res.data.code === 200) {
|
250
|
-
// //tag
|
251
|
-
// if (res.data.data.length > 0) {
|
252
|
-
// this.context = `有${res.data.data.length}条数据未上传,请点击上传按钮,自动上传`
|
253
|
-
// this.resultdata = [...res.data.data]
|
254
|
-
// } else {
|
255
|
-
// // this.resultdata = []
|
256
|
-
// this.context = '没有未上传数据'
|
257
|
-
// }
|
258
|
-
// }
|
259
|
-
// },
|
260
|
-
refresh() {
|
261
|
-
//tag
|
262
|
-
// hard code relationship
|
263
|
-
//安卓
|
264
|
-
let value = this.$androidUtil.path({alias: 'getCheckPlan', data:{}})
|
265
|
-
if(value.data.length > 0){
|
266
|
-
this.model = value.data
|
267
|
-
}else{
|
268
|
-
this.model = []
|
269
|
-
}
|
270
|
-
// //PC模拟安卓
|
271
|
-
// this.$androidUtil.path({alias: 'getCheckPlan', data:{}}).then((value)=>{
|
272
|
-
// //tag
|
273
|
-
// if(value.data.length > 0){
|
274
|
-
// this.model = value.data
|
275
|
-
// }
|
276
|
-
// })
|
277
|
-
|
278
|
-
},
|
279
|
-
},
|
280
|
-
|
281
|
-
ready () {
|
282
|
-
//组件初始化时获取本地未上传用户信息
|
283
|
-
// this.download()
|
284
|
-
this.refresh()
|
285
|
-
}
|
286
|
-
}
|
287
|
-
</script>
|
288
|
-
<style>
|
289
|
-
.bg {
|
290
|
-
background-color: blue;
|
291
|
-
height: 1px;
|
292
|
-
border: 0;
|
293
|
-
}
|
294
|
-
.app-row {
|
295
|
-
background-color: white;
|
296
|
-
padding: 10px 10px 0 10px;
|
297
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
298
|
-
}
|
299
|
-
.search_input {
|
300
|
-
border: 0;
|
301
|
-
outline: none;
|
302
|
-
}
|
303
|
-
.font{
|
304
|
-
font: 15px PingFang-SC-Medium;
|
305
|
-
color: #666666;
|
306
|
-
}
|
307
|
-
.input-font{
|
308
|
-
font: 15px PingFang-SC-Medium;
|
309
|
-
color: #333333;
|
310
|
-
}
|
311
|
-
.btn-font{
|
312
|
-
font:600 16px PingFang-SC-Bold;
|
313
|
-
color: #499EDF;
|
314
|
-
}
|
315
|
-
.btn-color{
|
316
|
-
background-color: #FFFFFF;
|
317
|
-
border-radius: 10px ;
|
318
|
-
border: 1px solid #499EDF;
|
319
|
-
}
|
320
|
-
.app-text {
|
321
|
-
font-size: 12px;
|
322
|
-
}
|
323
|
-
.panel-self{
|
324
|
-
border-radius: 10px;
|
325
|
-
border:1px solid #499EDF;
|
326
|
-
background-color: #F8F8F8;
|
327
|
-
}
|
328
|
-
.yybtn-color{
|
329
|
-
border-radius: 4px ;
|
330
|
-
border: 1px solid #499EDF;
|
331
|
-
}
|
332
|
-
.qxbtn-color{
|
333
|
-
background-color: #FFFFFF;
|
334
|
-
border-radius: 4px ;
|
335
|
-
border: 1px solid #499EDF;
|
336
|
-
}
|
337
|
-
|
338
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="auto">
|
3
|
+
<div class="row text-center" style="margin-top: 20px;">
|
4
|
+
<button class="btn btn-primary" style="width: 15%; border-radius: 5px ;" @click= "upload()">上传</button>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div v-for="row in model" v-if="model.length > 0">
|
8
|
+
<div @click="inspect(row)" class="auto app-text" style="margin-top: 5px;">
|
9
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
10
|
+
<div class="panel-body panel-self">
|
11
|
+
<div class="col-xs-6">
|
12
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户编号:</b></p>
|
13
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_userinfo_code }}</p>
|
14
|
+
</div>
|
15
|
+
<div class="col-xs-6">
|
16
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户名称:</b></p>
|
17
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_name }}</p>
|
18
|
+
</div>
|
19
|
+
<div class="col-xs-6">
|
20
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
21
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
22
|
+
</p>
|
23
|
+
</div>
|
24
|
+
<div class="col-xs-12">
|
25
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
26
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}
|
27
|
+
<img src="../../assets/phone.png" style="width: 6%" v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone)'></img>
|
28
|
+
</p>
|
29
|
+
</div>
|
30
|
+
<div class="col-xs-12">
|
31
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户地址:</b></p>
|
32
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_address }}</p>
|
33
|
+
</div>
|
34
|
+
<div class="col-xs-6">
|
35
|
+
<p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
|
36
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_state }}</p>
|
37
|
+
</div>
|
38
|
+
<div class="col-xs-6">
|
39
|
+
<p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
|
40
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
|
41
|
+
</div>
|
42
|
+
<div class="row">
|
43
|
+
<p class="panel-title col-xs-4 text-left font">有无安检计划</p>
|
44
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ row.f_no_checkplan }}</p>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<div v-if="model.length == 0">
|
51
|
+
暂无数据
|
52
|
+
</div>
|
53
|
+
<work-busy :is-busy="isSend"></work-busy>
|
54
|
+
</div>
|
55
|
+
</template>
|
56
|
+
|
57
|
+
<script>
|
58
|
+
import $ from "jquery";
|
59
|
+
|
60
|
+
export default {
|
61
|
+
title:'抄表用户信息',
|
62
|
+
data () {
|
63
|
+
return {
|
64
|
+
model:[],
|
65
|
+
isSend:false,
|
66
|
+
context: '',
|
67
|
+
enableButton:false,
|
68
|
+
// 测试用数组
|
69
|
+
result: [{"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_checker_id":"18518","row":{"f_devices":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]},{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"device0":[{"f_device_type":"热水器","f_items":[{"f_item_value":"正常","f_is_defect":"","f_item_name":"热水器烟道","f_path":"","id":"0dac97b7715c4177a656b00d1995da24","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"","f_is_defect":"","f_item_name":"热水器品牌","f_path":"","id":"b00231992fac40aa9a8e7d33b9eefbb7","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"string"},{"f_item_value":"卫生间","f_is_defect":"","f_item_name":"安装位置","f_path":"","id":"f5c5ea59791a4bb5b76a58272e776b56","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""},{"f_item_value":"正常","f_is_defect":"","f_item_name":"工作状态","f_path":"","id":"fabaf277bb9c4858948db63b7c55a365","f_defect_level":null,"f_device_id":"20e6dea47ed84ecb88070b3f4c3777b7","type":"selector","selected":""}]}],"device1":[],"device2":[],"device3":[],"device4":[],"device5":[{"f_device_type":"燃气表","f_items":[{"f_item_value":null,"f_is_defect":"","f_item_name":"表号","f_path":"","id":"56cb352415de406783c304ca25ed9be7","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":null,"f_is_defect":"","f_item_name":"表封号","f_path":"","id":"6bc8d49e473b43cb92a8bfc15c5a57bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"0","f_is_defect":"","f_item_name":"累计购气量","f_path":"","id":"a213f5f4092c4d5a96f0d856a13fd0af","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"number"},{"f_item_value":"安然中海油","f_is_defect":"","f_item_name":"表品牌","f_path":"","id":"acc505d987304d689a9801b199527cf8","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"string"},{"f_item_value":"G2.5","f_is_defect":"","f_item_name":"表型号","f_path":"","id":"ceb6c96ca39e4fcf89b26bfc6fa42a45","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""},{"f_item_value":"厨房","f_is_defect":"","f_item_name":"位置","f_path":"","id":"dffeb7d1d4dc4a989a5d333f092416bf","f_defect_level":null,"f_device_id":"3c90473662d54fc689d5da673f45a6bb","type":"selector","selected":""}]}],"f_approved_time":null,"f_street":null,"f_client_evaluation":null,"f_defect_urgency":null,"f_repair_approved_time":null,"f_notified_path":null,"f_longitude":null,"f_cutoff_gas":null,"f_approved_by":null,"f_check_item_id":"441e7ecc05bd418494011c1524437a70","f_card_id":null,"f_pic3_path":null,"f_recording1_path":null,"f_remark":null,"f_building":"2号楼","f_room_style":"多层","f_client_suggestion":null,"f_close_valve_path":null,"f_state":"未检","f_defect_registered":null,"f_repaired_uploaded":null,"id":"15eb6a232bd4495485b2a6352a83045d","f_heating_style_":null,"f_heating_style":"热力公司集中供暖","f_complete":null,"f_recording2_path":null,"f_overall_path":null,"f_defect_expand":null,"f_zero_meter":null,"f_defect_notified":null,"f_recording3_path":null,"f_pic1_path":null,"f_SafeToRepair_id":null,"f_residential_area":null,"f_overall2_path":null,"f_cutoff_gas_path":null,"f_usegas":null,"f_stop_service":null,"f_user_phone":"","f_nongasuser_path":"file:///android_asset/nopic.png","f_approved":"未审核","f_unit":"2单元","f_signname":null,"f_sign_imgid":null,"f_no_gas_device":false,"f_check_plan_id":"7b892a031f2f40e99e944e8969d7329c","f_checker_id":"18518","f_prearranged_date":null,"f_noncivil_style":null,"f_check_type":"民用","f_defect_dorm":null,"f_defect_other":null,"f_amr_path":null,"f_orgstr":"1531.1535.18506.18518.","f_close_valve":false,"f_repaired":null,"f_repair_date":null,"f_approved_note":null,"f_orgid":"1531.1535.","f_empty_pipe":null,"f_floor":"1层","f_entry_status":"入户","f_close_adjuster":null,"f_repair_approved_note":null,"f_onsite_time":"2019-04-13 15:18:29","f_repair_approved":"未审核","f_stop_devices":null,"f_ratification_des":null,"f_no_checkplan":"有计划安检","f_repair_approved_by":null,"f_room":"20101号","f_address":"77高新区-怕踢街道-zqxiaoqu2号楼号楼2单元单元1层层20101号室","f_sign_path":null,"f_userinfoid":"548","f_offsite_time":"2019-04-13 15:18:34","f_defect_notfixed":null,"f_subcompany":"中海油.海南分公司","f_notfixed_path":null,"f_close_adjuster_path":null,"f_pic2_path":null,"f_noanswer_path":"file:///android_asset/nopic.png","f_unload_battery":false,"f_latitude":null,"f_usage":null,"f_repairman":null,"f_plan_id":null,"f_user_name":"111","f_checker_name":"测试1","style__":"","style_view_":"","f_entry_class":"success"}}
|
70
|
+
]
|
71
|
+
// 获取用户信息数组
|
72
|
+
}
|
73
|
+
},
|
74
|
+
methods: {
|
75
|
+
inspect(row){
|
76
|
+
if(this.enableButton){
|
77
|
+
return
|
78
|
+
}
|
79
|
+
this.enableButton=true
|
80
|
+
if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检')) {
|
81
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
|
82
|
+
row['f_plan_meters'] = response.data
|
83
|
+
let pardate = {
|
84
|
+
_this:this,
|
85
|
+
tittle:'安检已办',
|
86
|
+
safe:false
|
87
|
+
}
|
88
|
+
this.$dispatch('gotoson',pardate)
|
89
|
+
this.enableButton=false
|
90
|
+
this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',buttonState:false}, 'self', this.refresh)
|
91
|
+
}).catch((msg)=>{
|
92
|
+
this.enableButton=false
|
93
|
+
let criteria = {
|
94
|
+
items: '*',
|
95
|
+
tablename: 't_plan_item_meter',
|
96
|
+
condition: `f_plan_item_id = '${row.id}'`,
|
97
|
+
groupitem: 'f_plan_item_id'
|
98
|
+
}
|
99
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
100
|
+
if(result.code == 200){
|
101
|
+
row['f_plan_meters'] = result.data.rows
|
102
|
+
let pardate = {
|
103
|
+
_this:this,
|
104
|
+
tittle:'安检已办',
|
105
|
+
safe:false
|
106
|
+
}
|
107
|
+
this.$dispatch('gotoson',pardate)
|
108
|
+
this.enableButton=false
|
109
|
+
this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',buttonState:false}, 'self', this.refresh)
|
110
|
+
}
|
111
|
+
})
|
112
|
+
}else{
|
113
|
+
this.$showMessage("该安检单已被上传!")
|
114
|
+
this.enableButton=false
|
115
|
+
}
|
116
|
+
},
|
117
|
+
async uploadAll() {
|
118
|
+
if(this.model.length>0){
|
119
|
+
let param = {
|
120
|
+
rows:this.model
|
121
|
+
}
|
122
|
+
let paramStr = JSON.stringify(param)
|
123
|
+
let subLength = 800
|
124
|
+
for (let i = 0; i < paramStr.length; i += subLength) {
|
125
|
+
HostApp.param_cache(paramStr.substr(i, subLength))
|
126
|
+
}
|
127
|
+
HostApp.__this__ = this
|
128
|
+
HostApp.syncLogic({
|
129
|
+
'logic': 'UploadAll',
|
130
|
+
'callback': 'javascript:HostApp.__this__.uploadCallBack()',
|
131
|
+
'backresult': 1
|
132
|
+
})
|
133
|
+
}else{
|
134
|
+
this.$showMessage('暂无可上传数据')
|
135
|
+
this.isSend = false
|
136
|
+
return false
|
137
|
+
}
|
138
|
+
},
|
139
|
+
upload(){
|
140
|
+
this.saveNoclick()
|
141
|
+
this.isSend = true
|
142
|
+
this.uploadAll().then((res)=>{
|
143
|
+
this.refresh()
|
144
|
+
})
|
145
|
+
},
|
146
|
+
saveNoclick() {
|
147
|
+
$("#savebut").addClass("noclickbut");
|
148
|
+
setTimeout(function(){
|
149
|
+
$("#savebut").removeClass("noclickbut");
|
150
|
+
},5000);
|
151
|
+
},
|
152
|
+
uploadCallBack(jo){
|
153
|
+
this.isSend = false
|
154
|
+
if(jo.state == 'ok'){
|
155
|
+
let ret = JSON.parse(jo.result)
|
156
|
+
if(ret.state == 0){
|
157
|
+
HostApp.alert(`${ret.successcount}条安检单上传成功,${ret.invalidcount}条安检单已作废,${ret.nocheckcount}条安检单由于网络异常上传失败!,${ret.nocheckcount}条安检单由于pc端计划被调整上传失败!,${ret.imgcount}条安检单由于图片上传失败!`)
|
158
|
+
this.refresh()
|
159
|
+
return true
|
160
|
+
}
|
161
|
+
}
|
162
|
+
},
|
163
|
+
refresh() {
|
164
|
+
let value = this.$androidUtil.path({alias: 'getCheckPlan', data:{}})
|
165
|
+
if(value.data.length > 0){
|
166
|
+
this.model = value.data
|
167
|
+
}else{
|
168
|
+
this.model = []
|
169
|
+
}
|
170
|
+
},
|
171
|
+
},
|
172
|
+
|
173
|
+
ready () {
|
174
|
+
this.refresh()
|
175
|
+
}
|
176
|
+
}
|
177
|
+
</script>
|
178
|
+
<style>
|
179
|
+
.bg {
|
180
|
+
background-color: blue;
|
181
|
+
height: 1px;
|
182
|
+
border: 0;
|
183
|
+
}
|
184
|
+
.app-row {
|
185
|
+
background-color: white;
|
186
|
+
padding: 10px 10px 0 10px;
|
187
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
188
|
+
}
|
189
|
+
.search_input {
|
190
|
+
border: 0;
|
191
|
+
outline: none;
|
192
|
+
}
|
193
|
+
.font{
|
194
|
+
font: 15px PingFang-SC-Medium;
|
195
|
+
color: #666666;
|
196
|
+
}
|
197
|
+
.input-font{
|
198
|
+
font: 15px PingFang-SC-Medium;
|
199
|
+
color: #333333;
|
200
|
+
}
|
201
|
+
.btn-font{
|
202
|
+
font:600 16px PingFang-SC-Bold;
|
203
|
+
color: #499EDF;
|
204
|
+
}
|
205
|
+
.btn-color{
|
206
|
+
background-color: #FFFFFF;
|
207
|
+
border-radius: 10px ;
|
208
|
+
border: 1px solid #499EDF;
|
209
|
+
}
|
210
|
+
.app-text {
|
211
|
+
font-size: 12px;
|
212
|
+
}
|
213
|
+
.panel-self{
|
214
|
+
border-radius: 10px;
|
215
|
+
border:1px solid #499EDF;
|
216
|
+
background-color: #F8F8F8;
|
217
|
+
}
|
218
|
+
.yybtn-color{
|
219
|
+
border-radius: 4px ;
|
220
|
+
border: 1px solid #499EDF;
|
221
|
+
}
|
222
|
+
.qxbtn-color{
|
223
|
+
background-color: #FFFFFF;
|
224
|
+
border-radius: 4px ;
|
225
|
+
border: 1px solid #499EDF;
|
226
|
+
}
|
227
|
+
|
228
|
+
</style>
|