Procházet zdrojové kódy

修改勘察设计事业部不能安排项目的错误

余思翰 před 2 měsíci
rodič
revize
c07e960d22

+ 25
- 1
oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-06-21 18:51:54
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-01-23 14:05:22
5
+ * @LastEditTime: 2025-03-10 17:30:59
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -121,6 +121,30 @@ export default {
121 121
           this.$store.commit('SET_PROJECTNAME', this.form.projectName)
122 122
           this.$store.commit('SET_PROJECT', this.form)
123 123
         })
124
+      } else {
125
+        let kcDatas = await listProject({ projectId: this.taskForm.formId, undertakingDept: 113 });
126
+        if (kcDatas.rows.length > 0) {
127
+          getProject(this.taskForm.formId).then(res => {
128
+            this.form = res.data;
129
+            if (this.form.undertakingDept != null && this.form.undertakingDept != "" && this.form.undertakingDept != undefined) {
130
+              this.form.deptId = this.form.undertakingDeptName.split(',')
131
+            }
132
+            if (this.form.projectLeaderUser) {
133
+              this.form.projectLeaderName = this.form.projectLeaderUser.nickName
134
+            }
135
+            this.$set(this.form, 'deptLeader', [])
136
+            if (this.form.undertakingDept) {
137
+              let arr = (this.form.undertakingDept.split(',')).map(Number)
138
+              this.$set(this.form, 'deptId', arr)
139
+              this.getDeptLeader(arr);
140
+            } else {
141
+              this.$set(this.form, 'deptId', [])
142
+            }
143
+            this.$store.commit('SET_PROJECTNUMBER', this.form.projectNumber)
144
+            this.$store.commit('SET_PROJECTNAME', this.form.projectName)
145
+            this.$store.commit('SET_PROJECT', this.form)
146
+          })
147
+        }
124 148
       }
125 149
 
126 150
     },

Loading…
Zrušit
Uložit