safecheck-client 3.0.35-gongyi-6 → 3.0.35-gongyi-7
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/paper/PaperList.vue +41 -35
- package/src/components/pc/CheckBookList.vue +586 -586
- package/src/components/pc/CheckBookManage.vue +38 -1
- package/src/components/pc/RoleSelector.vue +125 -122
- package/src/components/planmanage/checkUserList.vue +37 -0
- package/src/components/report/CheckPlanUserList.vue +1 -1
@@ -238,6 +238,17 @@
|
|
238
238
|
close-on-select
|
239
239
|
condition="{}"></v-select>
|
240
240
|
|
241
|
+
</div>
|
242
|
+
<div class="col-sm-2 form-group" style="margin-top: 0px">
|
243
|
+
|
244
|
+
<label class="font_normal_body">抄 表 员</label>
|
245
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
246
|
+
:value-single="true" style="width: 60%"
|
247
|
+
class="select_list select"
|
248
|
+
:options='$parent.$parent.meterReader' placeholder='抄 表 员'
|
249
|
+
close-on-select
|
250
|
+
condition="f_inputtor ='{}'"></v-select>
|
251
|
+
|
241
252
|
</div>
|
242
253
|
<div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right" v-if="$parent.$parent.permission === 'c1'">
|
243
254
|
|
@@ -446,6 +457,7 @@ export default {
|
|
446
457
|
"f_check_book_name":'所属安检册'
|
447
458
|
},
|
448
459
|
checkBooks: [],
|
460
|
+
meterReader:[],
|
449
461
|
f_orgid: '',
|
450
462
|
bookAll: false,
|
451
463
|
bookCheckedAll:false,
|
@@ -489,7 +501,7 @@ export default {
|
|
489
501
|
|
490
502
|
}
|
491
503
|
},
|
492
|
-
props:['
|
504
|
+
props:['f_check_book_name'],
|
493
505
|
computed: {
|
494
506
|
getgasbrand(){
|
495
507
|
let ops=[{label:'全部',value:''}]
|
@@ -522,6 +534,30 @@ export default {
|
|
522
534
|
}
|
523
535
|
},
|
524
536
|
methods: {
|
537
|
+
async getmeterreader(){
|
538
|
+
this.meterReader=[]
|
539
|
+
let http=new HttpResetClass()
|
540
|
+
let getMeterReader = await http.load('pOST',`rs/sql/safe_singleTable_OrderBy`,{
|
541
|
+
data:{
|
542
|
+
items:'f_inputtor',
|
543
|
+
tablename: 't_userfiles',
|
544
|
+
condition:`f_orgid = '${this.$login.f.orgid}' and f_inputtor is not null ` + ` group by f_inputtor`,
|
545
|
+
orderitem: 'f_inputtor'
|
546
|
+
}
|
547
|
+
},{resolveMsg:null,rejectMsg:"获取抄表员失败"}).then(res =>{
|
548
|
+
this.meterReader = res.data.map(item=>{
|
549
|
+
console.log('打印item',item)
|
550
|
+
return{
|
551
|
+
label : item.f_inputtor,
|
552
|
+
value : item.f_inputtor
|
553
|
+
}
|
554
|
+
|
555
|
+
})
|
556
|
+
this.meterReader.unshift({label:'全部',value:''})
|
557
|
+
}
|
558
|
+
|
559
|
+
)
|
560
|
+
},
|
525
561
|
//片区获取
|
526
562
|
async getSliceArea() {
|
527
563
|
let http = new HttpResetClass()
|
@@ -923,6 +959,7 @@ export default {
|
|
923
959
|
ready () {
|
924
960
|
// 获取片区
|
925
961
|
this.getSliceArea()
|
962
|
+
this.getmeterreader()
|
926
963
|
// 获取营收气表参数
|
927
964
|
this.setConList()
|
928
965
|
if (this.permission === 'c1'){
|
@@ -1,122 +1,125 @@
|
|
1
|
-
<template>
|
2
|
-
<div style="width: 100%;height: 100%">
|
3
|
-
<div class="col-sm-6 form-group" style="margin-bottom: 0px">
|
4
|
-
<label class="font_normal_body">公  司</label>
|
5
|
-
<right-tree-safe :width="leftWidth" @re-res="getRes"></right-tree-safe>
|
6
|
-
</div>
|
7
|
-
<div class="col-sm-6 form-group" style="margin-bottom: 0px">
|
8
|
-
<label class="font_normal_body">{{roleLable}}</label>
|
9
|
-
<v-select :value="changeval" v-model='changeval'
|
10
|
-
:value-single="!valueMultiple"
|
11
|
-
class="select_list select"
|
12
|
-
:options='users' :placeholder='roleName'
|
13
|
-
close-on-select
|
14
|
-
:multiple="valueMultiple"
|
15
|
-
:width="rightWidth"
|
16
|
-
@change="valuechange">
|
17
|
-
</v-select>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
</template>
|
21
|
-
|
22
|
-
<script>
|
23
|
-
import {HttpResetClass} from 'vue-client'
|
24
|
-
export default {
|
25
|
-
name: "RoleSelector",
|
26
|
-
props: {
|
27
|
-
valueMultiple: {
|
28
|
-
type: Boolean,
|
29
|
-
default: false
|
30
|
-
},
|
31
|
-
roleName: {
|
32
|
-
type: String,
|
33
|
-
default: '安检员'
|
34
|
-
},
|
35
|
-
roleLable: {
|
36
|
-
type: String,
|
37
|
-
default: '安检员'
|
38
|
-
},
|
39
|
-
leftWidth: {
|
40
|
-
type: String,
|
41
|
-
default: '60%'
|
42
|
-
},
|
43
|
-
rightWidth: {
|
44
|
-
type: String,
|
45
|
-
default: '60%'
|
46
|
-
},
|
47
|
-
value: {
|
48
|
-
default: ''
|
49
|
-
}
|
50
|
-
},
|
51
|
-
data() {
|
52
|
-
return {
|
53
|
-
source: `tool.getChildrenOfResName($${this.roleName}$)`,
|
54
|
-
allUsers: [],
|
55
|
-
users: [],
|
56
|
-
resids: [],
|
57
|
-
changeval: ''
|
58
|
-
}
|
59
|
-
},
|
60
|
-
watch: {
|
61
|
-
'value' (val) {
|
62
|
-
if (val) {
|
63
|
-
this.changeval = val
|
64
|
-
}
|
65
|
-
}
|
66
|
-
},
|
67
|
-
ready () {
|
68
|
-
let http = new HttpResetClass()
|
69
|
-
http.load('POST', '/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
70
|
-
.then(res => {
|
71
|
-
console.log('res-->' + JSON.stringify(res))
|
72
|
-
this.allUsers = res.data
|
73
|
-
this.filterUser(this.resids)
|
74
|
-
|
75
|
-
})
|
76
|
-
},
|
77
|
-
methods: {
|
78
|
-
valuechange(val){
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
this
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
1
|
+
<template>
|
2
|
+
<div style="width: 100%;height: 100%">
|
3
|
+
<div class="col-sm-6 form-group" style="margin-bottom: 0px">
|
4
|
+
<label class="font_normal_body">公  司</label>
|
5
|
+
<right-tree-safe :width="leftWidth" @re-res="getRes"></right-tree-safe>
|
6
|
+
</div>
|
7
|
+
<div class="col-sm-6 form-group" style="margin-bottom: 0px">
|
8
|
+
<label class="font_normal_body">{{roleLable}}</label>
|
9
|
+
<v-select :value="changeval" v-model='changeval'
|
10
|
+
:value-single="!valueMultiple"
|
11
|
+
class="select_list select"
|
12
|
+
:options='users' :placeholder='roleName'
|
13
|
+
close-on-select
|
14
|
+
:multiple="valueMultiple"
|
15
|
+
:width="rightWidth"
|
16
|
+
@change="valuechange">
|
17
|
+
</v-select>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script>
|
23
|
+
import {HttpResetClass} from 'vue-client'
|
24
|
+
export default {
|
25
|
+
name: "RoleSelector",
|
26
|
+
props: {
|
27
|
+
valueMultiple: {
|
28
|
+
type: Boolean,
|
29
|
+
default: false
|
30
|
+
},
|
31
|
+
roleName: {
|
32
|
+
type: String,
|
33
|
+
default: '安检员'
|
34
|
+
},
|
35
|
+
roleLable: {
|
36
|
+
type: String,
|
37
|
+
default: '安检员'
|
38
|
+
},
|
39
|
+
leftWidth: {
|
40
|
+
type: String,
|
41
|
+
default: '60%'
|
42
|
+
},
|
43
|
+
rightWidth: {
|
44
|
+
type: String,
|
45
|
+
default: '60%'
|
46
|
+
},
|
47
|
+
value: {
|
48
|
+
default: ''
|
49
|
+
}
|
50
|
+
},
|
51
|
+
data() {
|
52
|
+
return {
|
53
|
+
source: `tool.getChildrenOfResName($${this.roleName}$)`,
|
54
|
+
allUsers: [],
|
55
|
+
users: [],
|
56
|
+
resids: [],
|
57
|
+
changeval: ''
|
58
|
+
}
|
59
|
+
},
|
60
|
+
watch: {
|
61
|
+
'value' (val) {
|
62
|
+
if (val) {
|
63
|
+
this.changeval = val
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
ready () {
|
68
|
+
let http = new HttpResetClass()
|
69
|
+
http.load('POST', '/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
70
|
+
.then(res => {
|
71
|
+
console.log('res-->' + JSON.stringify(res))
|
72
|
+
this.allUsers = res.data
|
73
|
+
this.filterUser(this.resids)
|
74
|
+
|
75
|
+
})
|
76
|
+
},
|
77
|
+
methods: {
|
78
|
+
valuechange(val){
|
79
|
+
if(typeof val =='object' && val.hasOwnProperty('isTrusted')){
|
80
|
+
return
|
81
|
+
}
|
82
|
+
this.changeval = val
|
83
|
+
if(this.valueMultiple){
|
84
|
+
if(val&&val.length > 0){
|
85
|
+
var valuesele = `(`
|
86
|
+
for (var i= 0;i<val.length;i++) {
|
87
|
+
valuesele += `'${val[i]}',`
|
88
|
+
}
|
89
|
+
this.value = valuesele.substring(0,valuesele.length -1 ) + ')'
|
90
|
+
}else{
|
91
|
+
this.value = ''
|
92
|
+
}
|
93
|
+
}else{
|
94
|
+
this.value = val
|
95
|
+
}
|
96
|
+
},
|
97
|
+
getRes(obj) {
|
98
|
+
this.resids = obj.resids
|
99
|
+
console.log(this.resids)
|
100
|
+
this.filterUser(this.resids)
|
101
|
+
this.$dispatch('re-res',obj)
|
102
|
+
},
|
103
|
+
filterUser(resids) {
|
104
|
+
// 处理第一次进入页面值异常问题
|
105
|
+
if(resids.length > 0 && typeof resids[0] == "object"){
|
106
|
+
resids = resids[0]
|
107
|
+
}
|
108
|
+
this.users = []
|
109
|
+
this.allUsers.forEach(user => {
|
110
|
+
if (resids.indexOf(user.orgid) != -1) {
|
111
|
+
this.users.push({label: user.name, value: user.name})
|
112
|
+
}
|
113
|
+
})
|
114
|
+
if(this.users.length > 0){
|
115
|
+
this.users = [{label: '全部', value: ''},...this.users]
|
116
|
+
}
|
117
|
+
console.log(this.users)
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
</script>
|
122
|
+
|
123
|
+
<style scoped>
|
124
|
+
|
125
|
+
</style>
|
@@ -275,7 +275,17 @@
|
|
275
275
|
>
|
276
276
|
</v-select>
|
277
277
|
</div>
|
278
|
+
<div class="col-sm-2 form-group" style="margin-top: 0px">
|
278
279
|
|
280
|
+
<label class="font_normal_body">抄 表 员</label>
|
281
|
+
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
282
|
+
:value-single="true" style="width: 60%"
|
283
|
+
class="select_list select"
|
284
|
+
:options='$parent.$parent.meterReader' placeholder='抄 表 员'
|
285
|
+
close-on-select
|
286
|
+
condition="uf.f_inputtor ='{}'"></v-select>
|
287
|
+
|
288
|
+
</div>
|
279
289
|
</div>
|
280
290
|
</div>
|
281
291
|
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
@@ -367,6 +377,7 @@
|
|
367
377
|
opt:[{label:"测试",value:"测试"}],
|
368
378
|
showCondtion:false,
|
369
379
|
userTypes:[],//用户类型
|
380
|
+
meterReader:[], //抄表员
|
370
381
|
userStates:[],//用户状态
|
371
382
|
gasproperties:[],//用气性质
|
372
383
|
meter_classifys:[],//气表类型
|
@@ -393,8 +404,34 @@
|
|
393
404
|
//this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
|
394
405
|
this.setConList()
|
395
406
|
this.loadpage()
|
407
|
+
this.getmeterreader()
|
396
408
|
},
|
397
409
|
methods: {
|
410
|
+
async getmeterreader(){
|
411
|
+
this.meterReader=[]
|
412
|
+
let http=new HttpResetClass()
|
413
|
+
let getMeterReader = await http.load('pOST',`rs/sql/safe_singleTable_OrderBy`,{
|
414
|
+
data:{
|
415
|
+
items:'f_inputtor',
|
416
|
+
tablename: 't_userfiles',
|
417
|
+
condition:`f_orgid = '${this.$login.f.orgid}' and f_inputtor is not null ` + ` group by f_inputtor`,
|
418
|
+
orderitem: 'f_inputtor'
|
419
|
+
}
|
420
|
+
},{resolveMsg:null,rejectMsg:"获取抄表员失败"}).then(res =>{
|
421
|
+
this.meterReader = res.data.map(item=>{
|
422
|
+
console.log('打印item',item)
|
423
|
+
return{
|
424
|
+
label : item.f_inputtor,
|
425
|
+
value : item.f_inputtor
|
426
|
+
}
|
427
|
+
|
428
|
+
})
|
429
|
+
this.meterReader.unshift({label:'全部',value:''})
|
430
|
+
}
|
431
|
+
|
432
|
+
)
|
433
|
+
},
|
434
|
+
|
398
435
|
loadpage(){
|
399
436
|
this.select_search()
|
400
437
|
this.Mreadibook()
|