diff --git a/src/api/studentTrainingAnswer.js b/src/api/studentTrainingAnswer.js index b1091a7..68f29f1 100644 --- a/src/api/studentTrainingAnswer.js +++ b/src/api/studentTrainingAnswer.js @@ -379,3 +379,14 @@ export function checkBusinessFeasibilityStepTwo(payload) { } return request({ url: "/api/student-training-answers/business-feasibility/step-2/validate", method: "post", data: value, headers: { repeatSubmit: false } }); } + +export function checkBusinessFeasibilityStepThree(payload) { + const reportUrl = String(payload?.reportUrl || "").trim(); + const reportName = String(payload?.reportName || "").trim(); + const supported = /\.(pdf|docx?|png|jpe?g)(?:\?|$)/i; + if (isStudentDemo()) { + if (!reportUrl || !supported.test(reportUrl) && !supported.test(reportName)) return Promise.reject(new Error("请上传 PDF、Word、PNG 或 JPG 格式的可行性论证报告")); + return Promise.resolve({ code: 200, data: { valid: true, message: "校验通过" } }); + } + return request({ url: "/api/student-training-answers/business-feasibility/step-3/validate", method: "post", data: { reportUrl, reportName }, headers: { repeatSubmit: false } }); +} diff --git a/src/views/demand/business-feasibility.vue b/src/views/demand/business-feasibility.vue index b89a376..203ac1c 100644 --- a/src/views/demand/business-feasibility.vue +++ b/src/views/demand/business-feasibility.vue @@ -83,7 +83,18 @@
-

第 {{ currentStep }} 步将在后续实训页面中配置。

+
+

Step 03

可行性论证报告

成果提交
+

根据前两步的论证结构与信息,结合实训 4–6,撰写可行性论证报告。可参考以下方法:

  1. 根据报告模板,自行分析撰写可行性论证报告。
  2. 使用通用 AI 大模型辅助完成报告,参考步骤提示词见案例文档。
+
+ + + +
+
+
+
+

第 {{ currentStep }} 步将在后续实训页面中配置。

@@ -91,15 +102,15 @@