safecheck-client 3.0.33-gongyi → 3.0.34-gongyi
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/Util/RightTreeSafe.vue +348 -343
- package/src/components/defect/DefectListWeixiu.vue +2 -2
- package/src/components/defect/DefectPaperWeiXiu.vue +580 -508
- package/src/components/paper/PaperList.vue +24 -0
- package/src/components/pc/CheckBookList.vue +26 -12
- package/src/components/pc/CheckBookManage.vue +910 -903
- package/src/components/planmanage/PlanManage.vue +782 -753
- package/src/components/querycheckpaper/CheckSearchUser.vue +1 -1
- package/src/components/report/CheckPlanAreaList.vue +479 -449
@@ -217,6 +217,11 @@
|
|
217
217
|
:value-single="true">
|
218
218
|
</v-select>
|
219
219
|
</div>
|
220
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
221
|
+
<label class="font_normal_body">安检科室</label>
|
222
|
+
<right-tree-safe islist :source="$parent.$parent.source" v-on:re-res="$parent.$parent.reres2" :textContent="'选择科室'" >
|
223
|
+
</right-tree-safe>
|
224
|
+
</div>
|
220
225
|
</div>
|
221
226
|
<modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
|
222
227
|
<div slot="modal-header" class="modal-header">
|
@@ -411,14 +416,30 @@
|
|
411
416
|
f_offsite_time: 'no'
|
412
417
|
},
|
413
418
|
sliceArea: [],
|
419
|
+
f_dep:'',
|
414
420
|
cbc:[],
|
415
421
|
housetype: [],
|
416
422
|
positions: [],
|
417
423
|
userTypes: [],
|
424
|
+
source:
|
425
|
+
'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
|
426
|
+
'tool.getFullTree(dep.where(row.hasSpecialRole($安检册二次分配$)))',
|
418
427
|
meter_classifys:[]//气表类型
|
419
428
|
}
|
420
429
|
},
|
421
430
|
methods: {
|
431
|
+
reres2(val){
|
432
|
+
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined' || !val.resids[0] || val.resids.length>1){
|
433
|
+
console.log('未选择',val)
|
434
|
+
this.f_dep = ''
|
435
|
+
return
|
436
|
+
}
|
437
|
+
console.log('val2',val)
|
438
|
+
const resids = val.orgobj.filter(res=>res.resourcetype==='department')
|
439
|
+
if (resids.length>0){
|
440
|
+
this.f_dep = resids[0].name
|
441
|
+
}
|
442
|
+
},
|
422
443
|
setConList(){
|
423
444
|
this.userTypes=this.$appdata.getParam('用户类型') ? [{
|
424
445
|
label: '全部',
|
@@ -676,6 +697,9 @@
|
|
676
697
|
selfSearch(args) {
|
677
698
|
//console.log("9999999999999999")
|
678
699
|
//args.condition+=" and f_check_type='民用'"
|
700
|
+
if(this.f_dep){
|
701
|
+
args.condition += ` and f_dep='${this.f_dep}'`
|
702
|
+
}
|
679
703
|
this.model.search(args.condition, args.model, args.condValue)
|
680
704
|
}
|
681
705
|
},
|
@@ -15,10 +15,10 @@
|
|
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" v-if="$parent.$parent.permission === 'c1'">
|
19
19
|
<label class="font_normal_body">安检科室</label>
|
20
|
-
<right-tree islist :userid="$parent.$parent.userid" :source="$parent.$parent.source" v-on:re-res="$parent.$parent.reres2" :textContent="'选择科室'" :selectData="''" v-ref:f_reciever>
|
21
|
-
</right-tree>
|
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
|
+
</right-tree-safe>
|
22
22
|
</div>
|
23
23
|
|
24
24
|
<div :class="$parent.$parent.style" >
|
@@ -105,10 +105,10 @@
|
|
105
105
|
|
106
106
|
</div>
|
107
107
|
<div class="row" v-show="$parent.$parent.$parent.showItem">
|
108
|
-
<div :class="$parent.$parent.style">
|
108
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.permission === 'c1'">
|
109
109
|
<label class="font_normal_body">安检科室</label>
|
110
|
-
<right-tree islist :userid="$parent.$parent.userid" :source="$parent.$parent.source" v-on:re-res="$parent.$parent.reres2" :textContent="选择科室" :selectData="''" v-ref:f_reciever>
|
111
|
-
</right-tree>
|
110
|
+
<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>
|
111
|
+
</right-tree-safe>
|
112
112
|
</div>
|
113
113
|
|
114
114
|
<div :class="$parent.$parent.style" >
|
@@ -151,6 +151,9 @@
|
|
151
151
|
<th>
|
152
152
|
<nobr>创建人</nobr>
|
153
153
|
</th>
|
154
|
+
<th>
|
155
|
+
<nobr>所属科室</nobr>
|
156
|
+
</th>
|
154
157
|
<th>
|
155
158
|
<nobr>所属安检员</nobr>
|
156
159
|
</th>
|
@@ -172,6 +175,7 @@
|
|
172
175
|
<td style="text-align: center;">{{ row.f_check_book_name }}</td>
|
173
176
|
<td style="text-align: center;">{{ row.f_create_date }}</td>
|
174
177
|
<td style="text-align: center;">{{ row.f_create_person }}</td>
|
178
|
+
<td style="text-align: center;">{{ row.f_dep }}</td>
|
175
179
|
<td style="text-align: center;">{{ row.f_checker_name }}</td>
|
176
180
|
<td style="text-align: center;">{{ row.f_run_date }}</td>
|
177
181
|
<td style="text-align: center;">{{ row.f_around_time }}{{ row.f_around_unit }}</td>
|
@@ -200,8 +204,8 @@
|
|
200
204
|
<!-- </div>-->
|
201
205
|
<div class="col-sm-6 form-group" style="margin-top: 20px" v-if="permission === 'c1' && showModal ">
|
202
206
|
<label class="font_normal_body">安检科室</label>
|
203
|
-
<right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择科室" :
|
204
|
-
</right-tree>
|
207
|
+
<right-tree-safe islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="'选择科室'" :select-data="{id:checkBook.f_depid}" v-ref:f_reciever>
|
208
|
+
</right-tree-safe>
|
205
209
|
</div>
|
206
210
|
<div class="col-sm-6 form-group" style="margin-top: 20px" v-if="permission === 'c2' ">
|
207
211
|
<label class="font_normal_body">安 检 员</label>
|
@@ -325,7 +329,7 @@ export default {
|
|
325
329
|
},
|
326
330
|
methods: {
|
327
331
|
reres(val) {
|
328
|
-
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined'){
|
332
|
+
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined' || val.resids.length>1){
|
329
333
|
return
|
330
334
|
}
|
331
335
|
console.log('val2',val)
|
@@ -337,7 +341,9 @@ export default {
|
|
337
341
|
}
|
338
342
|
},
|
339
343
|
reres2(val){
|
340
|
-
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined'){
|
344
|
+
if (!val.resids || val.resids.length === 0 || val.resids[0] ==='undefined' || !val.resids[0] || val.resids.length>1){
|
345
|
+
console.log('未选择',val)
|
346
|
+
this.f_depid = ''
|
341
347
|
return
|
342
348
|
}
|
343
349
|
console.log('val2',val)
|
@@ -347,6 +353,10 @@ export default {
|
|
347
353
|
}
|
348
354
|
},
|
349
355
|
topPlanItem(val){
|
356
|
+
if(!val.f_depid){
|
357
|
+
this.$showMessage('请补全科室后在进行下发')
|
358
|
+
return
|
359
|
+
}
|
350
360
|
this.isSend = true
|
351
361
|
console.log('val', val)
|
352
362
|
|
@@ -365,7 +375,9 @@ export default {
|
|
365
375
|
f_create_time : Util.toStandardDateString(),
|
366
376
|
f_safecheck_type : '年度普检',
|
367
377
|
f_checker : checkBook.f_checker_name,
|
368
|
-
f_checker_id:checkBook.f_checker_id
|
378
|
+
f_checker_id:checkBook.f_checker_id,
|
379
|
+
f_depid:checkBook.f_depid,
|
380
|
+
f_dep:checkBook.f_dep
|
369
381
|
}
|
370
382
|
|
371
383
|
if (checkBook.f_around_unit === '年'){
|
@@ -468,6 +480,7 @@ export default {
|
|
468
480
|
f_create_person: '',
|
469
481
|
f_orgid: '',
|
470
482
|
f_depid:'',
|
483
|
+
f_dep:'',
|
471
484
|
f_checker_name: '',
|
472
485
|
f_checker_id:''
|
473
486
|
}
|
@@ -478,7 +491,9 @@ export default {
|
|
478
491
|
|
479
492
|
},
|
480
493
|
updateCheckBook(val){
|
494
|
+
console.log(val)
|
481
495
|
this.checkBook=val
|
496
|
+
console.log(this.checkBook)
|
482
497
|
this.showModal = true
|
483
498
|
},
|
484
499
|
search (args) {
|
@@ -489,7 +504,6 @@ export default {
|
|
489
504
|
}
|
490
505
|
if (this.f_depid && this.permission === 'c1'){
|
491
506
|
args.condition +=` and tcb.f_depid = '${this.f_depid}'`
|
492
|
-
|
493
507
|
}
|
494
508
|
return this.model.search(args.condition, args.model)
|
495
509
|
},
|