safecheck-client 4.0.1-8 → 4.0.1-80

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.
Files changed (82) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +5 -5
  4. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  5. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  6. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  7. package/src/components/NewDefectList/DefectListNew.vue +22 -3
  8. package/src/components/Util/RightTreeSafeDep.vue +12 -0
  9. package/src/components/android/AndroidDefectDeal.vue +356 -323
  10. package/src/components/android/AndroidDefectDetails.vue +3 -3
  11. package/src/components/android/AppInstallationMaterial.vue +865 -0
  12. package/src/components/android/DailyworkloadQuery.vue +2 -1
  13. package/src/components/android/NewCheckpaperAndroid.vue +22 -48
  14. package/src/components/android/SafecheckOrderV.vue +6 -0
  15. package/src/components/android/SwitchValve.vue +1 -1
  16. package/src/components/checkplan/CheckDetail.vue +1 -1
  17. package/src/components/map/SecurityCheckCoordinates.vue +361 -0
  18. package/src/components/paper/PaperList.vue +5 -0
  19. package/src/components/pc/DefectDeal.vue +2 -1
  20. package/src/components/pc/DefectMaterialLook.vue +98 -0
  21. package/src/components/pc/PaperDefectMain.vue +26 -1
  22. package/src/components/pc/RoleSelectorDep.vue +9 -2
  23. package/src/components/planmanage/PlanManage.vue +1 -0
  24. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  25. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
  27. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  28. package/src/filiale/jinhong/pc/CheckBookList.vue +12 -7
  29. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  30. package/src/filiale/jinhong/pc/PaperList.vue +56 -47
  31. package/src/filiale/jinhong/pc/PlanManage.vue +2 -0
  32. package/src/filiale/jinhong/pc/checkPlanList.vue +2 -0
  33. package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
  34. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  35. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  36. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  37. package/src/filiale/libo/android.js +14 -0
  38. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  39. package/src/filiale/libo/pc.js +12 -0
  40. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  41. package/src/filiale/meihekou/android/MeterReading.vue +9 -5
  42. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
  43. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  44. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2427
  45. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  46. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  47. package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
  48. package/src/filiale/meihekou/pc.js +2 -0
  49. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  50. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  51. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  52. package/src/filiale/taiyuan/android/AddPlanItem.vue +456 -0
  53. package/src/filiale/taiyuan/android/AreaPlan.vue +565 -0
  54. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  55. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1253 -0
  56. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -0
  57. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +784 -0
  58. package/src/filiale/taiyuan/android.js +15 -0
  59. package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
  60. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  61. package/src/filiale/taiyuan/pc/PaperList.vue +795 -0
  62. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  63. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  64. package/src/filiale/taiyuan/pc.js +16 -0
  65. package/src/filiale/tianke/android/CurrentCreate.vue +3 -3
  66. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  67. package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
  68. package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
  69. package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
  70. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  71. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  72. package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +57 -72
  74. package/src/filiale/xinkang/pc/PaperList.vue +25 -10
  75. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  76. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
  77. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
  78. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  79. package/src/filiale/yunchengminsheng/pc.js +1 -0
  80. package/src/main.js +33 -33
  81. package/src/safecheck-android.js +4 -0
  82. package/src/safecheck.js +6 -0
@@ -16,11 +16,19 @@
16
16
  <!--<div class="{{shuclass}}" v-if="device.device != '燃气表' && candelete">-->
17
17
  <!--<button type="button" name="button" class="btn btn-primary" @click='deletedetails()' :disabled="issee">删除</button>-->
18
18
  <!--</div>-->
19
- <div class="shuclass1" v-show="row.isshow" v-for="(idxs,row) in f_items" style="padding: 4px; border:1px solid #D4D4D4;border-bottom: 0" >
20
- <label v-if="row.type != 'radio' && row.type != 'text' && row.type != 'picture' && row.type != 'checkbox'" v-show="row.isshow" class="fivelabel">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
21
- <label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
22
- <label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">{{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}</label>
23
- <label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow" class="textlabel">{{row.f_item_name}}<br/>{{row.remark}}</label>
19
+ <div class="shuclass1" v-show="row.isshow" v-for="row in f_items" track-by="$index" style="padding: 4px; border:1px solid #D4D4D4;border-bottom: 0" >
20
+ <label v-if="row.type != 'radio' && row.type != 'text' && row.type != 'picture' && row.type != 'checkbox'" v-show="row.isshow" class="fivelabel">
21
+ {{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
22
+ </label>
23
+ <label v-if="row.type == 'radio'" v-show="row.isshow" class="radiolabel">{{row.f_item_name}}
24
+ <span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
25
+ </label>
26
+ <label v-if="row.type == 'text'" v-show="row.isshow" class="textlabel1">
27
+ {{row.f_item_name}}<span v-if="row.unit">({{row.unit}})</span><br/>{{row.remark}}
28
+ </label>
29
+ <label v-if="row.type == 'picture' || row.type == 'checkbox'" v-show="row.isshow" class="textlabel">
30
+ {{row.f_item_name}}<br/>{{row.remark}}
31
+ </label>
24
32
  <!--<span v-if="show" style="font-weight:bold">{{row.f_content}}</span>-->
25
33
  <!--<datepicker placeholder="请选择时间"-->
26
34
  <!--:value.sync="row.f_content"-->
@@ -37,10 +45,10 @@
37
45
  <div class="col-sm-4" v-show="row.f_path">
38
46
  <img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
39
47
  </div>
40
- <div class="col-sm-4" v-show="!row.f_path" @click="takePic(idxs, row.f_item_name)">
48
+ <div class="col-sm-4" v-show="!row.f_path" @click="takePic($index, row.f_item_name)">
41
49
  <img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
42
50
  </div>
43
- <img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
51
+ <img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile($index, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
44
52
  </div>
45
53
  </div>
46
54
  </div>
@@ -73,7 +81,7 @@
73
81
  :readonly="false"
74
82
  :options="row.options"
75
83
  @change="changse"
76
- @click="transelation(idxs)"></input-select>
84
+ @click="transelation($index)"></input-select>
77
85
  <v-select style="float: left" :value.sync="row.selected"
78
86
  v-model="row.selected"
79
87
  v-if="row.type == 'selector'"
@@ -83,12 +91,12 @@
83
91
  :options="row.options"
84
92
  :disabled="role == 'androidview' || row.readonly"
85
93
  @change="changse"
86
- @click="transelation(idxs)"
94
+ @click="transelation($index)"
87
95
  :multiple="row.multiple"
88
96
  :close-on-select="!row.multiple" clear-button></v-select>
89
97
  <div style="float: left;width: 30%" class="form-group" v-if="!show && row.type == 'radio'">
90
98
  <div class="col-xs-6 col-sm-6 col-md-6" v-for="item in row.options">
91
- <!-- <input type="radio" :name="row.f_item_name" @click="disSelect($parent.idxs,item.value)" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >-->
99
+ <!-- <input type="radio" :name="row.f_item_name" @click="disSelect($parent.$index,item.value)" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >-->
92
100
  <input type="radio" :name="row.f_item_name" :value="item.value" :disabled="(!(ischecked == '有')) || issee" v-model="row.f_item_value" >
93
101
  <span>{{item.label}}</span>
94
102
  </div>
@@ -113,7 +121,7 @@
113
121
  :options="deals"
114
122
  :disabled="role == 'androidview'"
115
123
  @change="changdeal"
116
- @click="transelation(idxs)"
124
+ @click="transelation($index)"
117
125
  close-on-select clear-button></v-select>
118
126
  </div>
119
127
  <div style="margin-left: 10px" class="form-group col-sm-10" v-if="(row.type == 'selector' || row.type == 'radio' || row.type =='checkbox') && row.tooltip != undefined && row.tooltip != '' ">
@@ -127,10 +135,10 @@
127
135
  <div class="col-sm-4" v-show="row.f_path">
128
136
  <img-self :src="row.f_path" :alt="row.f_item_name" width="140" height="140"></img-self>
129
137
  </div>
130
- <div class="col-sm-4" v-show="!row.f_path" @click="takePic(idxs, row.f_item_name)">
138
+ <div class="col-sm-4" v-show="!row.f_path" @click="takePic($index, row.f_item_name)">
131
139
  <img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
132
140
  </div>
133
- <img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
141
+ <img v-show="row.f_path" src="../../../assets/remove.png" :class="style__" @click="delfile($index, row.f_path)" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
134
142
  </div>
135
143
  </div>
136
144
  </div>
@@ -143,10 +151,10 @@
143
151
  <div class="col-sm-4" v-show="row['f_p' + (itemIndex+1) + '_path']">
144
152
  <img-self :src="row['f_p' + (itemIndex+1) + '_path']" :alt="row.f_item_name" width="140" height="140"></img-self>
145
153
  </div>
146
- <div class="col-sm-4" v-show="!row['f_p' + (itemIndex+1) + '_path']" @click="takePic(idxs, row.f_item_name,'f_p' + (itemIndex+1)+ '_path')">
154
+ <div class="col-sm-4" v-show="!row['f_p' + (itemIndex+1) + '_path']" @click="takePic($index, row.f_item_name,'f_p' + (itemIndex+1)+ '_path')">
147
155
  <img src="../../../assets/tackpic.png" :alt="点击拍摄照片" width="140" height="140"></img>
148
156
  </div>
149
- <img v-show="row['f_p' + (itemIndex+1)+'_path']" src="../../../assets/remove.png" :class="style__" @click="delfile(idxs,row['f_p' + (itemIndex+1)+'_path'],'f_p' + (itemIndex+1)+ '_path')" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
157
+ <img v-show="row['f_p' + (itemIndex+1)+'_path']" src="../../../assets/remove.png" :class="style__" @click="delfile($index,row['f_p' + (itemIndex+1)+'_path'],'f_p' + (itemIndex+1)+ '_path')" v-if="role!='androidview'" style="width: 40px;height: 40px;position: absolute;left:110px;top:110px"></img>
150
158
  </div >
151
159
  </div>
152
160
  </div>
@@ -814,9 +822,28 @@ export default {
814
822
  if(Vue.config.safecheck.ApproveConfig.dealdispose != undefined) {
815
823
  this.dealdispose = Vue.config.safecheck.ApproveConfig.dealdispose
816
824
  }
825
+ if(Vue.config.safecheck.ApproveConfig.showtorepair) {
826
+ this.deals=[{label: '现场整改', value: '现场整改'},
827
+ {label: '自行处理', value: '自行处理'},
828
+ {label: '转维修', value: '报修'}
829
+ ]
830
+ }
831
+ if(Vue.config.safecheck.ApproveConfig.Processing) {
832
+ if(Vue.config.safecheck.ApproveConfig.Processing.length > 0){
833
+ this.deals = Vue.config.safecheck.ApproveConfig.Processing
834
+ }
835
+ }
836
+ if(Vue.config.safecheck.ApproveConfig.showXCImg) {
837
+ this.showXCImg = true
838
+ }
839
+ if(Vue.config.safecheck.ApproveConfig.showZXTime) {
840
+ this.showZXTime = true
841
+ }
842
+ if(Vue.config.safecheck.ApproveConfig.showtorepair) {
843
+ }
817
844
  if(Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
818
- if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
819
- this.hiddenDangerImgNumber = 3
845
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
846
+ this.hiddenDangerImgNumber = 5
820
847
  }else {
821
848
  this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
822
849
  }
@@ -883,6 +910,9 @@ export default {
883
910
  f_item_name: item,
884
911
  checkmust: this.config[this.device.device].items[item].checkmust,
885
912
  f_item_value: f_item_value,
913
+ is_verification:this.config[this.device.device].items[item].is_verification,
914
+ verification_text:'',
915
+ verification_state:'',// ai验证是否通过 npass(未通过)/pass(通过)
886
916
  f_is_defect: '',
887
917
  multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
888
918
  isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
@@ -896,7 +926,9 @@ export default {
896
926
  f_else: '',
897
927
  f_p1_path: '',
898
928
  f_p2_path: '',
899
- f_p3_path: ''
929
+ f_p3_path: '',
930
+ f_longitude:'',
931
+ f_latitude:''
900
932
  }
901
933
  //tag)
902
934
  //tag)
@@ -952,7 +984,7 @@ export default {
952
984
  }
953
985
  n = n + 1
954
986
  }
955
- if(JSON.stringify(this.piece) == '{}') {
987
+ if(!this.piece || JSON.stringify(this.piece) == '{}') {
956
988
  // 如果没有,则新建
957
989
  this.$set('piece.f_items',this.f_items)
958
990
  this.$set('piece.f_device_type',this.device.device)
@@ -963,7 +995,6 @@ export default {
963
995
  continue
964
996
  }
965
997
  for(let p in this.piece.f_items) {
966
- //
967
998
  if(typeof this.piece.f_items[p]=='function'){
968
999
  continue
969
1000
  }
@@ -1029,8 +1060,7 @@ export default {
1029
1060
  }else if (this.f_items[f].f_item_name == '表读数') {
1030
1061
  //tag)
1031
1062
  this.f_meter_base.index = f
1032
- }
1033
- else if (this.f_items[f].f_item_name == '表剩余金额') {
1063
+ }else if (this.f_items[f].f_item_name == '表剩余金额') {
1034
1064
  //tag)
1035
1065
  this.f_balance_amount.index = f
1036
1066
  }else if (this.f_items[f].f_item_name == '字轮数') {
@@ -1529,8 +1529,6 @@ export default {
1529
1529
  // this.isneedDate=res.data[0]["f_subscribe_date"]
1530
1530
  // },
1531
1531
  putDevices() {
1532
- //tag)
1533
- //tag)
1534
1532
  this.$set('data.approve', "true")
1535
1533
  this.$set('data.writeback', "false")
1536
1534
  if (Vue.config.safecheck != undefined) {
@@ -1544,68 +1542,51 @@ export default {
1544
1542
  if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1545
1543
  this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1546
1544
  }
1547
- }
1548
- //tag
1549
- //tag)
1550
- //tag)
1551
- //tag
1552
- if(this.item.f_user_type == '民用'){
1553
- // 民用户
1554
-
1555
- if (Vue.config.safecheck.DevicesConfig != undefined){
1556
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1557
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1558
- }else{
1559
- //tag
1560
- //tag
1561
- //tag
1562
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1563
- }
1564
- // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1545
+ if (Vue.config.safecheck.ApproveConfig.showtorepair) {
1546
+ this.show_torepair = Vue.config.safecheck.ApproveConfig.showtorepair
1565
1547
  }
1566
- }else {
1548
+ if (Vue.config.safecheck.ApproveConfig.notencountered != undefined){
1549
+ this.notencountered = Vue.config.safecheck.ApproveConfig.notencountered
1550
+ }
1551
+ if (Vue.config.safecheck.ApproveConfig.refuseinspection != undefined){
1552
+ this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1553
+ }
1554
+ }
1555
+ if(this.item.f_user_type == '非民用'){
1567
1556
  // 非民用
1568
1557
  if (Vue.config.safecheck.DevicesSetConfig != undefined){
1569
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1558
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
1570
1559
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1571
1560
  }else{
1572
- //tag
1573
- //tag
1574
- //tag
1575
1561
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1576
1562
  }
1577
- //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1563
+ }
1564
+
1565
+ }else{
1566
+ // 民用户
1567
+ if (Vue.config.safecheck.DevicesConfig != undefined){
1568
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
1569
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1570
+ }else{
1571
+ 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:'民用']])
1572
+ }
1578
1573
  }
1579
1574
  }
1580
1575
 
1581
1576
  }
1582
- //tag)
1583
- // 预留设备项位置
1584
1577
  for (let i in this.config) {
1585
1578
  this.tabs.splice(1,0,null)
1586
1579
  }
1587
- //遍历安检项配置
1588
1580
  for (let i in this.config) {
1589
- //取得安检项索引值
1590
1581
  let n = this.config[i].index
1591
- //tag
1592
1582
  this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1593
1583
  this.$set('data.' + 'device' + n, [])
1594
- //tag
1595
- // this.tabs.splice(2 + n - 1, 0,
1596
- // {
1597
- // header:i,
1598
- // complete:'safecheck-devices',
1599
- // class:'repair-details-class',
1600
- // number:n
1601
- // })
1602
1584
  this.tabs[n] = {
1603
1585
  header: i,
1604
1586
  complete: 'safecheck-devices',
1605
1587
  class: 'repair-details-class',
1606
1588
  number: n
1607
1589
  }
1608
-
1609
1590
  if(this.config[i].quantity && this.config[i].quantity >0){
1610
1591
  let items = []
1611
1592
  for (let it in this.config[i].items) {
@@ -1631,12 +1612,8 @@ export default {
1631
1612
  )
1632
1613
  }
1633
1614
  }
1634
- // this.data['device' + n].push(
1635
- // {f_device_type: i, f_items: items}
1636
- // )
1637
1615
  n = n + 1
1638
1616
  }
1639
- //tag
1640
1617
  this.faultshow.number = this.tabs.length
1641
1618
  },
1642
1619
  //组织config数据---
@@ -2373,22 +2350,16 @@ export default {
2373
2350
  HostApp.__this__ = this
2374
2351
  let that = this
2375
2352
  let value = {}
2376
- //tag
2377
2353
  if (this.role == 'inspect') {
2378
- //tag
2354
+ let condition=` f_check_item_id ='${this.item.id}'`
2379
2355
  if (this.item.f_no_checkplan == '无计划安检') {
2380
- value = this.$androidUtil.path({
2381
- alias: 'getUserinfomation',
2382
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
2383
- })
2384
- } else {
2385
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2356
+ condition += ` and f_no_checkplan = '无计划安检'`
2386
2357
  }
2358
+ value = this.$androidUtil.bzLogic('path_getPhoneCheckPaper', {condition: condition})
2387
2359
  } else {
2388
2360
  value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2389
2361
  }
2390
2362
  Util.replaceFalse(value)
2391
- //tag)
2392
2363
  if (value.data.length != 0) {
2393
2364
  that.$set('data', value.data[0])
2394
2365
  //tag)
@@ -2402,14 +2373,10 @@ export default {
2402
2373
  that.$set('data.device' + that.devices[da].n, [])
2403
2374
  }
2404
2375
  value.data[0].f_devices.forEach((item) => {
2405
- //tag)
2406
2376
  for (let i in item.f_items) {
2407
2377
  if(typeof item.f_items[i]=='function'){
2408
2378
  continue
2409
2379
  }
2410
- // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
2411
- // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
2412
- // }
2413
2380
  for (let de in that.config[item.f_device_type].items) {
2414
2381
  if(typeof that.config[item.f_device_type].items[de]=='function'){
2415
2382
  continue
@@ -2422,36 +2389,16 @@ export default {
2422
2389
  }
2423
2390
  }
2424
2391
  }
2425
- //tag)
2426
-
2427
- // if (item.f_items[i].f_item_name=='累购气量'){
2428
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_gas
2429
- // }else if (item.f_items[i].f_item_name=='累购金额'){
2430
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_total_fee
2431
- // }else if (item.f_items[i].f_item_name=='基表编号'){
2432
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_meter_no
2433
- // }else if (item.f_items[i].f_item_name=='气表品牌'){
2434
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_aliasname
2435
- // }else if (item.f_items[i].f_item_name=='进气方向'){
2436
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_flow_direction
2437
- // }else if (item.f_items[i].f_item_name=='气表型号'){
2438
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_diaphgram_size
2439
- // }else if (item.f_items[i].f_item_name=='表箱号'){
2440
- // item.f_items[i].f_item_value=this.item.f_plan_meters[0].f_metertitles
2441
- // }
2442
- // else{
2443
2392
  for (let j in item.f_items[i].f_item_lists) {
2444
2393
  if(typeof item.f_items[i].f_item_lists[j]=='function'){
2445
2394
  continue
2446
2395
  }
2447
- //tag)
2448
2396
  if (item.f_items[i].f_item_value instanceof Array) {
2449
2397
  item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2450
2398
  } else {
2451
2399
  item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2452
2400
  }
2453
2401
  }
2454
- // }
2455
2402
 
2456
2403
  }
2457
2404
  for (let de in that.devices) {
@@ -2475,11 +2422,9 @@ export default {
2475
2422
  //tag)
2476
2423
  }
2477
2424
  } else {
2478
- //tag
2479
2425
  this.init()
2480
2426
  }
2481
2427
  if(this.parentPage && this.parentPage=='CurrentCreate'){
2482
- //tag
2483
2428
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2484
2429
  if (isRecodr) {
2485
2430
  if (isRecodr=='true') {
@@ -2528,7 +2473,6 @@ export default {
2528
2473
  }else{
2529
2474
  Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2530
2475
  }
2531
- //tag
2532
2476
  } else {
2533
2477
  alert("该安检单可能已不在本地!")
2534
2478
  this.init()
@@ -368,7 +368,7 @@ export default {
368
368
  title: '购气记录',
369
369
  safe: false
370
370
  })
371
- this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
371
+ this.$parent.$parent.$goto('safe-phone-sell-info', {f_userinfo_id: f_userinfo_id})
372
372
  },
373
373
  cameraCallBack (prop, fileName) {
374
374
  if (prop == 'f_noanswers_path') {
@@ -548,7 +548,7 @@ export default {
548
548
  checkboxModel: {},
549
549
  c_year_list: options,
550
550
  c_month_list: moptions,
551
- areas: this.areas(),
551
+ // areas: this.areas(),
552
552
  checkstatus: this.checkstatus(),
553
553
  usertypes: this.usertypes(),
554
554
  userstates: this.userstates(),
@@ -873,17 +873,17 @@ export default {
873
873
  cancel() {
874
874
  this.showModal = false
875
875
  },
876
- areas() {
877
- let rs = []
878
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
879
- let temp = {
880
- label: this.$login.f.f_allArea[i].label,
881
- value: this.$login.f.f_allArea[i].label
882
- }
883
- rs.push(temp)
884
- }
885
- return [{label: '全部', value: ''}, ...rs]
886
- },
876
+ // areas() {
877
+ // let rs = []
878
+ // for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
879
+ // let temp = {
880
+ // label: this.$login.f.f_allArea[i].label,
881
+ // value: this.$login.f.f_allArea[i].label
882
+ // }
883
+ // rs.push(temp)
884
+ // }
885
+ // return [{label: '全部', value: ''}, ...rs]
886
+ // },
887
887
  initAdjustables() {
888
888
  //tag
889
889
  let arr = []
@@ -376,43 +376,10 @@ import {HttpResetClass} from "vue-client";
376
376
  let asyncReady = async function (self) {
377
377
  // 获取配置信息
378
378
  try {
379
- let res = await new HttpResetClass().load('post', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
380
- data: {
381
- items: 'f_dir',
382
- tablename: 't_organization',
383
- condition: `id = '${self.item.f_filialeid}'`,
384
- orderitem: 'id'
385
- }
386
- })/*.then(res=>{*/
387
- //tag
388
- //tag)
389
- if (!res.data[0].f_dir) {
390
- self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
391
- } else {
392
- //this.f_dir=res.data[0].f_dir
393
- try {
394
- let res1 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
395
- resolveMsg: '获取居民配置项成功!',
396
- rejectMsg: '获取居民配置项出错!'
397
- })/*.then(res=>{*/
398
- //tag
399
- //this.safeConfig["民用配置项"]=Object.assign({},res.data)
400
- Vue.config.safecheck.DevicesConfig = res1.data
401
- /*})*/
402
- let res2 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
403
- resolveMsg: '获取非居民配置项成功!',
404
- rejectMsg: '获取非居民配置项出错!'
405
- })/*.then(res=>{*/
406
- //tag
407
- //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
408
- Vue.config.safecheck.DevicesSetConfig = res2.data
409
- /*}).then(res=> {
410
- })*/
411
-
412
- } catch (e) {
413
- self.$showMessage("获取配置文件失败" + e)
414
- }
415
- }
379
+ let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
380
+ self.delConfigKey(res.data)
381
+ Vue.config.safecheck=res.data
382
+ console.log('获取配置结果===', res.data)
416
383
  } catch (error) {
417
384
  // 忽略704,文件找不到异常R
418
385
  if (error.status !== 704) {
@@ -630,6 +597,18 @@ export default {
630
597
  }
631
598
  },
632
599
  methods: {
600
+ delConfigKey(obj){
601
+ // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
602
+ Object.keys(obj).forEach(key =>{
603
+ Object.keys(obj[key]).forEach(col => {
604
+ // 检查键是否以$开头
605
+ if (col.startsWith('$')) {
606
+ // 使用delete操作符删除键
607
+ delete obj[key][col];
608
+ }
609
+ })
610
+ })
611
+ },
633
612
  devicesCollect() {
634
613
  //tag
635
614
  //tag)
@@ -670,24 +649,29 @@ export default {
670
649
  if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect=='true' || items.isdefect==true))) {
671
650
  continue
672
651
  }
673
- if(items.f_is_defect != true && items.f_is_defect != 'true'){
674
- continue
675
- }
676
- let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
677
- if(items.f_item_name == '是否开放式厨房') {
678
- console.log('是否开放式厨房', options)
679
- console.log('f_item_value', f_item_value)
680
- }
681
- for (let option in options) {
682
- if (options[option].data == f_item_value) {
683
- if ((options[option].isdefect == 'true' || options[option].isdefect == true) && (items.f_is_defect == 'true' || items.f_is_defect == true)) {
684
- checkResult = '有隐患'
685
- this.result = '有隐患'
686
- defects = `${defects}:${options[option].data}/`
687
- // let level = options[option].level
688
- }
689
- }
652
+ // if(items.f_is_defect != true && items.f_is_defect != 'true'){
653
+ // continue
654
+ // }
655
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
656
+ checkResult = '有隐患'
657
+ this.result = '有隐患'
658
+ defects = `${defects}:${f_item_value}/`
690
659
  }
660
+ // let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
661
+ // if(items.f_item_name == '是否开放式厨房') {
662
+ // console.log('是否开放式厨房', options)
663
+ // console.log('f_item_value', f_item_value)
664
+ // }
665
+ // for (let option in options) {
666
+ // if (options[option].data == f_item_value) {
667
+ // if ((options[option].isdefect == 'true' || options[option].isdefect == true) && (items.f_is_defect == 'true' || items.f_is_defect == true)) {
668
+ // checkResult = '有隐患'
669
+ // this.result = '有隐患'
670
+ // defects = `${defects}:${options[option].data}/`
671
+ // // let level = options[option].level
672
+ // }
673
+ // }
674
+ // }
691
675
  //tag)
692
676
  }
693
677
  if (defects != '') {
@@ -971,20 +955,24 @@ export default {
971
955
  },
972
956
 
973
957
  back() {
974
- if (this.role == 'inspect') {
975
- if (!this.isStrat) {
976
- this.$back()
977
- return
958
+ if (this.role == 'inspect') {
959
+ if (!this.isStrat) {
960
+ this.$emit('showback')
961
+ return
962
+ } else {
963
+ this.savePaper(true).then(() => {
964
+ this.$emit('showback')
965
+ this.isStrat = false
966
+ })
967
+ }
978
968
  } else {
979
- this.savePaper(true).then(() => {
969
+ if(this.gotoitem){
980
970
  this.$back()
981
- this.isStrat = false
982
- })
971
+ return
972
+ }
973
+ this.$emit('showback')
983
974
  }
984
- } else {
985
- this.$back()
986
- }
987
- },
975
+ },
988
976
  checkIsStart() {
989
977
  alert('asdad')
990
978
  return
@@ -1343,6 +1331,7 @@ export default {
1343
1331
  },
1344
1332
 
1345
1333
  ready() {
1334
+ asyncReady(this).then(async () => {
1346
1335
  this.putDevices()
1347
1336
  if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1348
1337
  if (this.role != 'inspect') {
@@ -1353,7 +1342,7 @@ export default {
1353
1342
  } else if (this.role == 'androidview') {
1354
1343
  id = this.item.f_paper_id
1355
1344
  }
1356
- this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1345
+ this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, {data: {id:id}}).then((respanse) => {
1357
1346
  //tag
1358
1347
  if (respanse.data.length != 0) {
1359
1348
  // 包含 其它 特殊处理的数组
@@ -1401,7 +1390,6 @@ export default {
1401
1390
  }
1402
1391
  // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1403
1392
  this.isshow = true
1404
- asyncReady(this).then(async () => {
1405
1393
  //tag
1406
1394
  //tag)
1407
1395
  if (this.data.f_check_type == '民用') {
@@ -1419,7 +1407,7 @@ export default {
1419
1407
  }
1420
1408
  console.log('this.data.f_collection_type--------------',this.data.f_collection_type)
1421
1409
  if(!this.data.f_collection_type){
1422
- await this.$resetpost('api/af-safecheck/sql/SafecheckTableModel', {data: {condition: ` 1 = 1 and pim.f_plan_item_id = '${this.item.f_check_item_id}'`}}).then((res) => {
1410
+ this.$resetpost('api/af-safecheck/sql/SafecheckTableModel', {data: {condition: ` 1 = 1 and pim.f_plan_item_id = '${this.item.f_check_item_id}'`}}).then((res) => {
1423
1411
  //tag)
1424
1412
  if(res.data.length>0){
1425
1413
  this.meter_classify = res.data[0].f_meter_classify
@@ -1459,9 +1447,6 @@ export default {
1459
1447
  this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1460
1448
  this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1461
1449
  this.getDeviceAll()
1462
-
1463
-
1464
- })
1465
1450
  }
1466
1451
  ).catch(
1467
1452
  (respanse) => {
@@ -1470,7 +1455,7 @@ export default {
1470
1455
  })
1471
1456
  }
1472
1457
  }
1473
-
1458
+ })
1474
1459
  },
1475
1460
  watch: {
1476
1461
  // 'isUpload'(val){