safecheck-client 3.0.30-3 → 3.0.30-34

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 (46) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/components/android/AddPlanItem.vue +5 -2
  4. package/src/components/android/CurrentCreate.vue +3 -1
  5. package/src/components/android/UploadPage.vue +228 -338
  6. package/src/components/paper/PlanChooser.vue +2 -2
  7. package/src/components/pc/Edit.vue +50 -0
  8. package/src/components/pc/NewCheckpaper.vue +9 -5
  9. package/src/components/pc/PaperEdit.vue +148 -0
  10. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  11. package/src/components/querycheckpaper/CheckSearchUser.vue +10 -1
  12. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  13. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -0
  14. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -0
  15. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -0
  16. package/src/filiale/hanzhong/android.js +5 -1
  17. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2418
  18. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  19. package/src/filiale/jingyang/pc/PaperList.vue +1 -2
  20. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  21. package/src/filiale/kelai/android.js +1 -0
  22. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  23. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  24. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +9 -3
  25. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  26. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -0
  27. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  28. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +600 -598
  29. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  30. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1 -1
  31. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
  32. package/src/filiale/yangchunboneng/pc/PaperList.vue +2 -2
  33. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +230 -0
  34. package/src/filiale/yongzhou/pc/communityDetail.vue +16 -4
  35. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +8 -6
  36. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +8 -6
  37. package/src/filiale/yongzhou/pc/safeDetail.vue +18 -6
  38. package/src/filiale/yongzhou/pc/safeStatistics.vue +10 -0
  39. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +26 -6
  40. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +20 -3
  41. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +10 -0
  42. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  43. package/src/filiale/yongzhou/pc.js +1 -0
  44. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  45. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  46. package/src/safecheck.js +6 -0
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  // 手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
7
+ 'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) },
7
8
  'safecheck-devices' : (resolve) => { require(['./android/SafecheckDevices'], resolve) },
8
9
  'paper-feedback' : (resolve) => { require(['./android/PaperFeedback'], resolve) },
9
10
  'current-create' : (resolve) => { require(['./android/CurrentCreate'], resolve) },
@@ -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
@@ -481,9 +481,6 @@ export default {
481
481
  if (!this.selectPcd.id) {
482
482
  checked = {ischeck: false, msg: '请选择省市区!'}
483
483
  }
484
- if (!this.selectStreet.id) {
485
- checked = {ischeck: false, msg: '请选择街道!'}
486
- }
487
484
  if (!this.userinfo.addressinfo.f_address) {
488
485
  checked = {ischeck: false, msg: '新地址不能为空!'}
489
486
  }
@@ -494,6 +491,9 @@ export default {
494
491
  if (!this.userinfo.addressinfo.f_room) {
495
492
  checked = {ischeck: false, msg: '新输入门牌号!'}
496
493
  }
494
+ if (!this.selectStreet.id) {
495
+ checked = {ischeck: false, msg: '请选择街道!'}
496
+ }
497
497
  }
498
498
  if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
499
499
 
@@ -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
@@ -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: '',
@@ -568,6 +568,8 @@
568
568
  excelHeaders: {
569
569
  'f_device_type': '检查项',
570
570
  'f_item_name': '隐患名称',
571
+ 'f_item_value': '隐患原因',
572
+ 'f_alias_name': '隐患别名',
571
573
  'f_userinfo_code': '客户编号',
572
574
  'f_user_name': '客户姓名',
573
575
  'f_user_phone': '客户电话',
@@ -362,7 +362,7 @@
362
362
  </h4>
363
363
  </div>
364
364
  <div slot="modal-body" class="modal-body">
365
- <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
365
+ <plan-chooser :f.sync="$login.f" v-ref:chooser></plan-chooser>
366
366
  </div>
367
367
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
368
368
  <button class="button_search" @click="ok">确认</button>