浏览代码

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

余思翰 2 个月前
父节点
当前提交
c07e960d22
共有 1 个文件被更改,包括 25 次插入1 次删除
  1. 25
    1
      oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue

+ 25
- 1
oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue 查看文件

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-06-21 18:51:54
3
  * @Date: 2024-06-21 18:51:54
4
  * @LastEditors: Please set LastEditors
4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-01-23 14:05:22
5
+ * @LastEditTime: 2025-03-10 17:30:59
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
121
           this.$store.commit('SET_PROJECTNAME', this.form.projectName)
121
           this.$store.commit('SET_PROJECTNAME', this.form.projectName)
122
           this.$store.commit('SET_PROJECT', this.form)
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
     },

正在加载...
取消
保存