safecheck-client 4.0.0-3 → 4.0.0-30

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 (26) hide show
  1. package/package.json +132 -132
  2. package/src/App.vue +31 -31
  3. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  4. package/src/components/Util/ImgSelfSafePlus.vue +13 -3
  5. package/src/components/Util/SafecheckUpload.vue +281 -281
  6. package/src/components/android/Insurance/PhoneInsurancePurchase.vue +175 -165
  7. package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +104 -112
  8. package/src/components/android/Insurance/PhoneInsuranceRecordList.vue +1 -1
  9. package/src/components/android/PhoneUpUserinfo.vue +20 -0
  10. package/src/components/android/SafecheckDevices.vue +1337 -1295
  11. package/src/components/paper/PaperList.vue +34 -6
  12. package/src/components/pc/CheckBookList.vue +3 -1
  13. package/src/components/pc/DefectDeal.vue +1007 -1007
  14. package/src/components/pc/NewCheckpaper.vue +1965 -1959
  15. package/src/components/pc/NewCheckpaperTemp.vue +5 -5
  16. package/src/components/planmanage/PlanManage.vue +6 -8
  17. package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
  18. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +433 -0
  19. package/src/filiale/jinhong/android.js +9 -0
  20. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2286 -0
  21. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -0
  22. package/src/filiale/meihekou/android.js +14 -0
  23. package/src/filiale/meihekou/pc.js +12 -0
  24. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +2 -2
  25. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2 -0
  26. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +16 -5
@@ -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,
@@ -516,7 +522,26 @@ export default {
516
522
  cbc:[]
517
523
  }
518
524
  },
525
+ created() {
526
+ // 使用 $on 监听事件
527
+ this.$root.$on('audit-status-changed', () => {
528
+ console.log('收到审核状态变更事件')
529
+ this.refresh()
530
+ })
531
+ },
532
+ beforeDestroy() {
533
+ // 记得在组件销毁前移除事件监听
534
+ this.$root.$off('audit-status-changed')
535
+ },
519
536
  methods: {
537
+ showback1(){
538
+ this.showinfo1 = true
539
+ this.showinfo2 = false
540
+ },
541
+ showback2(){
542
+ this.showinfo1 = true
543
+ this.showinfo3 = false
544
+ },
520
545
  //气表品牌查询
521
546
  getTableBrands() {
522
547
  new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
@@ -635,13 +660,16 @@ export default {
635
660
  },
636
661
 
637
662
  change(row) {
663
+ row.f_upload_state = '已传'
664
+ this.shouinfodata = JSON.parse(JSON.stringify(row))
665
+ this.showinfo1 = false
638
666
  if (row.f_safe_type == '已挂表未办卡安检'){
639
- row.f_upload_state = '已传'
640
- 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
641
669
  return
642
670
  }
643
- row.f_upload_state = '已传'
644
- 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
645
673
  },
646
674
  showChooser() {
647
675
  this.showModal = true
@@ -761,7 +789,7 @@ export default {
761
789
  if (val) {
762
790
  this.searchData.f_approved = val
763
791
  }
764
- },
792
+ }
765
793
  }
766
794
 
767
795
  }
@@ -318,7 +318,9 @@ export default {
318
318
  // //tag
319
319
  this.$parent.showItem = false
320
320
  this.$parent.showItemUser = false
321
- args.condition += ` and f_orgid in ${this.model.f_filialeids}`
321
+ if(this.model.f_filialeids){
322
+ args.condition += ` and f_orgid in ${this.model.f_filialeids}`
323
+ }
322
324
  args.condition += ` and tcb.f_user_type ='${this.showtype}' `
323
325
  return this.model.search(args.condition, args.model)
324
326
  },