Skip to content

获取合同列表 API

PathMethodCreated At
/api/contracts/{customerId}/paginateGET2025-11-29 00:39:11

Request

KeyRuleDescription
customerIdstring,size:24trans:validate.CUSTOMER_NOT_FOUND
pageinteger,min:1,max:100页码必须为正整数
page_sizeinteger,min:5,max:1000每页数量必须为正整数

Response

KeyTypeExampleComment
idstring43ab23编号
contractNostringHS245合同编号
customerIdstring23d82客户ID
agentIdstring43d32渠道ID
isAgentbooltrue是否为渠道
contractorstring杭州市金职院签约单位
titlestring一期合同合同名称
deliveryAmountstring23.34发货金额
purchaseCoststring123.34采购费用
prePurchaseCoststring1234.23预采购成本
advanceCoststring1234.23垫资成本
projectNamestring金职院基础网络建设项目项目名称
customerNamestring金职院客户名称
totalAmountstring300000.00总金额
salesLeadIdint1销售负责人编号
salesLeaderNamestring张三销售负责人
grossProfitfloat24毛利
grossProfitMarginfloat0.34毛利率
purchaseAmountfloat1.24采购金额
retentionMoneyfloat1.24质保金
cumulativeInvoicedAmountfloat1.24累计开票金额
sellingExpensesfloat1.24销售费用
cumulativeReceiptsfloat1.24累计收款项
outstandingReceivablesfloat1.24未收款项
signingMethodNamestring合作过签签订方式
signingDatestring2021-01-01签订日期
industryAttributestring工商行业属性
productCategorystring路由器产品分类
remarkstring备注
isRoutineCheckbooltrue是否巡检
routineCheckCyclestringMONTH巡检周期
routineCheckYearsint1巡检年限
projectTypestring集成无初验项目类型

TypeScript Result Example:

TypeScript
interface Result {
  /** 编号 */
  id: string;
  /** 合同编号 */
  contractNo: string;
  /** 客户ID */
  customerId: string;
  /** 渠道ID */
  agentId: string;
  /** 是否为渠道 */
  isAgent: any;
  /** 签约单位 */
  contractor: string;
  /** 合同名称 */
  title: string;
  /** 发货金额 */
  deliveryAmount: string;
  /** 采购费用 */
  purchaseCost: string;
  /** 预采购成本 */
  prePurchaseCost: string;
  /** 垫资成本 */
  advanceCost: string;
  /** 项目名称 */
  projectName: string;
  /** 客户名称 */
  customerName: string;
  /** 总金额 */
  totalAmount: string;
  /** 销售负责人编号 */
  salesLeadId: number;
  /** 销售负责人 */
  salesLeaderName: string;
  /** 毛利 */
  grossProfit: any;
  /** 毛利率 */
  grossProfitMargin: any;
  /** 采购金额 */
  purchaseAmount: any;
  /** 质保金 */
  retentionMoney: any;
  /** 累计开票金额 */
  cumulativeInvoicedAmount: any;
  /** 销售费用 */
  sellingExpenses: any;
  /** 累计收款项 */
  cumulativeReceipts: any;
  /** 未收款项 */
  outstandingReceivables: any;
  /** 签订方式 */
  signingMethodName: string;
  /** 签订日期 */
  signingDate: string;
  /** 行业属性 */
  industryAttribute: string;
  /** 产品分类 */
  productCategory: string;
  /** 备注 */
  remark: string;
  /** 是否巡检 */
  isRoutineCheck: any;
  /** 巡检周期 */
  routineCheckCycle: string;
  /** 巡检年限 */
  routineCheckYears: number;
  /** 项目类型 */
  projectType: string;
}