safecheck-client 4.0.1-6 → 4.0.1-60

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 (65) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +132 -132
  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/android/AndroidDefectDetails.vue +3 -3
  8. package/src/components/android/DailyworkloadQuery.vue +2 -1
  9. package/src/components/android/NewCheckpaperAndroid.vue +22 -48
  10. package/src/components/android/SwitchValve.vue +1 -1
  11. package/src/components/checkplan/CheckDetail.vue +1 -1
  12. package/src/components/map/SecurityCheckCoordinates.vue +350 -0
  13. package/src/components/pc/CheckBookUser.vue +8 -4
  14. package/src/components/planmanage/PlanManage.vue +1 -0
  15. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  16. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  17. package/src/components/querycheckpaper/CheckSearchUser.vue +5 -0
  18. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  19. package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
  20. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  21. package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
  22. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  23. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  24. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  25. package/src/filiale/libo/android.js +14 -0
  26. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  27. package/src/filiale/libo/pc.js +12 -0
  28. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  29. package/src/filiale/meihekou/android/MeterReading.vue +9 -5
  30. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
  31. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  32. package/src/filiale/meihekou/android/SafecheckOrderV.vue +324 -311
  33. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  34. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  35. package/src/filiale/meihekou/pc/PaperList.vue +1136 -0
  36. package/src/filiale/meihekou/pc.js +2 -0
  37. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  38. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  39. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  40. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  41. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  42. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
  43. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
  44. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
  45. package/src/filiale/taiyuan/android.js +13 -0
  46. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -0
  47. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  48. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  49. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  50. package/src/filiale/taiyuan/pc.js +15 -0
  51. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  52. package/src/filiale/xinkang/android/AddPlanItem.vue +65 -31
  53. package/src/filiale/xinkang/android/SafecheckDevices.vue +29 -7
  54. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  55. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  56. package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
  57. package/src/filiale/xinkang/pc/NewCheckpaper.vue +20 -44
  58. package/src/filiale/xinkang/pc/PaperList.vue +2 -9
  59. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  60. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
  61. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
  62. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  63. package/src/filiale/yunchengminsheng/pc.js +1 -0
  64. package/src/safecheck-android.js +4 -0
  65. 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 = '';
@@ -188,7 +188,7 @@
188
188
  import {HttpResetClass, PagedList} from 'vue-client'
189
189
  import Vue from 'vue'
190
190
  import * as Util from '../../Util'
191
- import {toStandardTimeString} from "../../Util";
191
+ import {isEmpty, toStandardTimeString} from "../../Util";
192
192
 
193
193
  export default {
194
194
  title: '安检员B',
@@ -304,42 +304,76 @@
304
304
  })
305
305
  //tag
306
306
  },
307
- inspect (info){
307
+ inspect(info) {
308
308
  // 当前系统时间
309
309
  let newdate = Util.toStandardTimeString()
310
- if(info.f_last_check_state == '入户' && info.f_last_check_date){
311
- // 解析上次安检时间
312
- let lastCheckDate = new Date(info.f_last_check_date)
313
- let currentDate = new Date(newdate)
314
- // 计算时间差(毫秒)
315
- let timeDiff = currentDate.getTime() - lastCheckDate.getTime()
316
-
317
- // 6个月 = 6 * 30 * 24 * 60 * 60 * 1000 毫秒(约15552000000毫秒)
318
- // 更精确的计算:6个月 = 6 * 平均每月30.44天 * 24 * 60 * 60 * 1000
319
- let sixMonthsInMs = 6 * 30 * 24 * 60 * 60 * 1000
310
+ if(isEmpty(info.f_last_check_date) || info.f_user_type == '非民用'){
311
+ info.id = ''
312
+ info.f_state = '未检'
313
+ info.f_no_checkplan = '无计划安检'
314
+ //tag
315
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: info.f_userinfo_id}}).then((response) => {
316
+ //tag)
317
+ info['f_plan_meters'] = response.data
318
+ var pardate = {
319
+ _this: this,
320
+ tittle: '安检详情',
321
+ safe: true
322
+ }
323
+ this.$dispatch('gotoson', pardate)
324
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect', parentPage: 'AddPlanItem'}, 'self', this.reload)
325
+ })
326
+ }else {
327
+ if (info.f_last_check_state == '入户' && info.f_last_check_date && info.f_user_type == '民用') {
328
+ // 解析上次安检时间
329
+ let lastCheckDate = new Date(info.f_last_check_date)
330
+ let currentDate = new Date(newdate)
331
+ // 计算时间差(毫秒)
332
+ let timeDiff = currentDate.getTime() - lastCheckDate.getTime()
320
333
 
321
- if(timeDiff > sixMonthsInMs){
322
- this.$showMessage("该用户半年内已进行入户安检,无需再次安检",['confirm'])
323
- // 超过6个月,结束方法
324
- return
334
+ // 6个月 = 6 * 30 * 24 * 60 * 60 * 1000 毫秒(约15552000000毫秒)
335
+ // 更精确的计算:6个月 = 6 * 平均每月30.44天 * 24 * 60 * 60 * 1000
336
+ let sixMonthsInMs = 6 * 30 * 24 * 60 * 60 * 1000
337
+ if (timeDiff < sixMonthsInMs) {
338
+ this.$showMessage('该用户半年内已进行入户安检,是否继续安检?', ['confirm', 'cancel']).then((res) => {
339
+ if (res == 'confirm') {
340
+ info.id = ''
341
+ info.f_state = '未检'
342
+ info.f_no_checkplan = '无计划安检'
343
+ //tag
344
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: info.f_userinfo_id}}).then((response) => {
345
+ //tag)
346
+ info['f_plan_meters'] = response.data
347
+ var pardate = {
348
+ _this: this,
349
+ tittle: '安检详情',
350
+ safe: true
351
+ }
352
+ this.$dispatch('gotoson', pardate)
353
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect', parentPage: 'AddPlanItem'}, 'self', this.reload)
354
+ })
355
+ }
356
+ })
357
+ }else{
358
+ info.id = ''
359
+ info.f_state = '未检'
360
+ info.f_no_checkplan = '无计划安检'
361
+ //tag
362
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: info.f_userinfo_id}}).then((response) => {
363
+ //tag)
364
+ info['f_plan_meters'] = response.data
365
+ var pardate = {
366
+ _this: this,
367
+ tittle: '安检详情',
368
+ safe: true
369
+ }
370
+ this.$dispatch('gotoson', pardate)
371
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect', parentPage: 'AddPlanItem'}, 'self', this.reload)
372
+ })
373
+ }
325
374
  }
326
375
  }
327
- info.id = ''
328
- info.f_state = '未检'
329
- info.f_no_checkplan = '无计划安检'
330
- //tag
331
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
332
- //tag)
333
- info['f_plan_meters'] = response.data
334
- var pardate = {
335
- _this:this,
336
- tittle:'安检详情',
337
- safe:true
338
- }
339
- this.$dispatch('gotoson',pardate)
340
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
341
376
 
342
- })
343
377
  },
344
378
  Mreadibook(){
345
379
  this.cbc=[]
@@ -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数据---
@@ -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)
@@ -1343,6 +1322,7 @@ export default {
1343
1322
  },
1344
1323
 
1345
1324
  ready() {
1325
+ asyncReady(this).then(async () => {
1346
1326
  this.putDevices()
1347
1327
  if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1348
1328
  if (this.role != 'inspect') {
@@ -1353,7 +1333,7 @@ export default {
1353
1333
  } else if (this.role == 'androidview') {
1354
1334
  id = this.item.f_paper_id
1355
1335
  }
1356
- this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1336
+ this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, {data: {id:id}}).then((respanse) => {
1357
1337
  //tag
1358
1338
  if (respanse.data.length != 0) {
1359
1339
  // 包含 其它 特殊处理的数组
@@ -1401,7 +1381,6 @@ export default {
1401
1381
  }
1402
1382
  // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1403
1383
  this.isshow = true
1404
- asyncReady(this).then(async () => {
1405
1384
  //tag
1406
1385
  //tag)
1407
1386
  if (this.data.f_check_type == '民用') {
@@ -1419,7 +1398,7 @@ export default {
1419
1398
  }
1420
1399
  console.log('this.data.f_collection_type--------------',this.data.f_collection_type)
1421
1400
  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) => {
1401
+ 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
1402
  //tag)
1424
1403
  if(res.data.length>0){
1425
1404
  this.meter_classify = res.data[0].f_meter_classify
@@ -1459,9 +1438,6 @@ export default {
1459
1438
  this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1460
1439
  this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1461
1440
  this.getDeviceAll()
1462
-
1463
-
1464
- })
1465
1441
  }
1466
1442
  ).catch(
1467
1443
  (respanse) => {
@@ -1470,7 +1446,7 @@ export default {
1470
1446
  })
1471
1447
  }
1472
1448
  }
1473
-
1449
+ })
1474
1450
  },
1475
1451
  watch: {
1476
1452
  // 'isUpload'(val){
@@ -484,15 +484,8 @@ import BenzAMRRecorder from 'benz-amr-recorder'
484
484
  },
485
485
 
486
486
  change(row) {
487
- // Vue.$login = {jwt: row.f_checker_id}
488
- asyncReady(this).then(() => {
489
- ////tag)
490
- row.f_upload_state = '已传'
491
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
492
- }).catch(
493
- (respanse) => {
494
- alert('获取配置文件失败')
495
- })
487
+ row.f_upload_state = '已传'
488
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
496
489
  },
497
490
  readConfig() {
498
491
  let gen = asyncReady(this)
@@ -294,7 +294,7 @@ export default {
294
294
  meternumberf: this.thisOneData.f_meternumber, //表号
295
295
  contentData: {isOpen: msg=='开阀' ? 1 : 0}, // oper 为true 时为开阀 false 为关阀
296
296
  }
297
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/iot_saveInstruct`, {data: data}).then((row) => {
297
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/iot_saveInstruct`, {data: data}).then((row) => {
298
298
  this.$showMessage(`${msg}指令发送成功,请等候2分钟进行查询`)
299
299
  //tag
300
300
  this.thisOneData = '';