safecheck-client 3.0.34-73 → 3.0.34-74

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1251 @@
1
+ <style scoped id="printStyle">
2
+ .img {
3
+ border: 1px solid #9773ed;
4
+ width: auto;
5
+ height: auto;
6
+ float: left;
7
+ text-align: center;
8
+ margin: 6px;
9
+ }
10
+
11
+ img {
12
+ margin: 6px;
13
+ }
14
+
15
+
16
+ .container {
17
+ margin: 10px auto;
18
+ width: 80%;
19
+ height: auto;
20
+ }
21
+
22
+ div::-webkit-scrollbar {
23
+ width: 0 !important;
24
+ height: 0 !important;
25
+ }
26
+
27
+ div {
28
+ -ms-overflow-style: none;
29
+ overflow: -moz-scrollbars-none;
30
+ }
31
+
32
+ .divmask {
33
+ pointer-events: none;
34
+ }
35
+
36
+ .app-header {
37
+ border-radius: 50%;
38
+ background: rgba(73, 158, 223, 0.4);
39
+ color: #FFF;
40
+ padding: 20px;
41
+ text-align: center;
42
+ font-size: 1.2em;
43
+ z-index: 10;
44
+ opacity: 0.5;
45
+ bottom: 50px;
46
+ margin-top: -20px;
47
+ position: absolute;
48
+ top: 10%;
49
+ right: 2%;
50
+ height: 8%;
51
+ }
52
+ </style>
53
+
54
+ <template>
55
+ <div class="basic-main" style="height: 100%">
56
+ <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
+ <div @click="back()">
58
+ <img src="../../../assets/back.png" style="margin: 0px" />
59
+ </div>
60
+ </div>
61
+ <work-busy :is-busy="loading"></work-busy>
62
+ <div class="container-fluid" style="overflow: scroll">
63
+ <div class="row">
64
+ <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
65
+ <div style="width: 100%;margin: auto">
66
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
67
+ v-show="paperdata.f_entry_status == '入户'">
68
+ <thead>
69
+ <tr>
70
+ <th colspan="4" style="text-align: center">用户安检概况</th>
71
+ </tr>
72
+ </thead>
73
+ <tbody>
74
+ <tr>
75
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
76
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
77
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
78
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}
79
+ </td>
80
+ </tr>
81
+ <tr>
82
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
83
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}
84
+ </td>
85
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
86
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
87
+ </tr>
88
+ <tr>
89
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
90
+ <td colspan="3"
91
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
92
+ {{ paperdata.f_repair_approved_note }}
93
+ </td>
94
+ </tr>
95
+ </tbody>
96
+ </table>
97
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
98
+ v-show="paperdata.f_entry_status == '入户'">
99
+ <thead>
100
+ <tr>
101
+ <th style="text-align: center">总体安检照片</th>
102
+ </tr>
103
+ </thead>
104
+ <tbody>
105
+ <tr>
106
+ <td style="margin: auto;text-align: center">
107
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
108
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
109
+ <img-self-android :list="paperdata.f_overall_imgs" :src="img.f_overall_path"
110
+ style="float: left" width="150" height="200"></img-self-android>
111
+ </div>
112
+ </div>
113
+
114
+
115
+ </td>
116
+
117
+ </tr>
118
+ </tbody>
119
+ </table>
120
+ <table class="table table-striped table-bordered" style="width: 100%"
121
+ v-show="paperdata.f_entry_status == '入户' && (paperdata.f_sign_path || f_user_path)">
122
+ <thead>
123
+ <tr>
124
+ <th style="text-align: center">用户签名照片</th>
125
+ </tr>
126
+ </thead>
127
+ <tbody>
128
+ <tr>
129
+ <td style="margin: auto;text-align: center" v-if="paperdata.f_sign_path">
130
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
131
+ <div class="img" style="float: none">
132
+ <img-self-android :src="`rs/image/file/` + paperdata.f_sign_path" width="200"
133
+ height="200"></img-self-android>
134
+ </div>
135
+ </div>
136
+ </td>
137
+ <td style="margin: auto;text-align: center" v-if="f_user_path">
138
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
139
+ <div class="img" style="float: none">
140
+ <img-self-android :src="`rs/image/file/` + f_user_path" width="200"
141
+ height="200"></img-self-android>
142
+ </div>
143
+ </div>
144
+ </td>
145
+ </tr>
146
+ </tbody>
147
+ </table>
148
+ <table class="table table-striped table-bordered"
149
+ v-show="paperdata.f_entry_status == '入户' && paperdata.f_defect_notified">
150
+ <thead>
151
+ <tr>
152
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
153
+ </tr>
154
+ </thead>
155
+ <tbody>
156
+ <tr>
157
+ <td style="margin: auto;text-align: center">
158
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
159
+ <div class="img" style="float: none">
160
+ <img-self-android :src="`rs/image/file/` + paperdata.f_notified_path" width="486"
161
+ height="300"></img-self-android>
162
+ </div>
163
+ </div>
164
+ </td>
165
+ </tr>
166
+ </tbody>
167
+ </table>
168
+ <table class="table table-striped table-bordered"
169
+ v-show="paperdata.f_entry_status == '入户' && paperdata.f_video_path">
170
+ <thead>
171
+ <tr>
172
+ <th style="text-align: center">安检视频</th>
173
+ </tr>
174
+ </thead>
175
+ <tbody>
176
+ <tr>
177
+ <td style="margin: auto;text-align: center">
178
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
179
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
180
+ <source :src="paperdata.f_video_path" type="video/mp4">
181
+ </video>
182
+ </div>
183
+ </td>
184
+ </tr>
185
+ </tbody>
186
+ </table>
187
+ </div>
188
+ </div>
189
+ <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
190
+ <div class="col-md-6" style="height: 100%;overflow: scroll">
191
+ <div style="width: 95%;margin-left: 5%">
192
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2" style="margin-top: 35px">
193
+ <thead>
194
+ <tr>
195
+ <th style="text-align: center">{{ config.f_device_type }}</th>
196
+ </tr>
197
+ </thead>
198
+ <tr v-for="dev in config.f_items">
199
+ <td>
200
+ <div class="row">
201
+ <div class="col-md-8" style="text-align: center;">
202
+ <label>
203
+ <button-link type="button" class="btn btn-link" :style="'color:black'">
204
+ {{ dev.f_item_name }}
205
+ </button-link>
206
+ </label>
207
+ </div>
208
+ <div class="col-md-4" style="text-align: center">
209
+ <label style="font-weight: normal" v-if="dev.type != 'picture'">{{
210
+ dev.f_item_lists[0].f_item_value
211
+ }}</label>
212
+ <label style="font-weight: normal" v-if="dev.type == 'picture'">
213
+ <div v-if="dev.f_path">
214
+ <button-link style="color: black" type="button" class="btn btn-link"
215
+ @click="showpath(`rs/image/file/` + dev.f_path)">查看照片
216
+ </button-link>
217
+ </div>
218
+ <div v-else>无照片</div>
219
+ </label>
220
+ </div>
221
+ </div>
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
231
+ <header slot="modal-header" class="modal-header">
232
+ {{ picturename }}
233
+ </header>
234
+ <article slot="modal-body" class="modal-body">
235
+ <div class="from-group">
236
+ <div class="row">
237
+ <div class="col-md-6">
238
+ <img-self-android v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-android>
239
+ </div>
240
+ <div class="col-md-6">
241
+ <img-self-android v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-android>
242
+ </div>
243
+ <div class="col-md-6" v-for="item in otherDarginShowImgs">
244
+ <img-self-android v-if="item.path" :src="item.path" width="240" height="300"></img-self-android>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </article>
249
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
250
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
251
+ </footer>
252
+ </modal>
253
+ <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
254
+ <header slot="modal-header" class="modal-header">
255
+ {{ paperdata.f_entry_status }}照片
256
+ </header>
257
+ <article slot="modal-body" class="modal-body">
258
+ <div class="from-group">
259
+ <div class="row">
260
+ <div class="col-md-6">
261
+ <img-self-android v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer_path"
262
+ :src="showimg3" width="282" height="400"></img-self-android>
263
+ </div>
264
+ <div class="col-md-6">
265
+ <img-self-android v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer1_path"
266
+ :src="showimg5" width="282" height="400"></img-self-android>
267
+ </div>
268
+ <div class="col-md-6">
269
+ <img-self-android v-if="this.paperdata.f_entry_status == '到访不遇' && this.paperdata.f_noanswer2_path"
270
+ :src="showimg6" width="282" height="400"></img-self-android>
271
+ </div>
272
+ <div class="col-md-6">
273
+ <img-self-android v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck_path"
274
+ :src="showimg4" width="282" height="400"></img-self-android>
275
+ </div>
276
+ <div class="col-md-6">
277
+ <img-self-android v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck1_path"
278
+ :src="showimg7" width="282" height="400"></img-self-android>
279
+ </div>
280
+ <div class="col-md-6">
281
+ <img-self-android v-if="this.paperdata.f_entry_status == '拒检' && this.paperdata.f_rejectcheck2_path"
282
+ :src="showimg8" width="282" height="400"></img-self-android>
283
+ </div>
284
+ </div>
285
+ </div>
286
+ </article>
287
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
288
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
289
+ </footer>
290
+ </modal>
291
+ <!-- <modal :show.sync="showModel" :width="'50%'" :backdrop="false">-->
292
+ <!-- <div slot="modal-header" class="modal-header">-->
293
+ <!-- <h4 class="modal-title">-->
294
+ <!-- 安检审核备注-->
295
+ <!-- </h4>-->
296
+ <!-- </div>-->
297
+ <!-- <div slot="modal-body" class="modal-body">-->
298
+ <!-- <div class="row">-->
299
+ <!-- <div class="form-group col-sm-4">-->
300
+ <!-- <label class="font_normal_body">审核备注:</label>-->
301
+ <!-- <textarea v-model="message"></textarea>-->
302
+ <!-- </div>-->
303
+ <!-- </div>-->
304
+ <!-- </div>-->
305
+ <!-- <div slot="modal-footer" class="modal-footer" style="text-align: center">-->
306
+ <!-- <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>-->
307
+ <!-- <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>-->
308
+ <!-- </div>-->
309
+ <!-- </modal>-->
310
+ </template>
311
+
312
+ <script>
313
+ import Vue from 'vue'
314
+ import * as Util from '../../Util'
315
+
316
+ // let asyncReady = async function (self) {
317
+ // // 获取配置信息
318
+ // try {
319
+ // let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
320
+ // data: {
321
+ // items: 'f_dir',
322
+ // tablename: 't_organization',
323
+ // condition: `id = '${self.item.f_filialeid}'`,
324
+ // orderitem: 'id'
325
+ // }
326
+ // })/*.then(res=>{*/
327
+ // //tag
328
+ // //tag)
329
+ // console.log(res)
330
+ // if (!res.data[0].f_dir) {
331
+ // self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
332
+ // } else {
333
+ // //this.f_dir=res.data[0].f_dir
334
+ // let url = self.newConfig == '是' ? '/safecheck/rs/safe_vue' : '/safecheck/rs/vue'
335
+ // try {
336
+ // let res1 = await new HttpResetClass().load('GET', `${url}/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
337
+ // resolveMsg: '获取居民配置项成功!',
338
+ // rejectMsg: '获取居民配置项出错!'
339
+ // })/*.then(res=>{*/
340
+ // //tag
341
+ // //this.safeConfig["民用配置项"]=Object.assign({},res.data)
342
+ // if (!Vue.config.safecheck) {
343
+ // Vue.config = {safecheck: {}}
344
+ // }
345
+ // Vue.config.safecheck.DevicesConfig = res1.data
346
+ // console.log(Vue.config.safecheck.DevicesConfig)
347
+ // /*})*/
348
+ // let res2 = await new HttpResetClass().load('GET', `${url}/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
349
+ // resolveMsg: '获取非居民配置项成功!',
350
+ // rejectMsg: '获取非居民配置项出错!'
351
+ // })/*.then(res=>{*/
352
+ // //tag
353
+ // //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
354
+ // Vue.config.safecheck.DevicesSetConfig = {}
355
+ // } catch (e) {
356
+ // self.$showMessage("获取配置文件失败" + e)
357
+ // self.loading = false
358
+ // }
359
+ // }
360
+ // if (self.data.f_recheck_id) {
361
+ // let res3 = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
362
+ // data: {
363
+ // items: '*',
364
+ // tablename: 't_check_paper',
365
+ // condition: `id = '${self.data.f_recheck_id}'`,
366
+ // orderitem: 'id'
367
+ // }
368
+ // })
369
+ // self.lastCheckData = res3.data[0]
370
+ // }
371
+ // } catch (error) {
372
+ // // 忽略704,文件找不到异常R
373
+ // if (error.status !== 704) {
374
+ // throw error
375
+ // }
376
+ // this.loading = false
377
+ // }
378
+ // }
379
+ export default {
380
+ title: '安检单',
381
+ props: ['f_plan_id', 'item', 'role'],
382
+ data() {
383
+ return {
384
+ f_user_path: '',
385
+ message: '',
386
+ showButton: false,
387
+ showModel: false,
388
+ data: {
389
+ f_devices: [],
390
+ f_defect_content: ''
391
+ },
392
+ showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
393
+ lastCheckData: {},
394
+ paperdata: {},
395
+ picturename: '隐患照片',
396
+ defectDevice: {},
397
+ hasDevice: false,
398
+ deviceCollect: {},
399
+ deviceCollects: [],
400
+ isshow: true,
401
+ ajresult: '',
402
+ loading: true,
403
+ imgshow: false,
404
+ imgshow2: false,
405
+ isUpload: false,
406
+ livedispose: '',
407
+ showimg1: '',
408
+ showimg2: '',
409
+ showimg3: '',
410
+ showimg4: '',
411
+ showimg5: '',
412
+ showimg6: '',
413
+ showimg7: '',
414
+ showimg8: '',
415
+ hiddenDangerImgNumber: 0, //配置项中隐患照片数
416
+ otherDarginShowImgs: [],//其他隐患图片
417
+ startClick: false, //开始安检按钮是否可点击
418
+ isStrat: false, //是否开始安检
419
+ checkResult: {},//查询结果
420
+ newcheckResult: {},
421
+ timer: null,
422
+ showModal: false,
423
+ pic_to_be_viewed: '',
424
+ showBack: true,
425
+ devices: [],
426
+ devicesAll: [],
427
+ configAJ: [],
428
+ configRQ: [],
429
+ deviceconfig: {},
430
+ newConfig: '',
431
+ deviceconfig2: [],
432
+ f_devices: [],
433
+ config: {
434
+ "燃气表": {
435
+ "checkmust": true,
436
+ "index": 1,
437
+ "items": {
438
+ "基表编号": { "index": 1, "type": "string", "readonly": true },
439
+ "气表型号": { "index": 2, "type": "string", "readonly": true },
440
+ "气表品牌": { "index": 3, "type": "string", "readonly": true },
441
+ "进气方向": { "index": 4, "type": "string", "readonly": true },
442
+ "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
443
+ "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
444
+ "累购气量": { "index": 7, "type": "number", "readonly": true },
445
+ "已用气量": { "index": 8, "type": "number", "checkmust": false },//基表数
446
+ "剩余气量": { "index": 9, "type": "number", "checkmust": false },//累购-已用
447
+ //显示屏数 --实际剩余气量
448
+ "气量异常差值": { "index": 10, "type": "number", "readonly": true },
449
+ "表箱号": { "index": 11, "type": "string", "readonly": true },
450
+ "燃气表照片": { "index": 12, "type": "picture", "checkmust": false },
451
+ }
452
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
453
+ }
454
+ },
455
+ //金额
456
+ config2: {
457
+ "燃气表": {
458
+ "checkmust": true,
459
+ "index": 1,
460
+ "items": {
461
+ "基表编号": { "index": 1, "type": "string", "readonly": true },
462
+ "气表型号": { "index": 2, "type": "string", "readonly": true },
463
+ "气表品牌": { "index": 3, "type": "string", "readonly": true },
464
+ "进气方向": { "index": 4, "type": "string", "readonly": true },
465
+ "初始表底": { "index": 5, "type": "number", "isshow": false, "readonly": true },
466
+ "上期表读数": { "index": 6, "type": "number", "readonly": true, isshow: false },
467
+ "累购金额": { "index": 7, "type": "number", "readonly": true },
468
+ "已用金额": { "index": 8, "type": "number", "checkmust": false },
469
+ //显示屏数 --实际剩余气量
470
+ "剩余金额": { "index": 9, "type": "number", "checkmust": false },
471
+ "金额异常差值": { "index": 10, "type": "number", "readonly": true },
472
+ "表箱号": { "index": 11, "type": "string", "readonly": true },
473
+ "燃气表照片": { "index": 12, "type": "picture", "checkmust": false },
474
+ }
475
+ }
476
+ },
477
+ }
478
+ },
479
+ computed: {
480
+ isRecodrDownloadBtn() {
481
+ // 投诉单下派还是处理
482
+ let res = this.$appdata.getSingleValue('无限制录音');
483
+ if (res == 'true') {
484
+ return true;
485
+ } else {
486
+ return false;
487
+ }
488
+ },
489
+ selector: {
490
+ get() {
491
+ return 'paper-state'
492
+ },
493
+ set(val) {
494
+ if (this.isStrat) {
495
+ this.$goto(val, { userinfo: this.data }, 'paper-router')
496
+ } else {
497
+ this.$showMessage('未开始安检!')
498
+ }
499
+ }
500
+ },
501
+ actionEnabled: {
502
+ get() {
503
+ return this.role == 'inspect'
504
+ }
505
+ }
506
+ },
507
+ methods: {
508
+ // exportToPDF() {
509
+ // const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
510
+ // html2pdf(element)
511
+ // },
512
+
513
+ showAudit() {
514
+ var audit = this.$appdata.getSingleValue('安检审核');
515
+ if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
516
+ this.showButton = true
517
+ }
518
+ },
519
+ //安检审核成功
520
+ // auditSuccesss() {
521
+ // this.loading = true;
522
+ // var reqdata = {
523
+ // audit_result: '通过',
524
+ // operator: "success",
525
+ // audit_time: Util.getNowDate(),
526
+ // user_name: this.$login.f.name,
527
+ // id: this.item.id,
528
+ // f_check_item_id: this.item.f_check_item_id
529
+ // }
530
+ // new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
531
+ // resolveMsg: '安检审核成功!',
532
+ // rejectMsg: '安检审核出错!'
533
+ // }).then((res) => {
534
+ // if (res.data.code == 200) {
535
+ // this.loading = false;
536
+ // this.$back()
537
+ // }
538
+ // })
539
+ // },
540
+ auditFail() {
541
+ this.showModel = true;
542
+ },
543
+ // auditFailOK() {
544
+ //
545
+ // this.loading = true;
546
+ // var reqdata = {
547
+ // message: this.message,
548
+ // audit_result: '不通过',
549
+ // operator: "fail",
550
+ // audit_time: Util.getNowDate(),
551
+ // user_name: this.$login.f.name,
552
+ // id: this.item.id,
553
+ // f_check_item_id: this.item.f_check_item_id
554
+ // }
555
+ // new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
556
+ // resolveMsg: '安检审核成功!',
557
+ // rejectMsg: '安检审核出错!'
558
+ // }).then((res) => {
559
+ // if (res.data.code == 200) {
560
+ // this.loading = false;
561
+ // this.message = '';
562
+ // this.showModel = false;
563
+ // this.$back()
564
+ // }
565
+ // })
566
+ // },
567
+ auditFailCancel() {
568
+ this.showModel = false;
569
+ this.message = '';
570
+ },
571
+
572
+ // devicesCollect() {
573
+ // //tag
574
+ // //tag)
575
+ // //tag)
576
+ // //tag
577
+ // this.deviceCollects = []
578
+ // let checkResult = '正常'
579
+ // this.result = '正常'
580
+ // let codata = JSON.parse(JSON.stringify(this.data))
581
+ // //tag)
582
+ // for (let device in this.data) {
583
+ // let f_device_type
584
+ // if (device.startsWith("device")) {
585
+ // for (let item in this.data[device]) {
586
+ // if (this.data[device].length > 1) {
587
+ // let j = Number.parseInt(item) + 1
588
+ // f_device_type = `${this.data[device][item].f_device_type}${j}`
589
+ // } else {
590
+ // f_device_type = this.data[device][item].f_device_type
591
+ // }
592
+ // // //tag
593
+ // let deviceelse = []
594
+ // let deviceInfos = []
595
+ // for (let i in this.data[device][item].f_items) {
596
+ // let defects = ''
597
+ //
598
+ // let items = this.data[device][item].f_items[i]
599
+ //
600
+ //
601
+ // if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value != null && items.f_item_value instanceof Array) {
602
+ // for (let i in items.f_item_value) {
603
+ // let f_item_value = items.f_item_value[i]
604
+ //
605
+ // //tag)
606
+ // //tag)
607
+ // //tag)
608
+ // //tag)
609
+ //
610
+ // if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
611
+ // continue
612
+ // }
613
+ // /*if(items.f_is_defect != true && items.f_is_defect != 'true'){
614
+ // continue
615
+ // }*/
616
+ // if (items.f_is_defect == 'true' || items.f_is_defect == true) {
617
+ // checkResult = '有隐患'
618
+ // this.result = '有隐患'
619
+ // defects = `${defects}:${items.f_item_value}/`
620
+ // }
621
+ // /*let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
622
+ // for (let option in options) {
623
+ // if (options[option].data == f_item_value) {
624
+ // if (options[option].isdefect == 'true' || options[option].isdefect == true) {
625
+ // checkResult = '有隐患'
626
+ // this.result = '有隐患'
627
+ // defects = `${defects}:${options[option].data}/`
628
+ // // let level = options[option].level
629
+ // }
630
+ // }
631
+ // }*/
632
+ // //tag)
633
+ // }
634
+ // if (defects != '') {
635
+ // console.log('有隐患items', items)
636
+ // deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
637
+ // }
638
+ // } else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
639
+ // checkResult = '有隐患'
640
+ // this.result = '有隐患'
641
+ // deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
642
+ //
643
+ // } else if (items.f_item_name == '金额异常差值') {
644
+ // var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
645
+ // //tag
646
+ // if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
647
+ // if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
648
+ // checkResult = '有隐患'
649
+ // this.result = '有隐患'
650
+ // deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
651
+ // }
652
+ // }
653
+ // } else if (items.f_item_name == '气量异常差值') {
654
+ // var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
655
+ // //tag
656
+ // if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
657
+ // if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
658
+ // checkResult = '有隐患'
659
+ // this.result = '有隐患'
660
+ // deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
661
+ // }
662
+ // }
663
+ // }
664
+ // if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
665
+ // // console.log('this.config[this.data[device][item].f_device_type]', this.config[this.data[device][item].f_device_type])
666
+ // // console.log('this.deviceconfig2', this.deviceconfig2)
667
+ // for (let dev in this.deviceconfig2) {
668
+ // if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
669
+ // this.deviceconfig2[dev].items.push({
670
+ // lname: items.f_item_name
671
+ // })
672
+ // }
673
+ // }
674
+ // }
675
+ // //tag)
676
+ // //tag
677
+ // //tag
678
+ // if (items.type === 'selector') {
679
+ // items.selected = []
680
+ // } else if (items.type === 'inputSelector') {
681
+ // items.selected = ''
682
+ // }
683
+ // }
684
+ //
685
+ //
686
+ // //tag
687
+ // this.$set('deviceCollect.name', f_device_type)
688
+ // this.$set('deviceCollect.value', checkResult)
689
+ // this.$set('deviceCollect.devices', deviceInfos)
690
+ // this.$set('deviceCollect.else', deviceelse)
691
+ // console.log('deviceCollect.devices', this.deviceCollect.devices)
692
+ // console.log('deviceCollect.else', this.deviceCollect.else)
693
+ // //tag)
694
+ // if (this.deviceCollect.name) {
695
+ // //tag
696
+ // this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
697
+ // }
698
+ //
699
+ // checkResult = '正常'
700
+ // this.deviceCollect = {}
701
+ // }
702
+ // }
703
+ // }
704
+ // if (this.deviceCollects.length > 0) {
705
+ // this.hasDevice = true
706
+ // }
707
+ // this.ajresult = JSON.parse(this.data.f_defect_content).result
708
+ // this.showimg3 = this.data.f_noanswer_path
709
+ // this.showimg5 = this.data.f_noanswer1_path
710
+ // this.showimg6 = this.data.f_noanswer2_path
711
+ // this.showimg4 = this.data.f_rejectcheck_path
712
+ // this.showimg7 = this.data.f_rejectcheck1_path
713
+ // this.showimg8 = this.data.f_rejectcheck2_path
714
+ // this.paperdata = this.data
715
+ // this.f_user_path = this.paperdata.f_user_pictures ? JSON.parse(this.paperdata.f_user_pictures)[0].f_user_path : ''
716
+ // this.loading = false
717
+ // },
718
+ imgclose() {
719
+ this.imgshow = false
720
+ },
721
+ putDevices() {
722
+ ////tag
723
+ this.$set('data.approve', "true")
724
+ this.$set('data.writeback', "false")
725
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
726
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
727
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
728
+ }
729
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
730
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
731
+ }
732
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
733
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
734
+ }
735
+ if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
736
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
737
+ this.hiddenDangerImgNumber = 3
738
+ } else {
739
+ this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
740
+ }
741
+ }
742
+ }
743
+ //tag
744
+
745
+ //tag)
746
+ // if (!this.item.f_safecheck_type) {
747
+ // this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
748
+ // } else {
749
+ // if (Vue.config.safecheck.DevicesConfig != undefined)
750
+ // this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
751
+ // }
752
+ //遍历安检项配置
753
+ // for (let i in this.config) {
754
+ // //取得安检项索引值
755
+ // let n = this.config[i].index
756
+ // this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
757
+ // this.$set('data.' + 'device' + n, [])
758
+ // let items = []
759
+ // for (let it in this.config[i].items) {
760
+ // //赋值下拉选项
761
+ // if (this.config[i].items[it].type == 'selector') {
762
+ // for (let op in this.config[i].items[it].options)
763
+ // if (this.config[i].items[it].options[op].isdefault == true) {
764
+ // items.push({
765
+ // f_defect_level: this.config[i].items[it].options[op].level,
766
+ // f_is_defect: this.config[i].items[it].options[op].isdefect,
767
+ // f_item_name: it,
768
+ // f_item_value: this.config[i].items[it].options[op].data,
769
+ // f_path: "",
770
+ // type: "selector"
771
+ // })
772
+ // }
773
+ // }
774
+ // }
775
+ // n = n + 1
776
+ // }
777
+
778
+ },
779
+ showpath(val1, val2) {
780
+ //tag
781
+ //tag
782
+ if (val1) {
783
+ this.showimg1 = val1
784
+ this.picturename = val2
785
+ this.imgshow = true
786
+ }
787
+ },
788
+ showpicture(val1, val2) {
789
+ //tag
790
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
791
+ return
792
+ }
793
+ for (let i = 0; i < this.devicesAll.length; i++) {
794
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
795
+ if (this.devicesAll[i][j].f_device_type == val1) {
796
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
797
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
798
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
799
+ return false
800
+ } else {
801
+ this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
802
+ this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
803
+ this.otherDarginShowImgs = []
804
+ for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
805
+ let img = { path: '' }
806
+ if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
807
+ img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
808
+ this.otherDarginShowImgs.push(img)
809
+ }
810
+ }
811
+ this.picturename = '隐患照片'
812
+ this.imgshow = true
813
+ return true
814
+ }
815
+ }
816
+ }
817
+
818
+ }
819
+ }
820
+ }
821
+ },
822
+ isred(val1, val2) {
823
+ //tag
824
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
825
+ return
826
+ }
827
+ for (let i = 0; i < this.devicesAll.length; i++) {
828
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
829
+ if (this.devicesAll[i][j].f_device_type == val1) {
830
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
831
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
832
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
833
+ return false
834
+ } else {
835
+ return true
836
+ }
837
+ }
838
+ }
839
+
840
+ }
841
+ }
842
+ }
843
+ },
844
+ showpicture2() {
845
+ this.imgshow2 = true
846
+ },
847
+ getDeviceValue(val1, val2) {
848
+ let aa = ''
849
+ for (let i = 0; i < this.devicesAll.length; i++) {
850
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
851
+ if (this.devicesAll[i][j].f_device_type == val1) {
852
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
853
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
854
+ if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
855
+ for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
856
+ let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
857
+ aa += (val === null ? '空' : val) + ' '
858
+ }
859
+ return aa
860
+ }
861
+ }
862
+ }
863
+
864
+ }
865
+ }
866
+ }
867
+
868
+ },
869
+ getDevicePath(val1, val2) {
870
+ for (let i = 0; i < this.devicesAll.length; i++) {
871
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
872
+ if (this.devicesAll[i][j].f_device_type == val1) {
873
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
874
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
875
+ return this.devicesAll[i][j].f_items[k].f_path
876
+ }
877
+ }
878
+
879
+ }
880
+ }
881
+ }
882
+
883
+ },
884
+ // getDeviceAll() {
885
+ // let keyall = Object.keys(this.data)
886
+ // for (let i = 0; i < keyall.length; i++) {
887
+ // //tag)
888
+ // if ((keyall[i].startsWith('f_devices') || keyall[i].startsWith('devices')) && keyall[i] != 'deviceundefined') {
889
+ // this.devicesAll.push(this.data[keyall[i]])
890
+ // //tag
891
+ // }
892
+ // }
893
+ // //tag
894
+ // //tag)
895
+ // this.devicesCollect()
896
+ //
897
+ // },
898
+
899
+ back() {
900
+ if (this.role == 'inspect') {
901
+ if (!this.isStrat) {
902
+ this.$back()
903
+ return
904
+ } else {
905
+ this.savePaper(true).then(() => {
906
+ this.$back()
907
+ this.isStrat = false
908
+ })
909
+ }
910
+ } else {
911
+ this.$back()
912
+ }
913
+ },
914
+ checkIsStart() {
915
+ alert('asdad')
916
+ return
917
+ },
918
+
919
+ viewPic(fileName) {
920
+ //tag
921
+ if (this.role == 'view') {
922
+ if (!fileName.endsWith('nopic.png')) {
923
+ this.pic_to_be_viewed = fileName
924
+ this.showModal = true
925
+ }
926
+ } else {
927
+ HostApp.viewPic(fileName)
928
+ }
929
+ },
930
+ tick() {
931
+ this.timer = null
932
+ this.data.f_offsite_time = Util.toStandardTimeString()
933
+ this.timer = window.setTimeout(this.tick, 1000)
934
+ },
935
+ getRepairState() {
936
+ let repaired = true
937
+ this.data.f_defects.forEach((defect) => {
938
+ repaired = repaired & (defect.f_ratification == '已处理')
939
+ })
940
+ return repaired
941
+ },
942
+ verifyRepairDefects() {
943
+ this.data.f_repair_date = Util.toStandardTimeString()
944
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
945
+ },
946
+ genuineSave(saveOnly) {
947
+ HostApp.__this__.save(saveOnly)
948
+ if (!saveOnly)
949
+ HostApp.__this__.disableTimer()
950
+ HostApp.__callback__ = null
951
+ HostApp.__this__ = null
952
+ },
953
+ setUrgency() {
954
+ this.data.f_defect_urgency = 'Z'
955
+ let that = this
956
+ this.data.f_defects.forEach(function (defect) {
957
+ if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
958
+ that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
959
+ })
960
+ if (this.data.f_defect_urgency == 'Z')
961
+ this.data.f_defect_urgency = null
962
+ },
963
+ disableTimer() {
964
+ if (this.timer) {
965
+ window.clearTimeout(this.timer)
966
+ this.timer = null
967
+ }
968
+ },
969
+ loaded(paper) {
970
+ if (!paper.hasOwnProperty('id')) {
971
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
972
+ this.init()
973
+ } else {
974
+ Util.booleanFilter(paper)
975
+ HostApp.__this__.$set('data', paper)
976
+ HostApp.__this__.$goto('paper-state', {}, 'paper-router')
977
+ // 如果打回重检则重新计时
978
+ //tag
979
+ if (HostApp.__this__.role == 'inspect'
980
+ && HostApp.__this__.data.f_approved
981
+ && HostApp.__this__.data.f_approved == '打回') {
982
+ //tag
983
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
984
+ HostApp.__this__.tick()
985
+ }
986
+ }
987
+ HostApp.__callback__ = null
988
+ HostApp.__this__ = null
989
+ },
990
+ S4() {
991
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
992
+ },
993
+ init() {
994
+ this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
995
+ this.data.ename = Vue.user.ename
996
+ this.data.f_outlets = Vue.user.f_parentname
997
+ this.data.f_meetunit = Vue.user.orgpathnames
998
+ this.data.orgpathstr = Vue.user.orgpathstr
999
+ this.data.f_check_item_id = this.item.id
1000
+ this.data.f_check_plan_id = this.f_plan_id
1001
+ this.data.f_checker_id = Vue.user.id
1002
+ this.data.f_checker_name = Vue.user.name
1003
+ this.data.f_check_type = this.item.f_user_type
1004
+ this.data.f_subcompany = this.item.f_subcompany
1005
+ this.data.f_approved = this.item.f_approved
1006
+ this.data.f_repair_approved = this.item.f_repair_approved
1007
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1008
+ this.data.f_approved = this.item.f_approved
1009
+ this.data.f_filialeid = this.item.f_filialeid
1010
+ this.data.f_orgstr = this.item.f_orgstr
1011
+ this.data.version = this.item.version
1012
+ this.$set('data.f_meters', this.item.f_plan_meters)
1013
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1014
+ // 安检状态
1015
+ this.$set('data.f_entry_status', '入户')
1016
+ this.$set('data.f_usegas', '已使用')
1017
+ this.$set('data.f_state', this.item.f_state)
1018
+ // 用户信息
1019
+ this.$set('data.f_user_name', this.item.f_user_name)
1020
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1021
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1022
+ this.$set('data.f_address', this.item.f_address)
1023
+ this.$set('data.f_card_id', this.item.f_card_id)
1024
+ this.$set('data.f_area', this.item.f_area)
1025
+ this.$set('data.f_street', this.item.f_street)
1026
+ this.$set('data.f_room', this.item.f_room)
1027
+ this.$set('data.f_building', this.item.f_building)
1028
+ this.$set('data.f_unit', this.item.f_unit)
1029
+ this.$set('data.f_floor', this.item.f_floor)
1030
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1031
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1032
+ this.$set('data.f_comments', this.item.f_comments)
1033
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1034
+ // 处置方式
1035
+ this.$set('data.f_no_gas_device', false)
1036
+ this.$set('data.f_close_valve', false)
1037
+ this.$set('data.f_unload_battery', false)
1038
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1039
+ this.data.f_check_item_id = this.data.f_noplan_item_id
1040
+ }
1041
+
1042
+ //房屋结构
1043
+ // this.$set('data.f_room_style', '多层')
1044
+ //供暖方式
1045
+ // this.$set('data.f_heating_style', '热力公司集中供暖')
1046
+ if (this.item.f_plan_meters) {
1047
+ for (let de in this.devices) {
1048
+ this.$set('data.device' + this.devices[de].n, [])
1049
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1050
+ if (this.item.f_plan_meters[i].f_meter_type) {
1051
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1052
+ delete this.config['燃气表']['items']['累计购气量']
1053
+ this.data['device' + this.devices[de].n].push({
1054
+ f_device_type: "燃气表",
1055
+ f_items: [{
1056
+ f_defect_level: null,
1057
+ f_device_id: "",
1058
+ f_is_defect: "",
1059
+ f_item_name: "表品牌",
1060
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1061
+ f_path: "",
1062
+ type: "string"
1063
+ },
1064
+ {
1065
+ f_defect_level: null,
1066
+ f_device_id: "",
1067
+ f_is_defect: "",
1068
+ f_item_name: "位置",
1069
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1070
+ f_path: "",
1071
+ type: "selector"
1072
+ },
1073
+ {
1074
+ f_defect_level: null,
1075
+ f_device_id: "",
1076
+ f_is_defect: "",
1077
+ f_item_name: "表号",
1078
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1079
+ f_path: "",
1080
+ type: "number"
1081
+ },
1082
+ {
1083
+ f_defect_level: null,
1084
+ f_device_id: "",
1085
+ f_is_defect: "",
1086
+ f_item_name: "表封号",
1087
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1088
+ f_path: "",
1089
+ type: "number"
1090
+ },
1091
+ {
1092
+ f_defect_level: null,
1093
+ f_device_id: "",
1094
+ f_is_defect: "",
1095
+ f_item_name: "表型号",
1096
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1097
+ f_path: "",
1098
+ type: "selector"
1099
+ },
1100
+ {
1101
+ f_defect_level: null,
1102
+ f_device_id: "",
1103
+ f_is_defect: "",
1104
+ f_item_name: "表底数",
1105
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1106
+ f_path: "",
1107
+ type: "number"
1108
+ }
1109
+ ]
1110
+ })
1111
+ } else if (this.devices[de].device == "燃气表") {
1112
+ delete this.config['燃气表']['items']['表底数']
1113
+ this.data['device' + this.devices[de].n].push({
1114
+ f_device_type: "燃气表",
1115
+ f_items: [{
1116
+ f_defect_level: null,
1117
+ f_device_id: "",
1118
+ f_is_defect: "",
1119
+ f_item_name: "表品牌",
1120
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1121
+ f_path: "",
1122
+ type: "string"
1123
+ },
1124
+ {
1125
+ f_defect_level: null,
1126
+ f_device_id: "",
1127
+ f_is_defect: "",
1128
+ f_item_name: "位置",
1129
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1130
+ f_path: "",
1131
+ type: "selector"
1132
+ },
1133
+ {
1134
+ f_defect_level: null,
1135
+ f_device_id: "",
1136
+ f_is_defect: "",
1137
+ f_item_name: "表号",
1138
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1139
+ f_path: "",
1140
+ type: "number"
1141
+ },
1142
+ {
1143
+ f_defect_level: null,
1144
+ f_device_id: "",
1145
+ f_is_defect: "",
1146
+ f_item_name: "表封号",
1147
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1148
+ f_path: "",
1149
+ type: "number"
1150
+ },
1151
+ {
1152
+ f_defect_level: null,
1153
+ f_device_id: "",
1154
+ f_is_defect: "",
1155
+ f_item_name: "表型号",
1156
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1157
+ f_path: "",
1158
+ type: "selector"
1159
+ },
1160
+ {
1161
+ f_defect_level: null,
1162
+ f_device_id: "",
1163
+ f_is_defect: "",
1164
+ f_item_name: "累计购气量",
1165
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1166
+ f_path: "",
1167
+ type: "number"
1168
+ }
1169
+ ]
1170
+ })
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+
1177
+ this.$goto('paper-state', {}, 'paper-router')
1178
+ },
1179
+ extend(initalObj, finalObj) {
1180
+ var obj = finalObj || {};
1181
+ for (var i in initalObj) {
1182
+ var prop = initalObj[i];
1183
+
1184
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1185
+ if (prop === obj) {
1186
+ continue;
1187
+ }
1188
+
1189
+ if (typeof prop === 'object') {
1190
+ if (obj[i]) {
1191
+ this.extend(obj[i], prop)
1192
+ } else {
1193
+ obj[i] = prop;
1194
+ }
1195
+ }
1196
+ }
1197
+ return obj;
1198
+ },
1199
+ //获取当前时间
1200
+ getNowFormatDate() {
1201
+ var date = new Date();
1202
+ var seperator1 = "-";
1203
+ var seperator2 = ":";
1204
+ var month = date.getMonth() + 1;
1205
+ var strDate = date.getDate();
1206
+ if (month >= 1 && month <= 9) {
1207
+ month = "0" + month;
1208
+ }
1209
+ if (strDate >= 0 && strDate <= 9) {
1210
+ strDate = "0" + strDate;
1211
+ }
1212
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1213
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1214
+ + seperator2 + date.getSeconds();
1215
+ return currentdate;
1216
+ }
1217
+ },
1218
+ ready() {
1219
+ setTimeout(() => {
1220
+ this.loading = false;
1221
+ }, 3000)
1222
+ this.$resetpost(`rs/path/getUserinfomation`, { data: { condition: `id = '${this.item.id}'` } },{resolveMsg: null,rejectMsg: null}).then((respanse) => {
1223
+ this.paperdata = respanse.data[0]
1224
+ this.paperdata.f_overall_imgs.forEach(item => {
1225
+ item.f_overall_path = `rs/image/file/` + item.f_overall_path
1226
+ })
1227
+ this.deviceconfig2 = Object.assign(this.data, respanse.data[0].f_devices)
1228
+ })
1229
+
1230
+
1231
+ },
1232
+ watch: {
1233
+ },
1234
+ destroyed() {
1235
+ this.disableTimer()
1236
+ }
1237
+ }
1238
+
1239
+ </script>
1240
+ <style scoped>
1241
+ .table-striped thead tr th {
1242
+ background-color: rgb(223, 237, 251);
1243
+ padding: 10px;
1244
+ border-left: solid 0px #dae4f2;
1245
+ border-top: solid 1px #dae4f2;
1246
+ border-right: none;
1247
+ border-bottom: none;
1248
+ text-align: center;
1249
+ color: black;
1250
+ }
1251
+ </style>