safecheck-client 4.0.0-13 → 4.0.0-15

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.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="flex-row">
2
+ <div class="flex-row" v-show="showinfo1">
3
3
  <div class="basic-main">
4
4
  <criteria-paged :model="model" v-ref:paged @sort="sort">
5
5
  <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
@@ -405,6 +405,8 @@
405
405
  <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
406
406
  </div>
407
407
  </div>
408
+ <new-check-paper v-if="showinfo2" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback1"></new-check-paper>
409
+ <new-check-paper-temp v-if="showinfo3" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback2"></new-check-paper-temp>
408
410
  </template>
409
411
 
410
412
  <script>
@@ -461,6 +463,10 @@ export default {
461
463
  // }
462
464
  // model.f_subcompany = this.$login.f.f_fengongsi
463
465
  return {
466
+ showinfo1:true,
467
+ showinfo2:false,
468
+ showinfo3:false,
469
+ shouinfodata:{},
464
470
  tableBrands: [{label: '全部', value: ''}],
465
471
  audioshow: false,
466
472
  safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
@@ -528,6 +534,14 @@ export default {
528
534
  this.$root.$off('audit-status-changed')
529
535
  },
530
536
  methods: {
537
+ showback1(){
538
+ this.showinfo1 = true
539
+ this.showinfo2 = false
540
+ },
541
+ showback2(){
542
+ this.showinfo1 = true
543
+ this.showinfo3 = false
544
+ },
531
545
  //气表品牌查询
532
546
  getTableBrands() {
533
547
  new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
@@ -646,13 +660,16 @@ export default {
646
660
  },
647
661
 
648
662
  change(row) {
663
+ row.f_upload_state = '已传'
664
+ this.shouinfodata = JSON.parse(JSON.stringify(row))
665
+ this.showinfo1 = false
649
666
  if (row.f_safe_type == '已挂表未办卡安检'){
650
- row.f_upload_state = '已传'
651
- this.$goto('new-check-paper-temp', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
667
+ this.showinfo2 = false
668
+ this.showinfo3 = true
652
669
  return
653
670
  }
654
- row.f_upload_state = '已传'
655
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
671
+ this.showinfo2 = true
672
+ this.showinfo3 = false
656
673
  },
657
674
  showChooser() {
658
675
  this.showModal = true