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.
Files changed (54) hide show
  1. package/package.json +5 -5
  2. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  3. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  4. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  5. package/src/components/android/SwitchValve.vue +1 -1
  6. package/src/components/checkplan/CheckDetail.vue +1 -1
  7. package/src/components/map/SecurityCheckCoordinates.vue +348 -0
  8. package/src/components/pc/CheckBookUser.vue +337 -333
  9. package/src/filiale/jinhong/android/CurrentCreate.vue +41 -2
  10. package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
  11. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  12. package/src/filiale/jinhong/pc/checkUserList.vue +31 -8
  13. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  14. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  15. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  16. package/src/filiale/libo/android.js +14 -0
  17. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  18. package/src/filiale/libo/pc.js +12 -0
  19. package/src/filiale/meihekou/android/MeterReading.vue +9 -5
  20. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
  21. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  22. package/src/filiale/meihekou/android/SafecheckOrderV.vue +323 -310
  23. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -2027
  24. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  25. package/src/filiale/meihekou/pc/PaperList.vue +810 -0
  26. package/src/filiale/meihekou/pc.js +15 -13
  27. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  28. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  29. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1 -0
  30. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  31. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  32. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
  33. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
  34. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
  35. package/src/filiale/taiyuan/android.js +13 -0
  36. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -0
  37. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  38. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  39. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  40. package/src/filiale/taiyuan/pc.js +15 -0
  41. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  42. package/src/filiale/xinkang/android/AddPlanItem.vue +1 -1
  43. package/src/filiale/xinkang/android/SafecheckDevices.vue +29 -7
  44. package/src/filiale/xinkang/android/SafecheckOrderV.vue +21 -44
  45. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  46. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1474 -1498
  47. package/src/filiale/xinkang/pc/PaperList.vue +596 -603
  48. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  49. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
  50. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
  51. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  52. package/src/filiale/yunchengminsheng/pc.js +1 -0
  53. package/src/safecheck-android.js +4 -0
  54. package/src/safecheck.js +3 -0
@@ -0,0 +1,15 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'plan-manage':(resolve) => { require(['./pc/PlanManage'], resolve) },
7
+ 'check-user-list':(resolve) => { require(['./pc/checkUserList'], resolve) },
8
+ 'defect-deal':(resolve) => { require(['./pc/DefectDeal'], resolve) },
9
+ 'new-check-paper':(resolve) => { require(['./pc/NewCheckpaper'], resolve) },
10
+ }
11
+ exports.specialComp = specialComp
12
+
13
+
14
+
15
+
@@ -269,7 +269,7 @@
269
269
  meternumberf: this.thisOneData.f_meternumber, //表号
270
270
  contentData: {isOpen: msg=='开阀' ? 1 : 0}, // oper 为true 时为开阀 false 为关阀
271
271
  }
272
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/iot_saveInstruct`, {data: data}).then((row) => {
272
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/iot_saveInstruct`, {data: data}).then((row) => {
273
273
  this.$showMessage(`${msg}指令发送成功,请等候2分钟进行查询`)
274
274
  //tag
275
275
  this.thisOneData = '';
@@ -318,7 +318,7 @@
318
318
  // 更精确的计算:6个月 = 6 * 平均每月30.44天 * 24 * 60 * 60 * 1000
319
319
  let sixMonthsInMs = 6 * 30 * 24 * 60 * 60 * 1000
320
320
 
321
- if(timeDiff > sixMonthsInMs){
321
+ if(timeDiff < sixMonthsInMs){
322
322
  this.$showMessage("该用户半年内已进行入户安检,无需再次安检",['confirm'])
323
323
  // 超过6个月,结束方法
324
324
  return
@@ -814,9 +814,28 @@ export default {
814
814
  if(Vue.config.safecheck.ApproveConfig.dealdispose != undefined) {
815
815
  this.dealdispose = Vue.config.safecheck.ApproveConfig.dealdispose
816
816
  }
817
+ if(Vue.config.safecheck.ApproveConfig.showtorepair) {
818
+ this.deals=[{label: '现场整改', value: '现场整改'},
819
+ {label: '自行处理', value: '自行处理'},
820
+ {label: '转维修', value: '报修'}
821
+ ]
822
+ }
823
+ if(Vue.config.safecheck.ApproveConfig.Processing) {
824
+ if(Vue.config.safecheck.ApproveConfig.Processing.length > 0){
825
+ this.deals = Vue.config.safecheck.ApproveConfig.Processing
826
+ }
827
+ }
828
+ if(Vue.config.safecheck.ApproveConfig.showXCImg) {
829
+ this.showXCImg = true
830
+ }
831
+ if(Vue.config.safecheck.ApproveConfig.showZXTime) {
832
+ this.showZXTime = true
833
+ }
834
+ if(Vue.config.safecheck.ApproveConfig.showtorepair) {
835
+ }
817
836
  if(Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
818
- if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
819
- this.hiddenDangerImgNumber = 3
837
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
838
+ this.hiddenDangerImgNumber = 5
820
839
  }else {
821
840
  this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
822
841
  }
@@ -883,6 +902,9 @@ export default {
883
902
  f_item_name: item,
884
903
  checkmust: this.config[this.device.device].items[item].checkmust,
885
904
  f_item_value: f_item_value,
905
+ is_verification:this.config[this.device.device].items[item].is_verification,
906
+ verification_text:'',
907
+ verification_state:'',// ai验证是否通过 npass(未通过)/pass(通过)
886
908
  f_is_defect: '',
887
909
  multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
888
910
  isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
@@ -896,7 +918,9 @@ export default {
896
918
  f_else: '',
897
919
  f_p1_path: '',
898
920
  f_p2_path: '',
899
- f_p3_path: ''
921
+ f_p3_path: '',
922
+ f_longitude:'',
923
+ f_latitude:''
900
924
  }
901
925
  //tag)
902
926
  //tag)
@@ -952,7 +976,7 @@ export default {
952
976
  }
953
977
  n = n + 1
954
978
  }
955
- if(JSON.stringify(this.piece) == '{}') {
979
+ if(!this.piece || JSON.stringify(this.piece) == '{}') {
956
980
  // 如果没有,则新建
957
981
  this.$set('piece.f_items',this.f_items)
958
982
  this.$set('piece.f_device_type',this.device.device)
@@ -963,7 +987,6 @@ export default {
963
987
  continue
964
988
  }
965
989
  for(let p in this.piece.f_items) {
966
- //
967
990
  if(typeof this.piece.f_items[p]=='function'){
968
991
  continue
969
992
  }
@@ -1029,8 +1052,7 @@ export default {
1029
1052
  }else if (this.f_items[f].f_item_name == '表读数') {
1030
1053
  //tag)
1031
1054
  this.f_meter_base.index = f
1032
- }
1033
- else if (this.f_items[f].f_item_name == '表剩余金额') {
1055
+ }else if (this.f_items[f].f_item_name == '表剩余金额') {
1034
1056
  //tag)
1035
1057
  this.f_balance_amount.index = f
1036
1058
  }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数据---
@@ -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') {