safecheck-client 3.0.32-3 → 3.0.32-5

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.
@@ -57,6 +57,12 @@ div {
57
57
  <div @click="back()">
58
58
  <img src="../../../assets/back.png" style="margin: 0px"/>
59
59
  </div>
60
+ <div @click="updateSpotCheck('合格')">
61
+ 合格
62
+ </div>
63
+ <div @click="NoSpotCheck()">
64
+ 不合格
65
+ </div>
60
66
  </div>
61
67
  <work-busy :is-busy="loading"></work-busy>
62
68
  <div class="container-fluid" style="overflow: scroll">
@@ -289,7 +295,9 @@ div {
289
295
  </div>
290
296
  <div class="col-md-4" style="text-align: center">
291
297
  <label style="font-weight: normal"
292
- v-if="dev.type!='picture'">{{ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无' }}</label>
298
+ v-if="dev.type!='picture'">{{
299
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
300
+ }}</label>
293
301
  <label style="font-weight: normal" v-if="dev.type=='picture'">
294
302
  <div v-show="getDevicePath(config.checkname,dev.lname)">
295
303
  <button-link style="color: black" type="button" class="btn btn-link"
@@ -358,6 +366,22 @@ div {
358
366
  <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
359
367
  </footer>
360
368
  </modal>
369
+ <modal :show.sync="showSpotCheckButton" v-ref:modal backdrop="false">
370
+ <header slot="modal-header" class="modal-header">
371
+ 安检抽检
372
+ </header>
373
+ <article slot="modal-body" class="modal-body">
374
+ <div class="from-group">
375
+ <div class="row">
376
+ <textarea v-model="spotCheckMessage"></textarea>
377
+ </div>
378
+ </div>
379
+ </article>
380
+ <footer slot="modal-footer" class="modal-footer">
381
+ <button type="button" class="btn btn-success" @click='SpotCheckSuccess'>确认</button>
382
+ <button type="button" class="btn btn-success" @click='SpotCheckCancel'>取消</button>
383
+ </footer>
384
+ </modal>
361
385
  </template>
362
386
 
363
387
  <script>
@@ -463,25 +487,30 @@ export default {
463
487
  "燃气表": {
464
488
  "checkmust": true,
465
489
  "index": 1,
466
- "items":{
490
+ "items": {
467
491
  //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
468
- "气表表号":{"index":1,"type":"string","readonly":true},
469
- "气表型号":{"index":2,"type":"string","readonly":true},
470
- "气表品牌":{"index":3,"type":"string","readonly":true},
471
- "气表类型":{"index":4,"type":"string","readonly":true},
472
- "进气方向":{"index":5,"type":"selector","options":[{"data":"左表","isdefault":false},{"data":"右表","isdefault":false}],"checkmust": true},
473
- "初始表底":{"index":6,"type":"number","isshow":false,"readonly":true},
474
- "上期表读数":{"index":7,"type":"number","readonly":true,isshow:false},
475
- "累购气量":{"index":8,"type":"number","readonly":true},
476
- "累购金额":{"index":8,"type":"number","readonly":true},
477
- "已用气量":{"index":9,"type":"number","checkmust": false},//基表数
478
- "已用金额":{"index":9,"type":"number","checkmust": false},
479
- "剩余气量":{"index":10,"type":"number","checkmust": false},//累购-已用
492
+ "气表表号": {"index": 1, "type": "string", "readonly": true},
493
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
494
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
495
+ "气表类型": {"index": 4, "type": "string", "readonly": true},
496
+ "进气方向": {
497
+ "index": 5,
498
+ "type": "selector",
499
+ "options": [{"data": "左表", "isdefault": false}, {"data": "右表", "isdefault": false}],
500
+ "checkmust": true
501
+ },
502
+ "初始表底": {"index": 6, "type": "number", "isshow": false, "readonly": true},
503
+ "上期表读数": {"index": 7, "type": "number", "readonly": true, isshow: false},
504
+ "累购气量": {"index": 8, "type": "number", "readonly": true},
505
+ "累购金额": {"index": 8, "type": "number", "readonly": true},
506
+ "已用气量": {"index": 9, "type": "number", "checkmust": false},//基表数
507
+ "已用金额": {"index": 9, "type": "number", "checkmust": false},
508
+ "剩余气量": {"index": 10, "type": "number", "checkmust": false},//累购-已用
480
509
  //显示屏数 --实际剩余气量
481
- "剩余金额":{"index":10,"type":"number","checkmust": false},
482
- "气量异常差值":{"index":11,"type":"number","readonly": true},
483
- "金额异常差值":{"index":11,"type":"number","readonly": true},
484
- "表箱号":{"index":12,"type":"string","readonly": true}
510
+ "剩余金额": {"index": 10, "type": "number", "checkmust": false},
511
+ "气量异常差值": {"index": 11, "type": "number", "readonly": true},
512
+ "金额异常差值": {"index": 11, "type": "number", "readonly": true},
513
+ "表箱号": {"index": 12, "type": "string", "readonly": true}
485
514
  }
486
515
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
487
516
  }
@@ -491,28 +520,35 @@ export default {
491
520
  "燃气表": {
492
521
  "checkmust": true,
493
522
  "index": 1,
494
- "items":{
523
+ "items": {
495
524
  //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
496
- "气表表号":{"index":1,"type":"string","readonly":true},
497
- "气表型号":{"index":2,"type":"string","readonly":true},
498
- "气表品牌":{"index":3,"type":"string","readonly":true},
499
- "气表类型":{"index":4,"type":"string","readonly":true},
500
- "进气方向":{"index":5,"type":"selector","options":[{"data":"左表","isdefault":false},{"data":"右表","isdefault":false}],"checkmust": true},
501
- "初始表底":{"index":6,"type":"number","isshow":false,"readonly":true},
502
- "上期表读数":{"index":7,"type":"number","readonly":true,isshow:false},
503
- "累购气量":{"index":8,"type":"number","readonly":true},
504
- "累购金额":{"index":8,"type":"number","readonly":true},
505
- "已用气量":{"index":9,"type":"number","checkmust": false},//基表数
506
- "已用金额":{"index":9,"type":"number","checkmust": false},
507
- "剩余气量":{"index":10,"type":"number","checkmust": false},//累购-已用
525
+ "气表表号": {"index": 1, "type": "string", "readonly": true},
526
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
527
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
528
+ "气表类型": {"index": 4, "type": "string", "readonly": true},
529
+ "进气方向": {
530
+ "index": 5,
531
+ "type": "selector",
532
+ "options": [{"data": "左表", "isdefault": false}, {"data": "右表", "isdefault": false}],
533
+ "checkmust": true
534
+ },
535
+ "初始表底": {"index": 6, "type": "number", "isshow": false, "readonly": true},
536
+ "上期表读数": {"index": 7, "type": "number", "readonly": true, isshow: false},
537
+ "累购气量": {"index": 8, "type": "number", "readonly": true},
538
+ "累购金额": {"index": 8, "type": "number", "readonly": true},
539
+ "已用气量": {"index": 9, "type": "number", "checkmust": false},//基表数
540
+ "已用金额": {"index": 9, "type": "number", "checkmust": false},
541
+ "剩余气量": {"index": 10, "type": "number", "checkmust": false},//累购-已用
508
542
  //显示屏数 --实际剩余气量
509
- "剩余金额":{"index":10,"type":"number","checkmust": false},
510
- "气量异常差值":{"index":11,"type":"number","readonly": true},
511
- "金额异常差值":{"index":11,"type":"number","readonly": true},
512
- "表箱号":{"index":12,"type":"string","readonly": true}
543
+ "剩余金额": {"index": 10, "type": "number", "checkmust": false},
544
+ "气量异常差值": {"index": 11, "type": "number", "readonly": true},
545
+ "金额异常差值": {"index": 11, "type": "number", "readonly": true},
546
+ "表箱号": {"index": 12, "type": "string", "readonly": true}
513
547
  }
514
548
  }
515
549
  },
550
+ showSpotCheckButton: false,
551
+ spotCheckMessage:''
516
552
  }
517
553
  },
518
554
  components: {
@@ -520,12 +556,12 @@ export default {
520
556
  Radio,
521
557
  },
522
558
  computed: {
523
- isRecodrDownloadBtn(){
559
+ isRecodrDownloadBtn() {
524
560
  // 投诉单下派还是处理
525
561
  let res = this.$appdata.getSingleValue('无限制录音');
526
- if (res == 'true'){
562
+ if (res == 'true') {
527
563
  return true;
528
- }else {
564
+ } else {
529
565
  return false;
530
566
  }
531
567
  },
@@ -549,6 +585,32 @@ export default {
549
585
  }
550
586
  },
551
587
  methods: {
588
+ updateSpotCheck(value) {
589
+ var reqData = {
590
+ paperId:this.item.id,
591
+ userName: Vue.user.name,
592
+ spotCheckState: '已抽检',
593
+ spotCheckResult: value,
594
+ spotCheckMessage:this.spotCheckMessage
595
+ }
596
+ new HttpResetClass().load('POST', 'rs/logic/updateSpotCheck', reqData).then(res => {
597
+ if (res.data = 200) {
598
+ this.$showMessage('安检抽检完成')
599
+ }
600
+ })
601
+ },
602
+ NoSpotCheck() {
603
+ this.showSpotCheckButton = true
604
+ },
605
+ SpotCheckSuccess() {
606
+ this.updateSpotCheck('不合格')
607
+ this.spotCheckMessage = ''
608
+ this.showSpotCheckButton = false
609
+ },
610
+ SpotCheckCancel() {
611
+ this.spotCheckMessage = ''
612
+ this.showSpotCheckButton = false
613
+ },
552
614
  devicesCollect() {
553
615
  //tag
554
616
  //tag)
@@ -602,7 +664,7 @@ export default {
602
664
  if (defects != '') {
603
665
  deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}`)
604
666
  }
605
- } else if (items.type === 'string' && items.f_is_defect && items.f_item_value[0] ) {
667
+ } else if (items.type === 'string' && items.f_is_defect && items.f_item_value[0]) {
606
668
  checkResult = '有隐患'
607
669
  this.result = '有隐患'
608
670
  deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
@@ -679,10 +741,10 @@ export default {
679
741
  if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
680
742
  this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
681
743
  }
682
- if(Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
744
+ if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
683
745
  if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 3) {
684
746
  this.hiddenDangerImgNumber = 3
685
- }else {
747
+ } else {
686
748
  this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
687
749
  }
688
750
  }
@@ -749,9 +811,9 @@ export default {
749
811
  this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
750
812
  this.otherDarginShowImgs = []
751
813
  for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
752
- let img = {path:''}
753
- if (this.devicesAll[i][j].f_items[k]['f_p' + (l+1)+'_path']) {
754
- img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l+1)+'_path'] + '?' + Math.random()
814
+ let img = {path: ''}
815
+ if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
816
+ img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
755
817
  this.otherDarginShowImgs.push(img)
756
818
  }
757
819
  }
@@ -1225,14 +1287,14 @@ export default {
1225
1287
  //tag)
1226
1288
  if (this.data.f_check_type == '民用') {
1227
1289
  this.deviceconfig = Vue.config.safecheck.DevicesConfig
1228
- if (typeof this.deviceconfig==='string'){
1229
- this.deviceconfig=JSON.parse(this.deviceconfig)
1290
+ if (typeof this.deviceconfig === 'string') {
1291
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1230
1292
  }
1231
1293
  //tag)
1232
1294
  } else if (this.data.f_check_type == '非民用') {
1233
1295
  this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1234
- if (typeof this.deviceconfig==='string'){
1235
- this.deviceconfig=JSON.parse(this.deviceconfig)
1296
+ if (typeof this.deviceconfig === 'string') {
1297
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1236
1298
  }
1237
1299
  //tag)
1238
1300
  }