safecheck-client 4.0.0-32 → 4.0.0-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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "4.0.0-32",
4
+ "version": "4.0.0-34",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -56,7 +56,7 @@
56
56
  </td>
57
57
  <td style="text-align: center">
58
58
  <div>
59
- <!-- <img-button v-if="row.f_repaire_type != '无隐患' && row.f_repaire_type != '维修已处理' && row.f_path" :src="'/singlepage/rs/image/file/'+row.f_path" :value="'隐患图片'"></img-button>-->
59
+ <!-- <img-button v-if="row.f_repaire_type != '无隐患' && row.f_repaire_type != '维修已处理' && row.f_path" :src="'/rs/image/file/'+row.f_path" :value="'隐患图片'"></img-button>-->
60
60
  <!-- <button style="margin-top: 3px" v-if="row.f_repaire_type == '维修已处理'" class="button_new-1 button_spacing" @click="$parent.$parent.$parent.solveDefect( row, 'view')">处理详情</button>-->
61
61
  <button style="margin-top: 3px" class="button_new-1 button_spacing" @click="$parent.$parent.$parent.solveDefect(row, row.f_repaire_type)">处理详情</button>
62
62
  <button style="margin-top: 3px" v-if="row.f_repaire_type == '隐患未处理' && $parent.$parent.$parent.showHandleDefectButton === '是'" class="button_spacing button_search-1" @click="$parent.$parent.$parent.solveDefect(row, 'solve')">处理隐患</button>
@@ -519,10 +519,10 @@ export default {
519
519
  this.solveModal.preData.repairedImg3 = ''
520
520
  this.solveModal.preData.repairedImg4 = ''
521
521
  this.solveModal.preData.repairedImg5 = ''
522
- this.solveModal.preData.defectImg = row.f_path ? '/singlepage/rs/image/file/' + row.f_path : ''
523
- this.solveModal.preData.defectImg1 = row.f_p1_path ? '/singlepage/rs/image/file/' + row.f_p1_path : ''
524
- this.solveModal.preData.defectImg2 = row.f_p2_path ? '/singlepage/rs/image/file/' + row.f_p2_path : ''
525
- this.solveModal.preData.defectImg3 = row.f_p3_path ? '/singlepage/rs/image/file/' + row.f_p3_path : ''
522
+ this.solveModal.preData.defectImg = row.f_path ? '/rs/image/file/' + row.f_path : ''
523
+ this.solveModal.preData.defectImg1 = row.f_p1_path ? '/rs/image/file/' + row.f_p1_path : ''
524
+ this.solveModal.preData.defectImg2 = row.f_p2_path ? '/rs/image/file/' + row.f_p2_path : ''
525
+ this.solveModal.preData.defectImg3 = row.f_p3_path ? '/rs/image/file/' + row.f_p3_path : ''
526
526
  this.solveModal.uploadData.id = row.id
527
527
  this.solveModal.preData.type = type
528
528
  this.solveModal.preData.state = row.f_repaire_state
@@ -533,13 +533,13 @@ export default {
533
533
  this.solveModal.preData.repairedImg = row.f_repair_path
534
534
  this.solveModal.preData.repairedImg1 = row.f_repair1_path
535
535
  } else {
536
- this.solveModal.preData.f_repair_path = row.f_repair_path? '/singlepage/rs/image/file/' + row.f_repair_path:null
537
- this.solveModal.preData.repairedImg = row.f_repair_path? '/singlepage/rs/image/file/' + row.f_repair_path:null
538
- this.solveModal.preData.repairedImg1 = row.f_other_dealpath1 ? '/singlepage/rs/image/file/' + row.f_other_dealpath1 : null
539
- this.solveModal.preData.repairedImg2 = row.f_other_dealpath2 ? '/singlepage/rs/image/file/' + row.f_other_dealpath2 : null
540
- this.solveModal.preData.repairedImg3 = row.f_repair2_path ? ('/singlepage/rs/image/file/' + row.f_repair2_path) : ''
541
- this.solveModal.preData.repairedImg4 = row.f_repair3_path ? ('/singlepage/rs/image/file/' + row.f_repair3_path) : ''
542
- this.solveModal.preData.repairedImg5 = row.f_repair4_path ? ('/singlepage/rs/image/file/' + row.f_repair4_path) : ''
536
+ this.solveModal.preData.f_repair_path = row.f_repair_path? '/rs/image/file/' + row.f_repair_path:null
537
+ this.solveModal.preData.repairedImg = row.f_repair_path? '/rs/image/file/' + row.f_repair_path:null
538
+ this.solveModal.preData.repairedImg1 = row.f_other_dealpath1 ? '/rs/image/file/' + row.f_other_dealpath1 : null
539
+ this.solveModal.preData.repairedImg2 = row.f_other_dealpath2 ? '/rs/image/file/' + row.f_other_dealpath2 : null
540
+ this.solveModal.preData.repairedImg3 = row.f_repair2_path ? ('/rs/image/file/' + row.f_repair2_path) : ''
541
+ this.solveModal.preData.repairedImg4 = row.f_repair3_path ? ('/rs/image/file/' + row.f_repair3_path) : ''
542
+ this.solveModal.preData.repairedImg5 = row.f_repair4_path ? ('/rs/image/file/' + row.f_repair4_path) : ''
543
543
  }
544
544
  if (type === '现场已处理') {
545
545
  this.solveModal.uploadData.f_repairman = this.check.f_checker_name
@@ -1433,7 +1433,7 @@
1433
1433
  if(this.item.f_user_type == '非民用'){
1434
1434
  // 非民用
1435
1435
  if (Vue.config.safecheck.DevicesSetConfig != undefined){
1436
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1436
+ 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]]) {
1437
1437
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1438
1438
  }else{
1439
1439
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
@@ -1443,7 +1443,7 @@
1443
1443
  }else{
1444
1444
  // 民用户
1445
1445
  if (Vue.config.safecheck.DevicesConfig != undefined){
1446
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1446
+ 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]]) {
1447
1447
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1448
1448
  }else{
1449
1449
  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:'民用']])
@@ -77,17 +77,7 @@
77
77
  </div>
78
78
  </div>
79
79
 
80
- <div style="font-size: medium;" :class="style__">
81
- <span class="col-md-3 col-sm-4 col-xs-4 text-left"><img src="../../../assets/housestyle.png"
82
- style="width: 20px;margin-bottom: 5px;text-align: left"
83
- alt="">用气状态:</span>
84
- <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
85
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="nopeople" value="已使用">
86
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="rejectchecck" value="未使用">拒检
87
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="enterhouse" value="已关气">入户
88
- </div>
89
80
 
90
- </div>
91
81
  <div style="font-size: medium;" :class="style__">
92
82
  <span class="col-md-3 col-sm-4 col-xs-4 text-left"><img src="../../../assets/housestyle.png"
93
83
  style="width: 20px;margin-bottom: 5px;text-align: left"
@@ -384,7 +384,6 @@
384
384
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
385
385
  {{row.f_approved_note}}
386
386
  </td>
387
- <td style="text-align: center">{{row.f_gas_state}}</td>
388
387
  <td style="text-align: center">
389
388
  <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
390
389
 
@@ -732,7 +732,7 @@ export default {
732
732
  // 如果选中的是隐患项,取消选中isdefect为false的
733
733
  this.f_items[n].f_item_value = selectList
734
734
  // 如果第一次选择隐患项,初始化
735
- if (!this.f_items[n].f_is_defect) {
735
+ if (this.f_items[n].f_item_value && this.f_items[n].string_defect){
736
736
  this.f_items[n].f_is_defect = true
737
737
  this.f_items[n].f_defect_level = selected[0].level
738
738
  this.f_items[n].f_path = Vue.nopic
@@ -751,6 +751,24 @@ export default {
751
751
  this.f_items[n].f_deal_dispose = ''
752
752
  this.f_items[n].tooltip = ''
753
753
  })
754
+ }else if(this.f_items[n].type == 'string') {
755
+ this.$watch('f_items[' + n + '].f_item_value', function (val) {
756
+ if (this.f_items[n].f_item_value && this.f_items[n].string_defect){
757
+ this.f_items[n].f_is_defect = true
758
+ this.f_items[n].f_defect_level = ''
759
+ this.f_items[n].f_path = Vue.nopic
760
+ this.f_items[n].f_live_dispose = '否'
761
+ this.f_items[n].f_deal_dispose = '未处理'
762
+ this.f_items[n].tooltip = ''
763
+ }else {
764
+ this.f_items[n].f_path = ''
765
+ this.f_items[n].f_is_defect = ''
766
+ this.f_items[n].f_defect_level = ''
767
+ this.f_items[n].f_live_dispose = ''
768
+ this.f_items[n].f_deal_dispose = ''
769
+ this.f_items[n].tooltip = ''
770
+ }
771
+ })
754
772
  }
755
773
  }
756
774
  //tag)
@@ -1014,6 +1032,7 @@ export default {
1014
1032
  verification_text:'',
1015
1033
  verification_state:'',// ai验证是否通过 npass(未通过)/pass(通过)
1016
1034
  f_is_defect: '',
1035
+ string_defect: this.config[this.device.device].items[item].isdefect,
1017
1036
  multiple:this.config[this.device.device].items[item].multiple == true?this.config[this.device.device].items[item].multiple:false,
1018
1037
  isshow:this.config[this.device.device].items[item].isshow == false?this.config[this.device.device].items[item].isshow:true,
1019
1038
  readonly: this.config[this.device.device].items[item].readonly == true?true:false,
@@ -82,9 +82,9 @@
82
82
  style="width: 20px;margin-bottom: 5px;text-align: left"
83
83
  alt="">用气状态:</span>
84
84
  <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
85
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="nopeople" value="已使用">
86
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="rejectchecck" value="未使用">拒检
87
- <input type="radio" name="enterstatus" v-model="f_usergas_status" id="enterhouse" value="已关气">入户
85
+ <input type="radio" name="gasstate" v-model="f_gas_state" id="1" value="已使用">已使用
86
+ <input type="radio" name="gasstate" v-model="f_gas_state" id="2" value="未使用">未使用
87
+ <input type="radio" name="gasstate" v-model="f_gas_state" id="3" value="已关气">已关气
88
88
  </div>
89
89
 
90
90
  </div>
@@ -4,6 +4,7 @@ import Vue from "vue";
4
4
  // 手机特殊目录注册到该文件中
5
5
  let specialComp = {
6
6
  'safecheck-devices': (resolve) => { require(['./android/SafecheckDevices'], resolve) },
7
+ 'safecheck-userinfo' : (resolve) => { require(['./android/SafecheckUserInfo'], resolve) }
7
8
  }
8
9
 
9
10
  exports.specialComp = specialComp