详情页 Steps 按模式生成阶段序列;新增签约/确认接受/婉拒操作;MyTasks 适配待确认/已签约状态
This commit is contained in:
@@ -214,6 +214,11 @@ export const hallApi = {
|
||||
bidTask: (id: string, body: { quote: number; plan: string; material?: string; deliverDays?: number; team?: unknown[]; cases?: unknown[]; commit?: Record<string, unknown> }) =>
|
||||
request<{ ok: boolean; item?: TaskBidRow }>(`/hall/tasks/${encodeURIComponent(id)}/bid`, { method: "POST", body: JSON.stringify(body) }),
|
||||
doingTask: (id: string) => request<{ ok: boolean }>(`/hall/tasks/${encodeURIComponent(id)}/doing`, { method: "POST" }),
|
||||
/** v3.5:签约托管(发布方 claimed → signed)与确认接受(接单方 assigned → claimed)(0060) */
|
||||
signTask: (id: string, body?: { payType?: string }) =>
|
||||
request<{ ok: boolean; item?: HallTask }>(`/hall/tasks/${encodeURIComponent(id)}/sign`, { method: "POST", body: JSON.stringify(body ?? {}) }),
|
||||
acceptInviteTask: (id: string) =>
|
||||
request<{ ok: boolean; item?: HallTask }>(`/hall/tasks/${encodeURIComponent(id)}/accept-invite`, { method: "POST" }),
|
||||
completeTask: (id: string) => request<{ ok: boolean }>(`/hall/tasks/${encodeURIComponent(id)}/complete`, { method: "POST" }),
|
||||
deliverTask: (id: string, body?: { attachments?: string[]; note?: string; milestoneId?: string }) =>
|
||||
request<{ ok: boolean; item?: HallTask }>(`/hall/tasks/${encodeURIComponent(id)}/deliver`, { method: "POST", body: JSON.stringify(body ?? {}) }),
|
||||
|
||||
Reference in New Issue
Block a user