Quellcode durchsuchen

修改生产考核表选项的值不能传递的问题

余思翰 vor 1 Jahr
Ursprung
Commit
6ccf5895b8

+ 2
- 3
oa-ui/src/views/flowable/form/cwForm.vue Datei anzeigen

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-01-19 16:29:01
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-02-21 10:54:40
5
+ * @LastEditTime: 2024-02-23 09:48:28
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -127,12 +127,11 @@ export default {
127 127
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
128 128
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
129 129
         tableForm.disabled = true;
130
-        console.log(tableForm);
131 130
         let formData = new FormData();
132 131
         let form = JSON.stringify(tableForm);
133 132
         formData.append("form", form);
134 133
         submitAssess(formData).then(res => {
135
-        debugger
134
+        
136 135
           this.taskOpen = false;
137 136
           this.$emit('submit', tableForm);
138 137
         });

+ 65
- 34
oa-ui/src/views/flowable/form/cwTable.vue Datei anzeigen

@@ -60,7 +60,8 @@
60 60
       </tr>
61 61
       <tr>
62 62
         <td class="table-title">入职年月</td>
63
-        <td style="text-align:left;padding-left:10px;">{{ tableForm.entryDate != null ? tableForm.entryDate.substring(0,10):tableForm.entryDate }}</td>
63
+        <td style="text-align:left;padding-left:10px;">{{ tableForm.entryDate != null ?
64
+          tableForm.entryDate.substring(0, 10) : tableForm.entryDate }}</td>
64 65
         <td class="table-title">年龄</td>
65 66
         <td style="text-align:left;padding-left:10px;">{{ tableForm.age }}</td>
66 67
       </tr>
@@ -89,15 +90,15 @@
89 90
         </td>
90 91
         <td rowspan="8">
91 92
           <el-radio-group v-model="tableForm.familiar01" :disabled="!isStaff">
92
-            <div><el-radio :label="0">生疏</el-radio></div>
93
-            <div><el-radio :label="2">熟练</el-radio></div>
94
-            <div><el-radio :label="3">精通</el-radio></div>
93
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar01',!isStaff)">生疏</el-radio></div>
94
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar01',!isStaff)">熟练</el-radio></div>
95
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar01',!isStaff)">精通</el-radio></div>
95 96
           </el-radio-group>
96 97
         </td>
97 98
 
98 99
         <td rowspan="8">
99 100
           <div v-if="!isStaff">{{ tableForm.remark01 }}</div>
100
-          <el-input v-if="isStaff" v-model="tableForm.remark01"  type="textarea" :rows="4"></el-input>
101
+          <el-input v-if="isStaff" v-model="tableForm.remark01" type="textarea" :rows="4"></el-input>
101 102
         </td>
102 103
         <td rowspan="8">
103 104
           <el-radio-group v-model="tableForm.workload01" :disabled="!isPiLeader">
@@ -194,14 +195,14 @@
194 195
         </td>
195 196
         <td rowspan="3">
196 197
           <el-radio-group v-model="tableForm.familiar02" :disabled="!isStaff">
197
-            <div><el-radio :label="0">生疏</el-radio></div>
198
-            <div><el-radio :label="2">熟练</el-radio></div>
199
-            <div><el-radio :label="3">精通</el-radio></div>
198
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar02',!isStaff)">生疏</el-radio></div>
199
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar02',!isStaff)">熟练</el-radio></div>
200
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar02',!isStaff)">精通</el-radio></div>
200 201
           </el-radio-group>
201 202
         </td>
202 203
         <td rowspan="3">
203 204
           <div v-if="!isStaff">{{ tableForm.remark02 }}</div>
204
-          <el-input v-if="isStaff" v-model="tableForm.remark02"  type="textarea" :rows="4"></el-input>
205
+          <el-input v-if="isStaff" v-model="tableForm.remark02" type="textarea" :rows="4"></el-input>
205 206
         </td>
206 207
         <td rowspan="3">
207 208
           <el-radio-group v-model="tableForm.workload02" :disabled="!isPiLeader">
@@ -257,14 +258,14 @@
257 258
         </td>
258 259
         <td rowspan="7">
259 260
           <el-radio-group v-model="tableForm.familiar03" :disabled="!isStaff">
260
-            <div><el-radio :label="0">生疏</el-radio></div>
261
-            <div><el-radio :label="2">熟练</el-radio></div>
262
-            <div><el-radio :label="3">精通</el-radio></div>
261
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar03',!isStaff)">生疏</el-radio></div>
262
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar03',!isStaff)">熟练</el-radio></div>
263
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar03',!isStaff)">精通</el-radio></div>
263 264
           </el-radio-group>
264 265
         </td>
265 266
         <td rowspan="7">
266 267
           <div v-if="!isStaff">{{ tableForm.remark03 }}</div>
267
-          <el-input v-if="isStaff" v-model="tableForm.remark03"  type="textarea" :rows="4"></el-input>
268
+          <el-input v-if="isStaff" v-model="tableForm.remark03" type="textarea" :rows="4"></el-input>
268 269
         </td>
269 270
         <td rowspan="7">
270 271
           <el-radio-group v-model="tableForm.workload03" :disabled="!isPiLeader">
@@ -350,14 +351,14 @@
350 351
         </td>
351 352
         <td rowspan="8">
352 353
           <el-radio-group v-model="tableForm.familiar04" :disabled="!isStaff">
353
-            <div><el-radio :label="0">生疏</el-radio></div>
354
-            <div><el-radio :label="2">熟练</el-radio></div>
355
-            <div><el-radio :label="3">精通</el-radio></div>
354
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar04',!isStaff)">生疏</el-radio></div>
355
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar04',!isStaff)">熟练</el-radio></div>
356
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar04',!isStaff)">精通</el-radio></div>
356 357
           </el-radio-group>
357 358
         </td>
358 359
         <td rowspan="8">
359 360
           <div v-if="!isStaff">{{ tableForm.remark04 }}</div>
360
-          <el-input v-if="isStaff" v-model="tableForm.remark04"  type="textarea" :rows="4"></el-input>
361
+          <el-input v-if="isStaff" v-model="tableForm.remark04" type="textarea" :rows="4"></el-input>
361 362
         </td>
362 363
         <td rowspan="8">
363 364
           <el-radio-group v-model="tableForm.workload04" :disabled="!isPiLeader">
@@ -451,14 +452,14 @@
451 452
         </td>
452 453
         <td rowspan="3">
453 454
           <el-radio-group v-model="tableForm.familiar05" :disabled="!isStaff">
454
-            <div><el-radio :label="0">生疏</el-radio></div>
455
-            <div><el-radio :label="2">熟练</el-radio></div>
456
-            <div><el-radio :label="3">精通</el-radio></div>
455
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">生疏</el-radio></div>
456
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">熟练</el-radio></div>
457
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">精通</el-radio></div>
457 458
           </el-radio-group>
458 459
         </td>
459 460
         <td rowspan="3">
460 461
           <div v-if="!isStaff">{{ tableForm.remark05 }}</div>
461
-          <el-input v-if="isStaff" v-model="tableForm.remark05"  type="textarea" :rows="4"></el-input>
462
+          <el-input v-if="isStaff" v-model="tableForm.remark05" type="textarea" :rows="4"></el-input>
462 463
         </td>
463 464
         <td rowspan="3">
464 465
           <el-radio-group v-model="tableForm.workload05" :disabled="!isPiLeader">
@@ -535,8 +536,8 @@ export default {
535 536
       type: Object,
536 537
       required: true
537 538
     },
538
-    taskName:{
539
-      type:String
539
+    taskName: {
540
+      type: String
540 541
     }
541 542
   },
542 543
   watch: {
@@ -565,10 +566,10 @@ export default {
565 566
   },
566 567
   methods: {
567 568
     initForm() {
568
-      console.log(this.tableForm);
569
+
569 570
     },
570 571
     formatForm() {
571
-      debugger
572
+
572 573
       if (this.taskName == '负责人审核') {
573 574
         this.isPiLeader = true;
574 575
         this.isDeptLeader = false;
@@ -592,19 +593,49 @@ export default {
592 593
       }
593 594
     },
594 595
     submit() {
596
+      this.formValidate(this.tableForm)
595 597
       this.$emit('submit', this.tableForm);
596 598
     },
597
-    cancelSelect(value, name) {
598
-      debugger
599
-      if (!this.isPiLeader) {
599
+    formValidate(form) {
600
+      let flag = [];
601
+      for (let f in form) {
602
+        
603
+        if (f.startsWith('familiar') && form[f] != null) {
604
+          flag.push(f.slice(-2));
605
+        } else if (f.length == 5 && f.startsWith('f')) {
606
+          if (form[f] != "" && form[f] != undefined && form[f] != null)
607
+            flag.push(f.substring(1, 3));
608
+        }
609
+      }
610
+      let isF = false;
611
+      if (flag.length == 0) {
612
+        this.$modal.msgError("表格未填写,请填写表格");
600 613
         return
601 614
       }
602
-      if (this.tableForm[name] == value) {
603
-        this.tableForm[name] = null
604
-      } else {
605
-
606
-        if (this.tableForm[name] !== undefined)
607
-          this.tableForm[name] = value
615
+    },
616
+    cancelSelect(value, name, disabled) {
617
+      
618
+      if (this.isStaff) {
619
+        if (this.tableForm[name] == value) {
620
+          this.tableForm[name] = null
621
+        } else {
622
+          if (this.tableForm[name] !== undefined)
623
+            this.tableForm[name] = value
624
+          else {
625
+            this.$set(this.tableForm, name, value)
626
+          }
627
+        }
628
+      }
629
+      if (this.isPiLeader) {
630
+        if (disabled) {
631
+          return
632
+        }
633
+        if (this.tableForm[name] == value) {
634
+          this.tableForm[name] = null
635
+        } else {
636
+          if (this.tableForm[name] !== undefined)
637
+            this.tableForm[name] = value
638
+        }
608 639
       }
609 640
     }
610 641
   },

+ 1
- 2
oa-ui/src/views/flowable/form/jsForm.vue Datei anzeigen

@@ -128,12 +128,11 @@ export default {
128 128
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
129 129
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
130 130
         tableForm.disabled = true;
131
-        console.log(tableForm);
132 131
         let formData = new FormData();
133 132
         let form = JSON.stringify(tableForm);
134 133
         formData.append("form", form);
135 134
         submitAssess(formData).then(res => {
136
-        debugger
135
+        
137 136
           this.taskOpen = false;
138 137
           this.$emit('submit', tableForm);
139 138
         });

+ 55
- 30
oa-ui/src/views/flowable/form/jsTable.vue Datei anzeigen

@@ -89,9 +89,9 @@
89 89
         </td>
90 90
         <td rowspan="6">
91 91
           <el-radio-group v-model="tableForm.familiar01" :disabled="!isStaff">
92
-            <div><el-radio :label="0">生疏</el-radio></div>
93
-            <div><el-radio :label="2">熟练</el-radio></div>
94
-            <div><el-radio :label="3">精通</el-radio></div>
92
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar01',!isStaff)">生疏</el-radio></div>
93
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar01',!isStaff)">熟练</el-radio></div>
94
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar01',!isStaff)">精通</el-radio></div>
95 95
           </el-radio-group>
96 96
         </td>
97 97
         
@@ -187,9 +187,9 @@
187 187
         </td>
188 188
         <td rowspan="4">
189 189
           <el-radio-group v-model="tableForm.familiar02" :disabled="!isStaff">
190
-            <div><el-radio :label="0">生疏</el-radio></div>
191
-            <div><el-radio :label="2">熟练</el-radio></div>
192
-            <div><el-radio :label="3">精通</el-radio></div>
190
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar02',!isStaff)">生疏</el-radio></div>
191
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar02',!isStaff)">熟练</el-radio></div>
192
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar02',!isStaff)">精通</el-radio></div>
193 193
           </el-radio-group>
194 194
         </td>
195 195
         <td rowspan="4">
@@ -267,9 +267,9 @@
267 267
         </td>
268 268
         <td rowspan="13">
269 269
           <el-radio-group v-model="tableForm.familiar03" :disabled="!isStaff">
270
-            <div><el-radio :label="0">生疏</el-radio></div>
271
-            <div><el-radio :label="2">熟练</el-radio></div>
272
-            <div><el-radio :label="3">精通</el-radio></div>
270
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar03',!isStaff)">生疏</el-radio></div>
271
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar03',!isStaff)">熟练</el-radio></div>
272
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar03',!isStaff)">精通</el-radio></div>
273 273
           </el-radio-group>
274 274
         </td>
275 275
         <td rowspan="13">
@@ -420,9 +420,9 @@
420 420
         </td>
421 421
         <td rowspan="5">
422 422
           <el-radio-group v-model="tableForm.familiar04" :disabled="!isStaff">
423
-            <div><el-radio :label="0">生疏</el-radio></div>
424
-            <div><el-radio :label="2">熟练</el-radio></div>
425
-            <div><el-radio :label="3">精通</el-radio></div>
423
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar04',!isStaff)">生疏</el-radio></div>
424
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar04',!isStaff)">熟练</el-radio></div>
425
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar04',!isStaff)">精通</el-radio></div>
426 426
           </el-radio-group>
427 427
         </td>
428 428
         <td rowspan="5">
@@ -509,9 +509,9 @@
509 509
         </td>
510 510
         <td rowspan="3">
511 511
           <el-radio-group v-model="tableForm.familiar05" :disabled="!isStaff">
512
-            <div><el-radio :label="0">生疏</el-radio></div>
513
-            <div><el-radio :label="2">熟练</el-radio></div>
514
-            <div><el-radio :label="3">精通</el-radio></div>
512
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">生疏</el-radio></div>
513
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">熟练</el-radio></div>
514
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar05',!isStaff)">精通</el-radio></div>
515 515
           </el-radio-group>
516 516
         </td>
517 517
         <td rowspan="3">
@@ -658,24 +658,49 @@ export default {
658 658
       }
659 659
     },
660 660
     submit() {
661
-      if(!this.isStaff){
662
-        this.$emit('submit', this.tableForm);
663
-      }else{
664
-        this.$emit('submit', this.tableForm);
665
-      }
666
-      
661
+      this.formValidate(this.tableForm)
662
+      this.$emit('submit', this.tableForm);
667 663
     },
668
-    cancelSelect(value, name) {
669
-      debugger
670
-      if (!this.isPiLeader) {
664
+    formValidate(form) {
665
+      let flag = [];
666
+      for (let f in form) {
667
+        
668
+        if (f.startsWith('familiar') && form[f] != null) {
669
+          flag.push(f.slice(-2));
670
+        } else if (f.length == 5 && f.startsWith('f')) {
671
+          if (form[f] != "" && form[f] != undefined && form[f] != null)
672
+            flag.push(f.substring(1, 3));
673
+        }
674
+      }
675
+      let isF = false;
676
+      if (flag.length == 0) {
677
+        this.$modal.msgError("表格未填写,请填写表格");
671 678
         return
672 679
       }
673
-      if (this.tableForm[name] == value) {
674
-        this.tableForm[name] = null
675
-      } else {
676
-
677
-        if (this.tableForm[name] !== undefined)
678
-          this.tableForm[name] = value
680
+    },
681
+    cancelSelect(value, name, disabled) {
682
+      
683
+      if (this.isStaff) {
684
+        if (this.tableForm[name] == value) {
685
+          this.tableForm[name] = null
686
+        } else {
687
+          if (this.tableForm[name] !== undefined)
688
+            this.tableForm[name] = value
689
+          else {
690
+            this.$set(this.tableForm, name, value)
691
+          }
692
+        }
693
+      }
694
+      if (this.isPiLeader) {
695
+        if (disabled) {
696
+          return
697
+        }
698
+        if (this.tableForm[name] == value) {
699
+          this.tableForm[name] = null
700
+        } else {
701
+          if (this.tableForm[name] !== undefined)
702
+            this.tableForm[name] = value
703
+        }
679 704
       }
680 705
     }
681 706
   },

+ 1
- 2
oa-ui/src/views/flowable/form/jyForm.vue Datei anzeigen

@@ -127,12 +127,11 @@ export default {
127 127
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
128 128
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
129 129
         tableForm.disabled = true;
130
-        console.log(tableForm);
131 130
         let formData = new FormData();
132 131
         let form = JSON.stringify(tableForm);
133 132
         formData.append("form", form);
134 133
         submitAssess(formData).then(res => {
135
-        debugger
134
+        
136 135
           this.taskOpen = false;
137 136
           this.$emit('submit', tableForm);
138 137
         });

+ 49
- 24
oa-ui/src/views/flowable/form/jyTable.vue Datei anzeigen

@@ -93,9 +93,9 @@
93 93
         </td>
94 94
         <td rowspan="6">
95 95
           <el-radio-group v-model="tableForm.familiar01" :disabled="!isStaff">
96
-            <div><el-radio :label="0">生疏</el-radio></div>
97
-            <div><el-radio :label="2">熟练</el-radio></div>
98
-            <div><el-radio :label="3">精通</el-radio></div>
96
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar01',!isStaff)">生疏</el-radio></div>
97
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar01',!isStaff)">熟练</el-radio></div>
98
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar01',!isStaff)">精通</el-radio></div>
99 99
           </el-radio-group>
100 100
         </td>
101 101
         
@@ -178,9 +178,9 @@
178 178
         </td>
179 179
         <td rowspan="3">
180 180
           <el-radio-group v-model="tableForm.familiar02" :disabled="!isStaff">
181
-            <div><el-radio :label="0">生疏</el-radio></div>
182
-            <div><el-radio :label="2">熟练</el-radio></div>
183
-            <div><el-radio :label="3">精通</el-radio></div>
181
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar02',!isStaff)">生疏</el-radio></div>
182
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar02',!isStaff)">熟练</el-radio></div>
183
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar02',!isStaff)">精通</el-radio></div>
184 184
           </el-radio-group>
185 185
         </td>
186 186
         <td rowspan="3">
@@ -237,9 +237,9 @@
237 237
         </td>
238 238
         <td rowspan="3">
239 239
           <el-radio-group v-model="tableForm.familiar03" :disabled="!isStaff">
240
-            <div><el-radio :label="0">生疏</el-radio></div>
241
-            <div><el-radio :label="2">熟练</el-radio></div>
242
-            <div><el-radio :label="3">精通</el-radio></div>
240
+            <div><el-radio :label="0" @click.native.prevent="cancelSelect(0, 'familiar03',!isStaff)">生疏</el-radio></div>
241
+            <div><el-radio :label="2" @click.native.prevent="cancelSelect(2, 'familiar03',!isStaff)">熟练</el-radio></div>
242
+            <div><el-radio :label="3" @click.native.prevent="cancelSelect(3, 'familiar03',!isStaff)">精通</el-radio></div>
243 243
           </el-radio-group>
244 244
         </td>
245 245
         <td rowspan="3">
@@ -373,24 +373,49 @@ export default {
373 373
       }
374 374
     },
375 375
     submit() {
376
-      if(!this.isStaff){
377
-        this.$emit('submit', this.tableForm);
378
-      }else{
379
-        this.$emit('submit', this.tableForm);
380
-      }
381
-      
376
+      this.formValidate(this.tableForm)
377
+      this.$emit('submit', this.tableForm);
382 378
     },
383
-    cancelSelect(value, name) {
384
-      debugger
385
-      if (!this.isPiLeader) {
379
+    formValidate(form) {
380
+      let flag = [];
381
+      for (let f in form) {
382
+        
383
+        if (f.startsWith('familiar') && form[f] != null) {
384
+          flag.push(f.slice(-2));
385
+        } else if (f.length == 5 && f.startsWith('f')) {
386
+          if (form[f] != "" && form[f] != undefined && form[f] != null)
387
+            flag.push(f.substring(1, 3));
388
+        }
389
+      }
390
+      let isF = false;
391
+      if (flag.length == 0) {
392
+        this.$modal.msgError("表格未填写,请填写表格");
386 393
         return
387 394
       }
388
-      if (this.tableForm[name] == value) {
389
-        this.tableForm[name] = null
390
-      } else {
391
-
392
-        if (this.tableForm[name] !== undefined)
393
-          this.tableForm[name] = value
395
+    },
396
+    cancelSelect(value, name, disabled) {
397
+      
398
+      if (this.isStaff) {
399
+        if (this.tableForm[name] == value) {
400
+          this.tableForm[name] = null
401
+        } else {
402
+          if (this.tableForm[name] !== undefined)
403
+            this.tableForm[name] = value
404
+          else {
405
+            this.$set(this.tableForm, name, value)
406
+          }
407
+        }
408
+      }
409
+      if (this.isPiLeader) {
410
+        if (disabled) {
411
+          return
412
+        }
413
+        if (this.tableForm[name] == value) {
414
+          this.tableForm[name] = null
415
+        } else {
416
+          if (this.tableForm[name] !== undefined)
417
+            this.tableForm[name] = value
418
+        }
394 419
       }
395 420
     }
396 421
   },

+ 0
- 1
oa-ui/src/views/flowable/form/scForm.vue Datei anzeigen

@@ -150,7 +150,6 @@ export default {
150 150
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
151 151
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
152 152
         tableForm.disabled = true;
153
-        console.log(tableForm);
154 153
         let formData = new FormData();
155 154
         let form = JSON.stringify(tableForm);
156 155
         formData.append("form", form);

+ 123
- 60
oa-ui/src/views/flowable/form/scTable.vue Datei anzeigen

@@ -5,11 +5,19 @@
5 5
       <tr>
6 6
         <td class="table-title">项目编号</td>
7 7
         <td colspan="1" style="text-align:left;padding-left:10px;">
8
-          {{ tableForm.projectNumber }}
8
+          <div v-if="!isStaff">{{ tableForm.projectNumber }}</div>
9
+          <div v-if="isStaff">
10
+            <el-select v-model="tableForm.projectNumber" @change="getProjectById(tableForm.projectNumber)">
11
+              <el-option v-for="item in projectList" :key="item.projectId" :label="item.projectNumber"
12
+                :value="item.projectId">
13
+              </el-option>
14
+            </el-select>
15
+          </div>
9 16
         </td>
10 17
         <td class="table-title">项目名称</td>
11 18
         <td colspan="9" style="text-align:left;padding-left:10px;">
12
-          {{ tableForm.projectName }}
19
+          <div v-if="!isStaff">{{ tableForm.projectName }}</div>
20
+          <div v-if="isStaff">{{ tableForm.projectName }}</div>
13 21
         </td>
14 22
       </tr>
15 23
       <tr>
@@ -42,19 +50,25 @@
42 50
         <td class="table-title">部门职务</td>
43 51
         <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.postGroup }}</td>
44 52
         <td colspan="3" rowspan="5">
45
-          <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.deptAdvice" :disabled="!isDeptLeader">
53
+          <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.deptAdvice"
54
+            :disabled="!isDeptLeader">
46 55
           </el-input>
47 56
           <el-row justify="center" type="flex">
48
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人" :disabled="!isDeptLeader"></el-input> </el-col>
49
-            <el-col :span="12">日期:<el-date-picker type="date"  placeholder="请选择考核日期" v-model="tableForm.deptTime" style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
57
+            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
58
+                :disabled="!isDeptLeader"></el-input> </el-col>
59
+            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
60
+                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
50 61
           </el-row>
51 62
         </td>
52 63
         <td colspan="3" rowspan="5">
53
-          <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.managerAdvice" :disabled="!isManager">
64
+          <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.managerAdvice"
65
+            :disabled="!isManager">
54 66
           </el-input>
55 67
           <el-row justify="center">
56
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人" :disabled="!isManager"></el-input></el-col>
57
-            <el-col :span="12">日期:<el-date-picker type="date"  placeholder="请选择考核日期" v-model="tableForm.managerTime" style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
68
+            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
69
+                :disabled="!isManager"></el-input></el-col>
70
+            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
71
+                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
58 72
           </el-row>
59 73
         </td>
60 74
       </tr>
@@ -116,8 +130,8 @@
116 130
           </el-checkbox-group>
117 131
         </td>
118 132
         <td rowspan="5">
119
-          <div>{{ tableForm.remark01 }}</div>
120
-          <el-input v-if="isStaff" v-model="tableForm.remark01"  type="textarea" :rows="4"></el-input>
133
+          <div v-if="!isStaff">{{ tableForm.remark01 }}</div>
134
+          <el-input v-if="isStaff" v-model="tableForm.remark01" type="textarea" :rows="4"></el-input>
121 135
         </td>
122 136
         <td rowspan="5">
123 137
           <el-radio-group v-model="tableForm.quality01" :disabled="!isPiLeader">
@@ -203,8 +217,8 @@
203 217
           </el-checkbox-group>
204 218
         </td>
205 219
         <td rowspan="10">
206
-          <div>{{ tableForm.remark02 }}</div>
207
-          <el-input v-if="isStaff" v-model="tableForm.remark02"  type="textarea" :rows="4"></el-input>
220
+          <div v-if="!isStaff">{{ tableForm.remark02 }}</div>
221
+          <el-input v-if="isStaff" v-model="tableForm.remark02" type="textarea" :rows="4"></el-input>
208 222
         </td>
209 223
         <td rowspan="10">
210 224
           <el-radio-group v-model="tableForm.quality02" :disabled="!isPiLeader">
@@ -327,8 +341,8 @@
327 341
           </el-checkbox-group>
328 342
         </td>
329 343
         <td rowspan="5">
330
-          <div>{{ tableForm.remark03 }}</div>
331
-          <el-input v-if="isStaff" v-model="tableForm.remark03"  type="textarea" :rows="4"></el-input>
344
+          <div v-if="!isStaff">{{ tableForm.remark03 }}</div>
345
+          <el-input v-if="isStaff" v-model="tableForm.remark03" type="textarea" :rows="4"></el-input>
332 346
         </td>
333 347
         <td rowspan="5">
334 348
           <el-radio-group v-model="tableForm.quality03" :disabled="!isPiLeader">
@@ -411,8 +425,8 @@
411 425
           </el-checkbox-group>
412 426
         </td>
413 427
         <td rowspan="4">
414
-          <div>{{ tableForm.remark04 }}</div>
415
-          <el-input v-if="isStaff" v-model="tableForm.remark04"  type="textarea" :rows="4"></el-input>
428
+          <div v-if="!isStaff">{{ tableForm.remark04 }}</div>
429
+          <el-input v-if="isStaff" v-model="tableForm.remark04" type="textarea" :rows="4"></el-input>
416 430
         </td>
417 431
         <td rowspan="4">
418 432
           <el-radio-group v-model="tableForm.quality04" :disabled="!isPiLeader">
@@ -484,8 +498,8 @@
484 498
           </el-checkbox-group>
485 499
         </td>
486 500
         <td rowspan="6">
487
-          <div>{{ tableForm.remark05 }}</div>
488
-          <el-input v-if="isStaff" v-model="tableForm.remark05"  type="textarea" :rows="4"></el-input>
501
+          <div v-if="!isStaff">{{ tableForm.remark05 }}</div>
502
+          <el-input v-if="isStaff" v-model="tableForm.remark05" type="textarea" :rows="4"></el-input>
489 503
         </td>
490 504
         <td rowspan="6">
491 505
           <el-radio-group v-model="tableForm.quality05" :disabled="!isPiLeader">
@@ -572,8 +586,8 @@
572 586
           </el-checkbox-group>
573 587
         </td>
574 588
         <td rowspan="6">
575
-          <div>{{ tableForm.remark06 }}</div>
576
-          <el-input v-if="isStaff" v-model="tableForm.remark06"  type="textarea" :rows="4"></el-input>
589
+          <div v-if="!isStaff">{{ tableForm.remark06 }}</div>
590
+          <el-input v-if="isStaff" v-model="tableForm.remark06" type="textarea" :rows="4"></el-input>
577 591
         </td>
578 592
         <td rowspan="6">
579 593
           <el-radio-group v-model="tableForm.quality06" :disabled="!isPiLeader">
@@ -660,8 +674,8 @@
660 674
           </el-checkbox-group>
661 675
         </td>
662 676
         <td rowspan="4">
663
-          <div>{{ tableForm.remark07 }}</div>
664
-          <el-input v-if="isStaff" v-model="tableForm.remark07"  type="textarea" :rows="4"></el-input>
677
+          <div v-if="!isStaff">{{ tableForm.remark07 }}</div>
678
+          <el-input v-if="isStaff" v-model="tableForm.remark07" type="textarea" :rows="4"></el-input>
665 679
         </td>
666 680
         <td rowspan="4">
667 681
           <el-radio-group v-model="tableForm.quality07" :disabled="!isPiLeader">
@@ -733,8 +747,8 @@
733 747
           </el-checkbox-group>
734 748
         </td>
735 749
         <td rowspan="3">
736
-          <div>{{ tableForm.remark08 }}</div>
737
-          <el-input v-if="isStaff" v-model="tableForm.remark08"  type="textarea" :rows="4"></el-input>
750
+          <div v-if="!isStaff">{{ tableForm.remark08 }}</div>
751
+          <el-input v-if="isStaff" v-model="tableForm.remark08" type="textarea" :rows="4"></el-input>
738 752
         </td>
739 753
         <td rowspan="3">
740 754
           <el-radio-group v-model="tableForm.quality08" :disabled="!isPiLeader">
@@ -799,8 +813,8 @@
799 813
           </el-checkbox-group>
800 814
         </td>
801 815
         <td rowspan="6">
802
-          <div>{{ tableForm.remark09 }}</div>
803
-          <el-input v-if="isStaff" v-model="tableForm.remark09"  type="textarea" :rows="4"></el-input>
816
+          <div v-if="!isStaff">{{ tableForm.remark09 }}</div>
817
+          <el-input v-if="isStaff" v-model="tableForm.remark09" type="textarea" :rows="4"></el-input>
804 818
         </td>
805 819
         <td rowspan="6">
806 820
           <el-radio-group v-model="tableForm.quality09" :disabled="!isPiLeader">
@@ -888,8 +902,8 @@
888 902
           </el-checkbox-group>
889 903
         </td>
890 904
         <td rowspan="5">
891
-          <div>{{ tableForm.remark10 }}</div>
892
-          <el-input v-if="isStaff" v-model="tableForm.remark10"  type="textarea" :rows="4"></el-input>
905
+          <div v-if="!isStaff">{{ tableForm.remark10 }}</div>
906
+          <el-input v-if="isStaff" v-model="tableForm.remark10" type="textarea" :rows="4"></el-input>
893 907
         </td>
894 908
         <td rowspan="5">
895 909
           <el-radio-group v-model="tableForm.quality10" :disabled="!isPiLeader">
@@ -969,8 +983,8 @@
969 983
           </el-checkbox-group>
970 984
         </td>
971 985
         <td rowspan="6">
972
-          <div>{{ tableForm.remark11 }}</div>
973
-          <el-input v-if="isStaff" v-model="tableForm.remark11"  type="textarea" :rows="4"></el-input>
986
+          <div v-if="!isStaff">{{ tableForm.remark11 }}</div>
987
+          <el-input v-if="isStaff" v-model="tableForm.remark11" type="textarea" :rows="4"></el-input>
974 988
         </td>
975 989
         <td rowspan="6">
976 990
           <el-radio-group v-model="tableForm.quality11" :disabled="!isPiLeader">
@@ -1058,8 +1072,8 @@
1058 1072
           </el-checkbox-group>
1059 1073
         </td>
1060 1074
         <td rowspan="5">
1061
-          <div>{{ tableForm.remark12 }}</div>
1062
-          <el-input v-if="isStaff" v-model="tableForm.remark12"  type="textarea" :rows="4"></el-input>
1075
+          <div v-if="!isStaff">{{ tableForm.remark12 }}</div>
1076
+          <el-input v-if="isStaff" v-model="tableForm.remark12" type="textarea" :rows="4"></el-input>
1063 1077
         </td>
1064 1078
         <td rowspan="5">
1065 1079
           <el-radio-group v-model="tableForm.quality12" :disabled="!isPiLeader">
@@ -1139,8 +1153,8 @@
1139 1153
           </el-checkbox-group>
1140 1154
         </td>
1141 1155
         <td rowspan="6">
1142
-          <div>{{ tableForm.remark13 }}</div>
1143
-          <el-input v-if="isStaff" v-model="tableForm.remark13"  type="textarea" :rows="4"></el-input>
1156
+          <div v-if="!isStaff">{{ tableForm.remark13 }}</div>
1157
+          <el-input v-if="isStaff" v-model="tableForm.remark13" type="textarea" :rows="4"></el-input>
1144 1158
         </td>
1145 1159
         <td rowspan="6">
1146 1160
           <el-radio-group v-model="tableForm.quality13" :disabled="!isPiLeader">
@@ -1228,8 +1242,8 @@
1228 1242
           </el-checkbox-group>
1229 1243
         </td>
1230 1244
         <td rowspan="6">
1231
-          <div>{{ tableForm.remark14 }}</div>
1232
-          <el-input v-if="isStaff" v-model="tableForm.remark14"  type="textarea" :rows="4"></el-input>
1245
+          <div v-if="!isStaff">{{ tableForm.remark14 }}</div>
1246
+          <el-input v-if="isStaff" v-model="tableForm.remark14" type="textarea" :rows="4"></el-input>
1233 1247
         </td>
1234 1248
         <td rowspan="6">
1235 1249
           <el-radio-group v-model="tableForm.quality14" :disabled="!isPiLeader">
@@ -1317,8 +1331,8 @@
1317 1331
           </el-checkbox-group>
1318 1332
         </td>
1319 1333
         <td rowspan="6">
1320
-          <div>{{ tableForm.remark15 }}</div>
1321
-          <el-input v-if="isStaff" v-model="tableForm.remark15"  type="textarea" :rows="4"></el-input>
1334
+          <div v-if="!isStaff">{{ tableForm.remark15 }}</div>
1335
+          <el-input v-if="isStaff" v-model="tableForm.remark15" type="textarea" :rows="4"></el-input>
1322 1336
         </td>
1323 1337
         <td rowspan="6">
1324 1338
           <el-radio-group v-model="tableForm.quality15" :disabled="!isPiLeader">
@@ -1406,8 +1420,8 @@
1406 1420
           </el-checkbox-group>
1407 1421
         </td>
1408 1422
         <td rowspan="4">
1409
-          <div>{{ tableForm.remark16 }}</div>
1410
-          <el-input v-if="isStaff" v-model="tableForm.remark16"  type="textarea" :rows="4"></el-input>
1423
+          <div v-if="!isStaff">{{ tableForm.remark16 }}</div>
1424
+          <el-input v-if="isStaff" v-model="tableForm.remark16" type="textarea" :rows="4"></el-input>
1411 1425
         </td>
1412 1426
         <td rowspan="4">
1413 1427
           <el-radio-group v-model="tableForm.quality16" :disabled="!isPiLeader">
@@ -1478,8 +1492,8 @@
1478 1492
           </el-checkbox-group>
1479 1493
         </td>
1480 1494
         <td rowspan="5">
1481
-          <div>{{ tableForm.remark17 }}</div>
1482
-          <el-input v-if="isStaff" v-model="tableForm.remark17"  type="textarea" :rows="4"></el-input>
1495
+          <div v-if="!isStaff">{{ tableForm.remark17 }}</div>
1496
+          <el-input v-if="isStaff" v-model="tableForm.remark17" type="textarea" :rows="4"></el-input>
1483 1497
         </td>
1484 1498
         <td rowspan="5">
1485 1499
           <el-radio-group v-model="tableForm.quality17" :disabled="!isPiLeader">
@@ -1563,6 +1577,9 @@
1563 1577
 <script>
1564 1578
 import { SCContent } from '@/assets/datas/SCContent'
1565 1579
 import { getDicts as getDicts } from '@/api/system/dict/data'
1580
+import { listProject } from '@/api/oa/project/project.js'
1581
+import { getProject } from '@/api/oa/project/project'
1582
+
1566 1583
 export default {
1567 1584
   dicts: ['cmc_role', 'cmc_skill', 'cmc_accessment'],
1568 1585
   props: {
@@ -1587,6 +1604,7 @@ export default {
1587 1604
       isPiLeader: false,
1588 1605
       isManager: false,
1589 1606
       isStaff: false,
1607
+      projectList: [],
1590 1608
     }
1591 1609
   },
1592 1610
   created() {
@@ -1597,6 +1615,9 @@ export default {
1597 1615
   },
1598 1616
   methods: {
1599 1617
     initForm() {
1618
+      listProject({ pageSize: 200 }).then(res => {
1619
+        this.projectList = res.rows;
1620
+      })
1600 1621
       for (let i = 0; i < SCContent.length + 1; i++) {
1601 1622
         if (i.toString().length == 1) {
1602 1623
           this.$set(this.form, 'role' + '0' + i, []);
@@ -1639,35 +1660,77 @@ export default {
1639 1660
         this.isStaff = true;
1640 1661
       }
1641 1662
     },
1642
-    // 员工填报之后传值
1663
+    // 员工修改之后传值
1643 1664
     assignmentToTableForm() {
1644
-      debugger
1645
-      for(let i in this.tableForm){
1646
-        if(i.includes('role')){
1665
+      for (let i in this.tableForm) {
1666
+        if (i.includes('role')) {
1647 1667
           this.tableForm[i] = this.form[i]
1648 1668
         }
1649 1669
       }
1650 1670
     },
1671
+    // 初始化tableForm,得到承担角色的值
1672
+    initTableFormFromForm(){
1673
+      for(let f in this.form){
1674
+        if(this.form[f] != "" && this.form[f] != undefined && this.form[f] != null){
1675
+          this.tableForm[f]  = this.form[f];
1676
+        }
1677
+      }
1678
+    },
1679
+    getProjectById(id) {
1680
+      getProject(id).then(res => {
1681
+        if (res.data != undefined) {
1682
+          this.tableForm.projectName = res.data.projectName;
1683
+          this.tableForm.projectNumber = res.data.projectNumber;
1684
+          this.tableForm.projectId = id
1685
+        }
1686
+      })
1687
+    },
1651 1688
     submit() {
1652
-      if(!this.isStaff){
1653
-        this.$emit('submit', this.tableForm);
1654
-      }else{
1689
+        this.formValidate(this.tableForm)
1655 1690
         this.assignmentToTableForm();
1691
+        this.initTableFormFromForm();
1692
+        console.log(this.tableForm);
1656 1693
         this.$emit('submit', this.tableForm);
1657
-      }
1658
-      
1659 1694
     },
1660
-    cancelSelect(value, name) {
1661
-      debugger
1662
-      if (!this.isPiLeader) {
1695
+    formValidate(form) {
1696
+      let flag = [];
1697
+      for (let f in form) {
1698
+        if (f.startsWith('familiar') && form[f] != null) {
1699
+          flag.push(f.slice(-2));
1700
+        } else if (f.length == 5 && f.startsWith('f')) {
1701
+          if (form[f] != "" && form[f] != undefined && form[f] != null)
1702
+            flag.push(f.substring(1, 3));
1703
+        }
1704
+      }
1705
+      let isF = false;
1706
+      if (flag.length == 0) {
1707
+        this.$modal.msgError("表格未填写,请填写表格");
1663 1708
         return
1664 1709
       }
1665
-      if (this.tableForm[name] == value) {
1666
-        this.tableForm[name] = null
1667
-      } else {
1668
-
1669
-        if (this.tableForm[name] !== undefined)
1670
-          this.tableForm[name] = value
1710
+    },
1711
+    cancelSelect(value, name, disabled) {
1712
+      
1713
+      if (this.isStaff) {
1714
+        if (this.tableForm[name] == value) {
1715
+          this.tableForm[name] = null
1716
+        } else {
1717
+          if (this.tableForm[name] !== undefined)
1718
+            this.tableForm[name] = value
1719
+          else {
1720
+            this.$set(this.tableForm, name, value)
1721
+          }
1722
+        }
1723
+      }
1724
+      if (this.isPiLeader) {
1725
+        if (disabled) {
1726
+          return
1727
+        }
1728
+        if (this.tableForm[name] == value) {
1729
+          this.tableForm[name] = null
1730
+        } else {
1731
+          if (this.tableForm[name] !== undefined)
1732
+            this.tableForm[name] = value
1733
+        }
1671 1734
       }
1672 1735
     }
1673 1736
   },

+ 1
- 2
oa-ui/src/views/flowable/form/xmForm.vue Datei anzeigen

@@ -127,12 +127,11 @@ export default {
127 127
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
128 128
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
129 129
         tableForm.disabled = true;
130
-        console.log(tableForm);
131 130
         let formData = new FormData();
132 131
         let form = JSON.stringify(tableForm);
133 132
         formData.append("form", form);
134 133
         submitAssess(formData).then(res => {
135
-        debugger
134
+        
136 135
           this.taskOpen = false;
137 136
           this.$emit('submit', tableForm);
138 137
         });

+ 1
- 1
oa-ui/src/views/flowable/form/xmTable.vue Datei anzeigen

@@ -401,7 +401,7 @@ export default {
401 401
       
402 402
     },
403 403
     cancelSelect(value, name) {
404
-      debugger
404
+      
405 405
       if (!this.isPiLeader) {
406 406
         return
407 407
       }

+ 1
- 2
oa-ui/src/views/flowable/form/zhForm.vue Datei anzeigen

@@ -127,12 +127,11 @@ export default {
127 127
       MessageBox.confirm('确认提交?', '任务提交', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
128 128
         tableForm.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
129 129
         tableForm.disabled = true;
130
-        console.log(tableForm);
131 130
         let formData = new FormData();
132 131
         let form = JSON.stringify(tableForm);
133 132
         formData.append("form", form);
134 133
         submitAssess(formData).then(res => {
135
-        debugger
134
+        
136 135
           this.taskOpen = false;
137 136
           this.$emit('submit', tableForm);
138 137
         });

+ 1
- 1
oa-ui/src/views/flowable/form/zhTable.vue Datei anzeigen

@@ -821,7 +821,7 @@ export default {
821 821
 
822 822
     },
823 823
     cancelSelect(value, name) {
824
-      debugger
824
+      
825 825
       if (!this.isPiLeader) {
826 826
         return
827 827
       }

+ 0
- 2
oa-ui/src/views/flowable/task/finished/index.vue Datei anzeigen

@@ -174,8 +174,6 @@ export default {
174 174
     },
175 175
     /** 流程流转记录 */
176 176
     handleFlowRecord(row) {
177
-      console.log(row);
178
-
179 177
       getProcessVariables(row.taskId).then(res => {
180 178
         this.$router.push({
181 179
           path: '/flowable/task/finished/detail/index',

+ 3
- 3
oa-ui/src/views/flowable/task/myProcess/index.vue Datei anzeigen

@@ -266,7 +266,7 @@ export default {
266 266
     handleStartProcess(row) {
267 267
       if (row.category == "assess") {
268 268
         getNextFlowNodeByStart({ deploymentId: row.deploymentId, variables: {} }).then(res => {
269
-          let data = res.data
269
+          let data = res.data;
270 270
           if (data.dataType === 'dynamic') {
271 271
             if (data.type === 'assignee') { // 指定人员
272 272
               this.checkSendUser = true;
@@ -289,12 +289,13 @@ export default {
289 289
             const formData = {};
290 290
             formData.disabled = true;
291 291
             formData.formBtns = false;
292
+            
292 293
             formData.formId = new Snowflake(1n, 1n, 0n).nextId().toString();
293 294
             if (row.id) {
294 295
               variables.variables = formData;
295 296
               // 启动流程并将表单数据加入流程变量
296 297
               definitionStart(row.id, JSON.stringify(variables)).then(res => {
297
-                debugger
298
+                
298 299
                 this.$modal.msgSuccess(res.msg);
299 300
                 let procInstanceId = res.data;
300 301
                 todoList({
@@ -305,7 +306,6 @@ export default {
305 306
                   if(records.length == 1){
306 307
                     records = records[0]
307 308
                   }
308
-                  console.log(records);
309 309
                   this.$router.push({
310 310
                     path: '/flowable/task/todo/detail/index',
311 311
                     query: {

+ 1
- 3
oa-ui/src/views/flowable/task/myProcess/send/index.vue Datei anzeigen

@@ -122,8 +122,6 @@ export default {
122 122
     submits(form) {
123 123
       getNextFlowNodeByStart({ deploymentId: this.deployId, variables: {} }).then(res => {
124 124
         let data = res.data
125
-        debugger
126
-        console.log(form);
127 125
         if (data.dataType === 'dynamic') {
128 126
           if (data.type === 'assignee') { // 指定人员
129 127
             this.checkSendUser = true;
@@ -255,7 +253,7 @@ export default {
255 253
     },
256 254
     /** 提交流程 */
257 255
     submitTask() {
258
-      debugger
256
+      
259 257
       if (!this.checkValues && this.checkSendUser) {
260 258
         this.$modal.msgError("请选择任务接收!");
261 259
         return;

+ 4
- 4
oa-ui/src/views/flowable/task/todo/detail/index.vue Datei anzeigen

@@ -253,7 +253,6 @@ export default {
253 253
       if (this.taskForm.taskId) {
254 254
         this.processVariables(this.taskForm.taskId)
255 255
         this.getFlowTaskForm(this.taskForm.taskId)
256
-        console.log(this.taskForm.formId);
257 256
         this.getAssessByAssessId(this.taskForm.formId)
258 257
       }
259 258
       this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId);
@@ -347,9 +346,10 @@ export default {
347 346
     },
348 347
     // 获取需要处理的表单表格信息
349 348
     getAssessByAssessId(formId) {
349
+      
350 350
       getAssess(formId).then(res => {
351 351
         let data = res.data;
352
-        debugger
352
+        
353 353
         for (let d in data) {
354 354
           if (d.includes('role')) {
355 355
             if (data[d] != "" && data[d] != undefined && data[d] != null)
@@ -370,7 +370,7 @@ export default {
370 370
       // this.completeOpen = true;
371 371
       // this.completeTitle = "流程审批";
372 372
       // this.submitForm(null);
373
-      debugger
373
+      
374 374
       let formData = new FormData();
375 375
       this.tableForm.formId = this.tableForm.assessId;
376 376
       let form = JSON.stringify(this.tableForm);
@@ -485,8 +485,8 @@ export default {
485 485
     },
486 486
     /** 申请流程表单数据提交 */
487 487
     submitForm(formData, assessId) {
488
-      debugger
489 488
       listAssess({ assessId }).then(result => {
489
+        
490 490
         let list = result;
491 491
         if (list.total != 0) {
492 492
           modifyAssess(formData).then(res => {

+ 0
- 2
oa-ui/src/views/flowable/task/todo/index.vue Datei anzeigen

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

+ 1
- 1
oa-ui/src/views/system/user/index.vue Datei anzeigen

@@ -513,7 +513,7 @@ export default {
513 513
         this.roleOptions = response.roles;
514 514
         this.$set(this.form, "postIds", response.postIds);
515 515
         this.$set(this.form, "roleIds", response.roleIds);
516
-        debugger
516
+        
517 517
         if (response.data.titles != "" && response.data.titles != undefined && response.data.titles != null) {
518 518
           for (let i = 0; i < response.data.titles.split(",").length; i++)
519 519
             this.titles[i] = response.data.titles.split(",")[i]

Laden…
Abbrechen
Speichern