From 08cebe614b3533baad516167e725d6f813439797 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 18 Nov 2025 17:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=BC=80=E5=8F=91=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/project.js | 15 +++ pages/project/list/index.vue | 251 ++++++++++++++++++++++++++++++++++- 2 files changed, 262 insertions(+), 4 deletions(-) diff --git a/api/project.js b/api/project.js index 04805f8..c7aee71 100644 --- a/api/project.js +++ b/api/project.js @@ -142,3 +142,18 @@ export const deleteProject = (ids) => { }); }; +/** + * 开始项目开发 + * @param {Object} data + * @param {string} data.id 项目ID + * @param {string} data.expectedCompleteDate 预计完成日期(YYYY-MM-DD) + * @returns {Promise} 操作结果 + */ +export const startProjectDevelopment = (data) => { + return uni.$uv.http.put('bst/project/start', data, { + custom: { + auth: true + } + }); +}; + diff --git a/pages/project/list/index.vue b/pages/project/list/index.vue index 52ffbf3..571721b 100644 --- a/pages/project/list/index.vue +++ b/pages/project/list/index.vue @@ -201,13 +201,54 @@ + + + + + + + 开始开发 + + + + 项目:{{ currentStartProjectName }} + + 预计完成日期 + + 请选择预计完成日期 + {{ startProjectForm.expectedCompleteDate }} + 📅 + + + + + 取消 + + 确定 + + + + + +