safecheck-client 3.0.35-gongyi-4 → 3.0.35-gongyi-5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "safecheck-client",
|
3
3
|
"//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
|
4
|
-
"version": "3.0.35-gongyi-
|
4
|
+
"version": "3.0.35-gongyi-5",
|
5
5
|
"description": "安检模块 前端组件",
|
6
6
|
"author": "丁新 <417755458@qq.com>",
|
7
7
|
"license": "ISC",
|
@@ -15,12 +15,11 @@
|
|
15
15
|
condition=" f_checker_name = '{}'">
|
16
16
|
</role-selector-safe>
|
17
17
|
</div>
|
18
|
-
<div :class="$parent.$parent.style"
|
18
|
+
<div :class="$parent.$parent.style" >
|
19
19
|
<label class="font_normal_body">安检科室</label>
|
20
20
|
<right-tree-safe islist :userid="$parent.$parent.userid" :source="$parent.$parent.source" v-on:re-res="$parent.$parent.reres2" :textContent="'选择科室'" :selectData="''" v-ref:f_reciever>
|
21
21
|
</right-tree-safe>
|
22
|
-
|
23
|
-
|
22
|
+
</div>
|
24
23
|
<div :class="$parent.$parent.style" >
|
25
24
|
<label class="font_normal_body">开始时间</label>
|
26
25
|
<datepicker
|
@@ -59,8 +58,13 @@
|
|
59
58
|
condition="f_run_date <= '{}'">
|
60
59
|
</datepicker>
|
61
60
|
</div>
|
62
|
-
|
63
|
-
|
61
|
+
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
62
|
+
<div :class="$parent.$parent.style">
|
63
|
+
<label class="font_normal_body">安检册名</label>
|
64
|
+
<input style="width: 60%" type="text" class="input_search" v-model="model.f_check_book_name"
|
65
|
+
placeholder="安检册名" condition="f_check_book_name like '%{}%'">
|
66
|
+
</div>
|
67
|
+
</div>
|
64
68
|
<div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
|
65
69
|
<export-excel-safe :data="$parent.$parent.exportParameter"
|
66
70
|
:field="$parent.$parent.excelHeaders"
|
@@ -78,13 +82,7 @@
|
|
78
82
|
|
79
83
|
|
80
84
|
</div>
|
81
|
-
|
82
|
-
<div :class="$parent.$parent.style">
|
83
|
-
<label class="font_normal_body">安检册名</label>
|
84
|
-
<input style="width: 60%" type="text" class="input_search" v-model="model.f_check_book_name"
|
85
|
-
placeholder="安检册名" condition="f_check_book_name like '%{}%'">
|
86
|
-
</div>
|
87
|
-
</div>
|
85
|
+
|
88
86
|
|
89
87
|
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
90
88
|
<div :class="$parent.$parent.style2" style="margin: 0px">
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<export-excel-safe :data="$parent.$parent.searchData"
|
32
32
|
:field="$parent.$parent.excelHeaders"
|
33
33
|
progress="safeGetExportProgress"
|
34
|
-
sqlurl="rs/logic/SafeExportExcel" sql-name="
|
35
|
-
template-name='
|
34
|
+
sqlurl="rs/logic/SafeExportExcel" sql-name="getUserByCheckBook"
|
35
|
+
template-name='用户安检明细'></export-excel-safe>
|
36
36
|
|
37
37
|
|
38
38
|
<button class="button_spacing button_search" @click="search()">查询</button>
|
@@ -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.bookCheckedAll"></input>本页全选</nobr>
|
271
|
+
</th>
|
269
272
|
<th>
|
270
273
|
<nobr>客户姓名</nobr>
|
271
274
|
</th>
|
@@ -292,6 +295,11 @@
|
|
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)"></input>
|
301
|
+
</nobr>
|
302
|
+
</td>
|
295
303
|
<td style="text-align: center">{{ row.f_user_name }}</td>
|
296
304
|
<td style="text-align: center">{{ row.f_userinfo_code }}</td>
|
297
305
|
<td style="text-align: center">{{ row.f_user_type }}</td>
|
@@ -317,7 +325,7 @@
|
|
317
325
|
<!-- </div>-->
|
318
326
|
<div class="col-sm-6 form-group" style="margin-top: 20px" v-if="permission === 'c1' && showModal ">
|
319
327
|
<label class="font_normal_body">安检科室</label>
|
320
|
-
<right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择科室" :selectData="" v-ref:f_reciever>
|
328
|
+
<right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择科室" :selectData="''" v-ref:f_reciever>
|
321
329
|
</right-tree>
|
322
330
|
</div>
|
323
331
|
<div class="col-sm-6 form-group" style="margin-top: 20px" v-if="permission === 'c2' ">
|
@@ -429,10 +437,18 @@ export default {
|
|
429
437
|
return {
|
430
438
|
model: model,
|
431
439
|
criteriaShow: false,
|
432
|
-
excelHeaders: {
|
440
|
+
excelHeaders: {
|
441
|
+
"f_user_name":'客户姓名',
|
442
|
+
"f_userinfo_code":'客户编号',
|
443
|
+
"f_user_type":'客户类型',
|
444
|
+
"f_user_phone":'客户电话',
|
445
|
+
"f_address":'客户地址',
|
446
|
+
"f_check_book_name":'所属安检册'
|
447
|
+
},
|
433
448
|
checkBooks: [],
|
434
449
|
f_orgid: '',
|
435
450
|
bookAll: false,
|
451
|
+
bookCheckedAll:false,
|
436
452
|
bookList: [],
|
437
453
|
selectBook:'',
|
438
454
|
// init:false,
|
@@ -576,7 +592,7 @@ export default {
|
|
576
592
|
this.$showMessage('请选择安检册')
|
577
593
|
return
|
578
594
|
}
|
579
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
595
|
+
if (this.isSearch && (this.bookAll || this.bookCheckedAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
580
596
|
let userCondition = ''
|
581
597
|
if (this.bookList.length < 1) {
|
582
598
|
console.log('bookCondition', this.bookCondition)
|
@@ -604,6 +620,7 @@ export default {
|
|
604
620
|
this.selectBook = ''
|
605
621
|
this.clearBook()
|
606
622
|
this.bookAll = false
|
623
|
+
this.bookCheckedAll = false
|
607
624
|
this.bookList = []
|
608
625
|
this.showModal2 = false
|
609
626
|
this.$refs.paged.$refs.criteria.search()
|
@@ -614,7 +631,7 @@ export default {
|
|
614
631
|
this.$showMessage('请选择安检册')
|
615
632
|
return
|
616
633
|
}
|
617
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
634
|
+
if (this.isSearch && (this.bookAll || this.bookCheckedAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
618
635
|
let userCondition = ''
|
619
636
|
if (this.bookList.length < 1) {
|
620
637
|
console.log('bookCondition', this.bookCondition)
|
@@ -642,6 +659,7 @@ export default {
|
|
642
659
|
this.selectBook = ''
|
643
660
|
this.clearBook()
|
644
661
|
this.bookAll = false
|
662
|
+
this.bookCheckedAll = false
|
645
663
|
this.bookList = []
|
646
664
|
this.showModal3 = false
|
647
665
|
this.$refs.paged.$refs.criteria.search()
|
@@ -651,6 +669,7 @@ export default {
|
|
651
669
|
this.selectBook = ''
|
652
670
|
this.clearBook()
|
653
671
|
this.bookAll = false
|
672
|
+
this.bookCheckedAll = false
|
654
673
|
this.bookList = []
|
655
674
|
this.showModal2 = false
|
656
675
|
this.$refs.paged.$refs.criteria.search()
|
@@ -659,6 +678,7 @@ export default {
|
|
659
678
|
this.selectBook = ''
|
660
679
|
this.clearBook()
|
661
680
|
this.bookAll = false
|
681
|
+
this.bookCheckedAll = false
|
662
682
|
this.bookList = []
|
663
683
|
this.showModal3 = false
|
664
684
|
this.$refs.paged.$refs.criteria.search()
|
@@ -668,7 +688,7 @@ export default {
|
|
668
688
|
this.$showMessage('请选择查询未划分安检册的用户')
|
669
689
|
return
|
670
690
|
}
|
671
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
691
|
+
if (this.isSearch && (this.bookAll ||this.bookCheckedAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
672
692
|
this.showModal2 = true
|
673
693
|
this.freshCheckBook()
|
674
694
|
return
|
@@ -680,7 +700,7 @@ export default {
|
|
680
700
|
this.$showMessage('请选择查询已划分安检册的用户')
|
681
701
|
return
|
682
702
|
}
|
683
|
-
if (this.isSearch && ( this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
703
|
+
if (this.isSearch && ( this.bookAll ||this.bookCheckedAll|| this.bookList.length > 0) && this.model.rows.length > 0) {
|
684
704
|
this.showModal3 = true
|
685
705
|
this.freshCheckBook()
|
686
706
|
return
|
@@ -692,7 +712,7 @@ export default {
|
|
692
712
|
this.$showMessage('请选择查询已划分安检册的用户')
|
693
713
|
return
|
694
714
|
}
|
695
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
715
|
+
if (this.isSearch && (this.bookAll ||this.bookCheckedAll|| this.bookList.length > 0) && this.model.rows.length > 0) {
|
696
716
|
let userCondition= ''
|
697
717
|
if (this.bookList.length < 1) {
|
698
718
|
console.log('bookCondition', this.bookCondition)
|
@@ -719,6 +739,7 @@ export default {
|
|
719
739
|
this.$showMessage('从安检册删除所选用户成功')
|
720
740
|
this.selectBook = ''
|
721
741
|
this.bookAll = false
|
742
|
+
this.bookCheckedAll = false
|
722
743
|
this.clearBook()
|
723
744
|
this.bookList = []
|
724
745
|
this.showModal3 = false
|
@@ -732,7 +753,7 @@ export default {
|
|
732
753
|
this.$showMessage('请选择查询未划分安检册的用户')
|
733
754
|
return
|
734
755
|
}
|
735
|
-
if (this.isSearch && (this.bookAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
756
|
+
if (this.isSearch && (this.bookAll ||this.bookCheckedAll || this.bookList.length > 0) && this.model.rows.length > 0) {
|
736
757
|
this.showModal = true
|
737
758
|
return
|
738
759
|
}
|
@@ -784,6 +805,7 @@ export default {
|
|
784
805
|
this.clearBook()
|
785
806
|
this.bookList = []
|
786
807
|
this.bookAll = false
|
808
|
+
this.bookCheckedAll = false
|
787
809
|
this.freshCheckBook()
|
788
810
|
this.$refs.paged.$refs.criteria.search()
|
789
811
|
}
|
@@ -793,6 +815,7 @@ export default {
|
|
793
815
|
console.log('66666666666', val)
|
794
816
|
console.log(this.model.rows)
|
795
817
|
this.bookAll = false
|
818
|
+
this.bookCheckedAll = false
|
796
819
|
this.bookList = []
|
797
820
|
if (this.$refs.paged.$refs.criteria.model.f_orgid){
|
798
821
|
this.$refs.paged.$refs.criteria.search()
|
@@ -800,6 +823,7 @@ export default {
|
|
800
823
|
},
|
801
824
|
cancel () {
|
802
825
|
this.bookAll = false
|
826
|
+
this.bookCheckedAll = false
|
803
827
|
this.bookList = []
|
804
828
|
this.clearBook()
|
805
829
|
this.showModal = false
|
@@ -807,11 +831,25 @@ export default {
|
|
807
831
|
},
|
808
832
|
checkModel (row) {
|
809
833
|
if (this.bookAll) {
|
810
|
-
console.log('row', this.bookAll, JSON.stringify(row))
|
834
|
+
//console.log('row', this.bookAll, JSON.stringify(row))
|
811
835
|
return true
|
812
836
|
} else {
|
813
837
|
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
814
|
-
console.log('row1111', JSON.stringify(row))
|
838
|
+
//console.log('row1111', JSON.stringify(row))
|
839
|
+
return true
|
840
|
+
} else {
|
841
|
+
return false
|
842
|
+
}
|
843
|
+
}
|
844
|
+
},
|
845
|
+
pageCheckModel(row){
|
846
|
+
if (this.bookCheckedAll){
|
847
|
+
console.log('benye', this.bookAll, JSON.stringify(row))
|
848
|
+
//全选被选中,每行row也被选中
|
849
|
+
return true
|
850
|
+
}else {
|
851
|
+
if (this.bookList.findIndex(res => res === row.f_userinfo_id) !== -1) {
|
852
|
+
//console.log('本页', JSON.stringify(row))
|
815
853
|
return true
|
816
854
|
} else {
|
817
855
|
return false
|
@@ -825,7 +863,7 @@ export default {
|
|
825
863
|
} else {
|
826
864
|
this.bookList.splice(this.bookList.findIndex(res => res === row.f_userinfo_id), 1)
|
827
865
|
}
|
828
|
-
|
866
|
+
console.log('aaaaa', JSON.stringify(this.bookList))
|
829
867
|
},
|
830
868
|
getRes (obj) {
|
831
869
|
this.checkBook.f_orgid = obj.resids[0]
|
@@ -839,6 +877,7 @@ export default {
|
|
839
877
|
selfSearch (args) {
|
840
878
|
this.isSearch = true
|
841
879
|
this.bookAll = false
|
880
|
+
this.bookCheckedAll = false
|
842
881
|
this.bookList = []
|
843
882
|
// if (this.$refs.paged.$refs.criteria.model.f_orgid){
|
844
883
|
// args.condition += `f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid}`
|
@@ -898,7 +937,20 @@ export default {
|
|
898
937
|
// this.init=true
|
899
938
|
this.freshCheckBook()
|
900
939
|
this.getChecker()
|
901
|
-
}
|
940
|
+
},
|
941
|
+
watch: {
|
942
|
+
'bookCheckedAll' (val) {
|
943
|
+
if (val){
|
944
|
+
this.$refs.paged.$refs.grid.model.rows.forEach(row=>{
|
945
|
+
this.bookList.push(row.f_userinfo_id)
|
946
|
+
})
|
947
|
+
console.log('this.bookList', JSON.stringify(this.bookList))
|
948
|
+
}else {
|
949
|
+
this.bookList = []
|
950
|
+
console.log('this.bookList', JSON.stringify(this.bookList))
|
951
|
+
}
|
952
|
+
}
|
953
|
+
},
|
902
954
|
}
|
903
955
|
</script>
|
904
956
|
<style scoped>
|