safecheck-client 4.0.1-4 → 4.0.1-41
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 +5 -5
- package/src/assets//350/255/246/345/221/212 (3).png +0 -0
- package/src/assets//350/255/246/345/221/212 (4).png +0 -0
- package/src/assets//350/255/246/345/221/212 (5).png +0 -0
- package/src/components/android/SwitchValve.vue +1 -1
- package/src/components/checkplan/CheckDetail.vue +1 -1
- package/src/components/map/SecurityCheckCoordinates.vue +348 -0
- package/src/components/pc/CheckBookUser.vue +337 -333
- package/src/filiale/jinhong/android/CurrentCreate.vue +41 -2
- package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/jinhong/pc/checkUserList.vue +31 -8
- package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
- package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
- package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
- package/src/filiale/libo/android.js +14 -0
- package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
- package/src/filiale/libo/pc.js +12 -0
- package/src/filiale/meihekou/android/MeterReading.vue +9 -5
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
- package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +323 -310
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -2027
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
- package/src/filiale/meihekou/pc/PaperList.vue +810 -0
- package/src/filiale/meihekou/pc.js +15 -13
- package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
- package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1 -0
- package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
- package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
- package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
- package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
- package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
- package/src/filiale/taiyuan/android.js +13 -0
- package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -0
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
- package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
- package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
- package/src/filiale/taiyuan/pc.js +15 -0
- package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
- package/src/filiale/xinkang/android/AddPlanItem.vue +1 -1
- package/src/filiale/xinkang/android/SafecheckDevices.vue +29 -7
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +21 -44
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +1474 -1498
- package/src/filiale/xinkang/pc/PaperList.vue +596 -603
- package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
- package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
- package/src/filiale/yunchengminsheng/pc.js +1 -0
- package/src/safecheck-android.js +4 -0
- package/src/safecheck.js +3 -0
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
32
32
|
<div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
|
33
33
|
v-for="(index,img) in paper.f_overall_imgs">
|
34
|
-
<img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
|
34
|
+
<android-img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></android-img-self>
|
35
35
|
<img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
|
36
36
|
style="width: 15px;margin-top: -80px" alt="">
|
37
37
|
</div>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
54
54
|
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
55
55
|
<div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
|
56
|
-
<img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
|
56
|
+
<android-img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></android-img-self>
|
57
57
|
</div>
|
58
58
|
</div>
|
59
59
|
</div>
|
@@ -144,7 +144,7 @@
|
|
144
144
|
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
145
145
|
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
146
146
|
<div class="col-sm-4">
|
147
|
-
<img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
|
147
|
+
<android-img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
|
148
148
|
<div class="row text-right div-photo">
|
149
149
|
<button type="button" name="button" class="btn btn-primary btn-photo"
|
150
150
|
@click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照
|
@@ -156,7 +156,7 @@
|
|
156
156
|
</div>
|
157
157
|
</div>
|
158
158
|
<div class="col-sm-4">
|
159
|
-
<img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
|
159
|
+
<android-img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
|
160
160
|
<div class="row text-right div-photo">
|
161
161
|
<button type="button" name="button" class="btn btn-primary btn-photo"
|
162
162
|
@click="takePic('f_notified1_path', '安检通知书/隐患整改通知书照片')">拍照
|
@@ -168,7 +168,7 @@
|
|
168
168
|
</div>
|
169
169
|
</div>
|
170
170
|
<div class="col-sm-4">
|
171
|
-
<img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
|
171
|
+
<android-img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
|
172
172
|
<div class="row text-right div-photo">
|
173
173
|
<button type="button" name="button" class="btn btn-primary btn-photo"
|
174
174
|
@click="takePic('f_notified2_path', '安检通知书/隐患整改通知书照片')">拍照
|
@@ -355,587 +355,605 @@
|
|
355
355
|
</template>
|
356
356
|
|
357
357
|
<script>
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
358
|
+
import Vue from 'vue'
|
359
|
+
import * as Util from '../../Util'
|
360
|
+
import {HttpResetClass} from 'vue-client'
|
361
|
+
import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
|
362
|
+
import Radio from 'vue-client/src/vue-strap/src/radioBtn'
|
363
|
+
import co from 'co'
|
364
364
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
365
|
+
// let getRepairParam = function * (self){
|
366
|
+
// let data = {
|
367
|
+
// $parent.$parent.model: self.$parent.$parent.model, loginUser: {
|
368
|
+
// name: self.role == 'view'?self.$login.f.name:Vue.user.name,
|
369
|
+
// ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
|
370
|
+
// }, user: self.user, callObj: self.callObj
|
371
|
+
// }
|
372
|
+
// if(self.$parent.$parent.meading == '转维修员'){
|
373
|
+
// data.toRepair = '一级派单'
|
374
|
+
// }
|
375
|
+
// data.$parent.$parent.model.f_attendant = data.loginUser.name
|
376
|
+
// ////tag
|
377
|
+
// ////tag
|
378
|
+
// let res
|
379
|
+
// let errString = self.$parent. $parent.errorVerify()
|
380
|
+
// if(errString){
|
381
|
+
// ////tag
|
382
|
+
// if (Vue.android)
|
383
|
+
// self.undo()
|
384
|
+
// this.$showMessage(errString)
|
385
|
+
// return
|
386
|
+
// } else {
|
387
|
+
// if(self.role == 'inspect'){
|
388
|
+
// if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
|
389
|
+
// this.$showMessage("请选择维修员!")
|
390
|
+
// return
|
391
|
+
// }
|
392
|
+
// if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
|
393
|
+
// HostApp.alert()
|
394
|
+
// this.$showMessage("请选择站点!")
|
395
|
+
// return
|
396
|
+
// }
|
397
|
+
// if(self.$parent.$parent.model.f_repairtype == ''){
|
398
|
+
// this.$showMessage("请选择报修类型!")
|
399
|
+
// return
|
400
|
+
// }
|
401
|
+
// ////tag)
|
402
|
+
// let checkResult = '正常'
|
403
|
+
// let options = [{"data": "已处理"},{"data": "未处理"}]
|
404
|
+
// let value = ''
|
405
|
+
// let codata = JSON.parse(JSON.stringify(self.paper))
|
406
|
+
// for(let device in codata){
|
407
|
+
// ////tag)
|
408
|
+
// let f_device_type
|
409
|
+
// if(device.startsWith("device")){
|
410
|
+
// for(let item in codata[device]) {
|
411
|
+
// if(codata[device].length > 1 ){
|
412
|
+
// let j = Number.parseInt(item)+1
|
413
|
+
// f_device_type = `${codata[device][item].f_device_type}${j}`
|
414
|
+
// }else{
|
415
|
+
// f_device_type = codata[device][item].f_device_type
|
416
|
+
// }
|
417
|
+
// // ////tag
|
418
|
+
// let details = []
|
419
|
+
// for(let i in codata[device][item].f_items){
|
420
|
+
// let items = codata[device][item].f_items[i]
|
421
|
+
// ////tag
|
422
|
+
// if(items.f_is_defect == true || items.f_is_defect == 'true'){
|
423
|
+
// checkResult = '有隐患'
|
424
|
+
// ////tag
|
425
|
+
// let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
|
426
|
+
// ////tag)
|
427
|
+
// self.$set('detail.f_defect_id', res.data[0].id)
|
428
|
+
// self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
|
429
|
+
// self.$set('detail.type',items.type)
|
430
|
+
// self.$set('detail.options',options)
|
431
|
+
// details.push(JSON.parse(JSON.stringify(self.detail)))
|
432
|
+
// }
|
433
|
+
// if(items.type == 'selector'){
|
434
|
+
// items.selected = ''
|
435
|
+
// }
|
436
|
+
// self.detail = {}
|
437
|
+
// }
|
438
|
+
// ////tag
|
439
|
+
// self.$set('defectDevice.f_type',f_device_type)
|
440
|
+
// self.$set('defectDevice.details',details)
|
441
|
+
// if(self.defectDevice.details.length >0 ){
|
442
|
+
// self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
|
443
|
+
// }
|
444
|
+
// self.defectDevice = {}
|
445
|
+
// ////tag
|
446
|
+
// }
|
447
|
+
// }
|
448
|
+
// }
|
449
|
+
// self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
|
450
|
+
//
|
451
|
+
//
|
452
|
+
// ////tag)
|
453
|
+
// res = self.$androidUtil.bzLogic('safecheckToRepair',data)
|
454
|
+
// ////tag
|
455
|
+
// ////tag
|
456
|
+
// ////tag
|
457
|
+
// if(res.code == 200){
|
458
|
+
// self.$parent.$parent.isSafeCheckToRepair = true
|
459
|
+
// self.undo()
|
460
|
+
// self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
|
461
|
+
// ////tag
|
462
|
+
// self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
|
463
|
+
// ////tag
|
464
|
+
// if(ret.data.code ==200){
|
465
|
+
// ////tag
|
466
|
+
// self.$parent.$parent.$back()
|
467
|
+
// }else{
|
468
|
+
// self.$showMessage('安检转维修失败!')
|
469
|
+
// }
|
470
|
+
// }).catch(v=>{
|
471
|
+
// ////tag)
|
472
|
+
// self.$showMessage('安检转维修失败!')
|
473
|
+
// })
|
474
|
+
// }else{
|
475
|
+
// self.$showMessage('安检转维修失败!')
|
476
|
+
// }
|
477
|
+
// }
|
478
|
+
// }
|
479
|
+
// }
|
480
480
|
|
481
481
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
482
|
+
// let getRepairs = async function(self,url) {
|
483
|
+
// // 获取配置信息
|
484
|
+
// try {
|
485
|
+
// let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
|
486
|
+
// let repairs =[]
|
487
|
+
// let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
|
488
|
+
// res.data.forEach((item) => {
|
489
|
+
// repairs.push({label: item.name, value: item})
|
490
|
+
// })
|
491
|
+
// self.f_repair_person = repairs
|
492
|
+
// if(self.$parent.$parent.role == 'inspect'){
|
493
|
+
// let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
|
494
|
+
// if(res.code == 200){
|
495
|
+
// self.$parent.$parent.user = res.data[0]
|
496
|
+
// self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
|
497
|
+
// }
|
498
|
+
// }else{
|
499
|
+
// ////tag
|
500
|
+
// self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
|
501
|
+
// ////tag
|
502
|
+
// if(res.data.length != 0){
|
503
|
+
// self.$parent.$parent.user = res.data[0]
|
504
|
+
// self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
|
505
|
+
// }
|
506
|
+
// })
|
507
|
+
// // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
|
508
|
+
// }
|
509
|
+
// } catch (error) {
|
510
|
+
// ////tag
|
511
|
+
// }
|
512
|
+
// }
|
513
513
|
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
514
|
+
export default {
|
515
|
+
title: '用户反馈',
|
516
|
+
data() {
|
517
|
+
return {
|
518
|
+
defectImgs: [],
|
519
|
+
defectToolTip: [],
|
520
|
+
defectReason: [],
|
521
|
+
images: [],
|
522
|
+
showmodelthree: false,
|
523
|
+
isneedDate: this.$parent.$parent.isneedDate,
|
524
|
+
plan: this.$parent.$parent.item,
|
525
|
+
meading: this.$parent.$parent.meading,
|
526
|
+
paper: this.$parent.$parent.data,
|
527
|
+
printContent: [],
|
528
|
+
upload_state: this.$parent.$parent.item.f_upload_state,
|
529
|
+
enabled: false,//控制限制购气是否可选
|
530
|
+
deleteenabled: false,
|
531
|
+
showmodel: false,
|
532
|
+
showbacklist: '是',
|
533
|
+
backlistisselect: false,
|
534
|
+
deletebacklistisselect: false,
|
535
|
+
radios: [
|
536
|
+
{
|
537
|
+
label: '满意',
|
538
|
+
value: 0,
|
539
|
+
isChecked: false,
|
540
|
+
},
|
541
|
+
{
|
542
|
+
label: '基本满意',
|
543
|
+
value: 1,
|
544
|
+
isChecked: false,
|
545
|
+
},
|
546
|
+
{
|
547
|
+
label: '不满意',
|
548
|
+
value: 2,
|
549
|
+
isChecked: false,
|
550
|
+
},
|
551
|
+
],
|
552
|
+
repairitems: [],
|
553
|
+
repairstypes: this.$appdata.getParam('报修类型'),
|
554
|
+
// f_repair_person: this.readRepair(),
|
555
|
+
showrepair: false,
|
556
|
+
safeCheckToRepair: '',
|
557
|
+
showCheckToRepair: false,
|
558
|
+
userid: '',
|
559
|
+
source:
|
560
|
+
'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
|
561
|
+
'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
|
562
|
+
isback: false,
|
563
|
+
defectDevice: {},
|
564
|
+
detail: {},
|
565
|
+
callObj: null,
|
566
|
+
user: {},
|
567
|
+
role: this.$parent.$parent.role,
|
568
|
+
handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
|
569
|
+
Url: this.$androidUtil.getProxyUrl(),
|
570
|
+
cause: "",
|
571
|
+
deletecause: "",
|
572
|
+
isRecodr: "false", //单值参数,为true则是开启全程录音
|
573
|
+
}
|
574
|
+
},
|
575
|
+
props: ['idx'],
|
576
|
+
components: {
|
577
|
+
RadioGroup,
|
578
|
+
Radio
|
579
|
+
},
|
580
|
+
methods: {
|
581
|
+
timeSet(val) {
|
582
|
+
//////tag
|
583
|
+
if (!val) {
|
584
|
+
return
|
585
|
+
}
|
586
|
+
let time = new Date(val).getTime()
|
587
|
+
let time2 = new Date().getTime()
|
588
|
+
if (time2 > time) {
|
589
|
+
return true
|
573
590
|
}
|
574
591
|
},
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
592
|
+
// async isoverDate(){
|
593
|
+
// ////tag
|
594
|
+
// let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
|
595
|
+
// condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
|
596
|
+
// }
|
597
|
+
// })
|
598
|
+
// this.isneedDate=res.data[0]["f_subscribe_date"]
|
599
|
+
// ////tag
|
600
|
+
// },
|
601
|
+
check(index) {
|
602
|
+
////tag
|
603
|
+
// 先取消所有选中项
|
604
|
+
for (let item of this.radios) {
|
605
|
+
item.isChecked = false;
|
606
|
+
}
|
607
|
+
//再设置当前点击项选中
|
608
|
+
this.paper.f_client_evaluation = this.radios[index].label;
|
609
|
+
// 设置值,以供传递
|
610
|
+
this.radios[index].isChecked = true;
|
611
|
+
////tag;
|
579
612
|
},
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
613
|
+
getSignValue(fileName) {
|
614
|
+
this.f_signname = fileName
|
615
|
+
},
|
616
|
+
cameraCallBack(prop, fileName) {
|
617
|
+
if (prop == 'f_overall_path') {
|
618
|
+
let f_overall_path = fileName + '?' + Math.random()
|
619
|
+
HostApp.__this__.paper.f_overall_imgs.push({
|
620
|
+
f_overall_path: f_overall_path
|
621
|
+
})
|
622
|
+
} else {
|
623
|
+
HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
|
624
|
+
}
|
625
|
+
HostApp.__callback__ = null
|
626
|
+
HostApp.__this__ = null
|
627
|
+
},
|
628
|
+
takePic(prop, title, index) {
|
629
|
+
HostApp.__callback__ = this.cameraCallBack
|
630
|
+
HostApp.__this__ = this
|
631
|
+
////tag
|
632
|
+
////tag
|
633
|
+
let fileName
|
634
|
+
if (prop == 'f_overall_path') {
|
635
|
+
if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
|
636
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
637
|
+
} else {
|
638
|
+
fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
|
585
639
|
}
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
640
|
+
} else {
|
641
|
+
if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
|
642
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
643
|
+
} else {
|
644
|
+
fileName = Util.getFileName(this.paper[prop])
|
590
645
|
}
|
591
|
-
}
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
646
|
+
}
|
647
|
+
let jingweidu = ''
|
648
|
+
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
649
|
+
const obj = HostApp.getGpsDetailAddress()
|
650
|
+
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
651
|
+
}
|
652
|
+
HostApp._open_a_page({
|
653
|
+
type: 'boomerang',
|
654
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
655
|
+
param: {
|
656
|
+
file: fileName,
|
657
|
+
requestCode: 111,
|
658
|
+
diaphaneity: 1000,
|
659
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
660
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
|
661
|
+
+jingweidu
|
606
662
|
}
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
let f_overall_path = fileName + '?' + Math.random()
|
619
|
-
HostApp.__this__.paper.f_overall_imgs.push({
|
620
|
-
f_overall_path: f_overall_path
|
621
|
-
})
|
622
|
-
} else {
|
623
|
-
HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
|
663
|
+
})
|
664
|
+
},
|
665
|
+
amrCallBack(fileName) {
|
666
|
+
HostApp.__this__.$set('paper.f_recording1_path', fileName)
|
667
|
+
HostApp.__callback__ = null
|
668
|
+
HostApp.__this__ = null
|
669
|
+
},
|
670
|
+
record() {
|
671
|
+
if (this.$parent.$parent.role != 'inspect') {
|
672
|
+
if (this.paper.f_recording1_path != '') {
|
673
|
+
window.location = this.paper.f_recording1_path
|
624
674
|
}
|
625
|
-
|
626
|
-
HostApp.
|
627
|
-
},
|
628
|
-
takePic(prop, title, index) {
|
629
|
-
HostApp.__callback__ = this.cameraCallBack
|
675
|
+
} else {
|
676
|
+
HostApp.__callback__ = this.amrCallBack
|
630
677
|
HostApp.__this__ = this
|
631
|
-
////tag
|
632
|
-
////tag
|
633
678
|
let fileName
|
634
|
-
if (
|
635
|
-
|
636
|
-
fileName = Util.guid() + '-' + prop + '.jpg'
|
637
|
-
} else {
|
638
|
-
fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
|
639
|
-
}
|
679
|
+
if (!this.paper.f_recording1_path) {
|
680
|
+
fileName = Util.guid() + '.amr'
|
640
681
|
} else {
|
641
|
-
|
642
|
-
fileName = Util.guid() + '-' + prop + '.jpg'
|
643
|
-
} else {
|
644
|
-
fileName = Util.getFileName(this.paper[prop])
|
645
|
-
}
|
646
|
-
}
|
647
|
-
let jingweidu = ''
|
648
|
-
if (this.$parent.$parent.is_has_jingweidu == 'true'){
|
649
|
-
const obj = HostApp.getGpsDetailAddress()
|
650
|
-
jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
|
682
|
+
fileName = Util.getFileName(this.paper.f_recording1_path)
|
651
683
|
}
|
652
684
|
HostApp._open_a_page({
|
653
685
|
type: 'boomerang',
|
654
|
-
page: 'com.aofeng.hybrid.android.peripheral.
|
655
|
-
param: {
|
656
|
-
file: fileName,
|
657
|
-
requestCode: 111,
|
658
|
-
diaphaneity: 1000,
|
659
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
660
|
-
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
|
661
|
-
+jingweidu
|
662
|
-
}
|
686
|
+
page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
|
687
|
+
param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
|
663
688
|
})
|
664
|
-
}
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
if (
|
701
|
-
this
|
702
|
-
|
703
|
-
}
|
704
|
-
this.delAudioFile('f_sign_path', this.paper.f_sign_path)
|
705
|
-
let prop = 'f_sign_path'
|
706
|
-
let idx = 'aofeng'
|
707
|
-
let fileName
|
708
|
-
if (!this.paper.f_sign_path) {
|
709
|
-
fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
689
|
+
}
|
690
|
+
},
|
691
|
+
// 签名回调
|
692
|
+
signCallback(prop, fileName) {
|
693
|
+
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
694
|
+
HostApp.__this__.$set('paper.f_sign_path', fileName)
|
695
|
+
HostApp.__callback__ = null
|
696
|
+
HostApp.__this__ = null
|
697
|
+
},
|
698
|
+
// 用户签名
|
699
|
+
sign() {
|
700
|
+
if (!this.paper.f_read_instructions) {
|
701
|
+
this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
|
702
|
+
return
|
703
|
+
}
|
704
|
+
this.delAudioFile('f_sign_path', this.paper.f_sign_path)
|
705
|
+
let prop = 'f_sign_path'
|
706
|
+
let idx = 'aofeng'
|
707
|
+
let fileName
|
708
|
+
if (!this.paper.f_sign_path) {
|
709
|
+
fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
710
|
+
} else {
|
711
|
+
fileName = Util.getFileName(this.paper.f_sign_path)
|
712
|
+
}
|
713
|
+
HostApp.__callback__ = this.signCallback
|
714
|
+
HostApp.__this__ = this
|
715
|
+
HostApp.getSignature({
|
716
|
+
file: fileName,
|
717
|
+
requestCode: 111,
|
718
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
719
|
+
})
|
720
|
+
},
|
721
|
+
delfile(prop, fileName, index) {
|
722
|
+
if (fileName == Vue.nopic)
|
723
|
+
return
|
724
|
+
else {
|
725
|
+
if (prop == 'f_overall_path') {
|
726
|
+
this.paper.f_overall_imgs.splice(index, 1)
|
727
|
+
HostApp.delfile(fileName)
|
710
728
|
} else {
|
711
|
-
fileName = Util.getFileName(this.paper.f_sign_path)
|
712
|
-
}
|
713
|
-
HostApp.__callback__ = this.signCallback
|
714
|
-
HostApp.__this__ = this
|
715
|
-
HostApp.getSignature({
|
716
|
-
file: fileName,
|
717
|
-
requestCode: 111,
|
718
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
719
|
-
})
|
720
|
-
},
|
721
|
-
delfile(prop, fileName, index) {
|
722
|
-
if (fileName == Vue.nopic)
|
723
|
-
return
|
724
|
-
else {
|
725
|
-
if (prop == 'f_overall_path') {
|
726
|
-
this.paper.f_overall_imgs.splice(index, 1)
|
727
|
-
HostApp.delfile(fileName)
|
728
|
-
} else {
|
729
|
-
HostApp.delfile(fileName)
|
730
|
-
this.paper[prop] = Vue.nopic
|
731
|
-
}
|
732
|
-
}
|
733
|
-
},
|
734
|
-
delAudioFile(prop, fileName) {
|
735
|
-
if (!fileName)
|
736
|
-
return
|
737
|
-
else {
|
738
729
|
HostApp.delfile(fileName)
|
739
|
-
this.paper[prop] =
|
730
|
+
this.paper[prop] = Vue.nopic
|
740
731
|
}
|
741
|
-
}
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
}
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
732
|
+
}
|
733
|
+
},
|
734
|
+
delAudioFile(prop, fileName) {
|
735
|
+
if (!fileName)
|
736
|
+
return
|
737
|
+
else {
|
738
|
+
HostApp.delfile(fileName)
|
739
|
+
this.paper[prop] = null
|
740
|
+
}
|
741
|
+
},
|
742
|
+
//获取打印用户信息
|
743
|
+
getUser() {
|
744
|
+
if (this.paper.f_user_name == undefined)
|
745
|
+
this.paper.f_user_name = ''
|
746
|
+
this.printContent.push({
|
747
|
+
type: 3,
|
748
|
+
text: '用户名称:' + this.paper.f_user_name,
|
749
|
+
fontsize: 2,
|
750
|
+
isbold: false,
|
751
|
+
align: 'left'
|
752
|
+
})
|
753
|
+
if (this.paper.f_userinfo_code == undefined)
|
754
|
+
this.paper.f_userinfo_code = ''
|
755
|
+
this.printContent.push({
|
756
|
+
type: 3,
|
757
|
+
text: '用户编号:' + this.paper.f_userinfo_code,
|
758
|
+
fontsize: 2,
|
759
|
+
isbold: false,
|
760
|
+
align: 'left'
|
761
|
+
})
|
762
|
+
if (this.paper.f_address == undefined)
|
763
|
+
this.paper.f_address = ''
|
764
|
+
this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
|
765
|
+
if (this.paper.f_user_phone == undefined)
|
766
|
+
this.paper.f_user_phone = ''
|
767
|
+
this.printContent.push({
|
768
|
+
type: 3,
|
769
|
+
text: '电话:' + this.paper.f_user_phone,
|
770
|
+
fontsize: 2,
|
771
|
+
isbold: false,
|
772
|
+
align: 'left'
|
773
|
+
})
|
774
|
+
},
|
775
|
+
verify() {
|
776
|
+
let hasError = this.$parent.$parent.verifyUser()
|
777
|
+
if (hasError)
|
778
|
+
return hasError
|
779
|
+
hasError = this.$parent.$parent.verifyDevices()
|
780
|
+
if (hasError)
|
781
|
+
return hasError
|
782
|
+
},
|
783
|
+
print() {
|
784
|
+
let errString = this.verify()
|
785
|
+
if (errString) {
|
786
|
+
////tag
|
787
|
+
if (Vue.android)
|
788
|
+
this.$showMessage(errString)
|
789
|
+
return
|
790
|
+
}
|
791
|
+
// 文本
|
792
|
+
let templatename = '安检结果单'
|
793
|
+
if (Vue.config.safecheck != undefined) {
|
794
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
795
|
+
if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
|
796
|
+
templatename = Vue.config.safecheck.ApproveConfig.templatename
|
798
797
|
}
|
799
798
|
}
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
799
|
+
}
|
800
|
+
let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
|
801
|
+
let feedPageHead = {type: 4, value: 2, unit: 'line'}
|
802
|
+
let feedPageEnd = {type: 4, value: 4, unit: 'line'}
|
803
|
+
this.printContent.push(textHead)
|
804
|
+
this.printContent.push(feedPageHead)
|
805
|
+
this.getUser()
|
806
|
+
this.getDefect()
|
807
|
+
this.getCheck()
|
808
|
+
this.printContent.push(feedPageEnd)
|
809
|
+
let arrstr = JSON.stringify(this.printContent)
|
810
|
+
////tag
|
811
|
+
this.$androidUtil.print(arrstr)
|
812
|
+
this.$set('printContent', [])
|
813
|
+
},
|
814
|
+
//打印安检信息
|
815
|
+
getCheck() {
|
816
|
+
let telephone = '96777'
|
817
|
+
if (Vue.config.safecheck != undefined) {
|
818
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
819
|
+
if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
|
820
|
+
telephone = Vue.config.safecheck.ApproveConfig.checkphone
|
822
821
|
}
|
823
822
|
}
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
}
|
823
|
+
}
|
824
|
+
this.printContent.push({
|
825
|
+
type: 3,
|
826
|
+
text: '*******************************',
|
827
|
+
fontsize: 3,
|
828
|
+
isbold: false,
|
829
|
+
align: 'center'
|
830
|
+
})
|
831
|
+
this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
|
832
|
+
this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
|
833
|
+
this.printContent.push({
|
834
|
+
type: 3,
|
835
|
+
text: '安检时间:' + this.getNowFormatDate(),
|
836
|
+
fontsize: 2,
|
837
|
+
isbold: false,
|
838
|
+
align: 'left'
|
839
|
+
})
|
840
|
+
this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
|
841
|
+
this.printContent.push({type: 4, value: 4, unit: 'line'})
|
842
|
+
},
|
843
843
|
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
}
|
844
|
+
getDefect() {
|
845
|
+
let showmore = false
|
846
|
+
if (Vue.config.safecheck != undefined) {
|
847
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
848
|
+
if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
|
849
|
+
showmore = Vue.config.safecheck.ApproveConfig.showmore
|
851
850
|
}
|
852
851
|
}
|
852
|
+
}
|
853
853
|
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
854
|
+
let backData = this.$parent.$parent.getAllDefect()
|
855
|
+
// 对隐患信息进行遍历
|
856
|
+
let res = JSON.parse(backData.f_defect_content)
|
857
|
+
this.printContent.push({
|
858
|
+
type: 3,
|
859
|
+
text: '安检结果:' + res.result,
|
860
|
+
fontsize: 2,
|
861
|
+
isbold: false,
|
862
|
+
align: 'left'
|
863
|
+
})
|
864
|
+
this.printContent.push({
|
865
|
+
type: 3,
|
866
|
+
text: '*******************************',
|
867
|
+
fontsize: 3,
|
868
|
+
isbold: false,
|
869
|
+
align: 'center'
|
870
|
+
})
|
871
871
|
|
872
872
|
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
}
|
873
|
+
if (showmore) {
|
874
|
+
//全部打印
|
875
|
+
for (let dev in this.$parent.$parent.config) {
|
876
|
+
for (let device in backData) {
|
877
|
+
if (device.startsWith("device")) {
|
878
|
+
for (let item in backData[device]) {
|
879
|
+
//遍历结果
|
880
|
+
if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
|
881
|
+
let error = true
|
882
|
+
for (let i in backData[device][item].f_items) {
|
883
|
+
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
884
|
+
error = false
|
886
885
|
}
|
887
|
-
|
886
|
+
}
|
887
|
+
if (error) {
|
888
|
+
this.printContent.push({
|
889
|
+
type: 3,
|
890
|
+
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
|
891
|
+
fontsize: 2,
|
892
|
+
isbold: false,
|
893
|
+
align: 'left'
|
894
|
+
})
|
895
|
+
} else {
|
896
|
+
this.printContent.push({
|
897
|
+
type: 3,
|
898
|
+
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
|
899
|
+
fontsize: 2,
|
900
|
+
isbold: true,
|
901
|
+
align: 'left'
|
902
|
+
})
|
903
|
+
}
|
904
|
+
|
905
|
+
for (let i in backData[device][item].f_items) {
|
906
|
+
if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
|
888
907
|
this.printContent.push({
|
889
908
|
type: 3,
|
890
|
-
text:
|
909
|
+
text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
|
891
910
|
fontsize: 2,
|
892
911
|
isbold: false,
|
893
912
|
align: 'left'
|
894
913
|
})
|
895
|
-
} else {
|
896
|
-
this.printContent.push({
|
897
|
-
type: 3,
|
898
|
-
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
|
899
|
-
fontsize: 2,
|
900
|
-
isbold: true,
|
901
|
-
align: 'left'
|
902
|
-
})
|
903
|
-
}
|
904
|
-
|
905
|
-
for (let i in backData[device][item].f_items) {
|
906
|
-
if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
|
907
|
-
this.printContent.push({
|
908
|
-
type: 3,
|
909
|
-
text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
|
910
|
-
fontsize: 2,
|
911
|
-
isbold: false,
|
912
|
-
align: 'left'
|
913
|
-
})
|
914
|
-
}
|
915
914
|
}
|
916
|
-
this.printContent.push({type: 4, value: 2, unit: 'line'})
|
917
915
|
}
|
916
|
+
this.printContent.push({type: 4, value: 2, unit: 'line'})
|
918
917
|
}
|
919
918
|
}
|
920
919
|
}
|
921
920
|
}
|
921
|
+
}
|
922
922
|
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
}
|
923
|
+
for (let dev in this.$parent.$parent.config) {
|
924
|
+
for (let device in backData) {
|
925
|
+
if (device.startsWith("device")) {
|
926
|
+
for (let item in backData[device]) {
|
927
|
+
//遍历结果
|
928
|
+
if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
|
929
|
+
let error = true
|
930
|
+
for (let i in backData[device][item].f_items) {
|
931
|
+
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
932
|
+
error = false
|
934
933
|
}
|
935
|
-
|
934
|
+
}
|
935
|
+
if (!error) {
|
936
|
+
this.printContent.push({
|
937
|
+
type: 3,
|
938
|
+
text: '隐患:',
|
939
|
+
fontsize: 2,
|
940
|
+
isbold: true,
|
941
|
+
align: 'left'
|
942
|
+
})
|
943
|
+
}
|
944
|
+
}
|
945
|
+
}
|
946
|
+
}
|
947
|
+
}
|
948
|
+
for (let device in backData) {
|
949
|
+
if (device.startsWith("device")) {
|
950
|
+
for (let item in backData[device]) {
|
951
|
+
if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
|
952
|
+
for (let i in backData[device][item].f_items) {
|
953
|
+
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
936
954
|
this.printContent.push({
|
937
955
|
type: 3,
|
938
|
-
text: '
|
956
|
+
text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
|
939
957
|
fontsize: 2,
|
940
958
|
isbold: true,
|
941
959
|
align: 'left'
|
@@ -945,565 +963,547 @@
|
|
945
963
|
}
|
946
964
|
}
|
947
965
|
}
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
966
|
+
}
|
967
|
+
|
968
|
+
}
|
969
|
+
} else {
|
970
|
+
for (let dev in this.$parent.$parent.config) {
|
971
|
+
for (let device in backData) {
|
972
|
+
if (device.startsWith("device")) {
|
973
|
+
for (let item in backData[device]) {
|
974
|
+
//遍历结果
|
975
|
+
if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
|
976
|
+
let error = true
|
977
|
+
for (let i in backData[device][item].f_items) {
|
978
|
+
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
979
|
+
error = false
|
962
980
|
}
|
963
981
|
}
|
964
|
-
|
965
|
-
|
966
|
-
|
982
|
+
if (error) {
|
983
|
+
this.printContent.push({
|
984
|
+
type: 3,
|
985
|
+
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
|
986
|
+
fontsize: 2,
|
987
|
+
isbold: false,
|
988
|
+
align: 'left'
|
989
|
+
})
|
990
|
+
} else {
|
991
|
+
this.printContent.push({
|
992
|
+
type: 3,
|
993
|
+
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
|
994
|
+
fontsize: 2,
|
995
|
+
isbold: false,
|
996
|
+
align: 'left'
|
997
|
+
})
|
998
|
+
}
|
967
999
|
|
968
|
-
|
969
|
-
|
970
|
-
for (let dev in this.$parent.$parent.config) {
|
971
|
-
for (let device in backData) {
|
972
|
-
if (device.startsWith("device")) {
|
973
|
-
for (let item in backData[device]) {
|
974
|
-
//遍历结果
|
975
|
-
if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
|
976
|
-
let error = true
|
977
|
-
for (let i in backData[device][item].f_items) {
|
978
|
-
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
979
|
-
error = false
|
980
|
-
}
|
981
|
-
}
|
982
|
-
if (error) {
|
1000
|
+
for (let i in backData[device][item].f_items) {
|
1001
|
+
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
983
1002
|
this.printContent.push({
|
984
1003
|
type: 3,
|
985
|
-
text:
|
1004
|
+
text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
|
986
1005
|
fontsize: 2,
|
987
1006
|
isbold: false,
|
988
1007
|
align: 'left'
|
989
1008
|
})
|
990
|
-
} else {
|
991
|
-
this.printContent.push({
|
992
|
-
type: 3,
|
993
|
-
text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
|
994
|
-
fontsize: 2,
|
995
|
-
isbold: false,
|
996
|
-
align: 'left'
|
997
|
-
})
|
998
|
-
}
|
999
|
-
|
1000
|
-
for (let i in backData[device][item].f_items) {
|
1001
|
-
if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
|
1002
|
-
this.printContent.push({
|
1003
|
-
type: 3,
|
1004
|
-
text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
|
1005
|
-
fontsize: 2,
|
1006
|
-
isbold: false,
|
1007
|
-
align: 'left'
|
1008
|
-
})
|
1009
|
-
}
|
1010
1009
|
}
|
1011
|
-
this.printContent.push({type: 4, value: 2, unit: 'line'})
|
1012
1010
|
}
|
1011
|
+
this.printContent.push({type: 4, value: 2, unit: 'line'})
|
1013
1012
|
}
|
1014
1013
|
}
|
1015
1014
|
}
|
1016
1015
|
}
|
1017
1016
|
}
|
1018
|
-
}
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1017
|
+
}
|
1018
|
+
},
|
1019
|
+
//获取当前时间
|
1020
|
+
getNowFormatDate() {
|
1021
|
+
var date = new Date();
|
1022
|
+
var seperator1 = "-";
|
1023
|
+
var seperator2 = ":";
|
1024
|
+
var month = date.getMonth() + 1;
|
1025
|
+
var strDate = date.getDate();
|
1026
|
+
if (month >= 1 && month <= 9) {
|
1027
|
+
month = "0" + month;
|
1028
|
+
}
|
1029
|
+
if (strDate >= 0 && strDate <= 9) {
|
1030
|
+
strDate = "0" + strDate;
|
1031
|
+
}
|
1032
|
+
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
1033
|
+
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
1034
|
+
+ seperator2 + date.getSeconds();
|
1035
|
+
return currentdate;
|
1036
|
+
},
|
1037
|
+
readRepair() {
|
1038
|
+
let url = this.$androidUtil.getProxyUrl()
|
1039
|
+
let gen = getRepairs(this, url)
|
1040
|
+
return co(gen)
|
1041
|
+
},
|
1042
|
+
showToRepair() {
|
1043
|
+
let res = this.hasDefect()
|
1044
|
+
////tag
|
1045
|
+
////tag
|
1046
|
+
if (res == '正常') {
|
1047
|
+
this.showrepair = false
|
1048
|
+
} else {
|
1049
|
+
this.showrepair = true
|
1050
|
+
this.assignObj()
|
1051
|
+
}
|
1052
|
+
this.showCheckToRepair = !this.showCheckToRepair
|
1053
|
+
},
|
1054
|
+
// 选中部门
|
1055
|
+
reres(val) {
|
1056
|
+
if (val.res == undefined) {
|
1057
|
+
return
|
1058
|
+
}
|
1059
|
+
this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
|
1060
|
+
this.$parent.$parent.model.f_meetunit = val.res
|
1061
|
+
this.$parent.$parent.model.f_orgstr = val.resids
|
1062
|
+
var arr = val.res.split('.')
|
1063
|
+
this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
|
1064
|
+
this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
|
1065
|
+
},
|
1066
|
+
assignObj() {
|
1067
|
+
this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
|
1068
|
+
this.$parent.$parent.model.f_user_name = this.paper.f_user_name
|
1069
|
+
this.$parent.$parent.model.f_address = this.paper.f_address
|
1070
|
+
this.$parent.$parent.model.f_user_type = this.paper.f_check_type
|
1071
|
+
this.$parent.$parent.model.f_street = this.paper.f_street
|
1072
|
+
this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
|
1073
|
+
this.$parent.$parent.model.f_building = this.paper.f_building
|
1074
|
+
this.$parent.$parent.model.f_unit = this.paper.f_unit
|
1075
|
+
this.$parent.$parent.model.f_floor = this.paper.f_floor
|
1076
|
+
this.$parent.$parent.model.f_room = this.paper.f_room
|
1077
|
+
this.$parent.$parent.model.f_floor = this.paper.f_floor
|
1078
|
+
this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
|
1079
|
+
this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
|
1080
|
+
},
|
1081
|
+
hasDefect() {
|
1082
|
+
let checkResult = '正常'
|
1083
|
+
let codata = JSON.parse(JSON.stringify(this.paper))
|
1084
|
+
for (let device in this.paper) {
|
1085
|
+
if (device.startsWith("device")) {
|
1086
|
+
for (let item in this.paper[device]) {
|
1087
|
+
for (let i in this.paper[device][item].f_items) {
|
1088
|
+
let items = this.paper[device][item].f_items[i]
|
1089
|
+
////tag
|
1090
|
+
if (items.f_is_defect == true || items.f_is_defect == 'true') {
|
1091
|
+
checkResult = '有隐患'
|
1093
1092
|
}
|
1094
1093
|
}
|
1095
1094
|
}
|
1096
1095
|
}
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
////tag
|
1105
|
-
|
1106
|
-
if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
|
1107
|
-
this.$showMessage("请选择维修员!")
|
1108
|
-
return
|
1109
|
-
}
|
1110
|
-
if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
|
1111
|
-
this.$showMessage("请选择站点!")
|
1112
|
-
return
|
1113
|
-
}
|
1114
|
-
if (this.$parent.$parent.model.f_repairtype == '') {
|
1115
|
-
this.$showMessage("请选择报修类型!")
|
1116
|
-
return
|
1117
|
-
}
|
1118
|
-
this.$parent.$parent.isToRepair = true
|
1119
|
-
this.$parent.$parent.uploadCheckPaper()
|
1120
|
-
// this.$parent.$parent.savePaper(false).then((res) => {
|
1121
|
-
// ////tag
|
1122
|
-
// if(res != true){
|
1123
|
-
// ////tag
|
1124
|
-
// return
|
1125
|
-
// }else{
|
1126
|
-
// this.$parent.$parent.todo()
|
1127
|
-
// }
|
1128
|
-
// })
|
1129
|
-
} else {
|
1130
|
-
this.$parent.$parent.undo()
|
1131
|
-
}
|
1132
|
-
|
1133
|
-
},
|
1134
|
-
//确认安检转维修
|
1135
|
-
|
1136
|
-
undo() {
|
1137
|
-
this.showCheckToRepair = !this.showCheckToRepair
|
1138
|
-
this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
|
1139
|
-
this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
|
1140
|
-
this.$parent.$parent.model.f_repairtype = ''
|
1141
|
-
this.meading = '转站点'
|
1142
|
-
},
|
1143
|
-
//取消拉黑
|
1144
|
-
async deletebacklist() {
|
1145
|
-
if (!this.deletecause) {
|
1146
|
-
this.$showMessage("请填写取消拉黑原因!")
|
1147
|
-
return
|
1148
|
-
}
|
1149
|
-
this.paper.f_blocking_cause = this.deletecause
|
1150
|
-
////tag)
|
1151
|
-
let http = new HttpResetClass()
|
1096
|
+
}
|
1097
|
+
return checkResult
|
1098
|
+
},
|
1099
|
+
uploadPaper() {
|
1100
|
+
if (this.showrepair) {
|
1101
|
+
////tag
|
1102
|
+
////tag
|
1152
1103
|
////tag
|
1153
|
-
let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
1154
|
-
data: {
|
1155
|
-
items: "version",
|
1156
|
-
tablename: "t_userinfo",
|
1157
|
-
condition: "f_userinfo_id=" + this.paper.f_userinfoid,
|
1158
|
-
orderitem: "f_userinfo_id"
|
1159
|
-
}
|
1160
|
-
}, {resolveMsg: null, rejectMsg: null})
|
1161
|
-
////tag)
|
1162
1104
|
////tag
|
1163
|
-
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
|
1164
|
-
data: {
|
1165
|
-
"f_operat_type": "取消拉黑",
|
1166
|
-
"f_state": "有效",
|
1167
|
-
"f_user_name": this.paper.f_user_name,
|
1168
|
-
"f_comments": this.paper.f_delete_cause,
|
1169
|
-
"f_operator": Vue.user.name,
|
1170
|
-
"f_operatorid": Vue.user.id,
|
1171
|
-
"f_orgid": Vue.user.orgid,
|
1172
|
-
"f_orgname": Vue.user.orgs,
|
1173
|
-
"f_depid": Vue.user.depids,
|
1174
|
-
"f_depname": Vue.user.deps,
|
1175
|
-
"f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
|
1176
|
-
"f_userinfo_id": {
|
1177
|
-
"f_userinfo_id": this.paper.f_userinfoid,
|
1178
|
-
"f_user_state": "正常",
|
1179
|
-
"version": res1.data[0].version
|
1180
|
-
},
|
1181
|
-
"f_limit_times": "",
|
1182
|
-
"f_limit_value": ""
|
1183
|
-
}
|
1184
|
-
}, {resolveMsg: null, rejectMsg: null})
|
1185
1105
|
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
this.deleteenabled = true
|
1190
|
-
this.paper.f_blacklist = "否"
|
1191
|
-
this.$showMessage("取消该用户限制购气成功!")
|
1192
|
-
} else {
|
1193
|
-
this.$showMessage("网络异常,请稍后再试!")
|
1106
|
+
if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
|
1107
|
+
this.$showMessage("请选择维修员!")
|
1108
|
+
return
|
1194
1109
|
}
|
1195
|
-
|
1196
|
-
|
1197
|
-
if (!this.cause) {
|
1198
|
-
this.$showMessage("请填写拉黑原因!")
|
1110
|
+
if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
|
1111
|
+
this.$showMessage("请选择站点!")
|
1199
1112
|
return
|
1200
1113
|
}
|
1201
|
-
this.
|
1202
|
-
|
1203
|
-
|
1204
|
-
////tag
|
1205
|
-
let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
1206
|
-
data: {
|
1207
|
-
items: "version",
|
1208
|
-
tablename: "t_userinfo",
|
1209
|
-
condition: "f_userinfo_id=" + this.paper.f_userinfoid,
|
1210
|
-
orderitem: "f_userinfo_id"
|
1211
|
-
}
|
1212
|
-
}, {resolveMsg: null, rejectMsg: null})
|
1213
|
-
////tag)
|
1214
|
-
////tag
|
1215
|
-
let limit_times = 1
|
1216
|
-
let limit_value = 3
|
1217
|
-
if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
|
1218
|
-
limit_times = Vue.config.safecheck.ApproveConfig.limit_times
|
1219
|
-
limit_value = Vue.config.safecheck.ApproveConfig.limit_value
|
1114
|
+
if (this.$parent.$parent.model.f_repairtype == '') {
|
1115
|
+
this.$showMessage("请选择报修类型!")
|
1116
|
+
return
|
1220
1117
|
}
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
"f_depname": Vue.user.deps,
|
1236
|
-
"f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
|
1237
|
-
"f_userinfo_id": {
|
1238
|
-
"f_userinfo_id": this.paper.f_userinfoid
|
1239
|
-
},
|
1240
|
-
"f_limit_times": limit_times,
|
1241
|
-
"f_limit_value": limit_value
|
1242
|
-
}
|
1243
|
-
}, {resolveMsg: null, rejectMsg: null})
|
1118
|
+
this.$parent.$parent.isToRepair = true
|
1119
|
+
this.$parent.$parent.uploadCheckPaper()
|
1120
|
+
// this.$parent.$parent.savePaper(false).then((res) => {
|
1121
|
+
// ////tag
|
1122
|
+
// if(res != true){
|
1123
|
+
// ////tag
|
1124
|
+
// return
|
1125
|
+
// }else{
|
1126
|
+
// this.$parent.$parent.todo()
|
1127
|
+
// }
|
1128
|
+
// })
|
1129
|
+
} else {
|
1130
|
+
this.$parent.$parent.undo()
|
1131
|
+
}
|
1244
1132
|
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1133
|
+
},
|
1134
|
+
//确认安检转维修
|
1135
|
+
|
1136
|
+
undo() {
|
1137
|
+
this.showCheckToRepair = !this.showCheckToRepair
|
1138
|
+
this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
|
1139
|
+
this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
|
1140
|
+
this.$parent.$parent.model.f_repairtype = ''
|
1141
|
+
this.meading = '转站点'
|
1142
|
+
},
|
1143
|
+
//取消拉黑
|
1144
|
+
async deletebacklist() {
|
1145
|
+
if (!this.deletecause) {
|
1146
|
+
this.$showMessage("请填写取消拉黑原因!")
|
1147
|
+
return
|
1148
|
+
}
|
1149
|
+
this.paper.f_blocking_cause = this.deletecause
|
1150
|
+
////tag)
|
1151
|
+
let http = new HttpResetClass()
|
1152
|
+
////tag
|
1153
|
+
let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
1154
|
+
data: {
|
1155
|
+
items: "version",
|
1156
|
+
tablename: "t_userinfo",
|
1157
|
+
condition: "f_userinfo_id=" + this.paper.f_userinfoid,
|
1158
|
+
orderitem: "f_userinfo_id"
|
1257
1159
|
}
|
1258
|
-
},
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
})
|
1160
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1161
|
+
////tag)
|
1162
|
+
////tag
|
1163
|
+
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
|
1164
|
+
data: {
|
1165
|
+
"f_operat_type": "取消拉黑",
|
1166
|
+
"f_state": "有效",
|
1167
|
+
"f_user_name": this.paper.f_user_name,
|
1168
|
+
"f_comments": this.paper.f_delete_cause,
|
1169
|
+
"f_operator": Vue.user.name,
|
1170
|
+
"f_operatorid": Vue.user.id,
|
1171
|
+
"f_orgid": Vue.user.orgid,
|
1172
|
+
"f_orgname": Vue.user.orgs,
|
1173
|
+
"f_depid": Vue.user.depids,
|
1174
|
+
"f_depname": Vue.user.deps,
|
1175
|
+
"f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
|
1176
|
+
"f_userinfo_id": {
|
1177
|
+
"f_userinfo_id": this.paper.f_userinfoid,
|
1178
|
+
"f_user_state": "正常",
|
1179
|
+
"version": res1.data[0].version
|
1180
|
+
},
|
1181
|
+
"f_limit_times": "",
|
1182
|
+
"f_limit_value": ""
|
1282
1183
|
}
|
1283
|
-
},
|
1184
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1185
|
+
|
1186
|
+
////tag)
|
1187
|
+
if (res2.data.code == 200) {
|
1188
|
+
this.showmodelthree = false
|
1189
|
+
this.deleteenabled = true
|
1190
|
+
this.paper.f_blacklist = "否"
|
1191
|
+
this.$showMessage("取消该用户限制购气成功!")
|
1192
|
+
} else {
|
1193
|
+
this.$showMessage("网络异常,请稍后再试!")
|
1194
|
+
}
|
1284
1195
|
},
|
1285
|
-
async
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1196
|
+
async backlist() {
|
1197
|
+
if (!this.cause) {
|
1198
|
+
this.$showMessage("请填写拉黑原因!")
|
1199
|
+
return
|
1289
1200
|
}
|
1290
|
-
|
1201
|
+
this.paper.f_blocking_cause = this.cause
|
1202
|
+
////tag)
|
1203
|
+
let http = new HttpResetClass()
|
1291
1204
|
////tag
|
1205
|
+
let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
1206
|
+
data: {
|
1207
|
+
items: "version",
|
1208
|
+
tablename: "t_userinfo",
|
1209
|
+
condition: "f_userinfo_id=" + this.paper.f_userinfoid,
|
1210
|
+
orderitem: "f_userinfo_id"
|
1211
|
+
}
|
1212
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1213
|
+
////tag)
|
1292
1214
|
////tag
|
1215
|
+
let limit_times = 1
|
1216
|
+
let limit_value = 3
|
1217
|
+
if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
|
1218
|
+
limit_times = Vue.config.safecheck.ApproveConfig.limit_times
|
1219
|
+
limit_value = Vue.config.safecheck.ApproveConfig.limit_value
|
1220
|
+
}
|
1221
|
+
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
|
1222
|
+
data: {
|
1223
|
+
data: this.$parent.$parent.data,
|
1224
|
+
item: this.$parent.$parent.data.item,
|
1225
|
+
"f_operat_type": "拉黑",
|
1226
|
+
"f_state": "有效",
|
1227
|
+
"f_user_name": this.paper.f_user_name,
|
1228
|
+
"f_comments": this.paper.f_blocking_cause,
|
1229
|
+
"f_operator": Vue.user.name,
|
1230
|
+
"f_operate_date": Util.toStandardTimeString(),
|
1231
|
+
"f_operatorid": Vue.user.id,
|
1232
|
+
"f_orgid": Vue.user.orgid,
|
1233
|
+
"f_orgname": Vue.user.orgs,
|
1234
|
+
"f_depid": Vue.user.depids,
|
1235
|
+
"f_depname": Vue.user.deps,
|
1236
|
+
"f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
|
1237
|
+
"f_userinfo_id": {
|
1238
|
+
"f_userinfo_id": this.paper.f_userinfoid
|
1239
|
+
},
|
1240
|
+
"f_limit_times": limit_times,
|
1241
|
+
"f_limit_value": limit_value
|
1242
|
+
}
|
1243
|
+
}, {resolveMsg: null, rejectMsg: null})
|
1244
|
+
|
1293
1245
|
////tag)
|
1294
|
-
|
1295
|
-
|
1296
|
-
this
|
1297
|
-
this
|
1298
|
-
|
1299
|
-
|
1300
|
-
this
|
1301
|
-
|
1246
|
+
if (res2.data.code == 200) {
|
1247
|
+
this.showmodel = false
|
1248
|
+
this.enabled = true
|
1249
|
+
this.paper.f_blacklist = "是"
|
1250
|
+
this.$showMessage("将该用户限制购气成功!")
|
1251
|
+
} else if (res2.data.msg == '数据增加重复') {
|
1252
|
+
this.showmodel = false
|
1253
|
+
this.enabled = true
|
1254
|
+
this.$showMessage("该用户已被限制购气,请勿重复提交!")
|
1302
1255
|
} else {
|
1303
|
-
this.$
|
1304
|
-
this.$set('style_view_', '')
|
1256
|
+
this.$showMessage("网络异常,请稍后再试!")
|
1305
1257
|
}
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1258
|
+
},
|
1259
|
+
cancel() {
|
1260
|
+
this.backlistisselect = false
|
1261
|
+
this.showmodel = false
|
1262
|
+
},
|
1263
|
+
deletecancel() {
|
1264
|
+
this.deletebacklistisselect = false
|
1265
|
+
this.showmodelthree = false
|
1266
|
+
},
|
1267
|
+
repiarmancg(val) {
|
1268
|
+
if (val) {
|
1269
|
+
////tag
|
1270
|
+
this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
|
1271
|
+
let http1 = new HttpResetClass()
|
1272
|
+
http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
1273
|
+
data: {
|
1274
|
+
items: 'f_user_telephone',
|
1275
|
+
tablename: 't_user',
|
1276
|
+
condition: `name = '${val}'`,
|
1277
|
+
orderitem: 'id'
|
1278
|
+
}
|
1279
|
+
}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
|
1280
|
+
this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
|
1281
|
+
})
|
1311
1282
|
}
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1283
|
+
},
|
1284
|
+
},
|
1285
|
+
async ready() {
|
1286
|
+
this.isRecodr = this.$appdata.getSingleValue('无限制录音')
|
1287
|
+
if (this.$appdata.getSingleValue('安检时显示拉黑')) {
|
1288
|
+
this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
|
1289
|
+
}
|
1290
|
+
// await this.isoverDate()
|
1291
|
+
////tag
|
1292
|
+
////tag
|
1293
|
+
////tag)
|
1294
|
+
////tag))
|
1295
|
+
if (this.$parent.$parent.role == 'repair') {
|
1296
|
+
this.$set('style__', 'divmask')
|
1297
|
+
this.$set('style_view_', '')
|
1298
|
+
} else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
|
1299
|
+
this.$set('style__', 'divmask')
|
1300
|
+
this.$set('style_view_', 'divmask')
|
1320
1301
|
////tag
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1302
|
+
} else {
|
1303
|
+
this.$set('style__', '')
|
1304
|
+
this.$set('style_view_', '')
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
for (let item of this.radios) {
|
1308
|
+
if (this.paper.f_client_evaluation == item.label) {
|
1309
|
+
item.isChecked = true;
|
1326
1310
|
}
|
1327
|
-
|
1328
|
-
|
1311
|
+
}
|
1312
|
+
if (!this.paper.f_notified_path)
|
1313
|
+
this.$set('paper.f_notified_path', Vue.nopic)
|
1314
|
+
if (!this.paper.f_notified1_path)
|
1315
|
+
this.$set('paper.f_notified1_path', Vue.nopic)
|
1316
|
+
if (!this.paper.f_notified2_path)
|
1317
|
+
this.$set('paper.f_notified2_path', Vue.nopic)
|
1318
|
+
if (!this.paper.f_sign_path)
|
1319
|
+
this.$set('paper.f_sign_path', Vue.nopic)
|
1320
|
+
////tag
|
1321
|
+
if (!this.paper.f_overall_imgs) {
|
1322
|
+
let imgs = []
|
1323
|
+
// imgs.push({f_overall_path:Vue.nopic})
|
1324
|
+
this.$set('paper.f_overall_imgs', imgs)
|
1325
|
+
////tag
|
1326
|
+
}
|
1327
|
+
if (!this.paper.f_overall2_path)
|
1328
|
+
this.$set('paper.f_overall2_path', Vue.nopic)
|
1329
1329
|
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
}
|
1330
|
+
this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
|
1331
|
+
if (Vue.config.safecheck != undefined) {
|
1332
|
+
if (Vue.config.safecheck.ApproveConfig != undefined) {
|
1333
|
+
if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
|
1334
|
+
this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
|
1336
1335
|
}
|
1337
1336
|
}
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1337
|
+
}
|
1338
|
+
let device = this.$parent.$parent.data
|
1339
|
+
for (const deviceitem in device) {
|
1340
|
+
if (deviceitem.startsWith('device')) {
|
1341
|
+
//tag)
|
1342
|
+
if (device[deviceitem].length == 0) {
|
1343
|
+
continue
|
1344
|
+
}
|
1345
|
+
let items = device[deviceitem][0].f_items
|
1346
|
+
let deviceType = device[deviceitem][0].f_device_type
|
1347
|
+
for (let i = 0; i < items.length; i++) {
|
1348
|
+
if (items[i].f_is_defect) {
|
1349
|
+
let reason = items[i].f_item_name + ":"
|
1350
|
+
if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox') {
|
1351
|
+
for (let j = 0; j < items[i].f_item_value.length; j++) {
|
1352
|
+
if (j + 1 === items[i].f_item_value.length) {
|
1353
|
+
reason += items[i].f_item_value[j]
|
1354
|
+
} else {
|
1355
|
+
reason += items[i].f_item_value[j] + ","
|
1357
1356
|
}
|
1358
|
-
} else {
|
1359
|
-
reason += items[i].f_item_value
|
1360
|
-
}
|
1361
|
-
if (items[i].f_path) {
|
1362
|
-
this.defectImgs.push(items[i].f_path)
|
1363
|
-
}
|
1364
|
-
if (items[i].f_p1_path) {
|
1365
|
-
this.defectImgs.push(items[i].f_p1_path)
|
1366
|
-
}
|
1367
|
-
if (items[i].f_p2_path) {
|
1368
|
-
this.defectImgs.push(items[i].f_p2_path)
|
1369
1357
|
}
|
1370
|
-
|
1371
|
-
|
1372
|
-
}
|
1373
|
-
if (items[i].tooltip) {
|
1374
|
-
this.defectToolTip.push(items[i].tooltip)
|
1375
|
-
}
|
1376
|
-
this.defectReason.push({device: deviceType, deviceitem: reason})
|
1377
|
-
} else if (items[i].type === 'errorstring' && items[i].f_item_value) {
|
1378
|
-
let reason = items[i].f_item_name + ":" + items[i].f_item_value
|
1379
|
-
this.defectReason.push({device: deviceType, deviceitem: reason})
|
1358
|
+
} else {
|
1359
|
+
reason += items[i].f_item_value
|
1380
1360
|
}
|
1381
|
-
|
1361
|
+
if (items[i].f_path) {
|
1362
|
+
this.defectImgs.push(items[i].f_path)
|
1363
|
+
}
|
1364
|
+
if (items[i].f_p1_path) {
|
1365
|
+
this.defectImgs.push(items[i].f_p1_path)
|
1366
|
+
}
|
1367
|
+
if (items[i].f_p2_path) {
|
1368
|
+
this.defectImgs.push(items[i].f_p2_path)
|
1369
|
+
}
|
1370
|
+
if (items[i].f_p3_path) {
|
1371
|
+
this.defectImgs.push(items[i].f_p3_path)
|
1372
|
+
}
|
1373
|
+
if (items[i].tooltip) {
|
1374
|
+
this.defectToolTip.push(items[i].tooltip)
|
1375
|
+
}
|
1376
|
+
this.defectReason.push({device: deviceType, deviceitem: reason})
|
1377
|
+
} else if (items[i].type === 'errorstring' && items[i].f_item_value) {
|
1378
|
+
let reason = items[i].f_item_name + ":" + items[i].f_item_value
|
1379
|
+
this.defectReason.push({device: deviceType, deviceitem: reason})
|
1382
1380
|
}
|
1381
|
+
|
1383
1382
|
}
|
1384
1383
|
}
|
1384
|
+
}
|
1385
|
+
////tag
|
1386
|
+
////tag
|
1387
|
+
//tag
|
1388
|
+
////tag
|
1389
|
+
//tag)
|
1390
|
+
//tag)
|
1391
|
+
//tag)
|
1392
|
+
////tag
|
1393
|
+
////tag
|
1394
|
+
////tag
|
1395
|
+
},
|
1396
|
+
watch: {
|
1397
|
+
'$parent.$parent.isUpload'(val) {
|
1385
1398
|
////tag
|
1399
|
+
},
|
1400
|
+
'meading'(val) {
|
1386
1401
|
////tag
|
1387
|
-
|
1388
|
-
////tag
|
1389
|
-
//tag)
|
1390
|
-
//tag)
|
1391
|
-
//tag)
|
1392
|
-
////tag
|
1393
|
-
////tag
|
1394
|
-
////tag
|
1402
|
+
this.$parent.$parent.meading = val
|
1395
1403
|
},
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
if (val == true) {
|
1412
|
-
this.showmodelthree = true
|
1413
|
-
this.backlistisselect = false
|
1414
|
-
}
|
1415
|
-
},
|
1416
|
-
'isRecodr'(val) {
|
1417
|
-
if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
|
1418
|
-
this.isRecodr = "false";
|
1419
|
-
}
|
1404
|
+
'backlistisselect'(val) {
|
1405
|
+
if (val == true) {
|
1406
|
+
this.showmodel = true
|
1407
|
+
this.deletebacklistisselect = false
|
1408
|
+
}
|
1409
|
+
},
|
1410
|
+
'deletebacklistisselect'(val) {
|
1411
|
+
if (val == true) {
|
1412
|
+
this.showmodelthree = true
|
1413
|
+
this.backlistisselect = false
|
1414
|
+
}
|
1415
|
+
},
|
1416
|
+
'isRecodr'(val) {
|
1417
|
+
if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
|
1418
|
+
this.isRecodr = "false";
|
1420
1419
|
}
|
1421
1420
|
}
|
1422
1421
|
}
|
1422
|
+
}
|
1423
1423
|
</script>
|
1424
1424
|
<style scoped>
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1425
|
+
.panel-self {
|
1426
|
+
border-radius: 5px;
|
1427
|
+
border: 1px solid #c5e1f7;
|
1428
|
+
background-color: #F2F6FA;
|
1429
|
+
}
|
1430
1430
|
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1431
|
+
.text-left {
|
1432
|
+
text-align: left;
|
1433
|
+
}
|
1434
1434
|
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1435
|
+
.font {
|
1436
|
+
font: 15px PingFang-SC-Medium;
|
1437
|
+
color: #333333;
|
1438
|
+
}
|
1439
1439
|
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1440
|
+
.showIi {
|
1441
|
+
font: 14px PingFang-SC-Medium;
|
1442
|
+
color: #666666;
|
1443
|
+
}
|
1444
1444
|
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1445
|
+
.info {
|
1446
|
+
margin-top: 15px;
|
1447
|
+
border-radius: 5px;
|
1448
|
+
background-color: #f3faff;
|
1449
|
+
}
|
1450
1450
|
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1451
|
+
.btn-photo {
|
1452
|
+
border: 0;
|
1453
|
+
border-radius: 7px;
|
1454
|
+
background-color: #7dc1f4;
|
1455
|
+
font: 15px PingFang-SC-Bold;
|
1456
|
+
height: 20%;
|
1457
|
+
}
|
1458
1458
|
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1459
|
+
.div-photo {
|
1460
|
+
width: auto;
|
1461
|
+
height: auto;
|
1462
|
+
/* margin-top: 10px; */
|
1463
|
+
position: absolute;
|
1464
|
+
bottom: 10px;
|
1465
|
+
right: 10px;
|
1466
|
+
}
|
1467
1467
|
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1468
|
+
.btn-voice {
|
1469
|
+
border-radius: 7px;
|
1470
|
+
border: 1px solid #dedede;
|
1471
|
+
background-color: #f5fbff;
|
1472
|
+
font: 15px PingFang-SC-Bold;
|
1473
|
+
color: #499edf;
|
1474
|
+
}
|
1475
1475
|
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1476
|
+
.save-btn {
|
1477
|
+
width: 25%;
|
1478
|
+
background-color: #499edf;
|
1479
|
+
border-radius: 6px;
|
1480
|
+
color: #FFFFFF;
|
1481
|
+
font: 15px PingFang-SC-Bold;
|
1482
|
+
}
|
1483
1483
|
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1484
|
+
.upload-btn {
|
1485
|
+
width: 25%;
|
1486
|
+
background-color: #ffffff;
|
1487
|
+
border: 1px solid #499edf;
|
1488
|
+
border-radius: 6px;
|
1489
|
+
color: #499edf;
|
1490
|
+
font: 15px PingFang-SC-Bold;
|
1491
|
+
}
|
1492
1492
|
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1493
|
+
.repair-btn {
|
1494
|
+
width: 25%;
|
1495
|
+
border: 1px solid #499edf;
|
1496
|
+
border-radius: 6px;
|
1497
|
+
font: 15px PingFang-SC-Bold;
|
1498
|
+
}
|
1499
1499
|
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1500
|
+
#el_ca_tx {
|
1501
|
+
width: 100%;
|
1502
|
+
margin: 5px;
|
1503
|
+
}
|
1504
1504
|
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1505
|
+
#el_ca_txt {
|
1506
|
+
width: 100%;
|
1507
|
+
margin: 5px;
|
1508
|
+
}
|
1509
1509
|
</style>
|