Browse Source

修改勘察设计事业部项目流转报错

余思翰 2 months ago
parent
commit
87ca993bc6
1 changed files with 12 additions and 5 deletions
  1. 12
    5
      oa-ui/src/views/flowable/form/projectProcess/addproject.vue

+ 12
- 5
oa-ui/src/views/flowable/form/projectProcess/addproject.vue View File

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-03-18 11:00:04
3
  * @Date: 2024-03-18 11:00:04
4
- * @LastEditors: wrh
5
- * @LastEditTime: 2025-02-10 17:36:01
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2025-03-10 17:19:05
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="project-wrapper">
8
   <div class="project-wrapper">
289
         this.formTotal = 1
289
         this.formTotal = 1
290
         this.getProjectInfo(this.taskForm.formId)
290
         this.getProjectInfo(this.taskForm.formId)
291
         // this.getProjectWorkList();
291
         // this.getProjectWorkList();
292
-      } else {
293
-        this.addForm.projectRegistrant = this.userId;
294
-        this.registrantUser = this.name;
292
+      }
293
+      else {
294
+        let kcDatas = await listProject({ projectId: this.taskForm.formId, undertakingDept: 113 });
295
+        if (kcDatas.rows.length > 0) {
296
+          this.formTotal = 1
297
+          this.getProjectInfo(this.taskForm.formId)
298
+        } else {
299
+          this.addForm.projectRegistrant = this.userId;
300
+          this.registrantUser = this.name;
301
+        }
295
       }
302
       }
296
     },
303
     },
297
     async getDeptLeader(val) {
304
     async getDeptLeader(val) {

Loading…
Cancel
Save