Skip to content

获取项目详情 API

PathMethodCreated At
/api/projects/{id}/detailGET2025-11-29 00:39:11

Request

KeyRuleDescription
idstring,size:24项目不存在

Response

KeyTypeExampleComment
idstring675143aea72eba31e807f9d2编号
projectNostringPRJ-2023-001项目编号
namestring浙江省JW监委外网项目项目名称
customerIdstring2客户编号
customerNamestring襄阳城坊客户名称
contractIdstring675143aea72eba31e807f9d3合同编号
typestringTYPE-001项目类型
totalAmountstring300000项目总金额
projectLevelenumProjectLevel项目等级
salesLeaderIdint12销售负责人编号
salesLeaderNamestring老顽童销售负责人名字
projectLeaderIdint13项目负责人编号
projectLeaderNamestring张三丰项目负责人名字
techLeaderIdint11技术负责人编号
techLeaderNamestring周伯通技术负责人名称
projectStagestringstage-001项目阶段
projectStageNamestring实施阶段项目阶段名称
deliveryDatestring2023-12-31交付日期
isSignedbooltrue是否已签约
durationstring30项目周期(天)
workHoursint240工时(小时)
statusstringACTIVE项目状态
deliveryReceiptTimestring2023-12-15交付回执时间
expectedCompletionTimestring2024-01-31预计完成时间
agentIdstring67c266000代理编号
agentNamestring华为代理代理名称
createdByint10创建人编号
createdByNamestring张三创建人姓名
updatedByint14更新人编号
updatedByNamestring李四更新人姓名
isArchivedboolfalse是否归档
createdAtstring2025-01-08 15:30:00创建时间
receivingReportUrlstringhttps://example.com/receiving_report.jpg验收报告
arrivalFileUrlstringhttps://example.com/arrival_file.jpg签收单
acceptanceStatusstringPENDING验收状态

TypeScript Result Example:

TypeScript
interface Result {
  /** 编号 */
  id: string;
  /** 项目编号 */
  projectNo: string;
  /** 项目名称 */
  name: string;
  /** 客户编号 */
  customerId: string;
  /** 客户名称 */
  customerName: string;
  /** 合同编号 */
  contractId: string;
  /** 项目类型 */
  type: string;
  /** 项目总金额 */
  totalAmount: string;
  /** 项目等级 */
  projectLevel: ResultProjectLevel;
  /** 销售负责人编号 */
  salesLeaderId: number;
  /** 销售负责人名字 */
  salesLeaderName: string;
  /** 项目负责人编号 */
  projectLeaderId: number;
  /** 项目负责人名字 */
  projectLeaderName: string;
  /** 技术负责人编号 */
  techLeaderId: number;
  /** 技术负责人名称 */
  techLeaderName: string;
  /** 项目阶段 */
  projectStage: string;
  /** 项目阶段名称 */
  projectStageName: string;
  /** 交付日期 */
  deliveryDate: string;
  /** 是否已签约 */
  isSigned: any;
  /** 项目周期(天) */
  duration: string;
  /** 工时(小时) */
  workHours: number;
  /** 项目状态 */
  status: string;
  /** 交付回执时间 */
  deliveryReceiptTime: string;
  /** 预计完成时间 */
  expectedCompletionTime: string;
  /** 代理编号 */
  agentId: string;
  /** 代理名称 */
  agentName: string;
  /** 创建人编号 */
  createdBy: number;
  /** 创建人姓名 */
  createdByName: string;
  /** 更新人编号 */
  updatedBy: number;
  /** 更新人姓名 */
  updatedByName: string;
  /** 是否归档 */
  isArchived: any;
  /** 创建时间 */
  createdAt: string;
  /** 验收报告 */
  receivingReportUrl: string;
  /** 签收单 */
  arrivalFileUrl: string;
  /** 验收状态 */
  acceptanceStatus: string;
}

enum ResultProjectLevel {
  /** 重大项目 */
  MAJOR = "MAJOR",
  /** 大项目 */
  LARGE = "LARGE",
  /** 中小项目 */
  MEDIUM = "MEDIUM",
  /** 微型项目 */
  MICRO = "MICRO"
}

Enums

ProjectLevel

ConstDescription
MAJOR重大项目
LARGE大项目
MEDIUM中小项目
MICRO微型项目