Bladeren bron

修改生产表格里项目负责人审核部分

余思翰 1 jaar geleden
bovenliggende
commit
9309273507

+ 426
- 78
oa-ui/src/views/flowable/form/scTable.vue Bestand weergeven

3
     <h2 style="text-align: center;">生产部门考核表</h2>
3
     <h2 style="text-align: center;">生产部门考核表</h2>
4
     <table class="table">
4
     <table class="table">
5
       <tr>
5
       <tr>
6
-        <td>姓名</td>
6
+        <td class="table-title">项目编号</td>
7
+        <td colspan="1"></td>
8
+        <td class="table-title">项目名称</td>
9
+        <td colspan="2"></td>
10
+      </tr>
11
+      <tr>
12
+        <td class="table-title">姓名</td>
7
         <td></td>
13
         <td></td>
8
-        <td>考核年度</td>
14
+        <td class="table-title">考核年度</td>
9
         <td></td>
15
         <td></td>
10
-        <td colspan="3">负责人考核意见</td>
11
-        <td colspan="3">分管领导考核意见</td>
16
+        <td colspan="3" class="table-title">部门负责人考核意见</td>
17
+        <td colspan="3" class="table-title">分管领导考核意见</td>
12
       </tr>
18
       </tr>
13
       <tr>
19
       <tr>
14
-        <td>所在部门</td>
20
+        <td class="table-title">所在部门</td>
15
         <td colspan="3"></td>
21
         <td colspan="3"></td>
16
         <td colspan="3">
22
         <td colspan="3">
17
-          <el-radio-group v-model="radio1">
23
+          <el-radio-group v-model="tableForm.deptAssessment">
18
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
24
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
19
               {{ dict.label }}
25
               {{ dict.label }}
20
             </el-radio>
26
             </el-radio>
21
           </el-radio-group>
27
           </el-radio-group>
22
         </td>
28
         </td>
23
         <td colspan="3">
29
         <td colspan="3">
24
-          <el-radio-group v-model="radio2">
30
+          <el-radio-group v-model="tableForm.managerAssessment">
25
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
31
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
26
               {{ dict.label }}
32
               {{ dict.label }}
27
             </el-radio>
33
             </el-radio>
29
         </td>
35
         </td>
30
       </tr>
36
       </tr>
31
       <tr>
37
       <tr>
32
-        <td>部门职务</td>
38
+        <td class="table-title">部门职务</td>
33
         <td colspan="3"></td>
39
         <td colspan="3"></td>
34
         <td colspan="3" rowspan="5">
40
         <td colspan="3" rowspan="5">
35
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="textarea1">
41
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="textarea1">
49
         </td>
55
         </td>
50
       </tr>
56
       </tr>
51
       <tr>
57
       <tr>
52
-        <td>项目经理</td>
58
+        <td class="table-title">项目经理</td>
53
         <td colspan="3"></td>
59
         <td colspan="3"></td>
54
       </tr>
60
       </tr>
55
       <tr>
61
       <tr>
56
-        <td>技术职称</td>
62
+        <td class="table-title">技术职称</td>
57
         <td colspan="3"></td>
63
         <td colspan="3"></td>
58
       </tr>
64
       </tr>
59
       <tr>
65
       <tr>
60
-        <td>作业类别</td>
66
+        <td class="table-title">作业类别</td>
61
         <td colspan="3"></td>
67
         <td colspan="3"></td>
62
       </tr>
68
       </tr>
63
       <tr>
69
       <tr>
64
-        <td>入职年月</td>
70
+        <td class="table-title">入职年月</td>
65
         <td></td>
71
         <td></td>
66
-        <td>年龄</td>
72
+        <td class="table-title">年龄</td>
67
         <td></td>
73
         <td></td>
68
       </tr>
74
       </tr>
69
       <tr>
75
       <tr>
70
-        <td rowspan="2">考核内容</td>
71
-        <td colspan="6">被考核人填写</td>
72
-        <td colspan="3">负责人考核</td>
76
+        <td rowspan="2" class="table-title">考核内容</td>
77
+        <td colspan="6" class="table-title">被考核人填写</td>
78
+        <td colspan="3" class="table-title">负责人考核</td>
73
       </tr>
79
       </tr>
74
       <tr>
80
       <tr>
75
-        <td>等级、比例尺等</td>
76
-        <td>单位</td>
77
-        <td>工作量</td>
78
-        <td>熟练程度</td>
79
-        <td>承担角色</td>
80
-        <td>备注</td>
81
-        <td>产品质量</td>
82
-        <td>技能掌握</td>
83
-        <td>考核建议</td>
81
+        <td class="table-title">等级、比例尺等</td>
82
+        <td class="table-title">单位</td>
83
+        <td class="table-title">工作量</td>
84
+        <td class="table-title">熟练程度</td>
85
+        <td class="table-title">承担角色</td>
86
+        <td class="table-title">备注</td>
87
+        <td class="table-title">产品质量</td>
88
+        <td class="table-title">技能掌握</td>
89
+        <td class="table-title">考核建议</td>
84
       </tr>
90
       </tr>
85
       <tr>
91
       <tr>
86
         <td rowspan="5">项目负责</td>
92
         <td rowspan="5">项目负责</td>
105
         <td rowspan="5">
111
         <td rowspan="5">
106
           <div>{{ tableForm.remark01 }}</div>
112
           <div>{{ tableForm.remark01 }}</div>
107
         </td>
113
         </td>
108
-        <td rowspan="5"></td>
109
-        <td rowspan="5"></td>
110
-        <td rowspan="5"></td>
114
+        <td rowspan="5">
115
+          <el-radio-group v-model="tableForm.quality01" :disabled="!isDeptLeader">
116
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
117
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'quality01')">
118
+                {{ dict.label }}
119
+              </el-radio>
120
+            </div>
121
+          </el-radio-group>
122
+        </td>
123
+        <td rowspan="5">
124
+          <el-radio-group v-model="tableForm.skill01" :disabled="!isDeptLeader">
125
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
126
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'skill01')">
127
+                {{ dict.label }}
128
+              </el-radio>
129
+            </div>
130
+          </el-radio-group>
131
+        </td>
132
+        <td rowspan="5">
133
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice01" :disabled="!isDeptLeader"> 
134
+          </el-input>
135
+        </td>
111
       </tr>
136
       </tr>
112
       <tr>
137
       <tr>
113
         <td>外业负责</td>
138
         <td>外业负责</td>
155
         <td rowspan="10">
180
         <td rowspan="10">
156
           <div>{{ tableForm.remark02 }}</div>
181
           <div>{{ tableForm.remark02 }}</div>
157
         </td>
182
         </td>
158
-        <td rowspan="10"></td>
159
-        <td rowspan="10"></td>
160
-        <td rowspan="10"></td>
183
+        <td rowspan="10">
184
+          <el-radio-group v-model="tableForm.quality02" :disabled="!isDeptLeader">
185
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
186
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'quality02')">
187
+                {{ dict.label }}
188
+              </el-radio>
189
+            </div>
190
+          </el-radio-group>
191
+        </td>
192
+        <td rowspan="10">
193
+          <el-radio-group v-model="tableForm.skill02" :disabled="!isDeptLeader">
194
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
195
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'skill02')">
196
+                {{ dict.label }}
197
+              </el-radio>
198
+            </div>
199
+          </el-radio-group>
200
+        </td>
201
+        <td rowspan="10">
202
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice02" :disabled="!isDeptLeader"> 
203
+          </el-input>
204
+        </td>
161
       </tr>
205
       </tr>
162
       <tr>
206
       <tr>
163
         <td>监测网技术设计</td>
207
         <td>监测网技术设计</td>
228
         <td rowspan="5">
272
         <td rowspan="5">
229
           <div>{{ tableForm.remark03 }}</div>
273
           <div>{{ tableForm.remark03 }}</div>
230
         </td>
274
         </td>
231
-        <td rowspan="5"></td>
232
-        <td rowspan="5"></td>
233
-        <td rowspan="5"></td>
275
+        <td rowspan="5">
276
+          <el-radio-group v-model="tableForm.quality03" :disabled="!isDeptLeader">
277
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
278
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'quality03')">
279
+                {{ dict.label }}
280
+              </el-radio>
281
+            </div>
282
+          </el-radio-group>
283
+        </td>
284
+        <td rowspan="5">
285
+          <el-radio-group v-model="tableForm.skill03" :disabled="!isDeptLeader">
286
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
287
+              <el-radio :key="dict.value" :label="dict.value"  @click.native.prevent="cancelSelect(dict.value,'skill03')">
288
+                {{ dict.label }}
289
+              </el-radio>
290
+            </div>
291
+          </el-radio-group>
292
+        </td>
293
+        <td rowspan="5">
294
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice03" :disabled="!isDeptLeader"> 
295
+          </el-input>
296
+        </td>
234
       </tr>
297
       </tr>
235
       <tr>
298
       <tr>
236
         <td>外业-配合测量</td>
299
         <td>外业-配合测量</td>
276
         <td rowspan="4">
339
         <td rowspan="4">
277
           <div>{{ tableForm.remark04 }}</div>
340
           <div>{{ tableForm.remark04 }}</div>
278
         </td>
341
         </td>
279
-        <td rowspan="4"></td>
280
-        <td rowspan="4"></td>
281
-        <td rowspan="4"></td>
342
+        <td rowspan="4">
343
+          <el-radio-group v-model="tableForm.quality04" :disabled="!isDeptLeader">
344
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
345
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality04')">
346
+                {{ dict.label }}
347
+              </el-radio>
348
+            </div>
349
+          </el-radio-group>
350
+        </td>
351
+        <td rowspan="4">
352
+          <el-radio-group v-model="tableForm.skill04" :disabled="!isDeptLeader">
353
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
354
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill04')">
355
+                {{ dict.label }}
356
+              </el-radio>
357
+            </div>
358
+          </el-radio-group>
359
+        </td>
360
+        <td rowspan="4">
361
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice04" :disabled="!isDeptLeader"> 
362
+          </el-input>
363
+        </td>
282
       </tr>
364
       </tr>
283
       <tr>
365
       <tr>
284
         <td>三</td>
366
         <td>三</td>
316
         <td rowspan="6">
398
         <td rowspan="6">
317
           <div>{{ tableForm.remark05 }}</div>
399
           <div>{{ tableForm.remark05 }}</div>
318
         </td>
400
         </td>
319
-        <td rowspan="6"></td>
320
-        <td rowspan="6"></td>
321
-        <td rowspan="6"></td>
401
+        <td rowspan="6">
402
+          <el-radio-group v-model="tableForm.quality05" :disabled="!isDeptLeader">
403
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
404
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality05')">
405
+                {{ dict.label }}
406
+              </el-radio>
407
+            </div>
408
+          </el-radio-group>
409
+        </td>
410
+        <td rowspan="6">
411
+          <el-radio-group v-model="tableForm.skill05" :disabled="!isDeptLeader">
412
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
413
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill05')">
414
+                {{ dict.label }}
415
+              </el-radio>
416
+            </div>
417
+          </el-radio-group>
418
+        </td>
419
+        <td rowspan="6">
420
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice05" :disabled="!isDeptLeader"> 
421
+          </el-input>
422
+        </td>
322
       </tr>
423
       </tr>
323
       <tr>
424
       <tr>
324
         <td>1:500</td>
425
         <td>1:500</td>
365
         <td rowspan="6">
466
         <td rowspan="6">
366
           <div>{{ tableForm.remark06 }}</div>
467
           <div>{{ tableForm.remark06 }}</div>
367
         </td>
468
         </td>
368
-        <td rowspan="6"></td>
369
-        <td rowspan="6"></td>
370
-        <td rowspan="6"></td>
469
+        <td rowspan="6">
470
+          <el-radio-group v-model="tableForm.quality06" :disabled="!isDeptLeader">
471
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
472
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality06')">
473
+                {{ dict.label }}
474
+              </el-radio>
475
+            </div>
476
+          </el-radio-group>
477
+        </td>
478
+        <td rowspan="6">
479
+          <el-radio-group v-model="tableForm.skill06" :disabled="!isDeptLeader">
480
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
481
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill06')">
482
+                {{ dict.label }}
483
+              </el-radio>
484
+            </div>
485
+          </el-radio-group>
486
+        </td>
487
+        <td rowspan="6">
488
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice06" :disabled="!isDeptLeader"> 
489
+          </el-input>
490
+        </td>
371
       </tr>
491
       </tr>
372
       <tr>
492
       <tr>
373
         <td>1:500</td>
493
         <td>1:500</td>
414
         <td rowspan="4">
534
         <td rowspan="4">
415
           <div>{{ tableForm.remark07 }}</div>
535
           <div>{{ tableForm.remark07 }}</div>
416
         </td>
536
         </td>
417
-        <td rowspan="4"></td>
418
-        <td rowspan="4"></td>
419
-        <td rowspan="4"></td>
537
+        <td rowspan="4">
538
+          <el-radio-group v-model="tableForm.quality07" :disabled="!isDeptLeader">
539
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
540
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality07')">
541
+                {{ dict.label }}
542
+              </el-radio>
543
+            </div>
544
+          </el-radio-group>
545
+        </td>
546
+        <td rowspan="4">
547
+          <el-radio-group v-model="tableForm.skill07" :disabled="!isDeptLeader">
548
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
549
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill07')">
550
+                {{ dict.label }}
551
+              </el-radio>
552
+            </div>
553
+          </el-radio-group>
554
+        </td>
555
+        <td rowspan="4">
556
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice07" :disabled="!isDeptLeader"> 
557
+          </el-input>
558
+        </td>
420
       </tr>
559
       </tr>
421
       <tr>
560
       <tr>
422
         <td>飞马</td>
561
         <td>飞马</td>
454
         <td rowspan="3">
593
         <td rowspan="3">
455
           <div>{{ tableForm.remark08 }}</div>
594
           <div>{{ tableForm.remark08 }}</div>
456
         </td>
595
         </td>
457
-        <td rowspan="3"></td>
458
-        <td rowspan="3"></td>
596
+        <td rowspan="3">
597
+          <el-radio-group v-model="tableForm.quality08" :disabled="!isDeptLeader">
598
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
599
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality08')">
600
+                {{ dict.label }}
601
+              </el-radio>
602
+            </div>
603
+          </el-radio-group>
604
+        </td>
605
+        <td rowspan="3">
606
+          <el-radio-group v-model="tableForm.skill08" :disabled="!isDeptLeader">
607
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
608
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill08')">
609
+                {{ dict.label }}
610
+              </el-radio>
611
+            </div>
612
+          </el-radio-group>
613
+        </td>
614
+        <td  rowspan="3">
615
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice08" :disabled="!isDeptLeader"> 
616
+          </el-input>
617
+        </td>
459
       </tr>
618
       </tr>
460
       <tr>
619
       <tr>
461
         <td>航片</td>
620
         <td>航片</td>
489
         <td rowspan="6">
648
         <td rowspan="6">
490
           <div>{{ tableForm.remark09 }}</div>
649
           <div>{{ tableForm.remark09 }}</div>
491
         </td>
650
         </td>
492
-        <td rowspan="6"></td>
493
-        <td rowspan="6"></td>
494
-        <td rowspan="6"></td>
651
+        <td rowspan="6">
652
+          <el-radio-group v-model="tableForm.quality09" :disabled="!isDeptLeader">
653
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
654
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality09')">
655
+                {{ dict.label }}
656
+              </el-radio>
657
+            </div>
658
+          </el-radio-group>
659
+        </td>
660
+        <td rowspan="6">
661
+          <el-radio-group v-model="tableForm.skill09" :disabled="!isDeptLeader">
662
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
663
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill09')">
664
+                {{ dict.label }}
665
+              </el-radio>
666
+            </div>
667
+          </el-radio-group>
668
+        </td>
669
+        <td rowspan="6">
670
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice09" :disabled="!isDeptLeader"> 
671
+          </el-input>
672
+        </td>
495
       </tr>
673
       </tr>
496
       <tr>
674
       <tr>
497
         <td>1:500</td>
675
         <td>1:500</td>
539
         <td rowspan="6">
717
         <td rowspan="6">
540
           <div>{{ tableForm.remark10 }}</div>
718
           <div>{{ tableForm.remark10 }}</div>
541
         </td>
719
         </td>
542
-        <td rowspan="6"></td>
543
-        <td rowspan="6"></td>
544
-        <td rowspan="6"></td>
720
+        <td rowspan="6">
721
+          <el-radio-group v-model="tableForm.quality10" :disabled="!isDeptLeader">
722
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
723
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality10')">
724
+                {{ dict.label }}
725
+              </el-radio>
726
+            </div>
727
+          </el-radio-group>
728
+        </td>
729
+        <td rowspan="6">
730
+          <el-radio-group v-model="tableForm.skill10" :disabled="!isDeptLeader">
731
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
732
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill10')">
733
+                {{ dict.label }}
734
+              </el-radio>
735
+            </div>
736
+          </el-radio-group>
737
+        </td>
738
+        <td rowspan="6">
739
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice10" :disabled="!isDeptLeader"> 
740
+          </el-input>
741
+        </td>
545
       </tr>
742
       </tr>
546
       <tr>
743
       <tr>
547
         <td>1:500</td>
744
         <td>1:500</td>
589
         <td rowspan="6">
786
         <td rowspan="6">
590
           <div>{{ tableForm.remark11 }}</div>
787
           <div>{{ tableForm.remark11 }}</div>
591
         </td>
788
         </td>
592
-        <td rowspan="6"></td>
593
-        <td rowspan="6"></td>
594
-        <td rowspan="6"></td>
789
+        <td rowspan="6">
790
+          <el-radio-group v-model="tableForm.quality11" :disabled="!isDeptLeader">
791
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
792
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality11')">
793
+                {{ dict.label }}
794
+              </el-radio>
795
+            </div>
796
+          </el-radio-group>
797
+        </td>
798
+        <td rowspan="6">
799
+          <el-radio-group v-model="tableForm.skill11" :disabled="!isDeptLeader">
800
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
801
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill11')">
802
+                {{ dict.label }}
803
+              </el-radio>
804
+            </div>
805
+          </el-radio-group>
806
+        </td>
807
+        <td rowspan="6">
808
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice11" :disabled="!isDeptLeader"> 
809
+          </el-input>
810
+        </td>
595
       </tr>
811
       </tr>
596
       <tr>
812
       <tr>
597
         <td>1:500</td>
813
         <td>1:500</td>
639
         <td rowspan="5">
855
         <td rowspan="5">
640
           <div>{{ tableForm.remark12 }}</div>
856
           <div>{{ tableForm.remark12 }}</div>
641
         </td>
857
         </td>
642
-        <td rowspan="5"></td>
643
-        <td rowspan="5"></td>
644
-        <td rowspan="5"></td>
858
+        <td rowspan="5">
859
+          <el-radio-group v-model="tableForm.quality12" :disabled="!isDeptLeader">
860
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
861
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality12')">
862
+                {{ dict.label }}
863
+              </el-radio>
864
+            </div>
865
+          </el-radio-group>
866
+        </td>
867
+        <td rowspan="5">
868
+          <el-radio-group v-model="tableForm.skill12" :disabled="!isDeptLeader">
869
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
870
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill12')">
871
+                {{ dict.label }}
872
+              </el-radio>
873
+            </div>
874
+          </el-radio-group>
875
+        </td>
876
+        <td rowspan="5">
877
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice12" :disabled="!isDeptLeader"> 
878
+          </el-input>
879
+        </td>
645
       </tr>
880
       </tr>
646
       <tr>
881
       <tr>
647
         <td>1:1000</td>
882
         <td>1:1000</td>
684
         <td rowspan="6">
919
         <td rowspan="6">
685
           <div>{{ tableForm.remark13 }}</div>
920
           <div>{{ tableForm.remark13 }}</div>
686
         </td>
921
         </td>
687
-        <td rowspan="6"></td>
688
-        <td rowspan="6"></td>
689
-        <td rowspan="6"></td>
922
+        <td rowspan="6">
923
+          <el-radio-group v-model="tableForm.quality13" :disabled="!isDeptLeader">
924
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
925
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality13')">
926
+                {{ dict.label }}
927
+              </el-radio>
928
+            </div>
929
+          </el-radio-group>
930
+        </td>
931
+        <td rowspan="6">
932
+          <el-radio-group v-model="tableForm.skill13" :disabled="!isDeptLeader">
933
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
934
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill13')">
935
+                {{ dict.label }}
936
+              </el-radio>
937
+            </div>
938
+          </el-radio-group>
939
+        </td>
940
+        <td rowspan="6">
941
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice13" :disabled="!isDeptLeader"> 
942
+          </el-input>
943
+        </td>
690
       </tr>
944
       </tr>
691
       <tr>
945
       <tr>
692
         <td>1:500</td>
946
         <td>1:500</td>
734
         <td rowspan="6">
988
         <td rowspan="6">
735
           <div>{{ tableForm.remark14 }}</div>
989
           <div>{{ tableForm.remark14 }}</div>
736
         </td>
990
         </td>
737
-        <td rowspan="6"></td>
738
-        <td rowspan="6"></td>
991
+        <td rowspan="6">
992
+          <el-radio-group v-model="tableForm.quality14" :disabled="!isDeptLeader">
993
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
994
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality14')">
995
+                {{ dict.label }}
996
+              </el-radio>
997
+            </div>
998
+          </el-radio-group>
999
+        </td>
1000
+        <td rowspan="6">
1001
+          <el-radio-group v-model="tableForm.skill14" :disabled="!isDeptLeader">
1002
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
1003
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill14')">
1004
+                {{ dict.label }}
1005
+              </el-radio>
1006
+            </div>
1007
+          </el-radio-group>
1008
+        </td>
1009
+        <td rowspan="6">
1010
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice14" :disabled="!isDeptLeader"> 
1011
+          </el-input>
1012
+        </td>
739
       </tr>
1013
       </tr>
740
       <tr>
1014
       <tr>
741
         <td>1:500</td>
1015
         <td>1:500</td>
783
         <td rowspan="6">
1057
         <td rowspan="6">
784
           <div>{{ tableForm.remark15 }}</div>
1058
           <div>{{ tableForm.remark15 }}</div>
785
         </td>
1059
         </td>
786
-        <td rowspan="6"></td>
787
-        <td rowspan="6"></td>
788
-        <td rowspan="6"></td>
1060
+        <td rowspan="6">
1061
+          <el-radio-group v-model="tableForm.quality15" :disabled="!isDeptLeader">
1062
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
1063
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality15')">
1064
+                {{ dict.label }}
1065
+              </el-radio>
1066
+            </div>
1067
+          </el-radio-group>
1068
+        </td>
1069
+        <td rowspan="6">
1070
+          <el-radio-group v-model="tableForm.skill15" :disabled="!isDeptLeader">
1071
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
1072
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill15')">
1073
+                {{ dict.label }}
1074
+              </el-radio>
1075
+            </div>
1076
+          </el-radio-group>
1077
+        </td>
1078
+        <td rowspan="6">
1079
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice15" :disabled="!isDeptLeader"> 
1080
+          </el-input>
1081
+        </td>
789
       </tr>
1082
       </tr>
790
       <tr>
1083
       <tr>
791
         <td>1:500</td>
1084
         <td>1:500</td>
833
         <td rowspan="4">
1126
         <td rowspan="4">
834
           <div>{{ tableForm.remark16 }}</div>
1127
           <div>{{ tableForm.remark16 }}</div>
835
         </td>
1128
         </td>
836
-        <td rowspan="4"></td>
837
-        <td rowspan="4"></td>
838
-        <td rowspan="4"></td>
1129
+        <td rowspan="4">
1130
+          <el-radio-group v-model="tableForm.quality16" :disabled="!isDeptLeader">
1131
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
1132
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality16')">
1133
+                {{ dict.label }}
1134
+              </el-radio>
1135
+            </div>
1136
+          </el-radio-group>
1137
+        </td>
1138
+        <td rowspan="4">
1139
+          <el-radio-group v-model="tableForm.skill16" :disabled="!isDeptLeader">
1140
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
1141
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill16')">
1142
+                {{ dict.label }}
1143
+              </el-radio>
1144
+            </div>
1145
+          </el-radio-group>
1146
+        </td>
1147
+        <td rowspan="4">
1148
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice16" :disabled="!isDeptLeader"> 
1149
+          </el-input>
1150
+        </td>
839
       </tr>
1151
       </tr>
840
       <tr>
1152
       <tr>
841
         <td>gsd 3cm~4.9cm</td>
1153
         <td>gsd 3cm~4.9cm</td>
872
         <td rowspan="5">
1184
         <td rowspan="5">
873
           <div>{{ tableForm.remark17 }}</div>
1185
           <div>{{ tableForm.remark17 }}</div>
874
         </td>
1186
         </td>
875
-        <td rowspan="5"></td>
876
-        <td rowspan="5"></td>
877
-        <td rowspan="5"></td>
1187
+        <td rowspan="5">
1188
+          <el-radio-group v-model="tableForm.quality17" :disabled="!isDeptLeader">
1189
+            <div v-for="dict in dict.type.cmc_accessment" style="text-align:left">
1190
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'quality17')">
1191
+                {{ dict.label }}
1192
+              </el-radio>
1193
+            </div>
1194
+          </el-radio-group>
1195
+        </td>
1196
+        <td rowspan="5">
1197
+          <el-radio-group v-model="tableForm.skill17" :disabled="!isDeptLeader">
1198
+            <div v-for="dict in dict.type.cmc_skill" style="text-align:left">
1199
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value,'skill17')">
1200
+                {{ dict.label }}
1201
+              </el-radio>
1202
+            </div>
1203
+          </el-radio-group>
1204
+        </td>
1205
+        <td rowspan="5">
1206
+          <el-input type="textarea" :rows="4"  v-model="tableForm.advice17" :disabled="!isDeptLeader"> 
1207
+          </el-input>
1208
+        </td>
878
       </tr>
1209
       </tr>
879
       <tr>
1210
       <tr>
880
         <td>1:500</td>
1211
         <td>1:500</td>
905
         <td colspan="9">{{ tableForm.selfAssess }}</td>
1236
         <td colspan="9">{{ tableForm.selfAssess }}</td>
906
       </tr>
1237
       </tr>
907
     </table>
1238
     </table>
908
-    <el-row justify="center" type="flex" style="margin-top:20px;">
1239
+    <el-row justify="center" type="flex" style="margin-top:20px;" v-if="tableForm.taskName == undefined">
909
       <el-button type="primary" @click="submit">提交</el-button>
1240
       <el-button type="primary" @click="submit">提交</el-button>
910
       <el-button>取消</el-button>
1241
       <el-button>取消</el-button>
911
     </el-row>
1242
     </el-row>
925
   },
1256
   },
926
   watch: {
1257
   watch: {
927
     tableForm: function (newval, oldval) {
1258
     tableForm: function (newval, oldval) {
928
-      console.log(oldval);
929
       this.formatForm();
1259
       this.formatForm();
930
       console.log(newval);
1260
       console.log(newval);
931
     }
1261
     }
936
       radio1: "",
1266
       radio1: "",
937
       radio2: "",
1267
       radio2: "",
938
       textarea1: "",
1268
       textarea1: "",
939
-      textarea2: ""
1269
+      textarea2: "",
1270
+      isDeptLeader: false,
1271
+      isManager: false
940
     }
1272
     }
941
   },
1273
   },
942
   created() {
1274
   created() {
967
             this.form['role' + i] = this.tableForm['role' + i]
1299
             this.form['role' + i] = this.tableForm['role' + i]
968
         }
1300
         }
969
       }
1301
       }
1302
+      if (this.tableForm.taskName == '项目负责人审核') {
1303
+        this.isDeptLeader = true;
1304
+      }
970
     },
1305
     },
971
     submit() {
1306
     submit() {
972
-      this.$emit('submit',this.tableForm);
1307
+      this.$emit('submit', this.tableForm);
1308
+    },
1309
+    cancelSelect(value,name){
1310
+      debugger
1311
+      if(this.tableForm[name] == value){
1312
+        this.tableForm[name] = null
1313
+      }else{
1314
+        if(this.tableForm[name] !== undefined)
1315
+          this.tableForm[name] = value
1316
+      }
973
     }
1317
     }
974
   },
1318
   },
975
 }
1319
 }
981
   width: 100%;
1325
   width: 100%;
982
 }
1326
 }
983
 
1327
 
1328
+.table-title {
1329
+  background-color: #dad4d4;
1330
+}
1331
+
984
 .table,
1332
 .table,
985
 th,
1333
 th,
986
 td {
1334
 td {

+ 18
- 12
oa-ui/src/views/flowable/task/todo/detail/index.vue Bestand weergeven

30
         </el-tab-pane> -->
30
         </el-tab-pane> -->
31
         <el-tab-pane label="表单信息" name="1">
31
         <el-tab-pane label="表单信息" name="1">
32
           <ScTable :tableForm="tableForm"></ScTable>
32
           <ScTable :tableForm="tableForm"></ScTable>
33
-          <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
34
-            @click="handleComplete">审批
35
-          </el-button>
36
-          <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
37
-          <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
33
+          <el-row type="flex" justify="center">
34
+            <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
35
+              @click="handleComplete">审核通过
36
+            </el-button>
37
+            <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
38
+            <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
39
+          </el-row>
40
+
38
         </el-tab-pane>
41
         </el-tab-pane>
39
         <!--流程流转记录-->
42
         <!--流程流转记录-->
40
         <el-tab-pane label="流转记录" name="2">
43
         <el-tab-pane label="流转记录" name="2">
91
             <flow-user v-if="checkSendUser" :checkType="checkType" @handleUserSelect="handleUserSelect"></flow-user>
94
             <flow-user v-if="checkSendUser" :checkType="checkType" @handleUserSelect="handleUserSelect"></flow-user>
92
             <flow-role v-if="checkSendRole" @handleRoleSelect="handleRoleSelect"></flow-role>
95
             <flow-role v-if="checkSendRole" @handleRoleSelect="handleRoleSelect"></flow-role>
93
           </el-form-item>
96
           </el-form-item>
94
-          <el-form-item label="熟练程度" label-width="80px" prop="comment">
95
-            <el-checkbox v-model="taskForm.check">备选项</el-checkbox>
96
-          </el-form-item>
97
           <el-form-item label="处理意见" label-width="80px" prop="comment"
97
           <el-form-item label="处理意见" label-width="80px" prop="comment"
98
             :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]">
98
             :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]">
99
             <el-input type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见" />
99
             <el-input type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见" />
168
     FlowUser,
168
     FlowUser,
169
     FlowRole,
169
     FlowRole,
170
     ScTable
170
     ScTable
171
-},
171
+  },
172
   props: {},
172
   props: {},
173
   data() {
173
   data() {
174
     return {
174
     return {
342
     },
342
     },
343
     // 获取需要处理的表单表格信息
343
     // 获取需要处理的表单表格信息
344
     getAssessByAssessId(formId) {
344
     getAssessByAssessId(formId) {
345
-      getAssess(formId ).then(res => {
345
+      getAssess(formId).then(res => {
346
         let data = res.data;
346
         let data = res.data;
347
-        for(let d in data){
348
-          if(d.includes('role') || d.includes('familiar')){
347
+        for (let d in data) {
348
+          if (d.includes('role')) {
349
             data[d] = data[d].split(',')
349
             data[d] = data[d].split(',')
350
           }
350
           }
351
+          if (d.includes('familiar')) {
352
+            data[d] = parseInt(data[d])
353
+          }
351
         }
354
         }
352
         this.tableForm = data;
355
         this.tableForm = data;
356
+        this.tableForm.taskId = this.$route.query.taskId;
357
+        this.tableForm.taskName = this.$route.query.taskName;
353
         console.log(data);
358
         console.log(data);
354
       })
359
       })
355
     },
360
     },
361
     },
366
     },
362
     /** 用户审批任务 */
367
     /** 用户审批任务 */
363
     taskComplete() {
368
     taskComplete() {
369
+      debugger
364
       this.$set(this.taskForm.variables, "pass", "通过");
370
       this.$set(this.taskForm.variables, "pass", "通过");
365
       if (!this.taskForm.variables && this.checkSendUser) {
371
       if (!this.taskForm.variables && this.checkSendUser) {
366
         this.$modal.msgError("请选择流程接收人员!");
372
         this.$modal.msgError("请选择流程接收人员!");

+ 1
- 1
oa-ui/src/views/flowable/task/todo/index.vue Bestand weergeven

119
     // 跳转到处理页面
119
     // 跳转到处理页面
120
     handleProcess(row) {
120
     handleProcess(row) {
121
       getProcessVariables(row.taskId).then(res => {
121
       getProcessVariables(row.taskId).then(res => {
122
-        console.log(res);
122
+        console.log(row);
123
         this.$router.push({
123
         this.$router.push({
124
           path: '/flowable/task/todo/detail/index',
124
           path: '/flowable/task/todo/detail/index',
125
           query: {
125
           query: {

Laden…
Annuleren
Opslaan