Skip to content

合同转项目 API

PathMethodCreated At
/api/projects/from/contractPOST2025-11-29 00:39:11

Request

KeyRuleDescription
namestring,max:64项目名称不能超过64个字符
customer_idstring,size:24客户不存在
agent_idstring,size:24代理不存在
contract_idstring,size:24合同不存在
typein:COMPLETED_WITHOUT_SERVICE,COMPLETED_WITH_SERVICE,DELIVERY_SIGNED_ONLY,INTEGRATION_WITHOUT_ACCEPTANCE,INTEGRATION_WITH_ACCEPTANCE项目类型不正确
total_amountdecimal:0,2,min:0.0000项目金额格式错误
sales_leader_idinteger,min:0销售经理不存在
tech_leader_idinteger,min:0技术经理不存在
project_stagein:STARTED,PARTIALLY_DELIVERED,ALL_DELIVERED,IMPLEMENTED,INITIAL_ACCEPTANCE,FINAL_ACCEPTANCE项目阶段错误
delivery_datedate_format:Y-m-d发货时间格式错误
is_signedApp\Rules\BoolRule是否终验字段错误
durationstring,max:100项目用时不能超过100个字符
work_hoursstring,max:100项目工时不能超过100个字符
delivery_receipt_timedate_format:Y-m-d H:i:s到货签收时间格式不正确
expected_completion_timedate_format:Y-m-d预计完成时间格式不正确
statusin:PROCESSING,EXCEPTED,COMPLETED项目状态错误

Response

KeyTypeExampleComment
codeint0编号:0表示成功,非0表示错误
messagestringsuccess成功为 success, 失败则错误消息

TypeScript Result Example:

TypeScript
interface Result {
  /** 编号:0表示成功,非0表示错误 */
  code: number;
  /** 成功为 success, 失败则错误消息 */
  message: string;
}