safecheck-client 3.0.35-5 → 3.0.35-51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/src/bootstrap/less/pager.less +76 -76
  3. package/src/components/NewDefectList/DefectListNew.vue +617 -617
  4. package/src/components/NewDefectList/DefectPaperNew.vue +3 -3
  5. package/src/components/Util/SafecheckUpload.vue +4 -0
  6. package/src/components/android/CheckPlanDown.vue +1 -1
  7. package/src/components/android/CivilCurrentCreate.vue +56 -41
  8. package/src/components/android/NoCivilCurrentCreate.vue +10 -0
  9. package/src/components/android/PaperFeedback.vue +1 -1
  10. package/src/components/android/PhoneUpUserinfo.vue +25 -6
  11. package/src/components/android/PhoneotherInfo.vue +0 -14
  12. package/src/components/android/PhoneotherInfov3.vue +118 -0
  13. package/src/components/android/SafecheckDevices.vue +1298 -1298
  14. package/src/components/android/SafecheckOrderV.vue +2 -529
  15. package/src/components/pc/AddPlanItemYyChange.vue +743 -0
  16. package/src/components/pc/NewCheckpaper.vue +1998 -1943
  17. package/src/components/pc/SecurityCheckLedger.vue +133 -0
  18. package/src/components/pc/SecurityCheckList.vue +160 -0
  19. package/src/components/pc/SecurityCheckManage.vue +106 -0
  20. package/src/components/planmanage/PlanManage.vue +47 -2
  21. package/src/components/report/CheckPlanAreaList.vue +25 -5
  22. package/src/components/rongcheng/AddPlanItem.vue +1 -1
  23. package/src/components/rongcheng/AspiratedAreaPlan.vue +1 -0
  24. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
  25. package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
  26. package/src/components/rongcheng/CheckSearchUser.vue +1 -1
  27. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  28. package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
  29. package/src/filiale/bayan/android/AddPlanItem.vue +450 -430
  30. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -249
  31. package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
  32. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
  33. package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
  34. package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
  35. package/src/filiale/bayan/pc/DefectPaperNew.vue +22 -1
  36. package/src/filiale/bayan/pc/PlanManage.vue +962 -962
  37. package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
  38. package/src/filiale/dexin/pc/DefectListNew.vue +643 -0
  39. package/src/filiale/dexin/pc/DefectMainNew.vue +63 -0
  40. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -0
  41. package/src/filiale/dexin/pc.js +1 -0
  42. package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
  43. package/src/filiale/huaran/android.js +1 -0
  44. package/src/filiale/huaran/pc/PaperList.vue +22 -1
  45. package/src/filiale/huaran/pc/PlanManage.vue +66 -7
  46. package/src/filiale/huaran/pc/checkUserList.vue +55 -22
  47. package/src/filiale/huaran/pc.js +1 -0
  48. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  49. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  50. package/src/filiale/qianneng/android/SwitchValve.vue +1 -0
  51. package/src/filiale/rizhao/pc/NewCheckpaper.vue +9 -4
  52. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  53. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  54. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +21 -0
  55. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  56. package/src/filiale/siyang/android/PaperFeedback.vue +1514 -0
  57. package/src/filiale/siyang/android.js +1 -0
  58. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  59. package/src/filiale/siyang/pc/checkUserList.vue +123 -148
  60. package/src/filiale/tianke/pc/DefectListNew.vue +10 -3
  61. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
  62. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
  63. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  64. package/src/filiale/weinan/android/PaperFeedback.vue +34 -8
  65. package/src/filiale/weinan/android/SafecheckOrderV.vue +2 -1
  66. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  67. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  68. package/src/filiale/weinan/pc/NewCheckpaper.vue +20 -0
  69. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  70. package/src/filiale/xilan/android/CurrentCreate.vue +1053 -1067
  71. package/src/filiale/xilan/android.js +0 -1
  72. package/src/filiale/xilan/pc/PaperList.vue +795 -0
  73. package/src/filiale/xilan/pc.js +13 -12
  74. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  75. package/src/filiale/zhongsheng/android/SafecheckDevices.vue +4 -4
  76. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +33 -1
  77. package/src/safecheck-android.js +1 -0
  78. package/src/safecheck.js +12 -0
  79. package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -1,7 +1,4 @@
1
1
  <template>
2
- <!--<div class="app-botton" @click="back()">-->
3
- <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
- <!--</div>-->
5
2
  <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
3
  <div class="col-sm-12 col-xs-12" >
7
4
  <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
@@ -125,16 +122,8 @@
125
122
  </template>
126
123
 
127
124
  <script>
128
- // 户内维修
129
125
  import Vue from 'vue'
130
126
  import * as Util from '../Util'
131
- // import DoorService from './DoorService'
132
- // import Pipeline from './Pipeline'
133
- // import DeviceService from './DeviceService'
134
- // import TroubleRemoval from './TroubleRemoval'
135
- // import FirstGasCheck from './FirstGasCheck'
136
- // import RepairMatterInfo from './RepairMatterInfo'
137
- // import TelChangeMatter from './TelChangeMatter'
138
127
  import { HttpResetClass } from 'vue-client'
139
128
  import co from 'co'
140
129
  import $ from "jquery";
@@ -519,16 +508,11 @@
519
508
  }
520
509
  },
521
510
  changediv(val){
522
- //tag
523
511
  return val
524
512
  },
525
513
  // 选择tab
526
514
  tabSelect (item,number) {
527
515
  this.header = item.header
528
- //tag
529
- //tag
530
- //tag
531
- //tag
532
516
  // 处理关闭/显示 内容
533
517
  if(this.number == number && !this.routeShow ){
534
518
  this.routeShow = true
@@ -539,14 +523,10 @@
539
523
  }
540
524
  this.number = number
541
525
  this.componentName = item.complete
542
- //tag
543
526
  if(item.complete == 'safecheck-devices'){
544
- //tag
545
527
  if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
546
528
  this.data['device' + item.number].push({})
547
529
  }
548
- //tag
549
- //tag)
550
530
  let idx=this.data['device' + item.number].length - 1
551
531
  let itemprops = {
552
532
  config:this.config,
@@ -554,16 +534,10 @@
554
534
  idx:idx,
555
535
  role:'inspect'
556
536
  }
557
- //tag
558
- //tag)
559
- //tag)
560
- //tag
561
537
  if(this.routeShow){
562
538
  this.$goto(item.complete, itemprops, 'repair')
563
- //tag
564
539
  }
565
540
  }else{
566
- //tag
567
541
  if(this.routeShow){
568
542
  this.$goto(item.complete, {userinfo:this.data}, 'repair')
569
543
  }
@@ -590,8 +564,6 @@
590
564
  }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
591
565
  for (let i = 0; i < res.data.length; i++) {
592
566
  for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
593
- //tag)
594
- //tag
595
567
  if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
596
568
  this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
597
569
  }
@@ -680,9 +652,6 @@
680
652
  return '拒捡必须拍照'
681
653
  },
682
654
  verifyUser() {
683
- //tag
684
- //tag
685
- //tag)
686
655
  let prefix = '用户基本信息:'
687
656
  if(Util.required(this.data.f_user_name))
688
657
  return prefix + '用户名必须输入'
@@ -757,7 +726,6 @@
757
726
  },
758
727
  verifyFeedback() {
759
728
  let prefix = '拍照签名:'
760
- //tag)
761
729
  if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length < this.imgsnum) && this.data.f_entry_status == '入户')
762
730
  return prefix + `必须有${this.imgsnum}安检总体照片`
763
731
  if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
@@ -776,14 +744,11 @@
776
744
  }
777
745
  let value = ''
778
746
  let codata = JSON.parse(JSON.stringify(this.data))
779
- //tag)
780
- //tag)
781
747
  codata.f_devices = []
782
748
  this.f_devices = []
783
749
  for (let device in codata) {
784
750
  let f_device_type
785
751
  if (device.startsWith("device")) {
786
- //tag)
787
752
  let hasOther = ''
788
753
  let otherValue = null
789
754
  for (let item in codata[device]) {
@@ -797,10 +762,6 @@
797
762
  } else {
798
763
  f_device_type = codata[device][item].f_device_type
799
764
  }
800
- //tag
801
- //tag
802
- //tag)
803
- //tag)
804
765
  if(item == 'sum' || item == 'removeEmpty'){
805
766
  continue
806
767
  }
@@ -809,31 +770,9 @@
809
770
  if(i == 'sum' || i == 'removeEmpty'){
810
771
  continue
811
772
  }
812
- //tag)
813
773
  var items = codata[device][item].f_items[i]
814
774
  items.f_create_time = Util.toStandardTimeString()
815
- //tag)
816
775
  items.f_item_lists = []
817
- //tag)
818
- // //tag)
819
- // //tag} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
820
- // console.log(`f_is_defect => ${this.config[codata[device][item]
821
- // .f_device_type]
822
- // .items[items.f_item_name]
823
- // .options
824
- // .find((option)=>option.data === items.f_item_value)
825
- // .map((option)=>option.f_is_defect)}`)
826
- // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
827
- // //tag
828
- // checkResults.result = '有隐患'
829
- // //tag)
830
- // //tag)
831
- // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
832
- // this.checkResult[items.f_item_name] = items.f_item_value
833
- // //tag)
834
- // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
835
- // // //tag)
836
- // }
837
776
  if (items.type == 'selector') {
838
777
  items.selected = []
839
778
  } else if (items.type == 'inputSelector') {
@@ -844,11 +783,6 @@
844
783
  let f_defect_level //是否是隐患
845
784
  let f_item_name = items.f_item_name
846
785
  let f_item_value
847
- let f_is_eliminate //隐患是否消除
848
- let f_meternumber = ''
849
- let f_user_defects = [] // 用户所有隐患
850
- //tag
851
- //tag
852
786
  if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
853
787
  for (let i in items.f_item_value) {
854
788
  if(typeof items.f_item_value[i]=='function'){
@@ -866,11 +800,6 @@
866
800
  f_is_defect = configItems.options[k].isdefect
867
801
  f_item_value = items.f_item_value[i]
868
802
  f_defect_level = configItems.options[k].level
869
-
870
- //tag
871
- //tag
872
- //tag
873
-
874
803
  if (f_is_defect) {
875
804
  if (checkResults.result !== '有隐患') {
876
805
  checkResults.result = '有隐患'
@@ -882,11 +811,8 @@
882
811
  this.repairDefect.data.push(`${f_item_name} : ${f_item_value}`)
883
812
  }
884
813
  if (!this.checkResult.hasOwnProperty(f_device_type+'-'+f_item_name)) {
885
- //tag
886
814
  this.checkResult[f_device_type+'-'+f_item_name] = []
887
815
  }
888
-
889
- //tag
890
816
  this.checkResult[f_device_type+'-'+f_item_name].push(f_item_value)
891
817
 
892
818
  }
@@ -899,17 +825,12 @@
899
825
  f_create_time: Util.toStandardTimeString()
900
826
  }
901
827
  if (!items.f_item_lists) {
902
- //tag
903
828
  items.f_item_lists = []
904
- //tag)
905
829
  if (JSON.stringify(items_list) !== '{}') {
906
- //tag
907
830
  items.f_item_lists.push(items_list)
908
831
  }
909
832
  } else {
910
- //tag)
911
833
  if (JSON.stringify(items_list) !== '{}') {
912
- //tag
913
834
  items.f_item_lists.push(items_list)
914
835
  }
915
836
  }
@@ -933,43 +854,30 @@
933
854
  checkResults.result = '有隐患'
934
855
  }
935
856
  if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
936
- //tag
937
857
  this.checkResult[items.f_item_name] = []
938
858
  }
939
859
 
940
- //tag
941
860
  this.checkResult[items.f_item_name].push(f_item_value)
942
861
 
943
862
  }
944
- //tag)
945
- //tag)
946
863
  if (!items.f_item_lists) {
947
- //tag
948
864
  items.f_item_lists = []
949
865
  if (JSON.stringify(items_list) != '{}') {
950
- //tag
951
866
  items.f_item_lists.push(items_list)
952
867
  }
953
868
  } else {
954
- // items.f_item_lists[0].f_item_value = f_item_value
955
869
  if (JSON.stringify(items_list) != '{}') {
956
- //tag
957
- //tag)
958
- //tag)
959
- //tag
960
870
  items.f_item_lists.push(items_list)
961
871
  }
962
872
  }
963
873
  }
964
874
  if (hasOther !== '' && otherValue !== null) {
965
- //tag
966
875
  this.checkResult[hasOther].push(otherValue)
967
876
  hasOther = ''
968
877
  otherValue = null
969
878
  }
970
879
  items.f_item_value = ''
971
880
  }
972
- //tag)
973
881
  this.f_devices.push(codata[device][item])
974
882
  }
975
883
  }
@@ -980,15 +888,9 @@
980
888
  continue
981
889
  }
982
890
  // 上次安检结果数据组织
983
- //tag
984
- //tag
985
891
  let temp = {}
986
892
  temp[key] = this.checkResult[key].join(',')
987
893
  checkResults.data.push(temp)
988
- // this.newcheckResult[key] = this.checkResult[key]
989
- // checkResults.data.push(this.newcheckResult)
990
- //tag)
991
- // this.newcheckResult = {}
992
894
  }
993
895
  this.checkResult = {}
994
896
  }
@@ -1004,7 +906,6 @@
1004
906
  }
1005
907
  codata.f_defect_content = JSON.stringify(checkResults)
1006
908
  this.data.f_defect_content = JSON.stringify(checkResults)
1007
- //tag
1008
909
  return codata
1009
910
  },
1010
911
  uploadCheckPaper(){
@@ -1020,158 +921,16 @@
1020
921
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
1021
922
  this.$set('data.f_upload_time', Util.toStandardTimeString())
1022
923
  this.$set('data.f_upload_date', Util.toStandardTimeString())
1023
- //tag
1024
924
  this.data.f_complete = '已完成'
1025
925
  this.disableTimer()
1026
926
  }
1027
- //tag
1028
927
  this.onlySave = false
1029
928
  this.assemblyCodata()
1030
929
  if (this.repairDefect.result != '正常') {
1031
930
  return this.$showMessage('有隐患的处理方式为转维修,请点击转维修')
1032
931
  }
1033
- let res = this.save()
1034
- // if(res) {
1035
- // try {
1036
- // let codata = this.getAllDefect()
1037
- // //获取微信推送内容
1038
- // let WxResult = this.getWeixin(codata)
1039
- // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1040
- // f_check_item_id: this.data.f_check_item_id
1041
- // })
1042
- // //如果是转维修上传,则不做校验,上传完成后自动转维修
1043
- // //tag
1044
- // //tag
1045
- // if(!this.isToRepair){
1046
- // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1047
- // //tag
1048
- // //tag
1049
- // if(!this.isSafeCheckToRepair){
1050
- // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
1051
- // return
1052
- // }
1053
- // }
1054
- // }
1055
- // //tag
1056
- // for (let key in codata){
1057
- // if(key.startsWith("device")){
1058
- // codata[key] = []
1059
- // }
1060
- // }
1061
- // //tag}`)
1062
- //
1063
- // //tag
1064
- // let isStart = true
1065
- // let res
1066
- // for (let i in this.f_devices){
1067
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1068
- // if(res.code == 200){
1069
- // isStart = false
1070
- // }else{
1071
- // this.$showMessage("保存失败!")
1072
- // }
1073
- // }
1074
- // let result = HostApp.organizeJSON({
1075
- // isStart:false,
1076
- // isJSON:true,
1077
- // jsonstr:{
1078
- // f_check_item_id: this.data.f_check_item_id,
1079
- // f_checker_id: this.data.f_checker_id,
1080
- // row: codata
1081
- // }
1082
- // })
1083
- // if(result.code == 200){
1084
- // HostApp.__this__ = this
1085
- // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
1086
- // }
1087
- //
1088
- //
1089
- // // let response = this.$androidUtil.bzLogic('上传安检信息', {
1090
- // // f_check_item_id: this.data.f_check_item_id,
1091
- // // f_checker_id: this.data.f_checker_id,
1092
- // // row: codata
1093
- // // })
1094
- // // if (response.code == 200) {
1095
- // // //tag
1096
- // // //tag)
1097
- // // let f_paper_id
1098
- // // if(response.data != '' && response.data != null){
1099
- // // f_paper_id = JSON.parse(response.data).id
1100
- // // }
1101
- // // this.$set('data.f_paper_id', f_paper_id)
1102
- // // //tag
1103
- // // //tag)
1104
- // // //tag
1105
- // // //tag)
1106
- // // for (let device in this.data){
1107
- // // //tag
1108
- // // //tag)
1109
- // // if(device.startsWith("device")){
1110
- // // for(let devices of this.data[device]) {
1111
- // // devices.f_paper_id = f_paper_id
1112
- // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
1113
- // // row: devices
1114
- // // })
1115
- // // //tag}`)
1116
- // // if(ret.code == 200){
1117
- // // //tag
1118
- // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
1119
- // // }
1120
- // // //tag
1121
- // // //tag)
1122
- // // if (ret.code != 200) {
1123
- // // //TODO 失败后处理
1124
- // // // this.isUpload = false
1125
- // // this.$showMessage("上传失败!")
1126
- // // return false
1127
- // // }
1128
- // // }
1129
- // // }
1130
- // // }
1131
- // // // for (let device of this.f_devices) {
1132
- // // // device.f_paper_id = f_paper_id
1133
- // // // //tag
1134
- // // // //tag)
1135
- // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
1136
- // // // row: device
1137
- // // // })
1138
- // // // //tag
1139
- // // // if (ret.code != 200) {
1140
- // // // //TODO 失败后处理
1141
- // // // HostApp.alert("上传失败!")
1142
- // // // return false
1143
- // // // }
1144
- // // // }
1145
- // // let result = this.$androidUtil.bzLogic('FinishUpload',
1146
- // // {
1147
- // // f_check_item_id: this.data.f_check_item_id,
1148
- // // f_userinfo_id: codata.f_userinfoid,
1149
- // // f_last_check_result: codata.f_defect_content
1150
- // // })
1151
- // // if(result.code == 200){
1152
- // // // this.$showAlert('上传成功!', 'success', 2000)
1153
- // // this.$showMessage('上传成功!')
1154
- // // this.isStrat=false
1155
- // // if(url != "" ){
1156
- // // this.$resetpost(`${url}`,{data:WxResult})
1157
- // // }
1158
- // // return true
1159
- // // }else{
1160
- // // // this.isUpload = false
1161
- // // this.$showMessage("上传失败!")
1162
- // // return false
1163
- // // }
1164
- // // }else{
1165
- // // // this.isUpload = false
1166
- // // this.$showMessage("上传失败!")
1167
- // // return false
1168
- // // }
1169
- // }catch (e) {
1170
- // //tag)
1171
- // // this.isUpload = false
1172
- // this.$showMessage("上传失败!")
1173
- // }
1174
- // }
932
+ this.save()
933
+
1175
934
  },
1176
935
  //将数据组装提出
1177
936
  assemblyCodata(){
@@ -1193,8 +952,6 @@
1193
952
  }
1194
953
  //禁用事件
1195
954
  this.saveNoclick()
1196
- //tag
1197
- //tag
1198
955
  if(type == 'temp'){
1199
956
  this.data.f_complete = '未完成'
1200
957
  this.rowCodata.f_complete = '未完成'
@@ -1206,9 +963,6 @@
1206
963
  this.closely(false) // 保存本地,不删除录音文件暂停录音
1207
964
  let errString = this.errorVerify()
1208
965
  if (errString) {
1209
- //tag
1210
- //tag
1211
- //tag
1212
966
  if (Vue.android){
1213
967
  this.$showMessage(errString)
1214
968
  }
@@ -1221,7 +975,6 @@
1221
975
  this.disableTimer()
1222
976
  }
1223
977
  }
1224
- //tag
1225
978
  if(this.data.f_blacklist!='是'){
1226
979
  delete this.data.f_blocking_cause
1227
980
  }
@@ -1245,55 +998,19 @@
1245
998
  this.data.f_noanswer1_path = null
1246
999
  this.data.f_noanswer2_path = null
1247
1000
  }
1248
- // try {
1249
1001
  let codata = this.rowCodata
1250
- //tag
1251
- //tag}`)
1252
1002
  for (let key in codata) {
1253
1003
  if (key.startsWith("device")) {
1254
- //tag)
1255
1004
  codata[key] = []
1256
1005
  }
1257
1006
  }
1258
1007
  codata.f_complete = this.data.f_complete
1259
- //tag}`)
1260
- //tag}`)
1261
- //tag
1262
1008
  if (Vue.android) {
1263
- //tag
1264
1009
  let value = this.$androidUtil.path({
1265
1010
  alias: 'getUserinfomation',
1266
1011
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1267
1012
  })
1268
- //tag)
1269
1013
  if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && this.item.f_no_checkplan != '打回') {
1270
- // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1271
- // f_check_item_id: this.data.f_check_item_id,
1272
- // f_checker_id: this.data.f_checker_id,
1273
- // f_upload_state:'未传',
1274
- // row: codata
1275
- // })
1276
- //tag
1277
- let isStart = true
1278
- // let res
1279
- // for (let i in this.f_devices) {
1280
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1281
- // if (res.code == 200) {
1282
- // isStart = false
1283
- // } else {
1284
- // this.$showMessage("保存失败!")
1285
- // }
1286
- // }
1287
- // let result = HostApp.organizeJSON({
1288
- // isStart: false,
1289
- // isJSON: true,
1290
- // jsonstr: {
1291
- // f_check_item_id: this.data.f_check_item_id,
1292
- // f_checker_id: this.data.f_checker_id,
1293
- // f_upload_state: '未传',
1294
- // row: codata
1295
- // }
1296
- // })
1297
1014
  codata.f_devices = this.f_devices
1298
1015
  if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1299
1016
  this.rowCodata = Object.assign({},this.rowCodata,codata)
@@ -1304,10 +1021,8 @@
1304
1021
  f_check_item_id: this.data.f_check_item_id,
1305
1022
  f_checker_id: this.data.f_checker_id,
1306
1023
  f_upload_state: '未传',
1307
- // row: codata
1308
1024
  row: this.rowCodata
1309
1025
  }
1310
- //tag)
1311
1026
  let paramStr = JSON.stringify(param)
1312
1027
  // 多长截断一次
1313
1028
  let subLength = 800
@@ -1326,36 +1041,6 @@
1326
1041
  'backresult': 1
1327
1042
  })
1328
1043
  } else {
1329
- // console.log("dddddddd")
1330
- //tag
1331
- let isStart = true
1332
- let res
1333
- //tag)
1334
- // for (let i in this.f_devices) {
1335
- // //tag)
1336
- // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
1337
- // //tag)
1338
- // }
1339
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
1340
- // //tag)
1341
- // if (res.code == 200) {
1342
- // isStart = false
1343
- // } else {
1344
- // this.$showMessage("保存失败!")
1345
- // }
1346
- // }
1347
- //tag)
1348
- //tag)
1349
- //tag)
1350
- // let result = HostApp.organizeJSON({
1351
- // isStart: false,
1352
- // isJSON: true,
1353
- // jsonstr: {
1354
- // f_check_item_id: this.data.f_check_item_id,
1355
- // f_checker_id: this.data.f_checker_id,
1356
- // row: codata
1357
- // }
1358
- // })
1359
1044
  codata.f_devices = this.f_devices
1360
1045
  if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1361
1046
  this.rowCodata = Object.assign({},this.rowCodata,codata)
@@ -1365,11 +1050,8 @@
1365
1050
  let param = {
1366
1051
  f_check_item_id: this.data.f_check_item_id,
1367
1052
  f_checker_id: this.data.f_checker_id,
1368
- // row: codata
1369
1053
  row: this.rowCodata
1370
1054
  }
1371
- //tag)
1372
- // console.log("ni"+JSON.stringify(param))
1373
1055
  let paramStr = JSON.stringify(param)
1374
1056
  // 多长截断一次
1375
1057
  let subLength = 800
@@ -1390,7 +1072,6 @@
1390
1072
  }
1391
1073
 
1392
1074
  } else {
1393
- //tag
1394
1075
  let value = this.$androidUtil.path({
1395
1076
  alias: 'getUserinfomation',
1396
1077
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
@@ -1405,7 +1086,6 @@
1405
1086
  f_check_item_id: this.data.f_check_item_id,
1406
1087
  f_checker_id: this.data.f_checker_id,
1407
1088
  f_upload_state: '未传',
1408
- // row: codata
1409
1089
  row: this.rowCodata
1410
1090
  }).then((res) => {
1411
1091
  if (res.data.code == 200) {
@@ -1413,21 +1093,14 @@
1413
1093
  this.$androidUtil.bzLogic('getPaperInfo', {
1414
1094
  f_check_item_id: this.data.f_check_item_id
1415
1095
  }).then((res) => {
1416
- //tag
1417
1096
  if (res.data.code == 200) {
1418
-
1419
1097
  let f_paper_id = res.data.data[0].id
1420
1098
  for (let device of this.f_devices) {
1421
1099
  device.f_paper_id = f_paper_id
1422
- //tag
1423
1100
  this.$androidUtil.bzLogic('saveDevice', {
1424
1101
  row: device
1425
1102
  }).then((ret) => {
1426
- //tag
1427
1103
  if (ret.code != 200) {
1428
- // if(this.isUpload){
1429
- // this.isUpload = false
1430
- // }
1431
1104
  //TODO 失败后处理
1432
1105
  this.$showMessage("保存失败!")
1433
1106
  return false
@@ -1436,13 +1109,9 @@
1436
1109
  }
1437
1110
  }
1438
1111
  })
1439
- // this.$showAlert('保存成功!', 'success', 2000)
1440
1112
  this.$showMessage('保存成功!')
1441
1113
  return true
1442
1114
  } else {
1443
- // if(this.isUpload){
1444
- // this.isUpload = false
1445
- // }
1446
1115
  this.$showMessage("保存失败!")
1447
1116
  return false
1448
1117
  }
@@ -1454,27 +1123,20 @@
1454
1123
  f_checker_id: this.data.f_checker_id,
1455
1124
  row: this.rowCodata
1456
1125
  }).then((res) => {
1457
- //tag
1458
1126
  if (res.data.code == 200) {
1459
1127
  //保存devices
1460
1128
  this.$androidUtil.bzLogic('getPaperInfo', {
1461
1129
  f_check_item_id: this.data.f_check_item_id
1462
1130
  }).then((res) => {
1463
- //tag
1464
1131
  if (res.data.code == 200) {
1465
1132
 
1466
1133
  let f_paper_id = res.data.data[0].id
1467
1134
  for (let device of this.f_devices) {
1468
1135
  device.f_paper_id = f_paper_id
1469
- //tag
1470
1136
  this.$androidUtil.bzLogic('saveDevice', {
1471
1137
  row: device
1472
1138
  }).then((ret) => {
1473
- //tag
1474
1139
  if (ret.code != 200) {
1475
- // if(this.isUpload){
1476
- // this.isUpload = false
1477
- // }
1478
1140
  //TODO 失败后处理
1479
1141
  this.$showMessage("保存失败!")
1480
1142
  return false
@@ -1483,24 +1145,15 @@
1483
1145
  }
1484
1146
  }
1485
1147
  })
1486
- // this.$showAlert('保存成功!', 'success', 2000)
1487
1148
  this.$showMessage('保存成功!')
1488
1149
  return true
1489
1150
  } else {
1490
- // if(this.isUpload){
1491
- // this.isUpload = false
1492
- // }
1493
1151
  this.$showMessage("保存失败!")
1494
1152
  return false
1495
1153
  }
1496
1154
  })
1497
1155
  }
1498
1156
  }
1499
- // }catch (e) {
1500
- // //tag)
1501
- // // this.isUpload = false
1502
- // this.$showMessage("保存失败!")
1503
- // }
1504
1157
  },
1505
1158
  runSyncLogic(logic,callback,backresult){
1506
1159
  HostApp.runSyncLogic({
@@ -1529,13 +1182,9 @@
1529
1182
  })
1530
1183
  },
1531
1184
  saveCallBack(jo){
1532
- //tag)
1533
- // console.log("jjjj"+JSON.stringify(jo))
1534
1185
  if(jo.state == 'ok'){
1535
1186
  let res = JSON.parse(jo.result)
1536
- //tag)
1537
1187
  if(res.code == 200){
1538
- //tag
1539
1188
  if(!this.onlySave){
1540
1189
  let codata = this.getAllDefect()
1541
1190
  //获取微信推送内容
@@ -1544,46 +1193,18 @@
1544
1193
  f_check_item_id: this.data.f_check_item_id
1545
1194
  })
1546
1195
  //如果是转维修上传,则不做校验,上传完成后自动转维修
1547
- //tag
1548
- //tag
1549
1196
  if(!this.isToRepair){
1550
1197
  if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1551
- //tag
1552
- //tag
1553
1198
  if(!this.isSafeCheckToRepair){
1554
1199
 
1555
1200
  }
1556
1201
  }
1557
1202
  }
1558
- //tag
1559
1203
  for (let key in codata){
1560
1204
  if(key.startsWith("device")){
1561
1205
  codata[key] = []
1562
1206
  }
1563
1207
  }
1564
- //tag}`)
1565
-
1566
- //tag
1567
- // let isStart = true
1568
- // let res
1569
- // for (let i in this.f_devices){
1570
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1571
- // if(res.code == 200){
1572
- // isStart = false
1573
- // }else{
1574
- // this.$showMessage("上传失败!")
1575
- // return
1576
- // }
1577
- // }
1578
- // let result = HostApp.organizeJSON({
1579
- // isStart:false,
1580
- // isJSON:true,
1581
- // jsonstr:{
1582
- // f_check_item_id: this.data.f_check_item_id,
1583
- // f_checker_id: this.data.f_checker_id,
1584
- // row: codata
1585
- // }
1586
- // })
1587
1208
  codata.f_devices = this.f_devices
1588
1209
  if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1589
1210
  this.rowCodata = Object.assign({},this.rowCodata,codata)
@@ -1593,10 +1214,8 @@
1593
1214
  let param = {
1594
1215
  f_check_item_id: this.data.f_check_item_id,
1595
1216
  f_checker_id: this.data.f_checker_id,
1596
- // row: codata
1597
1217
  row: this.rowCodata
1598
1218
  }
1599
- //tag)
1600
1219
  let paramStr = JSON.stringify(param)
1601
1220
  // 多长截断一次
1602
1221
  let subLength = 800
@@ -1619,7 +1238,6 @@
1619
1238
  if(this.clickBack){
1620
1239
  this.isStrat = false
1621
1240
  this.$dispatch('confirm')
1622
- //this.$back()
1623
1241
  }
1624
1242
  }
1625
1243
  }else{
@@ -1641,12 +1259,8 @@
1641
1259
  }
1642
1260
  }
1643
1261
  }
1644
- //tag)
1645
- //tag)
1646
1262
  if(jo.state == 'ok'){
1647
1263
  let res = JSON.parse(jo.result)
1648
- //tag)
1649
- //tag)
1650
1264
  if(res.code == 200){
1651
1265
  this.$set('data.f_paper_id', res.id)
1652
1266
  this.isStrat=false
@@ -1665,7 +1279,6 @@
1665
1279
  }
1666
1280
  })
1667
1281
  }
1668
- //tag
1669
1282
  if(this.isToRepair){
1670
1283
  for (let device in this.data){
1671
1284
  if(device.startsWith("device")){
@@ -1688,13 +1301,10 @@
1688
1301
  this.todo()
1689
1302
  }else{
1690
1303
  this.$showMessage('上传成功!')
1691
- //tag
1692
1304
  this.$dispatch('confirm')
1693
- // this.$back()
1694
1305
  }
1695
1306
  }else if(res.code == 309){
1696
1307
  this.$showMessage('该安检单已作废!')
1697
- //tag
1698
1308
  this.$dispatch('confirm')
1699
1309
  }else if(res.code == 710){
1700
1310
  this.$showMessage('上传照片失败,请检查网络是否正常!'+res.msg)
@@ -1721,16 +1331,13 @@
1721
1331
  //获取微信推送路径
1722
1332
  if(jo.state == 'ok'){
1723
1333
  let res = JSON.parse(jo.result)
1724
- //tag)
1725
1334
  if(res.code == 200){
1726
- //tag
1727
1335
  if(res.data.code == 200){
1728
1336
  this.$showMessage('上传并转维修成功!')
1729
1337
  }else{
1730
1338
  this.$showMessage('上传并转维修成功,回写安检单失败!')
1731
1339
  }
1732
1340
  this.$dispatch('confirm')
1733
- // this.$back()
1734
1341
  }else{
1735
1342
  this.$showMessage('上传失败!')
1736
1343
  this.onlySave = true
@@ -1766,11 +1373,9 @@
1766
1373
  HostApp.__this__.$set('data', paper)
1767
1374
  HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1768
1375
  // 如果打回重检则重新计时
1769
- //tag
1770
1376
  if(HostApp.__this__.role == 'inspect'
1771
1377
  && HostApp.__this__.data.f_approved
1772
1378
  && HostApp.__this__.data.f_approved == '打回') {
1773
- //tag
1774
1379
  HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1775
1380
  HostApp.__this__.tick()
1776
1381
  }
@@ -1801,16 +1406,7 @@
1801
1406
  }
1802
1407
  return obj;
1803
1408
  },
1804
- // async isoverDate(){
1805
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
1806
- // condition:"f_plan_item_id='"+this.item.id+"'"
1807
- // }
1808
- // })
1809
- // this.isneedDate=res.data[0]["f_subscribe_date"]
1810
- // },
1811
1409
  putDevices() {
1812
- //tag)
1813
- //tag)
1814
1410
  this.$set('data.approve', "true")
1815
1411
  this.$set('data.writeback', "false")
1816
1412
  if (Vue.config.safecheck != undefined) {
@@ -1834,22 +1430,14 @@
1834
1430
  this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1835
1431
  }
1836
1432
  }
1837
- //tag
1838
- //tag)
1839
- //tag)
1840
- //tag
1841
1433
  if(this.item.f_user_type == '非民用'){
1842
1434
  // 非民用
1843
1435
  if (Vue.config.safecheck.DevicesSetConfig != undefined){
1844
1436
  if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1845
1437
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1846
1438
  }else{
1847
- //tag
1848
- //tag
1849
- //tag
1850
1439
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1851
1440
  }
1852
- //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1853
1441
  }
1854
1442
 
1855
1443
  }else{
@@ -1858,17 +1446,12 @@
1858
1446
  if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1859
1447
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1860
1448
  }else{
1861
- //tag
1862
- //tag
1863
- //tag
1864
1449
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type?this.item.f_user_type:'民用']])
1865
1450
  }
1866
- // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1867
1451
  }
1868
1452
  }
1869
1453
 
1870
1454
  }
1871
- //tag)
1872
1455
  // 预留设备项位置
1873
1456
  for (let i in this.config) {
1874
1457
  this.tabs.splice(1,0,null)
@@ -1877,17 +1460,8 @@
1877
1460
  for (let i in this.config) {
1878
1461
  //取得安检项索引值
1879
1462
  let n = this.config[i].index
1880
- //tag
1881
1463
  this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1882
1464
  this.$set('data.' + 'device' + n, [])
1883
- //tag
1884
- // this.tabs.splice(2 + n - 1, 0,
1885
- // {
1886
- // header:i,
1887
- // complete:'safecheck-devices',
1888
- // class:'repair-details-class',
1889
- // number:n
1890
- // })
1891
1465
  this.tabs[n] = {
1892
1466
  header: i,
1893
1467
  complete: 'safecheck-devices',
@@ -1920,17 +1494,11 @@
1920
1494
  )
1921
1495
  }
1922
1496
  }
1923
- // this.data['device' + n].push(
1924
- // {f_device_type: i, f_items: items}
1925
- // )
1926
1497
  n = n + 1
1927
1498
  }
1928
- //tag
1929
1499
  this.faultshow.number = this.tabs.length
1930
1500
  },
1931
1501
  init () {
1932
- //tag
1933
- // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1934
1502
  // 无计划安检是否回更待办计划
1935
1503
  this.data.isupdateplanitem = this.$appdata.getSingleValue('在线安检回更有计划') ? this.$appdata.getSingleValue('在线安检回更有计划') : 'false'
1936
1504
  // 预约安检单工单编号
@@ -1945,8 +1513,6 @@
1945
1513
  this.data.f_checker_name = Vue.user.name
1946
1514
  this.data.f_check_type = this.item.f_user_type
1947
1515
  this.data.f_safecheck_type = this.item.f_safecheck_type
1948
- //this.data.f_exceed_reason = ''//存放送气超期原因
1949
- //tag
1950
1516
  this.data.f_subcompany = this.item.f_subcompany
1951
1517
  this.data.f_approved = this.item.f_approvedf_read_instructions
1952
1518
  this.data.f_repair_approved = this.item.f_repair_approved
@@ -1965,7 +1531,6 @@
1965
1531
  this.$set('data.f_state',this.item.f_state)
1966
1532
  this.$set('data.f_source', this.source?this.source:'安检')
1967
1533
  this.$set('data.f_other_checker_name', '')
1968
- //tag
1969
1534
  // 用户信息
1970
1535
  this.$set('data.f_user_name', this.item.f_user_name)
1971
1536
  this.$set('data.f_rent_phone', this.item.f_rent_phone)
@@ -1980,7 +1545,6 @@
1980
1545
  this.$set('data.f_room', this.item.f_room)
1981
1546
  this.$set('data.f_building', this.item.f_building)
1982
1547
  this.$set('data.f_unit', this.item.f_unit)
1983
- //tag
1984
1548
  this.$set('data.f_floor', this.item.f_floor)
1985
1549
  this.$set('data.f_residential_area' , this.item.f_residential_area)
1986
1550
  this.$set('data.f_idnumber', this.item.f_idnumber)
@@ -1990,27 +1554,19 @@
1990
1554
  this.$set('data.f_userfiles_id', this.item.f_plan_meters[0].f_userfiles_id)
1991
1555
  this.$set('data.f_valve_state', this.item.f_plan_meters[0].f_valve_state)
1992
1556
  this.$set('data.f_off_valve_reason', this.item.f_plan_meters[0].f_off_valve_reason)
1993
- // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1994
- // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1995
- // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1996
- // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1997
- // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1998
1557
  // 处置方式
1999
- //tag
2000
1558
  this.$set('data.f_gas_guidelines', true)
2001
1559
  this.$set('data.f_safety_warning', true)
2002
1560
  this.$set('data.f_gas_manual', true)
2003
1561
  this.$set('data.f_no_gas_device', false)
2004
1562
  this.$set('data.f_close_valve', false)
2005
1563
  this.$set('data.f_unload_battery', false)
2006
- //tag
2007
1564
  if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检' ) {
2008
1565
  this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
2009
1566
  }
2010
1567
  if(this.item.f_no_checkplan == '复检'){
2011
1568
  this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
2012
1569
  }
2013
- //tag
2014
1570
  if(this.item.f_plan_meters) {
2015
1571
  for (let de in this.devices) {
2016
1572
  if(typeof this.devices[de]=='function'){
@@ -2083,7 +1639,6 @@
2083
1639
  })
2084
1640
  }
2085
1641
  else if (this.devices[de].device == "燃气表") {
2086
- // delete this.config['燃气表']['items']['表底数']
2087
1642
  this.data['device' + this.devices[de].n].push({
2088
1643
  f_device_type: "燃气表",
2089
1644
  f_items: [
@@ -2145,9 +1700,7 @@
2145
1700
  })
2146
1701
  }
2147
1702
  if(this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('物联网表') >= 0){
2148
- //tag
2149
1703
  this.data['device' + this.devices[de].n].forEach(device => {
2150
- //tag)
2151
1704
  if (!this.data.f_collection_type) {
2152
1705
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2153
1706
  delete this.config['燃气表']['items']['累购气量']
@@ -2203,13 +1756,10 @@
2203
1756
  type: "number"
2204
1757
  }
2205
1758
  )
2206
- //tag)
2207
1759
  }
2208
1760
  })
2209
1761
  } else if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
2210
1762
  this.data['device' + this.devices[de].n].forEach(device => {
2211
- //tag)
2212
- //tag)
2213
1763
  /*
2214
1764
  "累购气量":{"index":8,"type":"number","readonly":true},
2215
1765
  "累购金额":{"index":8,"type":"number","readonly":true},
@@ -2276,7 +1826,6 @@
2276
1826
  type: "number"
2277
1827
  }
2278
1828
  )
2279
- //tag)
2280
1829
  }
2281
1830
  } else
2282
1831
  if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
@@ -2335,14 +1884,11 @@
2335
1884
  type: "number"
2336
1885
  }
2337
1886
  )
2338
- //tag)
2339
1887
  }
2340
1888
  }
2341
1889
  })
2342
1890
  } else if(this.devices[de].device == "燃气表"){
2343
- //tag
2344
1891
  this.data['device' + this.devices[de].n].forEach(device => {
2345
- //tag)
2346
1892
  if (!this.data.f_collection_type) {
2347
1893
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2348
1894
  delete this.config['燃气表']['items']['累购金额']
@@ -2399,7 +1945,6 @@
2399
1945
  type: "number"
2400
1946
  }
2401
1947
  )
2402
- //tag)
2403
1948
  }
2404
1949
  })
2405
1950
  }
@@ -2407,13 +1952,6 @@
2407
1952
  }
2408
1953
  }
2409
1954
  }
2410
- var pardate = {
2411
- _this:this,
2412
- tittle:'安检详情',
2413
- safe:true
2414
- }
2415
- // this.$dispatch('gotoson',pardate)
2416
- //tag
2417
1955
  this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2418
1956
  }
2419
1957
  },
@@ -2434,9 +1972,7 @@
2434
1972
  HostApp.__this__ = this
2435
1973
  let that = this
2436
1974
  let value = {}
2437
- //tag
2438
1975
  if (this.role == 'inspect') {
2439
- //tag
2440
1976
  if (this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
2441
1977
  value = this.$androidUtil.path({
2442
1978
  alias: 'getUserinfomation',
@@ -2449,10 +1985,8 @@
2449
1985
  value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2450
1986
  }
2451
1987
  Util.replaceFalse(value)
2452
- //tag)
2453
1988
  if (value.data.length != 0) {
2454
1989
  that.$set('data', value.data[0])
2455
- //tag)
2456
1990
  if (this.data.f_collection_type == '按气量') {
2457
1991
  delete this.config['燃气表']['items']['累购金额']
2458
1992
  delete this.config['燃气表']['items']['已用金额']
@@ -2475,14 +2009,10 @@
2475
2009
  that.$set('data.device' + that.devices[da].n, [])
2476
2010
  }
2477
2011
  value.data[0].f_devices.forEach((item) => {
2478
- //tag)
2479
2012
  for (let i in item.f_items) {
2480
2013
  if(typeof item.f_items[i]=='function'){
2481
2014
  continue
2482
2015
  }
2483
- // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2484
- // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2485
- // }
2486
2016
  for (let de in that.config[item.f_device_type].items) {
2487
2017
  if(typeof that.config[item.f_device_type].items[de]=='function'){
2488
2018
  continue
@@ -2495,36 +2025,16 @@
2495
2025
  }
2496
2026
  }
2497
2027
  }
2498
- //tag)
2499
-
2500
- // if (item.f_items[i].f_item_name=='累购气量'){
2501
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2502
- // }else if (item.f_items[i].f_item_name=='累购金额'){
2503
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2504
- // }else if (item.f_items[i].f_item_name=='基表编号'){
2505
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2506
- // }else if (item.f_items[i].f_item_name=='气表品牌'){
2507
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2508
- // }else if (item.f_items[i].f_item_name=='进气方向'){
2509
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2510
- // }else if (item.f_items[i].f_item_name=='气表型号'){
2511
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2512
- // }else if (item.f_items[i].f_item_name=='表箱号'){
2513
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2514
- // }
2515
- // else{
2516
2028
  for (let j in item.f_items[i].f_item_lists) {
2517
2029
  if(typeof item.f_items[i].f_item_lists[j]=='function'){
2518
2030
  continue
2519
2031
  }
2520
- //tag)
2521
2032
  if (item.f_items[i].f_item_value instanceof Array) {
2522
2033
  item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2523
2034
  } else {
2524
2035
  item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2525
2036
  }
2526
2037
  }
2527
- // }
2528
2038
 
2529
2039
  }
2530
2040
  for (let de in that.devices) {
@@ -2548,11 +2058,9 @@
2548
2058
  //tag)
2549
2059
  }
2550
2060
  } else {
2551
- //tag
2552
2061
  this.init()
2553
2062
  }
2554
2063
  if(this.parentPage && this.parentPage=='CurrentCreate'){
2555
- //tag
2556
2064
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2557
2065
  if (isRecodr) {
2558
2066
  if (isRecodr=='true') {
@@ -2562,13 +2070,6 @@
2562
2070
  }
2563
2071
  }
2564
2072
  }
2565
- //tag
2566
- var pardate = {
2567
- _this:this,
2568
- tittle:'安检详情',
2569
- safe:true
2570
- }
2571
- // this.$dispatch('gotoson',pardate)getImgPath
2572
2073
  this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2573
2074
  } else {
2574
2075
  let that = this
@@ -2601,17 +2102,10 @@
2601
2102
  }else{
2602
2103
  Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2603
2104
  }
2604
- //tag
2605
2105
  } else {
2606
2106
  alert("该安检单可能已不在本地!")
2607
2107
  this.init()
2608
2108
  }
2609
- var pardate = {
2610
- _this:this,
2611
- tittle:'安检详情',
2612
- safe:true
2613
- }
2614
- // this.$dispatch('gotoson',pardate)
2615
2109
  this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2616
2110
  }
2617
2111
  ).catch(
@@ -2633,27 +2127,6 @@
2633
2127
  }
2634
2128
  this.init()
2635
2129
  }
2636
- // tbs合并数组
2637
- // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2638
- // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2639
- //
2640
- // }
2641
- // }
2642
- },
2643
- components: {
2644
- // 'door-service': DoorService,
2645
- // 'repair-info': RepairInfo,
2646
- // 'repair-user-info': RepairUserInfo,
2647
- // 'outlay': Outlay,
2648
- // 'fault-all': FaultAll,
2649
- // 'repair-details':RepairDetails
2650
- // 'pipeline': Pipeline,
2651
- // 'device-service': DeviceService,
2652
- // 'trouble-removal': TroubleRemoval,
2653
- // 'cooking-utensils': CookingUtensils,
2654
- // 'repair-matter-info': RepairMatterInfo,
2655
- // 'first-gas-check': FirstGasCheck,
2656
- // 'tel-change-matter': TelChangeMatter/
2657
2130
  },
2658
2131
  events: {
2659
2132
  'tijiao': function () {