safecheck-client 3.0.32-4 → 3.0.32-6

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
  }
@@ -49,15 +49,15 @@
49
49
  </div>
50
50
  <div class="row" v-show="!$parent.$parent.$parent.showItem">
51
51
  <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
52
- <label class="font_normal_body">用户类型</label>
52
+ <label class="font_normal_body">用气类型</label>
53
53
  <v-select id="f_usertype"
54
- placeholder='用户类型'
54
+ placeholder='用气类型'
55
55
  class="select select_list"
56
- :value.sync="model.f_usertype"
56
+ :value.sync="model.f_gasproperties"
57
57
  :value-single="true"
58
- :options='$parent.$parent.usertypes'
59
- v-model="model.f_usertype"
60
- condition="f_user_type = '{}'"
58
+ :options='$parent.$parent.gasproperties'
59
+ v-model="model.f_gasproperties"
60
+ condition="f_gasproperties = '{}'"
61
61
  close-on-select clear-button></v-select>
62
62
  </div>
63
63
  <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
@@ -183,21 +183,21 @@
183
183
  :value-single="true">
184
184
  </v-select>
185
185
  </div>
186
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
187
+ <!-- <label class="font_normal_body">用户性质</label>-->
188
+ <!-- <v-select class="select_list select"-->
189
+ <!-- placeholder='用户性质' style="width: 60%"-->
190
+ <!-- :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
191
+ <!-- :options='$parent.$parent.gasproperties'-->
192
+ <!-- close-on-select clear-button-->
193
+ <!-- condition="f_gasproperties = '{}'"-->
194
+ <!-- :value-single="true">-->
195
+ <!-- </v-select>-->
196
+ <!-- </div>-->
186
197
  <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
187
- <label class="font_normal_body">用户性质</label>
188
- <v-select class="select_list select"
189
- placeholder='用户性质' style="width: 60%"
190
- :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
191
- :options='$parent.$parent.gasproperties'
192
- close-on-select clear-button
193
- condition="f_gasproperties = '{}'"
194
- :value-single="true">
195
- </v-select>
196
- </div>
197
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
198
- <label class="font_normal_body">片区</label>
198
+ <label class="font_normal_body">开户网点</label>
199
199
  <v-select class="select_list select"
200
- placeholder='片区' style="width: 60%"
200
+ placeholder='开户网点' style="width: 60%"
201
201
  :value.sync="model.f_outlets" v-model="model.f_outlets"
202
202
  :options='$parent.$parent.userareas'
203
203
  close-on-select clear-button
@@ -251,16 +251,16 @@
251
251
  placeholder="地址" condition="f_address like '%{}%'">
252
252
  </div>
253
253
  <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
254
- <label class="font_normal_body">用户类型</label>
254
+ <label class="font_normal_body">用气类型</label>
255
255
  <v-select
256
- placeholder='用户类型'
256
+ placeholder='用气类型'
257
257
  class="select select_list"
258
258
 
259
- :value.sync="model.f_usertype"
259
+ :value.sync="model.f_gasproperties"
260
260
  :value-single="true"
261
- :options='$parent.$parent.usertypes'
262
- v-model="model.f_usertype"
263
- condition="f_user_type = '{}'"
261
+ :options='$parent.$parent.gasproperties'
262
+ v-model="model.f_gasproperties"
263
+ condition="f_gasproperties = '{}'"
264
264
  close-on-select clear-button></v-select>
265
265
  </div>
266
266
  <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
@@ -362,7 +362,7 @@
362
362
  <!-- <nobr>气表品牌</nobr>-->
363
363
  <!-- </th>-->
364
364
  <th>
365
- <nobr>用户类型</nobr>
365
+ <nobr>用气类型</nobr>
366
366
  </th>
367
367
  <!-- <th>-->
368
368
  <!-- <nobr>壁挂炉</nobr>-->
@@ -583,13 +583,13 @@ export default {
583
583
  f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
584
584
  },
585
585
  excelHeaders: {
586
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
586
+ //用户编号 用户名称 用户电话 安检次数 用气类型 小区名称 地址 安检日期 安检状态 安检结果
587
587
 
588
588
  'f_userinfo_code': '用户编号',
589
589
  'f_user_name': '用户名称',
590
590
  'f_user_phone': '用户电话',
591
591
  'f_meternumber': '用户表号',
592
- 'f_user_type': '用户类型',
592
+ 'f_gasproperties': '用气类型',
593
593
  'f_checker_name': '安检员',
594
594
  'f_residential_area': '小区名称',
595
595
  'f_address': '地址',
@@ -606,7 +606,7 @@ export default {
606
606
  orgstrs: [{label: '全部', value: ''}],
607
607
  checkersid: [],
608
608
  gasproperties:[],
609
- userareas:[],
609
+ userareas:[{label: '全部', value: ''}, ...this.$appdata.getParam('开户网点')],
610
610
  SafeCheckXZ: '',
611
611
  civil: '', //民用安检周期
612
612
  civilian: '', //非民用安检周期
@@ -684,7 +684,7 @@ export default {
684
684
  this.Mreadibook(`('${this.$login.f.orgid}')`)
685
685
  this.getAllMeterBook(`('${this.$login.f.orgid}')`)
686
686
  this.getAllGasproperties()
687
- this.getAllOutlets()
687
+ // this.getAllOutlets()
688
688
  },
689
689
  methods: {
690
690
  async blacklist(){
@@ -920,10 +920,10 @@ export default {
920
920
  }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
921
921
  },
922
922
  usertypes() {
923
- return this.$appdata.getParam('用户类型') ? [{
923
+ return this.$appdata.getParam('用气类型') ? [{
924
924
  label: '全部',
925
925
  value: ''
926
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
926
+ }, ...this.$appdata.getParam('用气类型')] : [{label: '全部', value: ''}]
927
927
  },
928
928
  userstates() {
929
929
  return this.$appdata.getParam('用户状态') ? [{
@@ -1082,25 +1082,25 @@ export default {
1082
1082
  })
1083
1083
  })
1084
1084
  },
1085
- getAllOutlets(){
1086
- this.userareas=[{
1087
- label:'全部',
1088
- value:''
1089
- }]
1090
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_GroupBy`, {data: {
1091
- items: 'f_outlets',
1092
- tablename: 't_user_address',
1093
- condition: `1=1`,
1094
- groupitem: 'f_outlets'
1095
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1096
- res.data.forEach(ress=>{
1097
- this.userareas.push({
1098
- label:ress.f_outlets,
1099
- value:ress.f_outlets
1100
- })
1101
- })
1102
- })
1103
- },
1085
+ // getAllOutlets(){
1086
+ // this.userareas=[{
1087
+ // label:'全部',
1088
+ // value:''
1089
+ // }]
1090
+ // new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_GroupBy`, {data: {
1091
+ // items: 'f_outlets',
1092
+ // tablename: 't_user_address',
1093
+ // condition: `1=1`,
1094
+ // groupitem: 'f_outlets'
1095
+ // }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1096
+ // res.data.forEach(ress=>{
1097
+ // this.userareas.push({
1098
+ // label:ress.f_outlets,
1099
+ // value:ress.f_outlets
1100
+ // })
1101
+ // })
1102
+ // })
1103
+ // },
1104
1104
  getAllMeterBook(val){
1105
1105
  ////tag
1106
1106
  ////tag
@@ -120,9 +120,9 @@ import {HttpResetClass} from 'vue-client'
120
120
  this.allUsers.forEach(user => {
121
121
  // if (resids.indexOf(user.orgid) != -1) {
122
122
  // if (typeof user.name == "string"){
123
- if(user.state == '在职'){
123
+
124
124
  this.users.push({label: user.name, value: user.name})
125
- }
125
+
126
126
 
127
127
  // }
128
128
  // }