safecheck-client 3.0.33-gongyi → 3.0.35-gongyi-1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +119 -119
- package/src/components/Util/RightTreeSafe.vue +6 -1
- package/src/components/android/AreaPlan.vue +3 -3
- package/src/components/android/CurrentCreate.vue +8 -6
- package/src/components/android/SafecheckOrderV.vue +2408 -2408
- package/src/components/android/userinfo/SafecheckUserInfo.vue +611 -611
- package/src/components/defect/DefectListWeixiu.vue +479 -479
- package/src/components/defect/DefectPaper.vue +277 -165
- package/src/components/defect/DefectPaperWeiXiu.vue +157 -10
- package/src/components/paper/PaperList.vue +797 -733
- package/src/components/pc/CheckBookList.vue +590 -539
- package/src/components/pc/CheckBookManage.vue +71 -10
- package/src/components/pc/NewCheckpaper.vue +1333 -1306
- package/src/components/planmanage/PlanManage.vue +34 -5
- package/src/components/planmanage/checkUserList.vue +691 -691
- package/src/components/querycheckpaper/CheckSearchUser.vue +1037 -1035
- package/src/components/report/CheckPlanAreaList.vue +81 -9
- package/src/components/report/CheckPlanUserList.vue +3 -2
- package/src/components/report/HiddenSituation.vue +100 -2
- package/src/safecheck.js +1 -1
@@ -266,6 +266,9 @@
|
|
266
266
|
<th>
|
267
267
|
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.bookAll"></input>全选</nobr>
|
268
268
|
</th>
|
269
|
+
<th>
|
270
|
+
<nobr><input type="checkbox" v-model="$parent.$parent.$parent.isallchecked"/>全选本页</nobr>
|
271
|
+
</th>
|
269
272
|
<th>
|
270
273
|
<nobr>客户姓名</nobr>
|
271
274
|
</th>
|
@@ -292,6 +295,12 @@
|
|
292
295
|
@change="$parent.$parent.$parent.checkChange(row, $event)"></input>
|
293
296
|
</nobr>
|
294
297
|
</td>
|
298
|
+
<td style="text-align: center">
|
299
|
+
<nobr>
|
300
|
+
<input type="checkbox" :checked="$parent.$parent.$parent.pageCheckModel(row)"
|
301
|
+
@change="$parent.$parent.$parent.pageCheckChange(row, $event)"></input>
|
302
|
+
</nobr>
|
303
|
+
</td>
|
295
304
|
<td style="text-align: center">{{ row.f_user_name }}</td>
|
296
305
|
<td style="text-align: center">{{ row.f_userinfo_code }}</td>
|
297
306
|
<td style="text-align: center">{{ row.f_user_type }}</td>
|
@@ -433,6 +442,7 @@ export default {
|
|
433
442
|
checkBooks: [],
|
434
443
|
f_orgid: '',
|
435
444
|
bookAll: false,
|
445
|
+
isallchecked:false,//本页全选
|
436
446
|
bookList: [],
|
437
447
|
selectBook:'',
|
438
448
|
// init:false,
|
@@ -453,6 +463,7 @@ export default {
|
|
453
463
|
f_create_person: this.$login.f.name,
|
454
464
|
f_orgid: this.$login.f.orgid,
|
455
465
|
f_depid:'',
|
466
|
+
f_dep:'',
|
456
467
|
f_checker_name: '',
|
457
468
|
f_checker_id:''
|
458
469
|
},
|
@@ -544,11 +555,16 @@ export default {
|
|
544
555
|
})
|
545
556
|
},
|
546
557
|
reres(val){
|
547
|
-
if (!val.resids){
|
558
|
+
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined' || val.resids.length>1){
|
548
559
|
return
|
549
560
|
}
|
550
|
-
console.log('
|
551
|
-
|
561
|
+
console.log('val2',val)
|
562
|
+
const resids = val.orgobj.filter(res=>res.resourcetype==='department')
|
563
|
+
console.log('val2',resids)
|
564
|
+
if (resids.length>0){
|
565
|
+
this.checkBook.f_depid = resids[0].id
|
566
|
+
this.checkBook.f_dep = resids[0].name
|
567
|
+
}
|
552
568
|
},
|
553
569
|
clearBook(){
|
554
570
|
this.checkBook ={
|
@@ -560,6 +576,7 @@ export default {
|
|
560
576
|
f_create_person: this.$login.f.name,
|
561
577
|
f_orgid: this.$login.f.orgid,
|
562
578
|
f_depid:'',
|
579
|
+
f_dep:'',
|
563
580
|
f_checker_name: '',
|
564
581
|
f_checker_id:''
|
565
582
|
}
|
@@ -569,7 +586,7 @@ export default {
|
|
569
586
|
this.$showMessage('请选择安检册')
|
570
587
|
return
|
571
588
|
}
|
572
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
589
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
573
590
|
let userCondition = ''
|
574
591
|
if (this.bookList.length < 1) {
|
575
592
|
console.log('bookCondition', this.bookCondition)
|
@@ -597,6 +614,7 @@ export default {
|
|
597
614
|
this.selectBook = ''
|
598
615
|
this.clearBook()
|
599
616
|
this.bookAll = false
|
617
|
+
this.isallchecked = false
|
600
618
|
this.bookList = []
|
601
619
|
this.showModal2 = false
|
602
620
|
this.$refs.paged.$refs.criteria.search()
|
@@ -607,7 +625,7 @@ export default {
|
|
607
625
|
this.$showMessage('请选择安检册')
|
608
626
|
return
|
609
627
|
}
|
610
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
628
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
611
629
|
let userCondition = ''
|
612
630
|
if (this.bookList.length < 1) {
|
613
631
|
console.log('bookCondition', this.bookCondition)
|
@@ -635,6 +653,7 @@ export default {
|
|
635
653
|
this.selectBook = ''
|
636
654
|
this.clearBook()
|
637
655
|
this.bookAll = false
|
656
|
+
this.isallchecked = false
|
638
657
|
this.bookList = []
|
639
658
|
this.showModal3 = false
|
640
659
|
this.$refs.paged.$refs.criteria.search()
|
@@ -644,6 +663,7 @@ export default {
|
|
644
663
|
this.selectBook = ''
|
645
664
|
this.clearBook()
|
646
665
|
this.bookAll = false
|
666
|
+
this.isallchecked = false
|
647
667
|
this.bookList = []
|
648
668
|
this.showModal2 = false
|
649
669
|
this.$refs.paged.$refs.criteria.search()
|
@@ -652,6 +672,7 @@ export default {
|
|
652
672
|
this.selectBook = ''
|
653
673
|
this.clearBook()
|
654
674
|
this.bookAll = false
|
675
|
+
this.isallchecked = false
|
655
676
|
this.bookList = []
|
656
677
|
this.showModal3 = false
|
657
678
|
this.$refs.paged.$refs.criteria.search()
|
@@ -661,7 +682,7 @@ export default {
|
|
661
682
|
this.$showMessage('请选择查询未划分安检册的用户')
|
662
683
|
return
|
663
684
|
}
|
664
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
685
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
665
686
|
this.showModal2 = true
|
666
687
|
this.freshCheckBook()
|
667
688
|
return
|
@@ -673,7 +694,7 @@ export default {
|
|
673
694
|
this.$showMessage('请选择查询已划分安检册的用户')
|
674
695
|
return
|
675
696
|
}
|
676
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
697
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
677
698
|
this.showModal3 = true
|
678
699
|
this.freshCheckBook()
|
679
700
|
return
|
@@ -685,7 +706,7 @@ export default {
|
|
685
706
|
this.$showMessage('请选择查询已划分安检册的用户')
|
686
707
|
return
|
687
708
|
}
|
688
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
709
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
689
710
|
let userCondition= ''
|
690
711
|
if (this.bookList.length < 1) {
|
691
712
|
console.log('bookCondition', this.bookCondition)
|
@@ -712,6 +733,7 @@ export default {
|
|
712
733
|
this.$showMessage('从安检册删除所选用户成功')
|
713
734
|
this.selectBook = ''
|
714
735
|
this.bookAll = false
|
736
|
+
this.isallchecked = false
|
715
737
|
this.clearBook()
|
716
738
|
this.bookList = []
|
717
739
|
this.showModal3 = false
|
@@ -725,7 +747,7 @@ export default {
|
|
725
747
|
this.$showMessage('请选择查询未划分安检册的用户')
|
726
748
|
return
|
727
749
|
}
|
728
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
750
|
+
if (this.isSearch && (this.isallchecked || this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
729
751
|
this.showModal = true
|
730
752
|
return
|
731
753
|
}
|
@@ -777,6 +799,7 @@ export default {
|
|
777
799
|
this.clearBook()
|
778
800
|
this.bookList = []
|
779
801
|
this.bookAll = false
|
802
|
+
this.isallchecked = false
|
780
803
|
this.freshCheckBook()
|
781
804
|
this.$refs.paged.$refs.criteria.search()
|
782
805
|
}
|
@@ -786,6 +809,7 @@ export default {
|
|
786
809
|
console.log('66666666666', val)
|
787
810
|
console.log(this.model.rows)
|
788
811
|
this.bookAll = false
|
812
|
+
this.isallchecked = false
|
789
813
|
this.bookList = []
|
790
814
|
if (this.$refs.paged.$refs.criteria.model.f_orgid){
|
791
815
|
this.$refs.paged.$refs.criteria.search()
|
@@ -793,6 +817,7 @@ export default {
|
|
793
817
|
},
|
794
818
|
cancel () {
|
795
819
|
this.bookAll = false
|
820
|
+
this.isallchecked = false
|
796
821
|
this.bookList = []
|
797
822
|
this.clearBook()
|
798
823
|
this.showModal = false
|
@@ -811,6 +836,20 @@ export default {
|
|
811
836
|
}
|
812
837
|
}
|
813
838
|
},
|
839
|
+
pageCheckModel (row) {
|
840
|
+
//全选
|
841
|
+
if (this.isallchecked) {
|
842
|
+
console.log('row', this.isallchecked, JSON.stringify(row))
|
843
|
+
return true
|
844
|
+
} else {
|
845
|
+
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
846
|
+
console.log('row1111', JSON.stringify(row))
|
847
|
+
return true
|
848
|
+
} else {
|
849
|
+
return false
|
850
|
+
}
|
851
|
+
}
|
852
|
+
},
|
814
853
|
checkChange (row, e) {
|
815
854
|
console.log('e', e.target.checked)
|
816
855
|
if (e.target.checked) {
|
@@ -820,6 +859,14 @@ export default {
|
|
820
859
|
}
|
821
860
|
// console.log('aaaaa', JSON.stringify(this.bookList))
|
822
861
|
},
|
862
|
+
pageCheckChange (row, e) {
|
863
|
+
console.log('e', e.target.checked)
|
864
|
+
if (e.target.checked) {
|
865
|
+
this.bookList.push(row.f_userinfo_id)
|
866
|
+
} else {
|
867
|
+
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
868
|
+
}
|
869
|
+
},
|
823
870
|
getRes (obj) {
|
824
871
|
this.checkBook.f_orgid = obj.resids[0]
|
825
872
|
},
|
@@ -832,6 +879,7 @@ export default {
|
|
832
879
|
selfSearch (args) {
|
833
880
|
this.isSearch = true
|
834
881
|
this.bookAll = false
|
882
|
+
this.isallchecked = false
|
835
883
|
this.bookList = []
|
836
884
|
// if (this.$refs.paged.$refs.criteria.model.f_orgid){
|
837
885
|
// args.condition += `f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`
|
@@ -874,7 +922,20 @@ export default {
|
|
874
922
|
})
|
875
923
|
}
|
876
924
|
},
|
877
|
-
|
925
|
+
watch: {
|
926
|
+
"isallchecked"(val){
|
927
|
+
if (val) {
|
928
|
+
// 全选
|
929
|
+
this.$refs.grid.model.rows.forEach((row=>{
|
930
|
+
this.bookList.push(row.f_userinfo_id)
|
931
|
+
}))
|
932
|
+
} else {
|
933
|
+
// 取消全选
|
934
|
+
this.isallchecked = false
|
935
|
+
this.bookList = []
|
936
|
+
}
|
937
|
+
}
|
938
|
+
},
|
878
939
|
ready () {
|
879
940
|
// 获取片区
|
880
941
|
this.getSliceArea()
|