|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-04-19 15:32:00
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-08-02 10:43:19
|
|
5
|
+ * @LastEditTime: 2024-09-19 10:27:58
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -186,7 +186,7 @@ export default {
|
186
|
186
|
form: {},
|
187
|
187
|
rules: {},
|
188
|
188
|
userList: [],
|
189
|
|
- openPrint:false,
|
|
189
|
+ openPrint: false,
|
190
|
190
|
};
|
191
|
191
|
},
|
192
|
192
|
mounted() {
|
|
@@ -206,15 +206,12 @@ export default {
|
206
|
206
|
let qualityInspector = this.processQualityInspector(technicalPlanRes.data)
|
207
|
207
|
technicalPlanRes.data.qualityInspector = qualityInspector
|
208
|
208
|
this.form = technicalPlanRes.data;
|
209
|
|
- if (!this.projectNumber || !this.projectName) {
|
210
|
|
- // 仅在需要时调用getProject
|
211
|
|
- const projectRes = await getProject(this.taskForm.formId);
|
212
|
|
- if (projectRes.data) {
|
213
|
|
- this.$set(this.form, "projectNumber", projectRes.data.projectNumber);
|
214
|
|
- this.$set(this.form, "projectName", projectRes.data.projectName);
|
215
|
|
- this.$set(this.form, "projectLeader", projectRes.data.projectLeader);
|
216
|
|
- this.$set(this.form, "undertakingDept", projectRes.data.undertakingDept);
|
217
|
|
- }
|
|
209
|
+ const projectRes = await getProject(this.taskForm.formId);
|
|
210
|
+ if (projectRes.data) {
|
|
211
|
+ this.$set(this.form, "projectNumber", projectRes.data.projectNumber);
|
|
212
|
+ this.$set(this.form, "projectName", projectRes.data.projectName);
|
|
213
|
+ this.$set(this.form, "projectLeader", projectRes.data.projectLeader);
|
|
214
|
+ this.$set(this.form, "undertakingDept", projectRes.data.undertakingDept);
|
218
|
215
|
}
|
219
|
216
|
}
|
220
|
217
|
} catch (error) {
|