safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -6,6 +6,7 @@ let specialComp = {
6
6
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
7
  'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) },
8
8
  'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
9
+ 'current-create' : (resolve) => { require(['./android/CurrentCreate'], resolve) },
9
10
  'safecheck-userinfo': (resolve) => { require(['./android/SafecheckUserInfo'], resolve) }
10
11
  }
11
12
  exports.specialComp = specialComp
@@ -545,7 +545,7 @@ export default {
545
545
  cbcs:[],
546
546
  thead: '',
547
547
  headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患明细'],
548
- bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content'],
548
+ bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','defecttext'],
549
549
  }
550
550
  },
551
551
  props:{
@@ -123,6 +123,10 @@
123
123
  <input type="checkbox" v-model="paper.f_gas_manual" /><label class="text-left font" >安全用气手册</label>
124
124
  </div>
125
125
  </div>
126
+ <div class="row">
127
+ <label for="readsafe" class="text-left font">蓝牙状态:{{blueState}}</label>
128
+ <button type="button" @click="initBlueState()">重新连接</button>
129
+ </div>
126
130
  <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
127
131
  <div class="form-group col-md-12 col-sm-12 col-xs-12">
128
132
  <input type="checkbox" v-model="paper.f_defect_notified" class="showIi" />隐患整改单
@@ -463,6 +467,7 @@
463
467
  title: '用户反馈',
464
468
  data() {
465
469
  return {
470
+ blueState:'',
466
471
  defectImgs: [],
467
472
  defectToolTip: [],
468
473
  defectReason: [],
@@ -525,6 +530,25 @@
525
530
  Radio
526
531
  },
527
532
  methods: {
533
+ initBlueState(){
534
+ let state = HostApp.getBluetoothState()
535
+ if (state && state.state == 3){
536
+ this.blueState = '连接完成'
537
+ }else {
538
+ if (state && state.state == -1){
539
+ this.$showMessage('蓝牙连接未打开,打开后重新尝试')
540
+ return
541
+ }
542
+ this.blueState = '连接失败,请重试'
543
+ this.$androidUtil.print(JSON.stringify([{ type: 4, value: 2, unit: 'line' }]))
544
+ let state2 = HostApp.getBluetoothState()
545
+ if (state2 && state2.state == 3){
546
+ this.blueState = '连接完成'
547
+ }else {
548
+ this.blueState = '连接失败,请重试'
549
+ }
550
+ }
551
+ },
528
552
  timeSet(val) {
529
553
  //////tag
530
554
  if (!val) {
@@ -759,6 +783,16 @@
759
783
  return hasError
760
784
  },
761
785
  print() {
786
+ let state = HostApp.getBluetoothState()
787
+ if (state && state.state == 3){
788
+ this.blueState = '连接完成'
789
+ }else {
790
+ this.blueState = '连接失败,请重试'
791
+ }
792
+ if (state && state.state == -1){
793
+ this.$showMessage('蓝牙未打开,请确认蓝牙是否打开')
794
+ return
795
+ }
762
796
  let errString = this.verify()
763
797
  if (errString) {
764
798
  ////tag
@@ -1193,6 +1227,12 @@
1193
1227
  },
1194
1228
  },
1195
1229
  async ready() {
1230
+ let state = HostApp.getBluetoothState()
1231
+ if (state && state.state == 3){
1232
+ this.blueState = '连接完成'
1233
+ }else {
1234
+ this.blueState = '连接失败,请重试'
1235
+ }
1196
1236
  this.isRecodr = this.$appdata.getSingleValue('无限制录音');
1197
1237
  // await this.isoverDate()
1198
1238
  ////tag
@@ -425,6 +425,8 @@
425
425
  f_plan_id: 'this.f_plan_id',
426
426
  f_approved: 'this.f_approved',
427
427
  f_entry_status: 'this.f_entry',
428
+ f_check_start:'this.f_check_start',
429
+ f_check_end:'this.f_check_end',
428
430
  f_no_checkplan: 'this.f_no_checkplan',
429
431
  f_filialeid: 'this.f_filialeid',
430
432
  orderitem: "'f_offsite_time desc'"
@@ -432,6 +434,8 @@
432
434
  model.f_check_type=''
433
435
  model.f_plan_id = ''
434
436
  model.f_approved = ''
437
+ model.f_check_start = ''
438
+ model.f_check_end = ''
435
439
  model.f_entry = ''
436
440
  model.f_no_checkplan = ''
437
441
  model.f_filialeid = `('${this.$login.f.orgid}')`
@@ -685,6 +689,8 @@
685
689
  selfSearch(args) {
686
690
  ////tag
687
691
  //args.condition+=" and f_check_type='民用'"
692
+ this.model.f_check_start = args.model.f_check_start
693
+ this.model.f_check_end = args.model.f_check_end
688
694
  this.model.search(args.condition, args.model, args.condValue)
689
695
  }
690
696
  },
@@ -616,6 +616,9 @@ export default {
616
616
  }
617
617
  this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
618
618
  if (res === 'confirm') {
619
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area ? this.selectArea.f_residential_area : ''
620
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id ? this.selectArea.id : ''
621
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area ? this.selectArea.f_slice_area : ''
619
622
  this.excessive = true
620
623
  let address = {}
621
624
  address.f_filialeid = this.userinfo.addressinfo.f_filialeid
@@ -695,6 +698,9 @@ export default {
695
698
  }
696
699
  this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
697
700
  if (res === 'confirm') {
701
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area ? this.selectArea.f_residential_area : ''
702
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id ? this.selectArea.id : ''
703
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area ? this.selectArea.f_slice_area : ''
698
704
  this.excessive = true
699
705
  let address = {}
700
706
  address.f_filialeid = this.userinfo.addressinfo.f_filialeid
@@ -10,9 +10,9 @@
10
10
  <header slot="modal-header" class="modal-header" v-show="false"></header>
11
11
  <article slot="modal-body" class="modal-body" style="width: 1200px;">
12
12
  <div class="auto">
13
- <img style="height:800px;width: 1200px;" src="../../../assets/city_proper.png"
13
+ <img style="height:800px;width: 1200px;" src="./cq.jpg"
14
14
  v-show="city_properEnable" alt="图片加载失败"/>
15
- <img style="height:800px;width: 1200px;" src="../../../assets/township.png"
15
+ <img style="height:800px;width: 1200px;" src="./qy.jpg"
16
16
  v-show="townshipEnable" alt="图片加载失败"/>
17
17
  </div>
18
18
  </article>
@@ -199,7 +199,7 @@
199
199
  source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($需要定位人员$) != -1)`,
200
200
  userid: this.$login.f.id
201
201
  }, {resolveMsg: null, rejectMsg: null})
202
- let arr1=await new HttpResetClass().load("GET", `/rs/safePsoition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
202
+ let arr1=await new HttpResetClass().load("GET", `/rs/safePosition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
203
203
  //tag+'---------'+typeof arr1)
204
204
  //let d=this.toStandardTimeString()
205
205
  this.checkers=[]
@@ -232,7 +232,7 @@
232
232
  }
233
233
  let td=Util.toStandardDateString()
234
234
  //获取今天上传的所有隐患
235
- let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and tdil.f_create_time>'${Util.toStartDateYearString()} 00:00:00' and tdi.F_LONGITUDE is not null`}},
235
+ let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStartDateYearString()} 00:00:00' and f_longitude is not null`}},
236
236
  {resolveMsg: null, rejectMsg: null})
237
237
  //tag)
238
238
  if(arr.data){
Binary file
Binary file
@@ -891,6 +891,7 @@
891
891
  let it = {
892
892
  type: this.config[this.device.device].items[item].type,
893
893
  f_item_name: item,
894
+ f_alias_name: this.config[this.device.device].items[item].alias_name,
894
895
  checkmust: this.config[this.device.device].items[item].checkmust,
895
896
  f_item_value: f_item_value,
896
897
  f_is_defect: '',