Przeglądaj źródła

修改处理流程

余思翰 1 rok temu
rodzic
commit
6804ec9423

+ 5
- 5
oa-ui/src/assets/datas/SCContent.js Wyświetl plik

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-01-24 10:17:09
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-01-25 16:48:56
5
+ * @LastEditTime: 2024-02-01 14:49:31
6 6
  */
7 7
 export const SCContent = [
8 8
   {
@@ -300,19 +300,19 @@ export const SCContent = [
300 300
         unit: 'km²'
301 301
       }, {
302 302
         label: '1:1000',
303
-        value: 'f0602',
303
+        value: 'f1002',
304 304
         unit: 'km²'
305 305
       }, {
306 306
         label: '1:2000',
307
-        value: 'f0603',
307
+        value: 'f1003',
308 308
         unit: 'km²'
309 309
       }, {
310 310
         label: '1:5000',
311
-        value: 'f0604',
311
+        value: 'f1004',
312 312
         unit: 'km²'
313 313
       }, {
314 314
         label: '1:10000',
315
-        value: 'f0605',
315
+        value: 'f1005',
316 316
         unit: 'km²'
317 317
       }
318 318
     ]

+ 6
- 6
oa-ui/src/assets/styles/element-ui.scss Wyświetl plik

@@ -83,16 +83,16 @@
83 83
   box-sizing: content-box;
84 84
 }
85 85
 
86
-.el-menu--collapse
87
-  > div
88
-  > .el-submenu
89
-  > .el-submenu__title
90
-  .el-submenu__icon-arrow {
86
+.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
91 87
   display: none;
92 88
 }
89
+
93 90
 // .el-form-item{
94 91
 //   margin-bottom: 10px;
95 92
 // }
96 93
 // .el-form-item--small.el-form-item{
97 94
 //   margin-bottom: 10px;
98
-// }
95
+// }
96
+.el-scrollbar__wrap {
97
+  overflow-x: hidden;
98
+}

+ 15
- 5
oa-ui/src/views/flowable/form/scForm.vue Wyświetl plik

@@ -2,14 +2,15 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-01-19 16:29:01
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-01-30 17:34:24
5
+ * @LastEditTime: 2024-02-01 15:06:32
6 6
 -->
7 7
 <template>
8 8
   <div>
9 9
     <el-form ref="scform" :model="form">
10 10
       <el-form-item label="选择项目:">
11
-        <el-select v-model="form.projectId" placeholder="请选择项目">
12
-          <el-option v-for="item in projectList" :key="item.projectId" :label="item.projectNumber + item.projectName" :value="item.projectId">
11
+        <el-select v-model="form.projectId" placeholder="请选择项目" style="width:900px" @change="getProjectById(form.projectId)">
12
+          <el-option v-for="item in projectList" :key="item.projectId" :label="item.projectNumber + item.projectName"
13
+            :value="item.projectId">
13 14
           </el-option>
14 15
         </el-select>
15 16
       </el-form-item>
@@ -87,7 +88,7 @@
87 88
         </el-card>
88 89
       </el-row>
89 90
       <el-form-item label="其他工作:">
90
-        <el-input style="width:900px" type="textarea" :rows="2" placeholder="请输入内容" v-model="form['otherWork']">
91
+        <el-input style="width:900px" type="textarea" :rows="2" placeholder="有其他工作请在此写入内容" v-model="form['otherWork']">
91 92
         </el-input>
92 93
       </el-form-item>
93 94
       <el-row>
@@ -107,6 +108,7 @@ import ScTable from './scTable.vue';
107 108
 import { Snowflake } from '@/utils/snowFlake.js'
108 109
 import { submitAssess } from '@/api/oa/assess/assess.js'
109 110
 import { listProject } from '@/api/oa/project/project.js'
111
+import { getProject } from '@/api/oa/project/project'
110 112
 export default {
111 113
   dicts: ['cmc_skill'],
112 114
   components: { ScTable },
@@ -131,7 +133,7 @@ export default {
131 133
   },
132 134
   methods: {
133 135
     initForm() {
134
-      listProject({pageSize: 200}).then(res => {
136
+      listProject({ pageSize: 200 }).then(res => {
135 137
         this.projectList = res.rows;
136 138
       })
137 139
       for (let i = 0; i < SCContent.length + 1; i++) {
@@ -191,6 +193,14 @@ export default {
191 193
         }
192 194
       }
193 195
     },
196
+    getProjectById(id) {
197
+      getProject(id).then(res => {
198
+        if (res.data != undefined) {
199
+          this.form.projectName = res.data.projectName;
200
+          this.form.projectNumber = res.data.projectNumber;
201
+        }
202
+      })
203
+    },
194 204
     closeItem(item) {
195 205
       let index = this.checkedBtn.indexOf(item);
196 206
       let number;

+ 91
- 77
oa-ui/src/views/flowable/form/scTable.vue Wyświetl plik

@@ -4,9 +4,13 @@
4 4
     <table class="table">
5 5
       <tr>
6 6
         <td class="table-title">项目编号</td>
7
-        <td colspan="1"></td>
7
+        <td colspan="1">
8
+          {{ tableForm.projectNumber }}
9
+        </td>
8 10
         <td class="table-title">项目名称</td>
9
-        <td colspan="2"></td>
11
+        <td colspan="9" style="text-align:left;padding-left:10px;">
12
+          {{ tableForm.projectName }}
13
+        </td>
10 14
       </tr>
11 15
       <tr>
12 16
         <td class="table-title">姓名</td>
@@ -114,7 +118,8 @@
114 118
         <td rowspan="5">
115 119
           <el-radio-group v-model="tableForm.quality01" :disabled="!isDeptLeader">
116 120
             <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')">
121
+              <el-radio :key="dict.value" :label="dict.value"
122
+                @click.native.prevent="cancelSelect(dict.value, 'quality01')">
118 123
                 {{ dict.label }}
119 124
               </el-radio>
120 125
             </div>
@@ -123,14 +128,14 @@
123 128
         <td rowspan="5">
124 129
           <el-radio-group v-model="tableForm.skill01" :disabled="!isDeptLeader">
125 130
             <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')">
131
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill01')">
127 132
                 {{ dict.label }}
128 133
               </el-radio>
129 134
             </div>
130 135
           </el-radio-group>
131 136
         </td>
132 137
         <td rowspan="5">
133
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice01" :disabled="!isDeptLeader"> 
138
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice01" :disabled="!isDeptLeader">
134 139
           </el-input>
135 140
         </td>
136 141
       </tr>
@@ -183,7 +188,8 @@
183 188
         <td rowspan="10">
184 189
           <el-radio-group v-model="tableForm.quality02" :disabled="!isDeptLeader">
185 190
             <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')">
191
+              <el-radio :key="dict.value" :label="dict.value"
192
+                @click.native.prevent="cancelSelect(dict.value, 'quality02')">
187 193
                 {{ dict.label }}
188 194
               </el-radio>
189 195
             </div>
@@ -192,14 +198,14 @@
192 198
         <td rowspan="10">
193 199
           <el-radio-group v-model="tableForm.skill02" :disabled="!isDeptLeader">
194 200
             <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')">
201
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill02')">
196 202
                 {{ dict.label }}
197 203
               </el-radio>
198 204
             </div>
199 205
           </el-radio-group>
200 206
         </td>
201 207
         <td rowspan="10">
202
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice02" :disabled="!isDeptLeader"> 
208
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice02" :disabled="!isDeptLeader">
203 209
           </el-input>
204 210
         </td>
205 211
       </tr>
@@ -275,7 +281,8 @@
275 281
         <td rowspan="5">
276 282
           <el-radio-group v-model="tableForm.quality03" :disabled="!isDeptLeader">
277 283
             <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')">
284
+              <el-radio :key="dict.value" :label="dict.value"
285
+                @click.native.prevent="cancelSelect(dict.value, 'quality03')">
279 286
                 {{ dict.label }}
280 287
               </el-radio>
281 288
             </div>
@@ -284,14 +291,14 @@
284 291
         <td rowspan="5">
285 292
           <el-radio-group v-model="tableForm.skill03" :disabled="!isDeptLeader">
286 293
             <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')">
294
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill03')">
288 295
                 {{ dict.label }}
289 296
               </el-radio>
290 297
             </div>
291 298
           </el-radio-group>
292 299
         </td>
293 300
         <td rowspan="5">
294
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice03" :disabled="!isDeptLeader"> 
301
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice03" :disabled="!isDeptLeader">
295 302
           </el-input>
296 303
         </td>
297 304
       </tr>
@@ -342,7 +349,8 @@
342 349
         <td rowspan="4">
343 350
           <el-radio-group v-model="tableForm.quality04" :disabled="!isDeptLeader">
344 351
             <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')">
352
+              <el-radio :key="dict.value" :label="dict.value"
353
+                @click.native.prevent="cancelSelect(dict.value, 'quality04')">
346 354
                 {{ dict.label }}
347 355
               </el-radio>
348 356
             </div>
@@ -351,14 +359,14 @@
351 359
         <td rowspan="4">
352 360
           <el-radio-group v-model="tableForm.skill04" :disabled="!isDeptLeader">
353 361
             <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')">
362
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill04')">
355 363
                 {{ dict.label }}
356 364
               </el-radio>
357 365
             </div>
358 366
           </el-radio-group>
359 367
         </td>
360 368
         <td rowspan="4">
361
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice04" :disabled="!isDeptLeader"> 
369
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice04" :disabled="!isDeptLeader">
362 370
           </el-input>
363 371
         </td>
364 372
       </tr>
@@ -401,7 +409,8 @@
401 409
         <td rowspan="6">
402 410
           <el-radio-group v-model="tableForm.quality05" :disabled="!isDeptLeader">
403 411
             <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')">
412
+              <el-radio :key="dict.value" :label="dict.value"
413
+                @click.native.prevent="cancelSelect(dict.value, 'quality05')">
405 414
                 {{ dict.label }}
406 415
               </el-radio>
407 416
             </div>
@@ -410,14 +419,14 @@
410 419
         <td rowspan="6">
411 420
           <el-radio-group v-model="tableForm.skill05" :disabled="!isDeptLeader">
412 421
             <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')">
422
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill05')">
414 423
                 {{ dict.label }}
415 424
               </el-radio>
416 425
             </div>
417 426
           </el-radio-group>
418 427
         </td>
419 428
         <td rowspan="6">
420
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice05" :disabled="!isDeptLeader"> 
429
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice05" :disabled="!isDeptLeader">
421 430
           </el-input>
422 431
         </td>
423 432
       </tr>
@@ -469,7 +478,8 @@
469 478
         <td rowspan="6">
470 479
           <el-radio-group v-model="tableForm.quality06" :disabled="!isDeptLeader">
471 480
             <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')">
481
+              <el-radio :key="dict.value" :label="dict.value"
482
+                @click.native.prevent="cancelSelect(dict.value, 'quality06')">
473 483
                 {{ dict.label }}
474 484
               </el-radio>
475 485
             </div>
@@ -478,14 +488,14 @@
478 488
         <td rowspan="6">
479 489
           <el-radio-group v-model="tableForm.skill06" :disabled="!isDeptLeader">
480 490
             <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')">
491
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill06')">
482 492
                 {{ dict.label }}
483 493
               </el-radio>
484 494
             </div>
485 495
           </el-radio-group>
486 496
         </td>
487 497
         <td rowspan="6">
488
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice06" :disabled="!isDeptLeader"> 
498
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice06" :disabled="!isDeptLeader">
489 499
           </el-input>
490 500
         </td>
491 501
       </tr>
@@ -537,7 +547,8 @@
537 547
         <td rowspan="4">
538 548
           <el-radio-group v-model="tableForm.quality07" :disabled="!isDeptLeader">
539 549
             <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')">
550
+              <el-radio :key="dict.value" :label="dict.value"
551
+                @click.native.prevent="cancelSelect(dict.value, 'quality07')">
541 552
                 {{ dict.label }}
542 553
               </el-radio>
543 554
             </div>
@@ -546,14 +557,14 @@
546 557
         <td rowspan="4">
547 558
           <el-radio-group v-model="tableForm.skill07" :disabled="!isDeptLeader">
548 559
             <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')">
560
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill07')">
550 561
                 {{ dict.label }}
551 562
               </el-radio>
552 563
             </div>
553 564
           </el-radio-group>
554 565
         </td>
555 566
         <td rowspan="4">
556
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice07" :disabled="!isDeptLeader"> 
567
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice07" :disabled="!isDeptLeader">
557 568
           </el-input>
558 569
         </td>
559 570
       </tr>
@@ -596,7 +607,8 @@
596 607
         <td rowspan="3">
597 608
           <el-radio-group v-model="tableForm.quality08" :disabled="!isDeptLeader">
598 609
             <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')">
610
+              <el-radio :key="dict.value" :label="dict.value"
611
+                @click.native.prevent="cancelSelect(dict.value, 'quality08')">
600 612
                 {{ dict.label }}
601 613
               </el-radio>
602 614
             </div>
@@ -605,14 +617,14 @@
605 617
         <td rowspan="3">
606 618
           <el-radio-group v-model="tableForm.skill08" :disabled="!isDeptLeader">
607 619
             <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')">
620
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill08')">
609 621
                 {{ dict.label }}
610 622
               </el-radio>
611 623
             </div>
612 624
           </el-radio-group>
613 625
         </td>
614
-        <td  rowspan="3">
615
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice08" :disabled="!isDeptLeader"> 
626
+        <td rowspan="3">
627
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice08" :disabled="!isDeptLeader">
616 628
           </el-input>
617 629
         </td>
618 630
       </tr>
@@ -651,7 +663,8 @@
651 663
         <td rowspan="6">
652 664
           <el-radio-group v-model="tableForm.quality09" :disabled="!isDeptLeader">
653 665
             <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')">
666
+              <el-radio :key="dict.value" :label="dict.value"
667
+                @click.native.prevent="cancelSelect(dict.value, 'quality09')">
655 668
                 {{ dict.label }}
656 669
               </el-radio>
657 670
             </div>
@@ -660,14 +673,14 @@
660 673
         <td rowspan="6">
661 674
           <el-radio-group v-model="tableForm.skill09" :disabled="!isDeptLeader">
662 675
             <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')">
676
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill09')">
664 677
                 {{ dict.label }}
665 678
               </el-radio>
666 679
             </div>
667 680
           </el-radio-group>
668 681
         </td>
669 682
         <td rowspan="6">
670
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice09" :disabled="!isDeptLeader"> 
683
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice09" :disabled="!isDeptLeader">
671 684
           </el-input>
672 685
         </td>
673 686
       </tr>
@@ -697,73 +710,69 @@
697 710
         <td>{{ tableForm.f0906 }}</td>
698 711
       </tr>
699 712
       <tr>
700
-        <td rowspan="6">内业-激光制图</td>
701
-        <td>1:200</td>
713
+        <td rowspan="5">内业-激光制图</td>
714
+        <td>1:500</td>
702 715
         <td>km²</td>
703 716
         <td>{{ tableForm.f1001 }}</td>
704
-        <td rowspan="6">
717
+        <td rowspan="5">
705 718
           <el-radio-group v-model="tableForm.familiar10" disabled>
706 719
             <div><el-radio :label="0">生疏</el-radio></div>
707 720
             <div><el-radio :label="2">熟练</el-radio></div>
708 721
           </el-radio-group>
709 722
         </td>
710
-        <td rowspan="6">
723
+        <td rowspan="5">
711 724
           <el-checkbox-group v-model="form.role10" disabled>
712 725
             <div><el-checkbox label="25" style="display:inline-block">作业</el-checkbox></div>
713 726
             <div><el-checkbox label="26" style="display:inline-block">检查</el-checkbox></div>
714 727
             <div><el-checkbox label="27" style="display:inline-block">负责</el-checkbox></div>
715 728
           </el-checkbox-group>
716 729
         </td>
717
-        <td rowspan="6">
730
+        <td rowspan="5">
718 731
           <div>{{ tableForm.remark10 }}</div>
719 732
         </td>
720
-        <td rowspan="6">
733
+        <td rowspan="5">
721 734
           <el-radio-group v-model="tableForm.quality10" :disabled="!isDeptLeader">
722 735
             <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')">
736
+              <el-radio :key="dict.value" :label="dict.value"
737
+                @click.native.prevent="cancelSelect(dict.value, 'quality10')">
724 738
                 {{ dict.label }}
725 739
               </el-radio>
726 740
             </div>
727 741
           </el-radio-group>
728 742
         </td>
729
-        <td rowspan="6">
743
+        <td rowspan="5">
730 744
           <el-radio-group v-model="tableForm.skill10" :disabled="!isDeptLeader">
731 745
             <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')">
746
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill10')">
733 747
                 {{ dict.label }}
734 748
               </el-radio>
735 749
             </div>
736 750
           </el-radio-group>
737 751
         </td>
738
-        <td rowspan="6">
739
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice10" :disabled="!isDeptLeader"> 
752
+        <td rowspan="5">
753
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice10" :disabled="!isDeptLeader">
740 754
           </el-input>
741 755
         </td>
742 756
       </tr>
743
-      <tr>
744
-        <td>1:500</td>
745
-        <td>km²</td>
746
-        <td>{{ tableForm.f1002 }}</td>
747
-      </tr>
748 757
       <tr>
749 758
         <td>1:1000</td>
750 759
         <td>km²</td>
751
-        <td>{{ tableForm.f1003 }}</td>
760
+        <td>{{ tableForm.f1002 }}</td>
752 761
       </tr>
753 762
       <tr>
754 763
         <td>1:2000</td>
755 764
         <td>km²</td>
756
-        <td>{{ tableForm.f1004 }}</td>
765
+        <td>{{ tableForm.f1003 }}</td>
757 766
       </tr>
758 767
       <tr>
759 768
         <td>1:5000</td>
760 769
         <td>km²</td>
761
-        <td>{{ tableForm.f1005 }}</td>
770
+        <td>{{ tableForm.f1004 }}</td>
762 771
       </tr>
763 772
       <tr>
764 773
         <td>1:10000</td>
765 774
         <td>km²</td>
766
-        <td>{{ tableForm.f1006 }}</td>
775
+        <td>{{ tableForm.f1005 }}</td>
767 776
       </tr>
768 777
       <tr>
769 778
         <td rowspan="6">内业-编图</td>
@@ -789,7 +798,8 @@
789 798
         <td rowspan="6">
790 799
           <el-radio-group v-model="tableForm.quality11" :disabled="!isDeptLeader">
791 800
             <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')">
801
+              <el-radio :key="dict.value" :label="dict.value"
802
+                @click.native.prevent="cancelSelect(dict.value, 'quality11')">
793 803
                 {{ dict.label }}
794 804
               </el-radio>
795 805
             </div>
@@ -798,14 +808,14 @@
798 808
         <td rowspan="6">
799 809
           <el-radio-group v-model="tableForm.skill11" :disabled="!isDeptLeader">
800 810
             <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')">
811
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill11')">
802 812
                 {{ dict.label }}
803 813
               </el-radio>
804 814
             </div>
805 815
           </el-radio-group>
806 816
         </td>
807 817
         <td rowspan="6">
808
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice11" :disabled="!isDeptLeader"> 
818
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice11" :disabled="!isDeptLeader">
809 819
           </el-input>
810 820
         </td>
811 821
       </tr>
@@ -858,7 +868,8 @@
858 868
         <td rowspan="5">
859 869
           <el-radio-group v-model="tableForm.quality12" :disabled="!isDeptLeader">
860 870
             <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')">
871
+              <el-radio :key="dict.value" :label="dict.value"
872
+                @click.native.prevent="cancelSelect(dict.value, 'quality12')">
862 873
                 {{ dict.label }}
863 874
               </el-radio>
864 875
             </div>
@@ -867,14 +878,14 @@
867 878
         <td rowspan="5">
868 879
           <el-radio-group v-model="tableForm.skill12" :disabled="!isDeptLeader">
869 880
             <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')">
881
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill12')">
871 882
                 {{ dict.label }}
872 883
               </el-radio>
873 884
             </div>
874 885
           </el-radio-group>
875 886
         </td>
876 887
         <td rowspan="5">
877
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice12" :disabled="!isDeptLeader"> 
888
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice12" :disabled="!isDeptLeader">
878 889
           </el-input>
879 890
         </td>
880 891
       </tr>
@@ -922,7 +933,8 @@
922 933
         <td rowspan="6">
923 934
           <el-radio-group v-model="tableForm.quality13" :disabled="!isDeptLeader">
924 935
             <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')">
936
+              <el-radio :key="dict.value" :label="dict.value"
937
+                @click.native.prevent="cancelSelect(dict.value, 'quality13')">
926 938
                 {{ dict.label }}
927 939
               </el-radio>
928 940
             </div>
@@ -931,14 +943,14 @@
931 943
         <td rowspan="6">
932 944
           <el-radio-group v-model="tableForm.skill13" :disabled="!isDeptLeader">
933 945
             <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')">
946
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill13')">
935 947
                 {{ dict.label }}
936 948
               </el-radio>
937 949
             </div>
938 950
           </el-radio-group>
939 951
         </td>
940 952
         <td rowspan="6">
941
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice13" :disabled="!isDeptLeader"> 
953
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice13" :disabled="!isDeptLeader">
942 954
           </el-input>
943 955
         </td>
944 956
       </tr>
@@ -991,7 +1003,8 @@
991 1003
         <td rowspan="6">
992 1004
           <el-radio-group v-model="tableForm.quality14" :disabled="!isDeptLeader">
993 1005
             <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')">
1006
+              <el-radio :key="dict.value" :label="dict.value"
1007
+                @click.native.prevent="cancelSelect(dict.value, 'quality14')">
995 1008
                 {{ dict.label }}
996 1009
               </el-radio>
997 1010
             </div>
@@ -1000,14 +1013,14 @@
1000 1013
         <td rowspan="6">
1001 1014
           <el-radio-group v-model="tableForm.skill14" :disabled="!isDeptLeader">
1002 1015
             <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')">
1016
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill14')">
1004 1017
                 {{ dict.label }}
1005 1018
               </el-radio>
1006 1019
             </div>
1007 1020
           </el-radio-group>
1008 1021
         </td>
1009 1022
         <td rowspan="6">
1010
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice14" :disabled="!isDeptLeader"> 
1023
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice14" :disabled="!isDeptLeader">
1011 1024
           </el-input>
1012 1025
         </td>
1013 1026
       </tr>
@@ -1060,7 +1073,8 @@
1060 1073
         <td rowspan="6">
1061 1074
           <el-radio-group v-model="tableForm.quality15" :disabled="!isDeptLeader">
1062 1075
             <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')">
1076
+              <el-radio :key="dict.value" :label="dict.value"
1077
+                @click.native.prevent="cancelSelect(dict.value, 'quality15')">
1064 1078
                 {{ dict.label }}
1065 1079
               </el-radio>
1066 1080
             </div>
@@ -1069,14 +1083,14 @@
1069 1083
         <td rowspan="6">
1070 1084
           <el-radio-group v-model="tableForm.skill15" :disabled="!isDeptLeader">
1071 1085
             <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')">
1086
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill15')">
1073 1087
                 {{ dict.label }}
1074 1088
               </el-radio>
1075 1089
             </div>
1076 1090
           </el-radio-group>
1077 1091
         </td>
1078 1092
         <td rowspan="6">
1079
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice15" :disabled="!isDeptLeader"> 
1093
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice15" :disabled="!isDeptLeader">
1080 1094
           </el-input>
1081 1095
         </td>
1082 1096
       </tr>
@@ -1129,7 +1143,8 @@
1129 1143
         <td rowspan="4">
1130 1144
           <el-radio-group v-model="tableForm.quality16" :disabled="!isDeptLeader">
1131 1145
             <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')">
1146
+              <el-radio :key="dict.value" :label="dict.value"
1147
+                @click.native.prevent="cancelSelect(dict.value, 'quality16')">
1133 1148
                 {{ dict.label }}
1134 1149
               </el-radio>
1135 1150
             </div>
@@ -1138,14 +1153,14 @@
1138 1153
         <td rowspan="4">
1139 1154
           <el-radio-group v-model="tableForm.skill16" :disabled="!isDeptLeader">
1140 1155
             <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')">
1156
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill16')">
1142 1157
                 {{ dict.label }}
1143 1158
               </el-radio>
1144 1159
             </div>
1145 1160
           </el-radio-group>
1146 1161
         </td>
1147 1162
         <td rowspan="4">
1148
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice16" :disabled="!isDeptLeader"> 
1163
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice16" :disabled="!isDeptLeader">
1149 1164
           </el-input>
1150 1165
         </td>
1151 1166
       </tr>
@@ -1187,7 +1202,8 @@
1187 1202
         <td rowspan="5">
1188 1203
           <el-radio-group v-model="tableForm.quality17" :disabled="!isDeptLeader">
1189 1204
             <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')">
1205
+              <el-radio :key="dict.value" :label="dict.value"
1206
+                @click.native.prevent="cancelSelect(dict.value, 'quality17')">
1191 1207
                 {{ dict.label }}
1192 1208
               </el-radio>
1193 1209
             </div>
@@ -1196,14 +1212,14 @@
1196 1212
         <td rowspan="5">
1197 1213
           <el-radio-group v-model="tableForm.skill17" :disabled="!isDeptLeader">
1198 1214
             <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')">
1215
+              <el-radio :key="dict.value" :label="dict.value" @click.native.prevent="cancelSelect(dict.value, 'skill17')">
1200 1216
                 {{ dict.label }}
1201 1217
               </el-radio>
1202 1218
             </div>
1203 1219
           </el-radio-group>
1204 1220
         </td>
1205 1221
         <td rowspan="5">
1206
-          <el-input type="textarea" :rows="4"  v-model="tableForm.advice17" :disabled="!isDeptLeader"> 
1222
+          <el-input type="textarea" :rows="4" v-model="tableForm.advice17" :disabled="!isDeptLeader">
1207 1223
           </el-input>
1208 1224
         </td>
1209 1225
       </tr>
@@ -1257,7 +1273,6 @@ export default {
1257 1273
   watch: {
1258 1274
     tableForm: function (newval, oldval) {
1259 1275
       this.formatForm();
1260
-      console.log(newval);
1261 1276
     }
1262 1277
   },
1263 1278
   data() {
@@ -1306,12 +1321,11 @@ export default {
1306 1321
     submit() {
1307 1322
       this.$emit('submit', this.tableForm);
1308 1323
     },
1309
-    cancelSelect(value,name){
1310
-      debugger
1311
-      if(this.tableForm[name] == value){
1324
+    cancelSelect(value, name) {
1325
+      if (this.tableForm[name] == value) {
1312 1326
         this.tableForm[name] = null
1313
-      }else{
1314
-        if(this.tableForm[name] !== undefined)
1327
+      } else {
1328
+        if (this.tableForm[name] !== undefined)
1315 1329
           this.tableForm[name] = value
1316 1330
       }
1317 1331
     }

+ 3
- 1
oa-ui/src/views/flowable/task/myProcess/index.vue Wyświetl plik

@@ -97,8 +97,10 @@
97 97
       <pagination v-show="processTotal > 0" :total="processTotal" :page.sync="queryProcessParams.pageNum"
98 98
         :limit.sync="queryProcessParams.pageSize" @pagination="listDefinition" />
99 99
     </el-dialog>
100
-    <el-dialog title="详情" :visible.sync="detailsOpen" width="60%" append-to-body>
100
+    <el-dialog title="流程详情" :visible.sync="detailsOpen" append-to-body width="600px">
101
+      <el-scrollbar style="height: 600px;">
101 102
       <RowDetail :rows="clickRow"></RowDetail>
103
+      </el-scrollbar>
102 104
     </el-dialog>
103 105
   </div>
104 106
 </template>

+ 21
- 7
oa-ui/src/views/flowable/task/myProcess/send/rowDetail.vue Wyświetl plik

@@ -2,16 +2,17 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-01-30 09:56:12
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-01-30 10:20:24
5
+ * @LastEditTime: 2024-02-01 16:33:48
6 6
 -->
7 7
 <template>
8 8
   <div>
9
-    <el-col :span="16" :offset="4">
9
+    <el-col :span="22" v-loading="loading">
10 10
       <div class="block">
11
-        <el-timeline>
11
+        <el-timeline class="block">
12 12
           <el-timeline-item v-for="(item, index ) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)"
13
-            :color="setColor(item.finishTime)">
13
+            size="large" :color="setColor(item.finishTime)">
14 14
             <p style="font-weight: 700">{{ item.taskName }}</p>
15
+
15 16
             <el-card :body-style="{ padding: '10px' }">
16 17
               <el-descriptions class="margin-top" :column="1" size="small" border>
17 18
                 <el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
@@ -49,7 +50,7 @@
49 50
 </template>
50 51
 
51 52
 <script>
52
-import {flowRecord} from "@/api/flowable/finished";
53
+import { flowRecord } from "@/api/flowable/finished";
53 54
 export default {
54 55
   props: {
55 56
     rows: {
@@ -57,12 +58,18 @@ export default {
57 58
       default: {}
58 59
     }
59 60
   },
61
+  watch: {
62
+    rows: function (newval, oldval) {
63
+      this.getFlowRecordList();
64
+    }
65
+  },
60 66
   created() {
61 67
     this.getFlowRecordList();
62 68
   },
63 69
   data() {
64 70
     return {
65 71
       flowRecordList: [], // 流程流转数据
72
+      loading: true
66 73
     }
67 74
   },
68 75
   methods: {
@@ -91,16 +98,23 @@ export default {
91 98
     },
92 99
     /** 流程流转记录 */
93 100
     getFlowRecordList() {
101
+      this.loading = true
94 102
       const that = this
95 103
       const params = { procInsId: this.rows.procInsId, deployId: this.rows.deployId }
96 104
       flowRecord(params).then(res => {
97 105
         that.flowRecordList = res.data.flowList;
106
+        console.log(that.flowRecordList);
107
+        this.loading = false
98 108
       }).catch(res => {
99
-        
109
+
100 110
       })
101 111
     },
102 112
   },
103 113
 }
104 114
 </script>
105 115
 
106
-<style lang="scss" scoped></style>
116
+<style lang="scss" scoped>
117
+.block {
118
+  display: block;
119
+}
120
+</style>

+ 68
- 38
oa-ui/src/views/flowable/task/todo/detail/index.vue Wyświetl plik

@@ -20,9 +20,9 @@
20 20
               <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
21 21
                 @click="handleComplete">审批
22 22
               </el-button>
23
-                             <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">委派</el-button>
24
-                             <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign">转办</el-button>
25
-                             <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">签收</el-button>
23
+              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">委派</el-button>
24
+              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign">转办</el-button>
25
+              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">签收</el-button>
26 26
               <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
27 27
               <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
28 28
             </div>
@@ -89,7 +89,7 @@
89 89
       </el-tabs>
90 90
       <!--审批任务-->
91 91
       <el-dialog :title="completeTitle" :visible.sync="completeOpen" width="60%" append-to-body>
92
-        <el-form ref="taskForm" :model="taskForm">
92
+        <!-- <el-form ref="taskForm" :model="taskForm">
93 93
           <el-form-item prop="targetKey">
94 94
             <flow-user v-if="checkSendUser" :checkType="checkType" @handleUserSelect="handleUserSelect"></flow-user>
95 95
             <flow-role v-if="checkSendRole" @handleRoleSelect="handleRoleSelect"></flow-role>
@@ -98,7 +98,7 @@
98 98
             :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]">
99 99
             <el-input type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见" />
100 100
           </el-form-item>
101
-        </el-form>
101
+        </el-form> -->
102 102
         <span slot="footer" class="dialog-footer">
103 103
           <el-button @click="completeOpen = false">取 消</el-button>
104 104
           <el-button type="primary" @click="taskComplete">确 定</el-button>
@@ -360,44 +360,73 @@ export default {
360 360
     },
361 361
     /** 加载审批任务弹框 */
362 362
     handleComplete() {
363
-      // this.completeOpen = true;
364
-      // this.completeTitle = "流程审批";
365
-      this.submitForm(null);
363
+      this.completeOpen = true;
364
+      this.completeTitle = "流程审批";
365
+      // this.submitForm(null);
366 366
     },
367 367
     /** 用户审批任务 */
368 368
     taskComplete() {
369 369
       debugger
370
-      this.$set(this.taskForm.variables, "pass", "通过");
371
-      if (!this.taskForm.variables && this.checkSendUser) {
372
-        this.$modal.msgError("请选择流程接收人员!");
373
-        return;
374
-      }
375
-      if (!this.taskForm.variables && this.checkSendRole) {
376
-        this.$modal.msgError("请选择流程接收角色组!");
377
-        return;
378
-      }
379
-      if (!this.taskForm.comment) {
380
-        this.$modal.msgError("请输入审批意见!");
381
-        return;
382
-      }
383
-      if (this.taskForm && this.formKeyExist) {
384
-        // 表单是否禁用
385
-        this.taskForm.formData.formData.disabled = true;
386
-        // 是否显示按钮
387
-        this.taskForm.formData.formData.formBtns = false;
388
-        this.taskForm.variables = Object.assign({}, this.taskForm.variables, this.taskForm.formData.valData);
389
-        this.taskForm.variables.variables = this.taskForm.formData.formData;
390
-        complete(this.taskForm).then(response => {
391
-          this.$modal.msgSuccess(response.msg);
392
-          this.goBack();
393
-        });
394
-      } else {
395
-        // 流程设计人员类型配置为固定人员接收任务时,直接提交任务到下一步
396
-        complete(this.taskForm).then(response => {
397
-          this.$modal.msgSuccess(response.msg);
398
-          this.goBack();
399
-        });
370
+      if(this.taskForm.variables === null){
371
+        this.taskForm.variables= {};
400 372
       }
373
+      getNextFlowNode({taskId: this.taskForm.taskId}).then(res => {
374
+        const data = res.data;
375
+        debugger
376
+        // this.taskForm.formData = formData;
377
+        if (data) {
378
+          if (data.dataType === 'dynamic') {
379
+            if (data.type === 'assignee') { // 指定人员
380
+              this.checkSendUser = true;
381
+              this.checkType = "single";
382
+            } else if (data.type === 'candidateUsers') {  // 候选人员(多个)
383
+              this.checkSendUser = true;
384
+              this.checkType = "multiple";
385
+            } else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务)
386
+              this.checkSendRole = true;
387
+            } else { // 会签
388
+              // 流程设计指定的 elementVariable 作为会签人员列表
389
+              this.multiInstanceVars = data.vars;
390
+              this.checkSendUser = true;
391
+              this.checkType = "multiple";
392
+            }
393
+          }
394
+        }
395
+        this.completeOpen = true;
396
+        this.completeTitle = "流程审批";
397
+      })
398
+
399
+      // this.$set(this.taskForm.variables, "pass", "通过");
400
+      // if (!this.taskForm.variables && this.checkSendUser) {
401
+      //   this.$modal.msgError("请选择流程接收人员!");
402
+      //   return;
403
+      // }
404
+      // if (!this.taskForm.variables && this.checkSendRole) {
405
+      //   this.$modal.msgError("请选择流程接收角色组!");
406
+      //   return;
407
+      // }
408
+      // if (!this.taskForm.comment) {
409
+      //   this.$modal.msgError("请输入审批意见!");
410
+      //   return;
411
+      // }
412
+      // if (this.taskForm && this.formKeyExist) {
413
+      //   // 表单是否禁用
414
+      //   this.taskForm.formData.formData.disabled = true;
415
+      //   // 是否显示按钮
416
+      //   this.taskForm.formData.formData.formBtns = false;
417
+      //   this.taskForm.variables = Object.assign({}, this.taskForm.variables, this.taskForm.formData.valData);
418
+      //   this.taskForm.variables.variables = this.taskForm.formData.formData;
419
+      //   complete(this.taskForm).then(response => {
420
+      //     this.$modal.msgSuccess(response.msg);
421
+      //     this.goBack();
422
+      //   });
423
+      // } else {
424
+      //   // 流程设计人员类型配置为固定人员接收任务时,直接提交任务到下一步
425
+      //   complete(this.taskForm).then(response => {
426
+      //     this.$modal.msgSuccess(response.msg);
427
+      //     this.goBack();
428
+      //   });
429
+      // }
401 430
     },
402 431
     /** 委派任务 */
403 432
     handleDelegate() {
@@ -483,6 +512,7 @@ export default {
483 512
       const params = { taskId: this.taskForm.taskId }
484 513
       getNextFlowNode(params).then(res => {
485 514
         const data = res.data;
515
+        debugger
486 516
         this.taskForm.formData = formData;
487 517
         if (data) {
488 518
           if (data.dataType === 'dynamic') {

Ładowanie…
Anuluj
Zapisz