meta { name: 编辑工作计划 type: http seq: 3 tags: [ generated ] } post { url: {{baseUrl}}/api/opportunity/workplan/update body: formUrlEncoded auth: inherit } body:form-urlencoded { id: 749565580498960384 planStatus: 1 } docs { # 编辑工作计划 `POST /api/opportunity/workplan/update` 商机详情「工作计划」Tab 行编辑,兼「登记完成」入口(票 12)。部分更新:未传字段不动。登记完成语义:planStatus=1 服务端回填 finishTime=now,0 取消完成并清空 finishTime;planStatus 值域封闭 0/1(其余拒 66001)。目标不存在拒 66002;商机暂缓中禁写(66003)。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | id | string | 是 | - | 计划行 ID | | planContent | string | 否 | - | 计划内容(传入则整体替换,空白/超 1000 字拒 66001) | | deadline | string | 否 | - | 截止时间(yyyy-MM-dd HH:mm:ss) | | planStatus | number | 否 | - | 计划状态:0未完成 1已完成;1 回填 finishTime=now,0 清空 | ## 请求示例 请求头:Authorization: Bearer {{token}} Content-Type: application/x-www-form-urlencoded POST /api/opportunity/workplan/update id=749565580498960384&planStatus=1 ## 响应 data 结构 null ## 响应示例 // 示例数据,字段结构以上表为准,非真实返回 ```json { "code": 0, "success": true, "message": "success", "data": null } ``` }