批量更新功能
This commit is contained in:
@@ -82,6 +82,21 @@ export function deleteProject(id) {
|
||||
return request({ url: `/backend/crm/project/${id}`, method: "delete" });
|
||||
}
|
||||
|
||||
/** 项目状态流转:仅更新状态(1未开始 / 2进行中 / 3已完成 / 4已暂停 / 5异常) */
|
||||
export function changeProjectStatus(id, status) {
|
||||
return request({ url: `/backend/crm/project/${id}/status`, method: "post", data: { status } });
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存项目联系人:从对应企业通讯录中挑选的联系人ID集合(多选)。
|
||||
* - upstream_contact_ids:上游(客户方)选中的联系人ID数组;
|
||||
* - downstream_contact_ids:下游/中游(对方主体方)选中的联系人ID数组;
|
||||
* - 单一项目后端会自动清空下游集合,传入不属于对应企业的ID会被过滤。
|
||||
*/
|
||||
export function saveProjectContacts(id, data) {
|
||||
return request({ url: `/backend/crm/project/${id}/contacts`, method: "post", data });
|
||||
}
|
||||
|
||||
/* --------------------------- 项目文档(OA 文档库) --------------------------- */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user